/* Tropic Air Charters Phase 6O: accessibility and mobile conversion, 2026-11-10. */

/* Preserve the brand while meeting WCAG AA contrast on the white desktop header. */
body #sp-header .sp-megamenu-parent > li.active > a,
body #sp-header .sp-megamenu-parent > li.active:hover > a {
  color: #96320f !important;
}

/* Do not mark untouched required fields as errors. Show errors after interaction. */
.tac-field input:invalid:not(:placeholder-shown),
.tac-field select:invalid:not(:focus) {
  border-color: rgba(255, 255, 255, 0.38) !important;
}

.tac-field input:user-invalid,
.tac-field select:user-invalid,
.tac-field textarea:user-invalid {
  border-color: #f0a3a3 !important;
}

/* A strong, unambiguous keyboard focus indicator. */
.tac-request-v5 .tac-form .tac-field input:focus-visible,
.tac-request-v5 .tac-form .tac-field select:focus-visible,
.tac-request-v5 .tac-form .tac-field textarea:focus-visible,
.tac-request-v5 .tac-form button:focus-visible,
.tac-request-v5 .tac-form a:focus-visible {
  border-color: #f0c875 !important;
  box-shadow: 0 0 0 4px rgba(240, 200, 117, 0.42) !important;
  outline: 2px solid #ffffff !important;
  outline-offset: 2px !important;
}

@media (max-width: 575.98px) {
  /* Keep the homepage value proposition and primary CTA within the first view. */
  .tac-v5 .tac-hero {
    min-height: auto !important;
    padding-top: 3.25rem !important;
    padding-bottom: 3.25rem !important;
  }

  #tac-home-title {
    font-size: clamp(2rem, 10.5vw, 2.55rem) !important;
    line-height: 1.03 !important;
  }

  .tac-v5 .tac-hero-actions {
    margin-top: 1.35rem !important;
  }

  /* Request-page visitors came to act: show the form before supporting detail. */
  .tac-request-v5 .tac-hero {
    min-height: auto !important;
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
  }

  .tac-request-v5 .tac-hero h1 {
    font-size: clamp(2rem, 10.5vw, 2.55rem) !important;
    line-height: 1.03 !important;
  }

  .tac-request-v5 .tac-quote-grid {
    display: flex !important;
    flex-direction: column !important;
  }

  .tac-request-v5 .tac-form-card {
    order: -1 !important;
    position: static !important;
  }
}
