/* Nexvita Care: Get Treatment Estimate page (loaded only on this page and its confirmation page).
 * Builds on the tokens and form basics in main.css. All rules are scoped to .est-page so nothing else changes. */

.est-page {
  --color-primary-light: #4caf50; /* brand palette token missing from main.css */
  --est-ink: #1d2b26;
  --est-muted: #5b6a64;
  --est-line: var(--color-border, #e0ece0);
  --est-soft: #f4f8f4;
  --est-ring: 0 0 0 3px rgba(76, 175, 80, .35);
  --est-shadow: 0 1px 2px rgba(26, 61, 26, .06), 0 18px 48px rgba(26, 61, 26, .10);
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  background: linear-gradient(180deg, #eef6ef 0, #f7faf7 340px, #ffffff 760px);
}
.est-page [hidden] { display: none !important; }
.est-page :focus-visible { outline: 3px solid #1a4a3a; outline-offset: 2px; border-radius: 6px; }
.est-page .est-hero, .est-page .est-body { position: relative; z-index: 1; }
.js-only-block { display: none; }
html.js .js-only-block { display: block; }

/* ---------- Ambient background (decorative, behind everything, never intercepts input) ---------- */
.est-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.est-bg .orb { position: absolute; border-radius: 50%; will-change: transform; }
.orb-1 { width: 560px; height: 560px; top: -200px; left: -180px; background: radial-gradient(circle at 40% 40%, rgba(76, 175, 80, .20), rgba(76, 175, 80, 0) 68%); animation: drift-a 38s ease-in-out infinite alternate; }
.orb-2 { width: 480px; height: 480px; top: 180px; right: -200px; background: radial-gradient(circle at 50% 50%, rgba(26, 74, 58, .13), rgba(26, 74, 58, 0) 68%); animation: drift-b 46s ease-in-out infinite alternate; }
.orb-3 { width: 420px; height: 420px; bottom: 6%; left: 18%; background: radial-gradient(circle at 50% 50%, rgba(58, 125, 58, .13), rgba(58, 125, 58, 0) 70%); animation: drift-a 52s ease-in-out infinite alternate-reverse; }
.est-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.est-lines .arc { animation: dash 60s linear infinite; }
@keyframes drift-a { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(48px, 36px, 0); } }
@keyframes drift-b { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-44px, 28px, 0); } }
@keyframes dash { to { stroke-dashoffset: -600; } }

/* ---------- Hero ---------- */
.est-hero { padding: 28px 0 8px; }
.est-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
.est-hero h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem); margin-bottom: .35em; color: var(--color-primary-dark); letter-spacing: -.02em; }
.est-hero .lead { font-size: clamp(1.02rem, .95rem + .35vw, 1.18rem); color: var(--est-ink); max-width: 62ch; margin-bottom: .7em; }
.est-sub { color: var(--est-muted); max-width: 62ch; margin-bottom: 1.1em; }
.est-trust { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.est-trust li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; background: rgba(255, 255, 255, .82); border: 1px solid var(--est-line); border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--color-teal); }
.est-trust .icon { --icon-size: 20px; color: var(--color-primary); }
.est-disclaimer { display: flex; gap: 10px; align-items: flex-start; max-width: 66ch; margin: 0; padding: 12px 14px; background: rgba(255, 255, 255, .78); border: 1px solid var(--est-line); border-left: 4px solid var(--color-accent); border-radius: 10px; font-size: .88rem; color: var(--est-muted); }
.est-disclaimer .icon { color: var(--color-accent); margin-top: 3px; }
.est-hero-art { display: none; }
@media (min-width: 960px) {
  .est-hero { padding: 36px 0 12px; }
  .est-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; }
  .est-hero-art { display: block; max-width: 480px; justify-self: end; width: 100%; }
}

/* Illustration motion: slow, small, and off for people who ask for reduced motion */
.il { display: block; width: 100%; height: auto; overflow: visible; }
.il .il-route { animation: route 18s linear infinite; }
.il .il-plane { offset-path: path('M118 176C190 40 380 34 408 176'); offset-rotate: auto; animation: fly 10s ease-in-out infinite; }
.il .il-float, .il .il-pulse, .il .il-badge { transform-box: fill-box; transform-origin: center; }
.il .il-float { animation: floaty 8s ease-in-out infinite; }
.il .il-float-b { animation-duration: 10s; animation-delay: -3s; }
.il .il-float-c { animation-duration: 12s; animation-delay: -6s; }
.il .il-pulse { animation: pulse 3.6s ease-out infinite; }
.il .il-pulse-2 { animation-delay: -1.8s; }
.il .il-badge { animation: pop 6s ease-in-out infinite; }
@keyframes route { to { stroke-dashoffset: -110; } }
@keyframes fly { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2); opacity: 0; } }
@keyframes pop { 0%, 86%, 100% { transform: scale(1); } 92% { transform: scale(1.14); } }

/* ---------- Layout ---------- */
.est-body { padding: 20px 0 72px; }
.est-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.est-main, .est-aside { min-width: 0; }
@media (min-width: 1024px) {
  .est-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
  .est-aside { position: sticky; top: 96px; }
}
.est-aside { display: grid; gap: 16px; }
.aside-card { background: rgba(255, 255, 255, .92); border: 1px solid var(--est-line); border-radius: 18px; padding: 22px; box-shadow: 0 1px 2px rgba(26, 61, 26, .05), 0 10px 30px rgba(26, 61, 26, .06); }
.aside-card h2 { font-size: 1.05rem; margin-bottom: 14px; color: var(--color-primary-dark); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; position: relative; }
.flow li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; position: relative; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 42px; bottom: -14px; border-left: 2px dotted #b9d3bb; }
.flow-dot { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--color-mint, #eaf6f0); color: var(--color-primary); }
.flow strong { display: block; font-size: .95rem; color: var(--est-ink); }
.flow p { margin: 2px 0 0; font-size: .86rem; color: var(--est-muted); line-height: 1.5; }
.aside-privacy .checklist { margin: 0 0 14px; }
.aside-privacy .checklist li { font-size: .9rem; align-items: flex-start; gap: 10px; }
.aside-privacy .tick { background: var(--color-primary); color: #fff; border-radius: 50%; padding: 3px; --icon-size: 20px; stroke-width: 2.8; flex: none; }
.est-page .small { font-size: .82rem; }
.est-page .muted { color: var(--est-muted); }

/* ---------- Form card ---------- */
.est-card { position: relative; max-width: none; padding: 20px 16px 24px; background: rgba(255, 255, 255, .97); border: 1px solid var(--est-line); border-radius: 22px; box-shadow: var(--est-shadow); }
@media (min-width: 640px) { .est-card { padding: 28px 32px 32px; } }
.est-alert { margin-top: 4px; }
.est-alert .alert-sub { display: block; margin-top: 4px; font-weight: 400; font-size: .86rem; opacity: .9; }

/* Stepper */
.est-progress { margin-bottom: 26px; }
.stepper { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stepper-item { position: relative; }
.stepper-item:not(:last-child)::after { content: ""; position: absolute; top: 19px; left: calc(40px + 14px + 4px); right: -2px; height: 2px; background: var(--est-line); border-radius: 2px; }
.stepper-item.is-done:not(:last-child)::after { background: var(--color-primary-light); }
.stepper-btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0; background: none; border: 0; text-align: left; font: inherit; color: var(--est-muted); cursor: pointer; position: relative; z-index: 1; }
.stepper-item.is-current .stepper-btn { cursor: default; }
.stepper-dot { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2px solid var(--est-line); font-weight: 700; color: var(--est-muted); transition: background .25s, border-color .25s, color .25s, box-shadow .25s; }
.stepper-dot .tick { display: none; --icon-size: 20px; stroke-width: 3; }
.stepper-text { display: grid; line-height: 1.25; padding-right: 10px; background: #fff; min-width: 0; }
.stepper-text small { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.stepper-text span { font-weight: 650; font-size: .94rem; }
.stepper-item.is-current .stepper-dot { background: var(--color-primary); border-color: var(--color-primary); color: #fff; box-shadow: 0 0 0 5px rgba(76, 175, 80, .18); }
.stepper-item.is-current .stepper-btn { color: var(--color-primary-dark); }
.stepper-item.is-done .stepper-dot { background: var(--color-primary-light); border-color: var(--color-primary-light); color: #fff; }
.stepper-item.is-done .stepper-dot .num { display: none; }
.stepper-item.is-done .stepper-dot .tick { display: block; }
.stepper-item.is-done .stepper-btn { color: var(--color-primary); }
.stepper-btn:hover .stepper-dot { border-color: var(--color-accent); }
.stepper-compact { display: none; margin: 0 0 10px; font-size: .95rem; color: var(--color-primary-dark); }
.stepper-compact strong { margin-right: 6px; }
.bar { height: 6px; background: var(--est-line); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 33%; background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light)); border-radius: inherit; transition: width .45s cubic-bezier(.2, .7, .2, 1); }
@media (max-width: 767px) {
  .stepper { display: none; }
  .stepper-compact { display: block; }
}

/* Step heading */
.est-step-head { margin-bottom: 22px; }
.est-step-head h3 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); margin: 0 0 4px; color: var(--color-primary-dark); }
.est-step-head h3:focus { outline: none; }
.est-step-head p { margin: 0; color: var(--est-muted); }
.est-step { animation: step-in .35s ease both; }
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Fields (extends main.css) */
.est-card .field { margin-bottom: 20px; position: relative; }
.est-card .field label, .est-card .field legend, .est-card .field .label { display: block; font-weight: 650; font-size: .93rem; margin-bottom: 7px; color: var(--est-ink); padding: 0; }
.est-card .field input[type=text], .est-card .field input[type=email], .est-card .field input[type=tel], .est-card .field select, .est-card .field textarea {
  border: 1.5px solid #c3d4c5; border-radius: 12px; background: #fff; min-height: 48px; padding: 11px 14px; font-size: 1rem; color: var(--est-ink); transition: border-color .15s, box-shadow .15s; }
.est-card .field textarea { min-height: 132px; line-height: 1.5; }
.est-card ::placeholder { color: #6b7a74; opacity: 1; }
.est-card .field input:hover:not(:focus), .est-card .field textarea:hover:not(:focus) { border-color: #9fbea3; }
.est-card .field input:focus, .est-card .field textarea:focus, .est-card .field select:focus { outline: none; border-color: var(--color-primary); box-shadow: var(--est-ring); }
.est-card .field .hint { font-size: .84rem; color: var(--est-muted); margin-top: 6px; line-height: 1.5; }
.est-card .split-hint { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.est-card .counter { flex: none; font-variant-numeric: tabular-nums; }
.est-card .field.has-error input, .est-card .field.has-error textarea, .est-card .field.has-error .combo-input { border-color: var(--color-error); background: #fffafa; }
.est-card .error-msg { display: flex; gap: 6px; align-items: flex-start; margin-top: 7px; color: var(--color-error); font-size: .88rem; font-weight: 600; line-height: 1.4; }
.est-card .error-msg::before { content: ""; flex: none; width: 17px; height: 17px; margin-top: 1px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B42318' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 7v6M12 16.500v.01'/%3E%3C/svg%3E"); }
.est-card .row-2 { gap: 0 20px; }
.est-card .phone-row { grid-template-columns: 116px minmax(0, 1fr); gap: 10px; }
.est-card fieldset.field { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.est-card .cond { animation: step-in .25s ease both; }
@media (max-width: 700px) { .est-card .row-2 { grid-template-columns: minmax(0, 1fr); } }

/* Radio cards */
.opt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opt-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 700px) { .opt-grid:not(.opt-grid-3) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 440px) { .opt-grid-3 { grid-template-columns: minmax(0, 1fr); } }
.opt-card { position: relative; display: block; cursor: pointer; margin: 0 !important; }
.opt-input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.opt-body { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 12px; background: #fff; border: 1.5px solid #c3d4c5; border-radius: 14px; transition: border-color .15s, background .15s, box-shadow .15s, transform .15s; }
.opt-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--color-mint, #eaf6f0); color: var(--color-primary); transition: background .15s, color .15s; }
.opt-icon .icon { --icon-size: 20px; }
.opt-label { font-weight: 600; font-size: .92rem; line-height: 1.25; color: var(--est-ink); }
.opt-card:hover .opt-body { border-color: var(--color-accent); transform: translateY(-1px); }
.opt-input:checked + .opt-body { border-color: var(--color-primary); background: #f1f9f2; box-shadow: inset 0 0 0 1px var(--color-primary); }
.opt-input:checked + .opt-body .opt-icon { background: var(--color-primary); color: #fff; }
.opt-input:focus-visible + .opt-body { outline: 3px solid #1a4a3a; outline-offset: 2px; }
.has-error .opt-body { border-color: var(--color-error); }

/* Searchable selector */
.combo { position: relative; }
.combo-input { padding-right: 40px !important; text-overflow: ellipsis; cursor: text; }
.combo-toggle { position: absolute; top: 0; right: 0; width: 40px; height: 48px; display: grid; place-items: center; background: none; border: 0; color: var(--est-muted); cursor: pointer; border-radius: 0 12px 12px 0; }
.combo.is-open .combo-toggle .icon { transform: rotate(180deg); }
.combo-toggle .icon { transition: transform .2s; }
.combo-list { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; max-height: min(300px, 50vh); overflow-y: auto; overscroll-behavior: contain; background: #fff; border: 1px solid #c3d4c5; border-radius: 14px; box-shadow: 0 16px 40px rgba(26, 61, 26, .18); }
.combo-list li { padding: 10px 12px; border-radius: 9px; cursor: pointer; font-size: .96rem; line-height: 1.3; min-height: 42px; display: flex; align-items: center; }
.combo-list li.is-active { background: var(--color-mint, #eaf6f0); }
.combo-list li[aria-selected=true] { font-weight: 700; color: var(--color-primary-dark); }
.combo-list li[aria-selected=true]::after { content: ""; margin-left: auto; width: 14px; height: 14px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232D6A2D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); }
.combo-list .combo-empty { cursor: default; color: var(--est-muted); }
.combo-dial .combo-input { padding-right: 30px !important; padding-left: 12px; font-variant-numeric: tabular-nums; font-weight: 600; }
.combo-dial .combo-toggle { width: 30px; }
.combo-dial .combo-list { width: min(330px, calc(100vw - 48px)); right: auto; }

/* Phone helpers */
.same-check { margin: -4px 0 18px; padding: 12px 14px; background: var(--est-soft); border: 1px dashed #b9d3bb; border-radius: 12px; }
.est-card .check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; margin-bottom: 12px; }
.est-card .check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--color-primary); }
.est-card .check label { line-height: 1.5; cursor: pointer; }
.est-card .check.has-error { padding: 10px 12px; border: 1px solid #f0b4ad; border-radius: 12px; background: #fffafa; }
.est-privacy-line { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 0; font-size: .86rem; color: var(--est-muted); }
.est-privacy-line .icon { color: var(--color-accent); margin-top: 3px; flex: none; }

/* Drop zone */
.dropzone { position: relative; border: 2px dashed #a9c8ad; border-radius: 18px; background: linear-gradient(180deg, #f8fbf8, #f1f8f2); transition: border-color .2s, background .2s, box-shadow .2s; }
.dropzone:hover { border-color: var(--color-accent); }
.dropzone:focus-within { border-color: var(--color-primary); box-shadow: var(--est-ring); }
.dropzone.is-drag { border-color: var(--color-primary); background: #e9f5ea; box-shadow: var(--est-ring); }
.dz-input { position: absolute; opacity: 0; width: 1px; height: 1px; overflow: hidden; }
.est-card .field .dz-label { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0; padding: 26px 18px; text-align: center; cursor: pointer; font-weight: 400; }
.dz-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--color-primary); border: 1px solid var(--est-line); box-shadow: 0 6px 16px rgba(26, 61, 26, .1); }
.dz-icon .icon { --icon-size: 26px; }
.dz-text { display: grid; gap: 4px; }
.dz-text strong { font-size: 1rem; color: var(--est-ink); }
.dz-text small { color: var(--est-muted); font-size: .85rem; }
.dz-link { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.file-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.file-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 36px; gap: 12px; align-items: center; padding: 10px 12px; background: #fff; border: 1px solid var(--est-line); border-radius: 12px; animation: step-in .25s ease both; }
.file-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--color-mint, #eaf6f0); color: var(--color-primary); }
.file-info { display: grid; min-width: 0; }
.file-name { font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { font-size: .8rem; color: var(--est-muted); }
.file-status { font-size: .78rem; font-weight: 600; color: var(--color-success); white-space: nowrap; }
.file-remove { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--est-muted); cursor: pointer; transition: background .15s, color .15s; }
.file-remove:hover { background: #fdecea; color: var(--color-error); }
@media (max-width: 520px) { .file-item { grid-template-columns: 40px minmax(0, 1fr) 36px; } .file-status { display: none; } }
.dz-note { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: .84rem; color: var(--est-muted); }
.dz-note .icon { color: var(--color-accent); margin-top: 2px; flex: none; }

/* Review */
.review { margin: 8px 0 22px; padding: 18px; background: var(--est-soft); border: 1px solid var(--est-line); border-radius: 16px; }
.review h4 { margin: 0 0 10px; font-size: 1rem; color: var(--color-primary-dark); }
.review-group + .review-group { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #c9dccb; }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.review-head h5 { margin: 0; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent); }
.link-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 10px; background: #fff; border: 1px solid var(--est-line); border-radius: 999px; font: 600 .84rem var(--font); color: var(--color-primary); cursor: pointer; }
.link-btn:hover { background: var(--color-mint, #eaf6f0); }
.review dl { margin: 0; display: grid; gap: 6px; }
.review dl > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.review dt { font-size: .8rem; color: var(--est-muted); }
.review dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (min-width: 600px) { .review dl > div { grid-template-columns: 190px minmax(0, 1fr); gap: 12px; } .review dt { font-size: .9rem; padding-top: 1px; } }

/* Consent and actions */
.consents { margin-top: 6px; }
.est-note { margin: 16px 0 0; padding: 14px 16px; background: var(--color-mint, #eaf6f0); border-left: 4px solid var(--color-accent); border-radius: 10px; font-size: .9rem; color: var(--est-ink); }
.est-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--est-line); }
.est-card .btn { transition: background .15s, box-shadow .2s, transform .15s, border-color .15s, opacity .15s; }
.est-card .btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-teal)); box-shadow: 0 8px 20px rgba(45, 106, 45, .28); }
.est-card .btn-primary:hover { background: linear-gradient(135deg, var(--color-accent), var(--color-primary-dark)); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(45, 106, 45, .32); }
.est-card .btn:active { transform: translateY(1px); box-shadow: none; }
.est-card .btn:focus-visible { outline: 3px solid #1a4a3a; outline-offset: 3px; }
.est-card .btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.btn-submit { min-width: 190px; }
.spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) {
  .est-actions { flex-direction: column-reverse; align-items: stretch; }
  .est-actions .btn { width: 100%; }
  .est-actions > span { display: none; }
}

/* ---------- Confirmation page ---------- */
.est-success { position: relative; z-index: 1; padding: 56px 0 80px; }
.success-card { max-width: 640px; margin: 0 auto; text-align: center; padding: 36px 24px 32px; background: rgba(255, 255, 255, .97); border: 1px solid var(--est-line); border-radius: 24px; box-shadow: var(--est-shadow); }
.success-mark { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light)); color: #fff; box-shadow: 0 0 0 10px rgba(76, 175, 80, .15); }
.success-mark .icon { --icon-size: 40px; stroke-width: 2.6; }
.success-card h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); color: var(--color-primary-dark); }
.ref-chip { display: inline-flex; flex-direction: column; gap: 2px; margin: 6px 0 18px; padding: 12px 22px; background: var(--est-soft); border: 1px dashed #9fbea3; border-radius: 14px; }
.ref-chip small { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--est-muted); font-weight: 700; }
.ref-chip strong { font-size: 1.25rem; letter-spacing: .04em; color: var(--color-primary-dark); font-variant-numeric: tabular-nums; }
.success-card p { max-width: 52ch; margin-inline: auto; }
.success-card .est-note { text-align: left; margin: 18px 0 24px; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .est-page *, .est-page *::before, .est-page *::after { animation: none !important; transition: none !important; }
  .il .il-plane { offset-distance: 55%; opacity: 1; }
}

/* Keep the form close to the top on phones: the full explanation is repeated in step 3 and in the side panel */
@media (max-width: 640px) {
  .est-hero { padding-top: 18px; }
  .est-hero .breadcrumbs { margin-bottom: 6px; }
  .est-sub, .est-trust { display: none; }
  .est-hero .lead { font-size: 1rem; }
  .est-disclaimer { font-size: .82rem; padding: 10px 12px; }
}

.consents .error-msg { margin: -4px 0 14px; }
/* eddited by rks*/
.est-sub {
    display: none !important;



