/* ==========================================================================
   HX Tax — styles.css
   Mobile-first, pure CSS, Inter font only
   Palette: #0F1F3D navy | #FFFFFF white | #2563EB electric blue
   ========================================================================== */

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: #0F1F3D;
  background: #FFFFFF;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.container--wide {
  max-width: 960px;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  background: #0F1F3D;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav__wordmark {
  font-size: 1.25rem;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.nav__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}

.nav__logo {
  display: block;
}

.nav__tagline {
  font-size: 0.6875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.01em;
  line-height: 1;
}

.nav__phone {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #FFFFFF;
  transition: opacity 0.15s ease;
}

.nav__phone:hover {
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  background: #0F1F3D;
  padding: 52px 0 56px;
}

.hero__headline {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero__subheadline {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
  margin-bottom: 14px;
}

.hero__social-proof {
  font-size: 0.875rem;
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  margin-bottom: 20px;
}

.trust-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin-bottom: 32px;
}

.trust-signals__item {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #2563EB;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trust-signals__item:not(:last-child)::after {
  content: '·';
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.35);
}

/* --------------------------------------------------------------------------
   Form card
   -------------------------------------------------------------------------- */
.form-card {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form__group {
  margin-bottom: 16px;
}

.form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0F1F3D;
  margin-bottom: 6px;
}

.form__control {
  width: 100%;
  padding: 11px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #0F1F3D;
  background: #FFFFFF;
  border: 1.5px solid #D1D5DB;
  border-radius: 6px;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}

.form__control:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form__control--select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230F1F3D' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form__control--select:invalid,
.form__control--select option[value=''] {
  color: #9CA3AF;
}

.form__control.has-error {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form__error {
  display: none;
  font-size: 0.8125rem;
  color: #DC2626;
  margin-top: 5px;
  font-weight: 400;
}

.form__error.is-visible {
  display: block;
}

.form__submit {
  width: 100%;
  padding: 14px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #FFFFFF;
  background: #2563EB;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  margin-top: 6px;
  letter-spacing: -0.01em;
}

.form__submit:hover:not(:disabled) {
  background: #1D4ED8;
}

.form__submit:active:not(:disabled) {
  transform: translateY(1px);
}

.form__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Honeypot — visually hidden from real users, bots fill it in */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Radio group */
.form__radios {
  display: flex;
  gap: 24px;
  margin-top: 4px;
}

.form__radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #0F1F3D;
  cursor: pointer;
}

.form__radio-label input[type='radio'] {
  width: 18px;
  height: 18px;
  accent-color: #2563EB;
  cursor: pointer;
  flex-shrink: 0;
}

/* Disqualification message */
.disqualification {
  display: none;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.disqualification.is-visible {
  display: block;
}

.disqualification__heading {
  font-size: 1rem;
  font-weight: 600;
  color: #0F1F3D;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.disqualification__body {
  font-size: 0.9375rem;
  color: #4B5563;
  line-height: 1.7;
}

.disqualification__body a {
  color: #2563EB;
  font-weight: 600;
}

.form__global-error {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #DC2626;
  line-height: 1.5;
}

.form__global-error.is-visible {
  display: block;
}

/* --------------------------------------------------------------------------
   How It Works
   -------------------------------------------------------------------------- */
.how-it-works {
  background: #FFFFFF;
  padding: 64px 0;
}

.section-heading {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  color: #0F1F3D;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  text-align: center;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.step {
  padding: 24px;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  position: relative;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #0F1F3D;
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 50%;
  margin-bottom: 14px;
}

.step__title {
  font-size: 1rem;
  font-weight: 600;
  color: #0F1F3D;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step__body {
  font-size: 0.9375rem;
  color: #4B5563;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Trust section
   -------------------------------------------------------------------------- */
.trust-section {
  background: #F8FAFC;
  padding: 48px 0;
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.trust-item {
  padding: 20px;
  background: #FFFFFF;
  border: 1.5px solid #E5E7EB;
  border-radius: 8px;
  text-align: center;
}

.trust-item__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0F1F3D;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: #0F1F3D;
  padding: 40px 0;
}

.footer__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer__legal {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

.footer__legal p + p {
  margin-top: 4px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 16px;
}

.footer__link {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.15s ease;
}

.footer__link:hover {
  color: #FFFFFF;
}

.footer__copy {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}

/* --------------------------------------------------------------------------
   Thank You page
   -------------------------------------------------------------------------- */
.thankyou {
  background: #FFFFFF;
  padding: 64px 0;
}

.thankyou__heading {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 600;
  color: #0F1F3D;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.thankyou__subheading {
  font-size: 1.0625rem;
  color: #4B5563;
  margin-bottom: 36px;
  line-height: 1.55;
}

.urgency-banner {
  display: none;
  background: #FFFBEB;
  border: 1.5px solid #F59E0B;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #92400E;
}

.urgency-banner.is-visible {
  display: block;
}

.estimate-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.estimate-box {
  padding: 24px;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  text-align: center;
}

.estimate-box__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6B7280;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.estimate-box__value {
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 600;
  color: #0F1F3D;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.thankyou__message {
  font-size: 0.9375rem;
  color: #4B5563;
  line-height: 1.65;
  margin-bottom: 28px;
}

.thankyou__reassurance {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6B7280;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Desktop breakpoint
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .form-card {
    padding: 36px 36px;
  }

  .steps {
    flex-direction: row;
    gap: 20px;
  }

  .step {
    flex: 1;
  }

  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .estimate-grid {
    flex-direction: row;
  }

  .estimate-box {
    flex: 1;
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 64px 0 68px;
  }

  .how-it-works {
    padding: 80px 0;
  }

  .trust-section {
    padding: 60px 0;
  }
}
