/* ============================================================
   funnel.css - premium funnel chrome + checkout/confirmation/auth
   Used by transactional (noindex) surfaces: checkout, success,
   portal login/register/confirm-contact, visit booking, cancel.
   Design authority: TrasterosGO Checkout.pdf, Confirmación.pdf,
   Acceso.pdf, Reservar Visita.pdf. Backend data stays authoritative.
   ============================================================ */

body.funnel-page {
  background: var(--tg-page);
  color: var(--tg-ink);
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
}

/* ---- Minimal navy funnel topbar ---- */
body.funnel-page .topbar {
  background: var(--tg-navy);
  border-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 30;
}

body.funnel-page .topbar-inner {
  min-height: 64px;
}

body.funnel-page .brand-logo {
  height: 44px;
}

body.funnel-page nav {
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
}

body.funnel-page nav a {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

body.funnel-page nav a:hover {
  color: #fff;
  text-decoration: none;
}

.funnel-back {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  opacity: 0.92;
  white-space: nowrap;
}

.funnel-back:hover {
  opacity: 1;
}

.funnel-secure {
  align-items: center;
  border: 0;
  color: #b8e6c8;
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
  white-space: nowrap;
}

.funnel-secure svg {
  height: 15px;
  width: 15px;
}

.funnel-nav-step {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  min-height: 34px;
  padding: 6px 10px;
  white-space: nowrap;
}

.funnel-nav-step__num {
  align-items: center;
  background: #fff;
  border-radius: 6px;
  color: var(--tg-navy);
  display: inline-flex;
  height: 22px;
  justify-content: center;
  line-height: 1;
  width: 22px;
}

body.funnel-page main {
  max-width: 1180px;
  padding: 28px 24px 56px;
}

/* ---- Step indicator ---- */
.funnel-steps {
  align-items: center;
  display: flex;
  gap: 12px;
  margin: 0 0 22px;
}

.funnel-step {
  align-items: center;
  color: var(--tg-muted);
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
  text-align: center;
}

.funnel-step-num {
  align-items: center;
  background: var(--tg-white);
  border: 1px solid var(--tg-line);
  border-radius: 999px;
  color: var(--tg-muted);
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.funnel-step.is-active {
  color: var(--tg-navy);
}

.funnel-step.is-active .funnel-step-num {
  background: var(--tg-navy);
  border-color: var(--tg-navy);
  color: #fff;
}

.funnel-step-line {
  background: var(--tg-line);
  border-radius: 2px;
  flex: 1 1 auto;
  height: 2px;
  margin-bottom: 22px;
}

/* ---- Checkout layout ---- */
.co-layout {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.co-main,
.funnel-card {
  background: var(--tg-white);
  border: 1px solid var(--tg-line);
  border-radius: 12px;
  padding: 28px;
}

.co-main h1 {
  color: var(--tg-navy);
  font-size: 26px;
  margin: 0 0 6px;
}

.co-main-lead {
  color: var(--tg-muted);
  font-size: 14px;
  margin: 0 0 20px;
}

.co-hold-note {
  background: #fdf3e4;
  border: 1px solid #f0d5ab;
  border-radius: 8px;
  color: var(--tg-orange-ink);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 16px;
  padding: 10px 14px;
}

.co-error {
  background: #fff2f0;
  border: 1px solid #f2b8b5;
  border-radius: 8px;
  color: var(--danger);
  font-size: 14px;
  font-weight: 650;
  margin: 0 0 16px;
  padding: 10px 14px;
}

/* Segmented customer-type toggle (JS enhancement over the select) */
.co-type-toggle {
  background: var(--tg-surface);
  border: 1px solid var(--tg-line);
  border-radius: 8px;
  display: none;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  width: max-content;
}

body.js-enhanced .co-type-toggle {
  display: inline-flex;
}

body.js-enhanced .co-type-select-wrap {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.co-type-btn {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--tg-muted);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  min-height: 38px;
  padding: 8px 18px;
}

.co-type-btn:hover {
  background: rgba(15, 41, 75, 0.06);
  color: var(--tg-navy);
}

.co-type-btn.is-active {
  background: var(--tg-navy);
  color: #fff;
}

/* Two-step staging: JS hides step 2 until step 1 validates. No-JS shows all. */
body.js-enhanced form.co-staged .co-step-2 {
  display: none;
}

body.js-enhanced form.co-staged.co-show-step-2 .co-step-2 {
  display: block;
}

body.js-enhanced form.co-staged.co-show-step-2 .co-step-1 {
  display: none;
}

.co-continue {
  display: none;
}

body.js-enhanced form.co-staged:not(.co-show-step-2) .co-continue {
  display: inline-flex;
}

body.js-enhanced form.co-staged:not(.co-show-step-2) .co-actions-final {
  display: none;
}

.co-step-back {
  display: none;
}

body.js-enhanced form.co-staged.co-show-step-2 .co-step-back {
  display: inline-flex;
}

.co-step-title {
  color: var(--tg-navy);
  font-size: 18px;
  font-weight: 700;
  margin: 4px 0 14px;
}

/* ---- Summary aside ---- */
.co-aside {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 84px;
}

.co-summary {
  background: var(--tg-white);
  border: 1px solid var(--tg-line);
  border-radius: 12px;
  overflow: hidden;
}

.co-summary-head {
  border-bottom: 1px solid var(--tg-line);
  display: flex;
  gap: 12px;
  padding: 18px 20px;
}

.co-summary-head-icon {
  align-items: center;
  background: var(--tg-surface);
  border: 1px solid var(--tg-line);
  border-radius: 8px;
  color: var(--tg-navy);
  display: inline-flex;
  flex: 0 0 44px;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.co-summary-head-icon svg {
  height: 22px;
  width: 22px;
}

.co-summary-head strong {
  color: var(--tg-navy);
  display: block;
  font-size: 15px;
}

.co-summary-head small {
  color: var(--tg-muted);
  font-size: 12.5px;
}

.co-summary-rows {
  display: grid;
  gap: 8px;
  padding: 16px 20px;
}

.co-summary-row {
  color: var(--tg-muted);
  display: flex;
  font-size: 14px;
  justify-content: space-between;
}

.co-summary-row strong {
  color: var(--tg-ink);
}

.co-summary-total {
  align-items: baseline;
  border-top: 1px solid var(--tg-line);
  display: flex;
  justify-content: space-between;
  margin: 6px 20px 0;
  padding: 14px 0 4px;
}

.co-summary-total span {
  color: var(--tg-navy);
  font-size: 14px;
  font-weight: 700;
}

.co-summary-total strong {
  color: var(--tg-navy);
  font-size: 26px;
  font-weight: 800;
}

.co-summary-trust {
  border-top: 1px solid var(--tg-line);
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 14px 20px 18px;
}

.co-summary-trust li {
  align-items: center;
  color: var(--tg-ink);
  display: flex;
  font-size: 13px;
  font-weight: 500;
  gap: 8px;
}

.co-summary-trust svg {
  color: var(--tg-navy);
  flex: 0 0 16px;
  height: 16px;
  width: 16px;
}

.co-summary-trust .co-trust-whatsapp svg {
  color: #25d366;
}

.co-summary-trust a {
  color: var(--tg-ink);
  font-weight: 600;
}

/* ---- Confirmation page ---- */
.cs-wrap {
  margin: 0 auto;
  max-width: 560px;
}

.cs-card {
  background: var(--tg-white);
  border: 1px solid var(--tg-line);
  border-radius: 12px;
  padding: 34px 30px;
  text-align: center;
}

.cs-icon {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  height: 72px;
  justify-content: center;
  margin-bottom: 18px;
  width: 72px;
}

.cs-icon svg {
  height: 32px;
  width: 32px;
}

.cs-icon--ok {
  background: #e8f5ec;
  color: #1e7c43;
}

.cs-icon--wait {
  background: #fdf3e4;
  color: var(--tg-orange-ink);
}

.cs-card h1 {
  color: var(--tg-navy);
  font-size: 30px;
  margin: 0 0 10px;
}

.cs-lead {
  color: var(--tg-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 auto 22px;
  max-width: 400px;
}

.cs-hold-countdown {
  color: var(--tg-navy);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cs-rows {
  border: 1px solid var(--tg-line);
  border-radius: 10px;
  margin-bottom: 18px;
  overflow: hidden;
  text-align: left;
}

.cs-row {
  align-items: center;
  color: var(--tg-muted);
  display: flex;
  font-size: 14px;
  justify-content: space-between;
  padding: 12px 16px;
}

.cs-row + .cs-row {
  border-top: 1px solid var(--tg-line);
}

.cs-row strong {
  color: var(--tg-ink);
}

.cs-state {
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.cs-row .cs-state--ok {
  color: #1e7c43;
}

.cs-row .cs-state--wait {
  color: var(--tg-orange-ink);
}

.cs-row .cs-state--issue {
  color: #a33a31;
}

.cs-pill {
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  max-width: 60%;
  padding: 4px 10px;
  text-align: right;
  text-transform: uppercase;
}

.cs-pill--ok {
  background: #e8f5ec;
  color: #1e7c43;
}

.cs-pill--wait {
  background: #fdf3e4;
  color: var(--tg-orange-ink);
}

.cs-access-note {
  align-items: flex-start;
  background: var(--tg-surface);
  border: 1px solid var(--tg-line);
  border-radius: 10px;
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px 14px;
  text-align: left;
}

.cs-access-note svg {
  color: var(--tg-orange-ink);
  flex: 0 0 18px;
  height: 18px;
  margin-top: 2px;
  width: 18px;
}

.cs-access-note p {
  color: var(--tg-muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.cs-access-note p strong {
  color: var(--tg-ink);
}

.cs-access-note--issue {
  background: #fff8f6;
  border-color: #efd3cc;
}

.cs-access-note--issue svg {
  color: #a33a31;
}

.cs-actions {
  display: grid;
  gap: 10px;
}

.cs-actions form {
  margin: 0;
}

.cs-actions .tg-btn-navy,
.cs-actions .tg-btn-ghost {
  width: 100%;
}

.cs-actions button[disabled],
.cs-actions [aria-disabled="true"] {
  cursor: wait;
  opacity: 0.72;
  pointer-events: none;
}

.cs-actions .is-loading {
  position: relative;
}

.cs-tracking-note {
  background: #f8fafc;
  border: 1px solid var(--tg-line);
  border-radius: 10px;
  color: var(--tg-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 18px;
  padding: 11px 14px;
}

.cs-feedback {
  border-radius: 8px;
  color: var(--tg-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 12px 0 0;
  padding: 10px 12px;
  text-align: left;
}

.cs-feedback[hidden] {
  display: none;
}

.cs-feedback--info {
  background: #f5f8fb;
  border: 1px solid var(--tg-line);
}

.cs-feedback--success {
  background: #edf8f1;
  border: 1px solid #b9ddc5;
  color: #176638;
}

.cs-feedback--warning {
  background: #fff8ed;
  border: 1px solid #efd5ad;
  color: #805215;
}

.cs-feedback--error {
  background: #fff4f2;
  border: 1px solid #edc9c3;
  color: #8b312a;
}

.cs-review {
  border-top: 1px solid var(--tg-line);
  margin-top: 26px;
  padding-top: 24px;
  scroll-margin-top: 88px;
}

.cs-review h2 {
  color: var(--tg-navy);
  font-size: 18px;
  margin: 0 0 14px;
}

.cs-review .cs-rows {
  margin-bottom: 14px;
}

.cs-review .cs-row {
  align-items: flex-start;
  gap: 16px;
}

.cs-review .cs-row strong {
  max-width: 64%;
  overflow-wrap: anywhere;
  text-align: right;
}

.cs-review-note {
  background: var(--tg-surface);
  border: 1px solid var(--tg-line);
  border-radius: 8px;
  color: var(--tg-muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  padding: 12px 14px;
  text-align: left;
}

.cs-review-note strong {
  color: var(--tg-ink);
}

.cs-help {
  color: var(--tg-muted);
  font-size: 13px;
  margin: 16px 0 0;
}

.cs-help a {
  color: var(--tg-ink);
  font-weight: 600;
}

/* ---- Auth (login / register / confirm contact) ---- */
.au-wrap {
  margin: 0 auto;
  max-width: 880px;
}

.au-wrap--login {
  max-width: 960px;
}

.au-wrap--register {
  max-width: 1120px;
}

.au-wrap--narrow {
  max-width: 480px;
}

.au-split {
  background: var(--tg-white);
  border: 1px solid var(--tg-line);
  border-radius: 12px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
}

.au-split--login {
  box-shadow: 0 30px 80px rgba(11, 24, 43, 0.18);
  grid-template-columns: minmax(390px, 1fr) minmax(0, 1fr);
  min-height: 600px;
}

.au-split--register {
  box-shadow: 0 30px 80px rgba(11, 24, 43, 0.16);
  grid-template-columns: minmax(330px, 0.78fr) minmax(0, 1.22fr);
  min-height: 690px;
}

.au-side {
  background: var(--tg-navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}

.au-side--photo {
  isolation: isolate;
  overflow: hidden;
  padding: 40px;
  position: relative;
}

.au-side--photo::after {
  background: linear-gradient(180deg, rgba(15, 41, 75, 0.7), rgba(15, 41, 75, 0.96));
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.au-side-photo {
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: 0.34;
  position: absolute;
  width: 100%;
  z-index: -2;
}

.au-side-content {
  margin-top: auto;
  max-width: 430px;
  position: relative;
  z-index: 1;
}

.au-side--register .au-side-content {
  max-width: 360px;
}

.au-side h2 {
  color: #fff;
  font-size: 26px;
  line-height: 1.15;
  margin: 0 0 16px;
}

.au-side ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.au-side li {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 500;
}

.au-split--login .au-side li {
  font-weight: 600;
}

.au-side li::before {
  color: var(--tg-orange);
  content: "✓ ";
  font-weight: 700;
}

.au-side p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.au-side-mobile-copy {
  display: none;
}

.au-form {
  padding: 30px;
}

.au-form h1 {
  color: var(--tg-navy);
  font-size: 24px;
  margin: 0 0 6px;
}

.au-form-lead {
  color: var(--tg-muted);
  font-size: 14px;
  margin: 0 0 20px;
}

.au-form .actions button,
.au-form .actions .button {
  width: 100%;
}

.au-submit-orange {
  background: var(--tg-orange);
  border-color: var(--tg-orange);
  color: var(--tg-white);
}

.au-submit-orange:hover,
.au-submit-orange:focus-visible {
  background: var(--tg-white);
  border-color: var(--tg-orange);
  color: var(--tg-orange-ink);
}

.au-legal-note {
  color: var(--tg-muted);
  font-size: 12.5px;
  line-height: 1.55;
  margin: 12px 0 0;
  text-align: center;
}

.au-legal-note a,
#register-login-hint a {
  color: var(--tg-orange-ink);
  font-weight: 700;
}

.au-legal-note a:hover,
#register-login-hint a:hover {
  color: var(--tg-orange-ink);
  text-decoration: underline;
}

.au-divider {
  align-items: center;
  color: var(--tg-muted);
  display: flex;
  font-size: 13px;
  gap: 12px;
  margin: 16px 0;
}

.au-divider::before,
.au-divider::after {
  background: var(--tg-line);
  content: "";
  flex: 1 1 auto;
  height: 1px;
}

.au-alt-cta {
  border: 1px solid var(--tg-line);
  border-radius: 8px;
  color: var(--tg-navy);
  display: block;
  font-weight: 650;
  padding: 11px 12px;
  text-align: center;
}

.au-alt-cta:hover {
  background: var(--tg-surface);
  text-decoration: none;
}

/* Confirm contact */
.cc-card {
  box-shadow: 0 18px 42px rgba(11, 24, 43, 0.1);
  padding: 34px;
  text-align: center;
}

.cc-icon {
  align-items: center;
  background: #eef3fa;
  border: 1px solid #d3e0f0;
  border-radius: 12px;
  color: var(--tg-navy);
  display: inline-flex;
  height: 56px;
  justify-content: center;
  margin-bottom: 18px;
  width: 56px;
}

.cc-icon svg {
  height: 28px;
  width: 28px;
}

.cc-card h1 {
  color: var(--tg-navy);
  font-size: 26px;
  margin: 0 0 10px;
}

.cc-lead {
  color: var(--tg-muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 auto 24px;
  max-width: 390px;
}

.cc-lead strong {
  color: var(--tg-ink);
}

.cc-form {
  margin: 0;
}

.cc-otp-field {
  border: 0;
  margin: 0 0 20px;
  padding: 0;
}

.cc-otp-field legend {
  color: var(--tg-navy);
  font-size: 13.5px;
  font-weight: 700;
  margin: 0 0 10px;
  text-align: left;
}

.cc-otp-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.cc-otp-box {
  appearance: textfield;
  background: #fff;
  border: 1.5px solid var(--tg-line);
  border-radius: 8px;
  color: var(--tg-navy);
  font-size: 22px;
  font-weight: 700;
  height: 54px;
  padding: 0;
  text-align: center;
}

.cc-otp-box:focus {
  border-color: var(--tg-orange);
  box-shadow: 0 0 0 3px rgba(229, 149, 54, 0.18);
  outline: 0;
}

.cc-otp-grid.has-error .cc-otp-box {
  border-color: #d94a38;
}

.cc-code-input {
  border: 1px solid var(--tg-line);
  border-radius: 10px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.35em;
  margin: 0 auto;
  max-width: 280px;
  min-height: 58px;
  padding: 10px 14px;
  text-align: center;
}

.cc-code-fallback {
  margin-bottom: 20px;
  max-width: none;
}

.cc-card form .actions {
  display: grid;
  gap: 10px;
  justify-items: stretch;
}

.cc-card .actions button,
.cc-card .actions .button {
  width: 100%;
}

.cc-resend-note {
  color: var(--tg-muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 14px 0 0;
}

.cc-resend-disabled {
  color: var(--tg-orange-ink);
  cursor: not-allowed;
  font-weight: 700;
  opacity: 0.72;
}

/* ---- Visit booking ---- */
.vf-wrap {
  margin: 0 auto;
  max-width: 680px;
}

.vf-intro {
  margin-bottom: 20px;
}

.vf-intro h1 {
  color: var(--tg-navy);
  font-size: 26px;
  line-height: 1.1;
  margin: 0 0 6px;
}

.vf-intro p {
  color: var(--tg-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  max-width: 620px;
}

.vf-form {
  display: grid;
  gap: 16px;
}

.vf-card {
  background: var(--tg-white);
  border: 1px solid var(--tg-line);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 41, 75, 0.05);
  padding: 22px;
}

.vf-card-head {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.vf-card-head h2 {
  color: var(--tg-navy);
  font-size: 15px;
  line-height: 1.2;
  margin: 0 0 5px;
}

.vf-card-head p,
.visit-slot-hint {
  color: var(--tg-muted);
  font-size: 13.5px;
  line-height: 1.45;
  margin: 0;
}

.vf-slot-badge {
  background: #eaf5ef;
  border: 1px solid #b9dcc8;
  border-radius: 8px;
  color: #2f855a;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 10px;
  white-space: nowrap;
}

.vf-field {
  margin: 0;
  max-width: none;
}

.vf-manual-field {
  margin-top: 14px;
}

.visit-slot-hint {
  margin-top: 8px;
}

.visit-slot-chips {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.visit-slot-chip {
  align-items: center;
  background: #fff;
  border: 1px solid var(--tg-line);
  border-radius: 8px;
  color: var(--tg-navy);
  cursor: pointer;
  font: inherit;
  font-size: 13.5px;
  font-weight: 650;
  height: 44px;
  justify-content: center;
  padding: 0 10px;
  position: relative;
  transition: background 160ms cubic-bezier(0.2, 0.6, 0.2, 1), border-color 160ms cubic-bezier(0.2, 0.6, 0.2, 1), color 160ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

.visit-slot-chip:hover,
.visit-slot-chip:focus-visible,
.visit-slot-chip.is-selected,
.visit-slot-chip:has(input:checked) {
  background: var(--tg-navy);
  border-color: var(--tg-navy);
  color: #fff;
  outline: 0;
}

.visit-slot-chip input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.visit-slot-chip:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(15, 41, 75, 0.16);
}

.visit-slot-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.visit-slot-fieldset legend {
  color: var(--tg-navy);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.vf-empty-slots {
  background: #f7f9fc;
  border: 1px solid var(--tg-line);
  border-radius: 8px;
  color: var(--tg-muted);
  margin: 0;
  padding: 14px;
}

.visit-slot-chip:focus-visible {
  box-shadow: 0 0 0 3px rgba(15, 41, 75, 0.16);
}

.vf-note {
  align-items: flex-start;
  background: #fdf3e4;
  border: 1px solid #f0d5ab;
  border-radius: 10px;
  color: var(--tg-muted);
  display: flex;
  font-size: 13.5px;
  gap: 10px;
  line-height: 1.45;
  padding: 12px 14px;
}

.vf-note svg {
  color: var(--tg-orange-ink);
  flex: 0 0 18px;
  height: 18px;
  margin-top: 1px;
  width: 18px;
}

.vf-actions {
  margin: 16px 0 0;
}

.vf-actions button {
  width: 100%;
}

/* ---- Shared funnel form polish ---- */
body.funnel-page label {
  color: var(--tg-navy);
  font-size: 13.5px;
  font-weight: 700;
}

body.funnel-page input[type="email"],
body.funnel-page input[type="datetime-local"],
body.funnel-page input[type="password"],
body.funnel-page input[type="text"],
body.funnel-page input[type="tel"],
body.funnel-page select,
body.funnel-page textarea {
  border-color: var(--tg-line);
  border-radius: 8px;
}

body.funnel-page input:focus,
body.funnel-page select:focus,
body.funnel-page textarea:focus {
  border-color: var(--tg-navy);
  outline: 2px solid rgba(15, 41, 75, 0.14);
}

body.funnel-page button:not(.co-type-btn):not(.mobile-nav-close),
body.funnel-page .button {
  border-radius: 8px;
  font-weight: 650;
  transition: all 160ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

body.funnel-page .messages {
  margin: 0 auto 18px;
  max-width: 880px;
}

body.cc-hide-messages .messages {
  display: none;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .co-layout {
    grid-template-columns: 1fr;
  }

  .co-aside {
    order: -1;
    position: static;
  }

  /* Mobile/tablet keeps the economic breakdown visible before payment. */
  .co-summary-head {
    padding: 14px 16px;
  }

  .co-summary-rows {
    gap: 6px;
    padding: 12px 16px;
  }

  .co-summary-total {
    margin: 0 16px;
    padding: 12px 0;
  }

  .co-summary-trust {
    display: none;
  }

  .au-split {
    grid-template-columns: 1fr;
  }

  .au-side {
    display: none;
  }

  .au-split--login {
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(11, 24, 43, 0.12);
    min-height: 0;
  }

  .au-split--login .au-side--photo {
    display: flex;
    min-height: 248px;
    padding: 28px 24px;
  }

  .au-split--login .au-side--photo::after {
    background: linear-gradient(180deg, rgba(15, 41, 75, 0.42), rgba(15, 41, 75, 0.9));
  }

  .au-split--login .au-side-photo {
    opacity: 0.68;
  }

  .au-split--login .au-side-content {
    max-width: 320px;
  }

  .au-split--login .au-side-content > h2,
  .au-split--login .au-side-content > ul {
    display: none;
  }

  .au-side-mobile-copy {
    display: block;
  }

  .au-side-mobile-copy h1 {
    color: #fff;
    font-size: 30px;
    line-height: 1.08;
    margin: 0 0 8px;
  }

  .au-side-mobile-copy p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
  }

  .au-split--login .au-form {
    padding: 24px 20px 22px;
  }

  .au-split--login .au-form > h1,
  .au-split--login .au-form > .au-form-lead {
    display: none;
  }

  .au-split--register {
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(11, 24, 43, 0.12);
    min-height: 0;
  }

  .au-split--register .au-side--photo {
    display: flex;
    min-height: 178px;
    padding: 28px 24px;
  }

  .au-split--register .au-side--photo::after {
    background: linear-gradient(180deg, rgba(15, 41, 75, 0.46), rgba(15, 41, 75, 0.9));
  }

  .au-split--register .au-side-photo {
    opacity: 0.6;
  }

  .au-split--register .au-side-content {
    max-width: 560px;
  }

  .au-split--register .au-side h2 {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .au-split--register .au-side p {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
  }

  .au-split--register .au-form {
    padding: 26px 22px 24px;
  }
}

@media (max-width: 720px) {
  body.funnel-page .topbar-inner {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    justify-content: space-between;
    min-height: 62px;
    padding: 10px 14px;
  }

  body.funnel-page .brand {
    flex: 0 1 auto;
    min-width: 0;
  }

  body.funnel-page .brand-logo {
    height: 38px;
    max-width: 132px;
  }

  body.funnel-page nav {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
    justify-content: flex-end;
    margin-left: 0;
    width: auto;
  }

  body.funnel-page nav a,
  body.funnel-page nav button {
    font-size: 12px;
  }

  .funnel-nav-step {
    font-size: 12px;
    gap: 6px;
    min-height: 32px;
    padding: 5px 8px;
  }

  .funnel-nav-step__num {
    height: 20px;
    width: 20px;
  }

  body.funnel-page main {
    padding: 18px 14px 40px;
  }

  .co-main,
  .funnel-card {
    padding: 20px 16px;
  }

  .cc-card {
    padding: 28px 20px;
  }

  .cc-otp-grid {
    gap: 7px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cc-otp-box {
    font-size: 21px;
    height: 52px;
  }

  .vf-wrap {
    max-width: 100%;
  }

  .vf-intro h1 {
    font-size: 22px;
  }

  .vf-card {
    padding: 18px 16px;
  }

  .visit-slot-chips {
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cs-card {
    padding: 26px 18px;
  }

  .funnel-secure span {
    display: none;
  }

  .au-wrap--register {
    max-width: 100%;
  }

  .au-split--register .au-side--photo {
    min-height: 156px;
    padding: 22px 20px;
  }

  .au-split--register .au-side h2 {
    font-size: 22px;
  }

  .au-split--register .au-form {
    padding: 22px 18px 22px;
  }
}

@media (max-width: 460px) {
  body.funnel-page .brand-logo {
    height: 34px;
    max-width: 118px;
  }

  body.funnel-page nav {
    gap: 7px;
  }

  .funnel-nav-step__label {
    max-width: 82px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cc-otp-grid {
    gap: 6px;
  }

  .cc-otp-box {
    font-size: 20px;
    height: 50px;
  }

  .vf-card-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .vf-slot-badge {
    align-self: flex-start;
  }

  .au-wrap--login {
    max-width: 100%;
  }

  .au-split--login .au-side--photo {
    min-height: 232px;
    padding: 24px 20px;
  }

  .au-side-mobile-copy h1 {
    font-size: 28px;
  }

  .au-split--register .au-side--photo {
    min-height: 136px;
    padding: 20px 18px;
  }

  .au-split--register .au-side p {
    font-size: 13px;
  }
}
