/* ==========================================================================
   Confidential Client Intake — American Visas
   Palette / type follow the main site: orange #ff8200, dark #222,
   Montserrat headings, Roboto Slab body.
   ========================================================================== */

:root {
    --av-orange: #ff8200;
    --av-orange-dark: #e07300;
    --av-orange-soft: #fff3e4;
    --av-dark: #1c1c1c;
    --av-dark-2: #262626;
    --av-ink: #2b2b2b;
    --av-muted: #6b6b6b;
    --av-line: #dfe3e8;
    --av-bg: #f4f2ef;
    --av-white: #ffffff;
    --av-green: #2e7d32;
    --av-red: #c62828;
    --av-radius: 12px;
    --av-shadow: 0 10px 30px rgba(20, 20, 20, 0.08);
}

html {
    -webkit-text-size-adjust: 100%;
}

body.intake-page {
    margin: 0;
    background: var(--av-bg);
    color: var(--av-ink);
    font-family: "Roboto Slab", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    overflow-x: hidden;
}

body.intake-page *,
body.intake-page *::before,
body.intake-page *::after {
    box-sizing: border-box;
}

body.intake-page [hidden] {
    display: none !important;
}

body.intake-page img {
    max-width: 100%;
    height: auto;
}

.wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 22px;
}

/* ---------- top bar ---------- */
.intake-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #111;
    border-bottom: 1px solid #2a2a2a;
}

.intake-topbar .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 68px;
}

.intake-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--av-orange);
    text-decoration: none;
    font-family: "Kaushan Script", "Helvetica Neue", cursive;
    font-size: 22px;
    line-height: 1.1;
}

.intake-brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 3px;
}

.intake-top-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.intake-phone {
    color: #fff;
    text-decoration: none;
    font-family: Montserrat, Arial, sans-serif;
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
}

.intake-phone .fa {
    color: var(--av-orange);
    margin-right: 4px;
}

.intake-lang {
    color: var(--av-orange);
    text-decoration: none;
    font-family: Montserrat, Arial, sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 130, 0, 0.6);
    border-radius: 6px;
    padding: 8px 12px;
    white-space: nowrap;
}

.intake-lang:hover {
    background: var(--av-orange);
    color: #fff;
}

.intake-back {
    color: #cfcfcf;
    text-decoration: none;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #3a3a3a;
    padding: 9px 14px;
    border-radius: 6px;
    white-space: nowrap;
}

.intake-back:hover {
    color: #fff;
    border-color: var(--av-orange);
}

/* ---------- hero ---------- */
.intake-hero {
    background-color: #171717;
    background-image: linear-gradient(rgba(12, 12, 12, 0.86), rgba(12, 12, 12, 0.7)), url("/img/map-image.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    padding: 54px 0 64px;
}

.intake-eyebrow {
    margin: 0 0 10px;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--av-orange);
}

.intake-eyebrow .fa {
    margin-right: 6px;
}

.intake-hero h1 {
    margin: 0 0 12px;
    font-family: Montserrat, Arial, sans-serif;
    font-weight: 800;
    font-size: 42px;
    line-height: 1.15;
    text-transform: uppercase;
    color: #fff;
}

.intake-sub {
    margin: 0;
    max-width: 760px;
    color: #d8d8d8;
    font-size: 17px;
}

.intake-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
}

.intake-chips li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #efefef;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 13px;
    border-radius: 999px;
}

.intake-chips .fa {
    color: var(--av-orange);
}

/* ---------- layout ---------- */
.intake-main {
    padding: 34px 0 60px;
}

.intake-main > .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 26px;
    align-items: start;
}

.intake-card {
    background: var(--av-white);
    border-radius: var(--av-radius);
    box-shadow: var(--av-shadow);
    padding: 30px 34px 0;
    min-width: 0;
}

/* ---------- progress ---------- */
.intake-progress {
    margin-bottom: 26px;
}

.intake-progress-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
    font-family: Montserrat, Arial, sans-serif;
}

#stepLabel {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--av-orange);
    white-space: nowrap;
}

#stepName {
    font-size: 15px;
    font-weight: 600;
    color: var(--av-muted);
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.intake-bar {
    height: 8px;
    border-radius: 999px;
    background: #ececec;
    overflow: hidden;
}

.intake-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--av-orange), #ffab4d);
    transition: width 0.35s ease;
}

.intake-dots {
    list-style: none;
    display: flex;
    gap: 6px;
    margin: 12px 0 0;
    padding: 0;
}

.intake-dots li {
    flex: 1 1 0;
    height: 4px;
    border-radius: 999px;
    background: #e6e6e6;
}

.intake-dots li.is-done {
    background: #ffc37a;
}

.intake-dots li.is-current {
    background: var(--av-orange);
}

/* ---------- steps ---------- */
.step {
    display: none;
}

.step.is-active {
    display: block;
    animation: fade-up 0.25s ease;
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.step-title {
    margin: 0 0 10px;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
    color: var(--av-dark);
}

.step-intro {
    margin: 0 0 22px;
    color: var(--av-muted);
    font-size: 15.5px;
}

.step-notice {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin: 0 0 22px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #f7f9fc;
    border: 1px solid #e1e8f0;
    color: #444;
    font-size: 14.5px;
}

.step-notice .fa {
    color: var(--av-orange);
    margin-top: 3px;
}

/* ---------- location choice ---------- */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 6px 0 8px;
}

.location-card {
    position: relative;
    display: block;
    cursor: pointer;
    margin: 0;
}

.location-card input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.location-card-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    padding: 24px 22px;
    border: 2px solid var(--av-line);
    border-radius: var(--av-radius);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.location-card:hover .location-card-inner {
    border-color: #ffc37a;
}

.location-card input:checked + .location-card-inner {
    border-color: var(--av-orange);
    background: var(--av-orange-soft);
    box-shadow: 0 0 0 3px rgba(255, 130, 0, 0.14);
}

.location-card input:focus-visible + .location-card-inner {
    outline: 3px solid rgba(255, 130, 0, 0.35);
    outline-offset: 2px;
}

.location-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--av-orange);
    color: #fff;
    font-size: 21px;
}

.location-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.location-card-inner strong {
    font-family: Montserrat, Arial, sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    color: var(--av-dark);
    line-height: 1.3;
}

.location-card-inner small {
    color: var(--av-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* ---------- fields ---------- */
.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 26px;
}

.field-full {
    grid-column: 1 / -1;
}

.field[hidden] {
    display: none !important;
}

.field-label,
.field > label.field-label,
.field legend.field-label {
    display: block;
    margin: 0 0 7px;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.45;
    color: #333;
    letter-spacing: 0;
    text-transform: none;
    width: 100%;
}

fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

legend.field-label {
    padding: 0;
    border: 0;
}

.req {
    color: var(--av-orange);
    font-weight: 700;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field textarea,
.field select {
    width: 100%;
    display: block;
    padding: 13px 15px;
    font-size: 17px;
    font-family: "Roboto Slab", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.4;
    color: var(--av-ink);
    background: #fff;
    border: 1.5px solid var(--av-line);
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.field select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='%236b6b6b' d='M1.2 1.3 7 7.1l5.8-5.8L14 2.5l-7 7-7-7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 13px 9px;
    padding-right: 42px;
}

.field input[type="date"] {
    min-height: 53px;
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #9b9b9b;
    font-size: 16px;
}

.field input:hover,
.field textarea:hover,
.field select:hover {
    border-color: #c3c8ce;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--av-orange);
    box-shadow: 0 0 0 3px rgba(255, 130, 0, 0.16);
}

.field-help {
    margin: 7px 0 0;
    color: var(--av-muted);
    font-size: 13.5px;
    line-height: 1.55;
}

.field-err {
    margin: 7px 0 0;
    color: var(--av-red);
    font-size: 14px;
    font-weight: 500;
}

.field-note {
    margin: 7px 0 0;
    color: var(--av-muted);
    font-size: 13.5px;
}

.field.has-error input[type="text"],
.field.has-error input[type="email"],
.field.has-error input[type="tel"],
.field.has-error input[type="date"],
.field.has-error textarea,
.field.has-error select {
    border-color: #e0827f;
    background: #fff7f6;
}

/* radio / checkbox choices */
.choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.choice {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 12px 16px;
    min-height: 48px;
    border: 1.5px solid var(--av-line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-family: "Roboto Slab", Arial, sans-serif;
    font-size: 15.5px;
    font-weight: 400;
    color: #333;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.choice:hover {
    border-color: #ffc37a;
}

.choice input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.choice::before {
    content: "";
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    border: 2px solid #b9c0c7;
    border-radius: 50%;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.choice span {
    line-height: 1.35;
}

.choice input:checked ~ span {
    font-weight: 500;
    color: #1f1f1f;
}

.choice:has(input:checked) {
    border-color: var(--av-orange);
    background: var(--av-orange-soft);
    box-shadow: 0 0 0 2px rgba(255, 130, 0, 0.12);
}

.choice:has(input:checked)::before {
    border-color: var(--av-orange);
    box-shadow: inset 0 0 0 4px #fff;
    background: var(--av-orange);
}

.choice input:focus-visible {
    outline: none;
}

.choice:has(input:focus-visible) {
    outline: 3px solid rgba(255, 130, 0, 0.35);
    outline-offset: 2px;
}

.choice.has-error {
    border-color: #e0827f;
}

/* yes / no pills stretch evenly */
.choice-pill {
    flex: 1 1 130px;
    justify-content: center;
}

/* agreement checkbox */
.agree {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin: 0;
    padding: 16px 18px;
    border: 1.5px solid var(--av-line);
    border-radius: 10px;
    background: #fbfbfb;
    cursor: pointer;
    font-size: 15.5px;
    line-height: 1.6;
}

.agree:hover {
    border-color: #ffc37a;
}

.agree input {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    accent-color: var(--av-orange);
    cursor: pointer;
}

.agree:has(input:checked) {
    border-color: var(--av-orange);
    background: var(--av-orange-soft);
}

.agree.has-error {
    border-color: #e0827f;
    background: #fff7f6;
}

/* ---------- review ---------- */
.review-box {
    display: grid;
    gap: 14px;
    margin: 0 0 22px;
}

.review-section {
    border: 1px solid var(--av-line);
    border-radius: 10px;
    padding: 16px 18px;
    background: #fbfbfb;
}

.review-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.review-section-head h3 {
    margin: 0;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--av-dark);
}

.review-edit {
    background: none;
    border: 0;
    color: var(--av-orange);
    font-family: Montserrat, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    padding: 6px 4px;
    text-decoration: underline;
}

.review-dl {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.review-row {
    display: grid;
    grid-template-columns: minmax(0, 45%) minmax(0, 55%);
    gap: 12px;
    font-size: 14.5px;
    line-height: 1.5;
    padding: 4px 0;
    border-bottom: 1px dashed #e7e7e7;
}

.review-row:last-child {
    border-bottom: 0;
}

.review-row dt {
    color: var(--av-muted);
    font-weight: 400;
}

.review-row dd {
    margin: 0;
    color: #2b2b2b;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.review-empty {
    margin: 0;
    color: var(--av-muted);
    font-size: 14px;
    font-style: italic;
}

/* ---------- nav / buttons ---------- */
.intake-nav {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin: 30px -34px 0;
    padding: 16px 34px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    border-top: 1px solid #ececec;
    border-radius: 0 0 var(--av-radius) var(--av-radius);
}

.intake-nav-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.intake-nav-note {
    margin-left: auto;
    color: #8a8a8a;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.intake-nav-note.is-visible {
    opacity: 1;
}

.intake-nav-note .fa {
    color: var(--av-green);
}

.btn-intake {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 54px;
    padding: 14px 28px;
    border: 0;
    border-radius: 6px;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.btn-intake:active {
    transform: translateY(1px);
}

.btn-primary-intake {
    background: var(--av-orange);
    color: #fff;
    box-shadow: 0 6px 16px rgba(255, 130, 0, 0.25);
}

.btn-primary-intake:hover,
.btn-primary-intake:focus {
    background: var(--av-orange-dark);
    color: #fff;
}

.btn-intake:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-ghost {
    background: #f0f0f0;
    color: #333;
}

.btn-ghost:hover,
.btn-ghost:focus {
    background: #e6e6e6;
    color: #111;
}

#backBtn {
    margin-right: auto;
}

#backBtn[hidden] {
    display: none;
}

.intake-nav-note {
    order: 3;
}

/* ---------- done panel ---------- */
.intake-done {
    text-align: center;
    padding: 30px 10px 40px;
}

.intake-done h2 {
    margin: 18px 0 10px;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--av-dark);
}

.intake-done p {
    margin: 0 auto 10px;
    max-width: 560px;
    color: var(--av-muted);
    font-size: 16px;
}

.done-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: #fff;
    background: var(--av-green);
}

.done-icon.is-wait {
    background: var(--av-orange);
}

.done-icon .fa {
    line-height: 1;
}

.done-ref {
    display: inline-block;
    margin-top: 8px !important;
    padding: 10px 18px;
    border-radius: 8px;
    background: #f4f4f4;
    color: var(--av-dark) !important;
    font-family: Montserrat, Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 15px;
}

.done-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}

/* ---------- aside ---------- */
.intake-aside {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 92px;
}

.aside-card {
    background: #fff;
    border-radius: var(--av-radius);
    padding: 20px 22px;
    box-shadow: var(--av-shadow);
}

.aside-card h3 {
    margin: 0 0 8px;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--av-dark);
}

.aside-card h3 .fa {
    color: var(--av-orange);
    margin-right: 5px;
}

.aside-card p {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--av-muted);
    line-height: 1.6;
}

.aside-phone {
    display: block;
    margin: 4px 0;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--av-orange);
    text-decoration: none;
}

.aside-hours {
    margin: 0 !important;
    font-size: 12.5px !important;
}

.aside-privacy {
    background: #fffaf3;
    border: 1px solid #ffe2bf;
}

/* ---------- footer ---------- */
.intake-footer {
    background: #141414;
    color: #9d9d9d;
    padding: 26px 0;
    font-size: 13px;
    text-align: center;
}

.intake-footer p {
    margin: 0 0 6px;
}

.intake-footer .fine {
    color: #777;
    font-size: 12px;
    max-width: 720px;
    margin: 0 auto;
}

/* ---------- draft banner ---------- */
.draft-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 9px;
    background: #fff8ec;
    border: 1px solid #ffd9a8;
    color: #6b4a12;
    font-size: 14px;
}

.draft-banner .fa {
    color: var(--av-orange);
}

.link-btn {
    background: none;
    border: 0;
    padding: 5px 2px;
    color: #a15c00;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: underline;
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
    .intake-main > .wrap {
        grid-template-columns: minmax(0, 1fr);
    }

    .intake-aside {
        position: static;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    body.intake-page {
        font-size: 16px;
        padding-bottom: 0;
    }

    .wrap {
        padding: 0 15px;
    }

    .intake-topbar .wrap {
        min-height: 60px;
    }

    .intake-brand {
        font-size: 18px;
    }

    .intake-brand img {
        width: 30px;
        height: 30px;
    }

    .intake-phone {
        font-size: 14px;
    }

    .intake-phone .fa {
        display: none;
    }

    .intake-back {
        padding: 8px 11px;
        font-size: 12px;
    }

    .intake-hero {
        padding: 34px 0 38px;
    }

    .intake-hero h1 {
        font-size: 29px;
    }

    .intake-sub {
        font-size: 15.5px;
    }

    .intake-chips {
        margin-top: 16px;
        gap: 8px;
    }

    .intake-chips li {
        font-size: 12px;
        padding: 6px 11px;
    }

    .intake-main {
        padding: 16px 0 34px;
    }

    .intake-card {
        padding: 20px 16px 0;
        border-radius: 10px;
    }

    .intake-progress-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    #stepName {
        display: none;
    }

    .step-title {
        font-size: 21px;
    }

    .step-intro {
        font-size: 15px;
    }

    .location-grid {
        grid-template-columns: 1fr;
    }

    .location-card-inner {
        padding: 18px 16px;
        flex-direction: row;
        align-items: flex-start;
        gap: 14px;
    }

    .location-text {
        gap: 4px;
    }

    .location-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.location-card-inner strong {
        font-size: 15.5px;
    }

    .location-card-inner small {
        font-size: 13px;
    }

    .location-icon {
        flex: 0 0 auto;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .field-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .field-label {
        font-size: 14px;
    }

    .field input[type="text"],
    .field input[type="email"],
    .field input[type="tel"],
    .field input[type="date"],
    .field textarea,
    .field select {
        font-size: 16px;
        padding: 14px;
    }

    .choice {
        flex: 1 1 100%;
        justify-content: flex-start;
        padding: 14px 15px;
        font-size: 15px;
    }

    .choice-pill {
        flex: 1 1 45%;
        justify-content: center;
    }

    .agree {
        padding: 14px;
        font-size: 14.5px;
    }

    .intake-nav {
        margin: 24px -16px 0;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .intake-nav-inner {
        gap: 10px;
        flex-wrap: nowrap;
    }

    .btn-intake {
        min-height: 52px;
        padding: 12px 18px;
        font-size: 14.5px;
        flex: 1 1 auto;
    }

    #backBtn {
        flex: 0 0 38%;
        margin-right: 0;
    }

    #nextBtn,
    #submitBtn {
        flex: 1 1 62%;
    }

    .intake-nav-note {
        display: none;
    }

    .review-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .review-row dt {
        font-size: 13px;
    }

    .intake-aside {
        grid-template-columns: 1fr;
    }

    .intake-done h2 {
        font-size: 21px;
    }

    .done-actions .btn-intake {
        flex: 1 1 100%;
    }

    .draft-banner {
        font-size: 13px;
    }
}

@media (max-width: 520px) {
    .intake-brand span {
        display: none;
    }

    .intake-topbar .wrap {
        gap: 8px;
        flex-wrap: nowrap;
    }

    .intake-top-actions {
        gap: 10px;
    }

    .intake-phone {
        font-size: 15px;
    }

    .intake-back {
        font-size: 11px;
        padding: 8px 9px;
        letter-spacing: 0.2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .step.is-active,
    .intake-bar-fill {
        animation: none;
        transition: none;
    }
}


/* ===== Chinese typography ===== */
html[lang="zh-CN"] body.intake-page,
html[lang="zh-CN"] body.intake-page .field input,
html[lang="zh-CN"] body.intake-page .field textarea,
html[lang="zh-CN"] body.intake-page .field select,
html[lang="zh-CN"] body.intake-page .choice,
html[lang="zh-CN"] body.intake-page .agree,
html[lang="zh-CN"] body.intake-page .btn-intake {
    font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Roboto Slab", sans-serif;
}

html[lang="zh-CN"] body.intake-page .step-title,
html[lang="zh-CN"] body.intake-page .intake-hero h1,
html[lang="zh-CN"] body.intake-page .review-section-head h3,
html[lang="zh-CN"] body.intake-page .aside-card h3 {
    font-family: Montserrat, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    letter-spacing: 0.4px;
}

html[lang="zh-CN"] body.intake-page .intake-hero h1 {
    letter-spacing: 0;
    font-weight: 800;
}

html[lang="zh-CN"] body.intake-page .field-label,
html[lang="zh-CN"] body.intake-page .step-intro,
html[lang="zh-CN"] body.intake-page .field-help {
    line-height: 1.75;
}

@media (max-width: 520px) {
    .intake-lang {
        padding: 8px 10px;
        font-size: 13px;
    }
}

/* ==========================================================================
   Intake status lookup (/intake/status)
   ========================================================================== */
.intake-status-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    color: var(--av-orange);
    font-family: Montserrat, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.intake-status-link:hover {
    color: #ffab4d;
}

.status-hero {
    padding-bottom: 54px;
}

.status-card {
    padding-bottom: 30px;
}

.status-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

.status-alert {
    margin-top: 16px;
    padding: 13px 16px;
    border-radius: 9px;
    background: #fff5f5;
    border: 1px solid #efc0c0;
    color: #8a1f1f;
    font-size: 14.5px;
    line-height: 1.55;
}

.status-result {
    padding-top: 4px;
}

.status-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.status-badge {
    align-self: flex-start;
    padding: 7px 15px;
    border-radius: 999px;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.status-is-new { background: #e7f1ff; color: #0b4f9c; border: 1px solid #b9d4f5; }
.status-is-reviewing { background: #fff0d1; color: #7a4b00; border: 1px solid #ffd9a0; }
.status-is-contacted { background: #e7f6ec; color: #1c5c33; border: 1px solid #bfe3cb; }
.status-is-closed { background: #eceff1; color: #37474f; border: 1px solid #d6dde2; }

.status-desc {
    margin: 0;
    color: #444;
    font-size: 16px;
    line-height: 1.65;
}

.status-timeline {
    display: flex;
    list-style: none;
    margin: 26px 0 22px;
    padding: 0;
}

.status-timeline li {
    position: relative;
    flex: 1 1 0;
    text-align: center;
    color: #8a8a8a;
    font-size: 12.5px;
    line-height: 1.35;
}

.status-timeline li::before {
    content: "";
    position: absolute;
    top: 9px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: #e4e4e4;
    z-index: 0;
}

.status-timeline li:first-child::before {
    display: none;
}

.status-dot {
    position: relative;
    z-index: 1;
    display: block;
    width: 20px;
    height: 20px;
    margin: 0 auto 9px;
    border-radius: 50%;
    background: #e0e0e0;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #e0e0e0;
}

.status-timeline li.is-done .status-dot,
.status-timeline li.is-current .status-dot {
    background: var(--av-orange);
    box-shadow: 0 0 0 1px var(--av-orange);
}

.status-timeline li.is-done::before,
.status-timeline li.is-current::before {
    background: #ffc37a;
}

.status-timeline li.is-current .status-step-label {
    color: var(--av-dark);
    font-weight: 700;
}

.status-meta {
    margin: 4px 0 16px;
    padding: 14px 0 0;
    border-top: 1px solid #eee;
    display: grid;
    gap: 9px;
}

.status-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 14.5px;
    line-height: 1.5;
}

.status-meta-row dt {
    color: var(--av-muted);
    font-weight: 400;
}

.status-meta-row dd {
    margin: 0;
    font-weight: 600;
    color: var(--av-dark);
    word-break: break-all;
    text-align: right;
}

.status-help {
    margin: 0 0 10px;
    color: var(--av-muted);
    font-size: 14px;
}

.status-aside {
    display: grid;
    gap: 16px;
}

@media (max-width: 767px) {
    .status-actions .btn-intake { width: 100%; }
    .status-timeline li { font-size: 11px; }
    .status-meta-row { font-size: 14px; }
    .status-desc { font-size: 15px; }
}
