/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
}

.header-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #0f172a;
  text-decoration: none;
}

/* Desktop Menu */
.desktop-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 1.5rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.menu-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}

.menu-link:hover {
  color: #0f172a;
}

.menu-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #0f172a;
  transform-origin: bottom right;
  transform: scaleX(0);
  transition: transform 0.5s ease;
}

.menu-link:hover::before {
  transform-origin: bottom left;
  transform: scaleX(1);
}

/* ===============================================
   DROPDOWN MENU - DESKTOP
   =============================================== */
.menu-item-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.dropdown-arrow {
  transition: transform 0.2s ease;
}

.menu-item-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 1.5rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  max-width: 320px;
  background: white;
  border-radius: 0.75rem;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px);
  transition: all 0.2s ease;
  z-index: 100;
}

.menu-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.15s ease;
  line-height: 1.4;
}

.dropdown-item:hover {
  background-color: #f1f5f9;
  color: #0f172a;
  transform: translateX(4px);
}

.dropdown-item-label {
  display: block;
  font-size: 0.6875rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.125rem;
  font-weight: 700;
}

.dropdown-item-title {
  display: block;
  color: #0f172a;
  font-weight: 600;
}

.dropdown-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 0.5rem 0;
}

.desktop-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.header-phone {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: color 0.2s;
}

.header-phone:hover {
  color: #0f172a;
}

.header-btn {
  padding: 0.5rem 1rem;
  background-color: #0f172a;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s;
}

.header-btn:hover {
  background-color: #1e293b;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: none;
  border: none;
  color: #475569;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10;
}

.mobile-menu-btn:hover {
  color: #0f172a;
}

.close-icon {
  display: none;
}

.mobile-menu-btn.active .menu-icon {
  display: none;
}

.mobile-menu-btn.active .close-icon {
  display: block;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  border-top: 1px solid #e2e8f0;
  animation: slideDown 0.2s ease-out;
  padding-bottom: 1rem;
}

.mobile-menu.active {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 1rem 0 0 0;
}

.mobile-menu-list li {
  margin-bottom: 0.25rem;
}

.mobile-menu-link {
  display: block;
  padding: 0.75rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.mobile-menu-link:hover {
  color: #0f172a;
  background-color: #f1f5f9;
}

.mobile-phone {
  padding-top: 0.75rem;
}

.mobile-phone-link {
  display: block;
  padding: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
}

.mobile-phone-link:hover {
  color: #0f172a;
}

.mobile-cta-btn {
  display: block;
  padding: 0.625rem;
  text-align: center;
  background-color: #0f172a;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s;
}

.mobile-cta-btn:hover {
  background-color: #1e293b;
}

/* ===============================================
   DROPDOWN MENU - MOBILE
   =============================================== */
.mobile-dropdown {
  margin-bottom: 0.25rem;
}

.mobile-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 0.5rem;
  gap: 0.5rem;
  cursor: pointer;
}

.mobile-dropdown-arrow {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.mobile-dropdown-trigger.active .mobile-dropdown-arrow {
  transform: rotate(180deg);
}

.mobile-dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 0.5rem 1rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.2s ease;
}

.mobile-dropdown-menu.active {
  max-height: 600px;
  opacity: 1;
}

.mobile-dropdown-item {
  display: block;
  padding: 0.625rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 0.15s;
  margin-bottom: 0.125rem;
  line-height: 1.4;
}

.mobile-dropdown-item:hover {
  background-color: #f8fafc;
  color: #0f172a;
}

.mobile-dropdown-item-label {
  display: block;
  font-size: 0.625rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.125rem;
  font-weight: 700;
}

.mobile-dropdown-item-title {
  display: block;
  color: #334155;
  font-weight: 600;
}

.mobile-dropdown-item:hover .mobile-dropdown-item-title {
  color: #0f172a;
}

/* ===============================================
   MOBILE CONTACT BUTTON
   =============================================== */
.mobile-contact-btn-wrapper {
  margin-top: 0.5rem;
  padding: 0 0.5rem;
}

.mobile-contact-btn {
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  background: #0f172a;
  color: white;
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
}

.mobile-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.4);
}

.mobile-contact-btn:active {
  transform: scale(0.95);
}

.mobile-contact-btn svg {
  width: 18px;
  height: 18px;
}

/* Tablet and Desktop */
@media (min-width: 640px) {
  .header-container {
    height: 80px;
  }

  .header-logo {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .desktop-menu {
    display: flex;
  }

  .desktop-actions {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }
}

@media (min-width: 1280px) {
  .desktop-menu {
    gap: 2rem;
  }

  .desktop-actions {
    gap: 1rem;
  }

  .header-btn {
    padding: 0.625rem 1.25rem;
  }
}

/* ===============================================
   CONTACT BADGE BUTTON (Desktop)
   =============================================== */
.contact-badge-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #0f172a;
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 51;
}

.contact-badge-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.4);
}

.contact-badge-btn:active {
  transform: translateY(0);
}

.contact-badge-btn svg {
  width: 18px;
  height: 18px;
}

@media (min-width: 768px) {
  .contact-badge-btn {
    display: flex;
  }
}

/* ===============================================
   CONTACT FORM DROPDOWN (Desktop)
   =============================================== */
.contact-dropdown {
  position: fixed;
  top: 70px;
  right: 1rem;
  width: 420px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  max-height: calc(100vh - 90px);
  overflow-x: hidden;
  overflow-y: auto;
}

.contact-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.contact-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem;
  background: #020617;
  border-radius: 20px 20px 0 0;
}

.contact-dropdown-header-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-dropdown-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-dropdown-title svg {
  opacity: 0.85;
}

.contact-dropdown-subtitle {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-weight: 400;
}

.contact-dropdown-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  color: #ffffff;
  transition: all 0.2s;
  padding: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  margin-top: 0.125rem;
}

.contact-dropdown-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.25);
}

/* ===============================================
   CONTACT MODAL (Mobile)
   =============================================== */
.contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  overflow: hidden;
}

.contact-modal.active {
  opacity: 1;
  visibility: visible;
}

.contact-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.contact-modal-content {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  background: white;
  border-radius: 20px;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  z-index: 10;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.contact-modal.active .contact-modal-content {
  transform: scale(1);
}

.contact-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.contact-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.contact-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
}

.contact-modal-close:hover {
  color: #0f172a;
  background: #f1f5f9;
}

@media (min-width: 768px) {
  .contact-modal {
    display: none;
  }
}

@media (max-width: 767px) {
  .contact-dropdown {
    display: none;
  }
}

/* ===============================================
   CONTACT FORM STYLES
   =============================================== */
.contact-form {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
}

.required {
  color: #ef4444;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  transition: all 0.2s;
  font-family: inherit;
  color: #0f172a;
  box-sizing: border-box;
}

.form-input:hover,
.form-textarea:hover {
  border-color: #94a3b8;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #94a3b8;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.char-count {
  font-size: 0.75rem;
  color: #64748b;
  text-align: right;
  margin-top: -0.25rem;
}

.form-submit-btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: #020617;
  color: white;
  border: none;
  border-radius: 0.625rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.form-submit-btn .btn-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.4);
  background: linear-gradient(135deg, #1e293b 0%, #25476e 100%);
}

.form-submit-btn:active {
  transform: translateY(0);
}

.form-submit-btn:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  transform: none;
}

.form-submit-btn .btn-loading {
  display: none;
}

.form-submit-btn.loading .btn-text {
  display: none;
}

.form-submit-btn.loading .btn-loading {
  display: block;
}

.form-message {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  display: none;
}

.form-message.success {
  display: block;
  background: #dcfce7;
  color: #16a34a;
  border: 1px solid #86efac;
}

.form-message.error {
  display: block;
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

/* ===============================================
   PRIVACY AGREEMENT
   =============================================== */
.privacy-agree {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.625rem;
  padding: 0.875rem 1rem;
}

.privacy-agree-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
}

.privacy-agree-label input[type="checkbox"] {
  margin-top: 0.125rem;
  width: 16px;
  height: 16px;
  accent-color: #0f172a;
  cursor: pointer;
  flex-shrink: 0;
}

.privacy-agree-text {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #334155;
  line-height: 1.5;
}

.privacy-link {
  color: #3b82f6;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s;
}

.privacy-link:hover {
  color: #2563eb;
}

.privacy-agree-summary {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0.375rem 0 0 1.5rem;
  line-height: 1.5;
}