/* SubmitReturn CRM + responsive fixes, 2026-07-03 */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

.brand-name {
  white-space: nowrap;
}

.field-prefix .prefix {
  min-width: 34px;
}

.field-prefix input {
  padding-left: 58px !important;
}

.field-prefix input[type="text"][inputmode="numeric"],
.field-prefix input[type="number"] {
  padding-left: 76px !important;
}

.sr-otp-panel {
  display: none;
  margin-top: 22px;
  padding: 20px;
  border: 1px solid rgba(10, 24, 48, 0.12);
  border-radius: var(--r-md, 14px);
  background: #fffaf0;
}

.sr-otp-panel.is-visible {
  display: block;
}

.sr-otp-title {
  margin: 0 0 6px;
  color: var(--navy-deep, #09172d);
  font-family: var(--font-display, inherit);
  font-size: 1.2rem;
  line-height: 1.25;
}

.sr-otp-copy {
  margin: 0 0 16px;
  color: var(--ink-muted, #5d6675);
  font-size: 0.94rem;
}

.sr-otp-actions {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.sr-otp-input {
  width: 150px;
  text-align: center;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.sr-otp-status {
  min-height: 22px;
  margin-top: 12px;
  color: var(--ink-muted, #5d6675);
  font-size: 0.88rem;
}

.sr-otp-status.is-error {
  color: var(--danger, #b42318);
}

.sr-otp-status.is-ok {
  color: var(--success, #167a4b);
}

.sr-otp-note {
  margin-top: 12px;
  color: var(--ink-muted, #5d6675);
  font-size: 0.82rem;
}

@media (max-width: 920px) {
  .section-paper .container > div[style*="grid-template-columns: 1fr 1.2fr"],
  .section .container > div[style*="grid-template-columns: 1fr 1fr"],
  .container > div[style*="grid-template-columns: 1fr 1.2fr"],
  .container > div[style*="grid-template-columns: 1.1fr .9fr"],
  .container > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

@media (max-width: 700px) {
  .field-row {
    grid-template-columns: 1fr !important;
  }

  .steps {
    grid-template-columns: 1fr !important;
  }

  .lead-gate,
  .wizard-card {
    border-radius: 14px;
  }

  .lead-gate-body,
  .wizard-body {
    padding: 26px 18px !important;
  }

  .wizard-tabs button {
    min-width: 110px;
    padding: 15px 12px 13px;
  }

  .pill-toggle {
    grid-template-columns: 1fr !important;
  }

  .regime-card {
    padding: 20px 16px;
  }

  .regime-card .regime-line {
    gap: 12px;
  }

  .regime-card .regime-line span:last-child {
    text-align: right;
  }
}

@media (max-width: 560px) {
  .container,
  .container-narrow {
    width: min(100% - 32px, var(--container, 1180px));
  }

  section,
  .section,
  .calc-section {
    padding-left: 0;
    padding-right: 0;
  }

  .hero h1,
  .calc-hero h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 10vw, 3rem);
  }

  .hero-cta,
  .wizard-nav,
  .sr-otp-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn,
  .wizard-nav .btn,
  .sr-otp-actions .btn,
  .sr-otp-input {
    width: 100%;
  }

  .lead-gate-trust {
    align-items: flex-start;
    text-align: left;
  }

  .savings-banner {
    padding: 22px 18px;
  }

  .savings-banner .amount {
    font-size: 2rem;
  }

  .float-wa {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }

  body {
    padding-bottom: 72px;
  }

  body:has(#contactForm) .float-wa {
    display: none !important;
  }
}

@media (max-width: 390px) {
  .brand-sub {
    display: none;
  }

  .brand-name {
    font-size: 1rem;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }
}
