/* CONTACT PAGE SCOPED STYLES */

/* =================================
   HEADER STYLES (GLOBAL SAFE CHANGES)
   ================================= */

.header {
  position: sticky !important;
  top: 0;
  z-index: 1000;
  height: 64px;
  background: #0b1220;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-container {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;        /* Increased from 0 16px to 12px 16px */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;    /* Include padding in height calculation */
}

/* Logo Styles */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 40px;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.site-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 100%;
}

.site-logo img {
  height: 34px;
  width: auto;
  display: block;
  margin: 0;
  padding: 0;
  vertical-align: top;
}

/* Mobile Menu Improvements */
.main-navigation {
  position: relative;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Prevent body scroll when mobile menu is open */
body.nav-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .main-navigation {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    background: #0f172a;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  }
  
  .main-navigation.is-open {
    display: block;
  }
  
  .nav-list {
    flex-direction: column;
    padding: 0;
  }
  
  .nav-item {
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  
  .nav-item:last-child {
    border-bottom: none;
  }
  
  .nav-link {
    display: block;
    padding: 16px 20px;
    color: #E5ECFF;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
  }
  
  .nav-link:hover,
  .nav-link--active {
    background: rgba(255,255,255,0.05);
    color: #fff;
  }
  
  .dropdown-menu {
    position: static !important;
    background: rgba(255,255,255,0.02);
    border: none;
    box-shadow: none;
    padding-left: 20px;
  }
  
  .dropdown-link {
    display: block;
    padding: 12px 20px;
    color: #9FB0D0;
    text-decoration: none;
    font-size: 14px;
  }
  
  .dropdown-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
  }
  
  .nav-cta {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  
  .nav-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* =================================
   CONTACT PAGE STYLES
   ================================= */

#contact-page {
  --page-pad: 16px;
  --max-w: 1064px;
  padding-top: 72px; /* clear the sticky header (64px + gap) */
  background: #0b1220;
  color: #E5ECFF;
  min-height: auto;
}

#contact-page .container {
  width: min(100%, var(--max-w));
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

/* =================================
   FORM SECTION WITH HERO BACKGROUND
   ================================= */

#contact-page .form-wrap {
  position: relative;
  padding: 80px 0 0;
  background-image: url('../media/3.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

#contact-page .form-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 18, 32, 0.85) 0%,
    rgba(15, 23, 42, 0.90) 50%,
    rgba(11, 18, 32, 0.95) 100%
  );
  z-index: 1;
}

#contact-page .form-wrap .container {
  position: relative;
  z-index: 2;
}

/* Page header styling */
#contact-page .page-header {
  text-align: center;
  margin-bottom: 40px;
  color: white;
}

#contact-page .page-header h1 {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 16px;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}

#contact-page .page-header p {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  color: #ffffff;
  opacity: 0.9;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  max-width: 600px;
  margin: 0 auto;
}

/* Ensure form elements don't hide behind sticky header */
#contact-page .form-wrap .card,
#contact-page .form-wrap form,
#contact-page #vd-form {
  scroll-margin-top: 88px;
}

/* Ensure form container has proper spacing */
#contact-page #quote-form {
  margin-top: 0;
}

/* =================================
   MOBILE RESPONSIVE
   ================================= */

@media (max-width: 480px) {
  #contact-page {
    --page-pad: 12px;
    padding-top: 76px; /* More space on very small screens */
  }
  
  #contact-page .form-wrap {
    padding: 90px 0 0;
    background-attachment: scroll; /* Better mobile performance */
  }
  
  #contact-page .page-header {
    margin-bottom: 30px;
  }
  
  #contact-page .page-header h1 {
    font-size: clamp(28px, 8vw, 36px);
  }
  
  #contact-page .page-header p {
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  #contact-page .form-wrap {
    padding: 85px 0 30px;
  }
}

/* =================================
   TRUST STRIP SPACING
   ================================= */

#contact-page ~ .trust-strip {
  margin-top: 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* =================================
   ACCESSIBILITY IMPROVEMENTS
   ================================= */

@media (prefers-reduced-motion: reduce) {
  #contact-page .btn {
    transition: none;
  }
  
  #contact-page .btn:hover {
    transform: none;
  }
}

/* Focus styles */
#contact-page .btn:focus-visible {
  outline: 2px solid #2657F5;
  outline-offset: 2px;
}

/* =================================
   FORM FOCUS ENHANCEMENTS
   ================================= */

/* Ensure the form is the primary focus */
#contact-page #vd-contact-flow {
  background: rgba(11, 18, 32, 0.95);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* =================================
   FORM LAYOUT OPTIMIZATION
   ================================= */

/* Remove dead space in form card */
#contact-page #vd-contact-flow {
  padding: 24px 20px 20px 20px !important;
  margin: 0 auto !important;
  max-width: 480px !important;
}

/* Center the form buttons */
#contact-page .vd-step-actions {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 24px !important;
  padding: 0 !important;
}

/* Center trust badges */
#contact-page .trust-strip {
  margin-top: 20px !important;
  padding: 16px 0 !important;
}

#contact-page .trust-chips {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

/* Mobile optimizations */
@media (max-width: 480px) {
  #contact-page #vd-contact-flow {
    padding: 20px 16px 16px 16px !important;
    margin: 0 12px !important;
  }
  
  #contact-page .vd-step-actions {
    margin-top: 20px !important;
    gap: 10px !important;
  }
  
  #contact-page .trust-strip {
    margin-top: 16px !important;
    padding: 12px 0 !important;
  }
  
  #contact-page .trust-chips {
    gap: 6px !important;
  }
}

/* Review Step Styles */
.vd-review-summary {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.vd-review-summary h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 20px 0;
  text-align: center;
}

.vd-review-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.vd-review-item:last-child {
  border-bottom: none;
}

.vd-review-item strong {
  color: #fff;
  font-weight: 600;
  min-width: 120px;
}

.vd-review-item span {
  color: #ccc;
  text-align: right;
  flex: 1;
  margin-left: 16px;
}

/* Center form buttons */
.vd-step-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.vd-step-actions .btn {
  min-width: 140px;
}

/* Center sticky navigation buttons */
.vd-sticky-nav {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 16px 24px !important;
  background: rgba(11, 18, 32, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  position: sticky !important;
  bottom: 0 !important;
  z-index: 100 !important;
}

/* Override flex properties to center buttons */
.vd-sticky-nav .vd-btn:first-child,
.vd-sticky-nav .vd-btn:nth-child(2),
.vd-sticky-nav .vd-btn:last-child {
  flex: 0 0 auto !important;
  min-width: 120px !important;
}

/* Remove dead space in form */
.vd-form-card {
  padding: 24px !important;
  margin-bottom: 0 !important;
}

.vd-step-content {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.vd-field-group {
  margin-bottom: 20px !important;
}

.vd-field-group:last-child {
  margin-bottom: 0 !important;
}

/* Force center buttons on mobile */
@media (max-width: 480px) {
  .vd-sticky-nav {
    justify-content: center !important;
    display: flex !important;
  }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  padding: 8px !important;
  z-index: 1001 !important;
}

/* Show hamburger on mobile */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block !important;
  }
  
  .main-navigation {
    display: none !important;
  }
  
  .main-navigation.active {
    display: block !important;
    position: fixed !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    background: #0b1220 !important;
    padding: 20px !important;
    z-index: 1000 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
}

/* Hamburger Icon Styling */
.hamburger {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  width: 24px !important;
  height: 18px !important;
  position: relative !important;
}

.hamburger span {
  display: block !important;
  width: 100% !important;
  height: 2px !important;
  background: #fff !important;
  margin: 2px 0 !important;
  transition: all 0.3s ease !important;
  border-radius: 1px !important;
}

/* Hamburger Animation */
.mobile-menu-toggle.active .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px) !important;
}

.mobile-menu-toggle.active .hamburger span:nth-child(2) {
  opacity: 0 !important;
}

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px) !important;
}

/* NUCLEAR OPTION - Force center buttons everywhere */
#vd-contact-flow .vd-sticky-nav,
.vd-contact-flow .vd-sticky-nav,
body .vd-sticky-nav,
div.vd-sticky-nav,
.vd-sticky-nav[style] {
  justify-content: center !important;
  display: flex !important;
  align-items: center !important;
  text-align: center !important;
  flex-direction: row !important;
}

/* Override any conflicting styles */
.vd-sticky-nav * {
  flex: 0 0 auto !important;
}

/* Form buttons inside form card */
.vd-form-buttons {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 24px 0 !important;
  margin-top: 20px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.vd-form-buttons .vd-btn {
  flex: 0 0 auto !important;
  min-width: 120px !important;
}

/* Center the Next button when Back is hidden */
.vd-form-buttons .vd-btn:only-child {
  margin: 0 auto !important;
}
