/**
 * Locali AI Designer — Wizard Styles
 * v4 — BACKYARD visual style: sharp corners, cream tones, refined typography
 */

/* ── Variables ─────────────────────────────────────────────────── */
.lai-wizard {
    --lai-green: #0f2318;
    --lai-green-mid: #1A3C2A;
    --lai-gold: #C8A96E;
    --lai-gold-light: #d4bb8a;
    --lai-gold-muted: rgba(200, 169, 110, 0.12);
    --lai-cream: #F5F0E8;
    --lai-bg: #FAFAF7;
    --lai-white: #FFFFFF;
    --lai-text: #1A1A1A;
    --lai-text-mid: #4A4A4A;
    --lai-text-light: #6b6860;
    --lai-border: #f0ebe3;
    --lai-shadow: 0 2px 12px rgba(0,0,0,0.06);
    --lai-shadow-lg: 0 16px 40px rgba(15,35,24,0.1);
    --lai-font-heading: 'Playfair Display', Georgia, serif;
    --lai-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --lai-speed: 0.3s;
    --lai-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Wizard Container ──────────────────────────────────────────── */
.lai-wizard {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 24px 48px;
    font-family: var(--lai-font-body);
    color: var(--lai-text);
    position: relative;
}

/* ── Progress Bar ──────────────────────────────────────────────── */
.lai-progress {
    margin-bottom: 48px;
}
.lai-progress-bar {
    height: 3px;
    background: var(--lai-border);
    overflow: hidden;
}
.lai-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--lai-gold);
    transition: width 0.5s var(--lai-ease);
}
.lai-progress-text {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: var(--lai-text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* ── Step Headers ──────────────────────────────────────────────── */
.lai-step-header {
    text-align: center;
    margin-bottom: 40px;
}
.lai-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--lai-gold);
    margin-bottom: 12px;
}
.lai-step-title {
    font-family: var(--lai-font-heading);
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--lai-green);
    margin: 0 0 12px;
    line-height: 1.1;
}
.lai-step-title em {
    font-style: italic;
    color: var(--lai-gold);
}
.lai-step-subtitle {
    font-size: 17px;
    color: var(--lai-text-mid);
    margin: 0;
    line-height: 1.7;
}

/* ── Service Select Grid ──────────────────────────────────────── */
.lai-service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.lai-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 36px 24px;
    background: var(--lai-white);
    border: 1px solid var(--lai-border);
    border-radius: 0;
    cursor: pointer;
    transition: all var(--lai-speed) var(--lai-ease);
    text-align: center;
    position: relative;
}
.lai-service-card:hover {
    border-color: var(--lai-gold);
    box-shadow: var(--lai-shadow-lg);
    transform: translateY(-6px);
}
.lai-service-card__icon {
    font-size: 28px;
    color: var(--lai-gold);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lai-gold-muted);
    border-radius: 0;
}
.lai-service-card__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--lai-text);
    line-height: 1.3;
}

/* ── Option Cards ─────────────────────────────────────────────── */
.lai-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}
.lai-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 20px;
    background: var(--lai-white);
    border: 1px solid var(--lai-border);
    border-radius: 0;
    cursor: pointer;
    transition: all var(--lai-speed) var(--lai-ease);
    text-align: center;
    position: relative;
}
.lai-option-card:hover {
    border-color: var(--lai-gold-light);
    box-shadow: var(--lai-shadow-lg);
    transform: translateY(-6px);
}
.lai-option-card.selected {
    border-color: var(--lai-gold);
    background: var(--lai-gold-muted);
    box-shadow: 0 0 0 1px var(--lai-gold);
}
.lai-option-card.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 12px;
    color: var(--lai-white);
    background: var(--lai-gold);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}
.lai-option-icon {
    font-size: 24px;
    color: var(--lai-gold);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lai-gold-muted);
    border-radius: 0;
}
.lai-option-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--lai-text);
}
.lai-option-desc {
    font-size: 13px;
    color: var(--lai-text-light);
    line-height: 1.4;
}

/* ── Navigation Buttons ───────────────────────────────────────── */
.lai-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
    padding: 32px 0 24px;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.lai-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-family: var(--lai-font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all var(--lai-speed) var(--lai-ease);
    text-decoration: none;
    line-height: 1;
}
.lai-btn--primary {
    background: var(--lai-green);
    color: var(--lai-white);
}
.lai-btn--primary:hover {
    background: var(--lai-green-mid);
    transform: translateY(-1px);
}
.lai-btn--primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}
.lai-btn--gold {
    background: var(--lai-gold);
    color: var(--lai-green);
    font-weight: 700;
}
.lai-btn--gold:hover {
    background: var(--lai-gold-light);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(200,169,110,0.4);
}
.lai-btn--outline {
    background: transparent;
    border: 1px solid var(--lai-border);
    color: var(--lai-text-mid);
}
.lai-btn--outline:hover {
    border-color: var(--lai-gold);
    color: var(--lai-gold);
}
.lai-btn--sm {
    padding: 8px 20px;
    font-size: 12px;
}
.lai-btn--lg {
    padding: 18px 40px;
    font-size: 14px;
}
.lai-btn--block {
    display: flex;
    width: 100%;
}
.lai-btn--back {
    background: transparent;
    border: none;
    color: var(--lai-text-light);
    font-weight: 500;
    padding: 16px 20px;
    letter-spacing: 1px;
}
.lai-btn--back:hover {
    color: var(--lai-text);
}

/* ── Photo Upload ─────────────────────────────────────────────── */
.lai-upload {
    max-width: 560px;
    margin: 0 auto;
}
.lai-upload__dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px 32px;
    border: 1px dashed var(--lai-border);
    border-radius: 0;
    background: var(--lai-white);
    text-align: center;
    cursor: pointer;
    transition: border-color var(--lai-speed);
}
.lai-upload__dropzone:hover,
.lai-upload__dropzone.dragover {
    border-color: var(--lai-gold);
    background: var(--lai-gold-muted);
}
.lai-upload__dropzone i {
    font-size: 36px;
    color: var(--lai-gold);
}
.lai-upload__dropzone p {
    font-size: 16px;
    color: var(--lai-text-mid);
    margin: 0;
}
.lai-upload__or {
    font-size: 13px;
    color: var(--lai-text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.lai-upload__formats {
    font-size: 12px;
    color: var(--lai-text-light);
}
.lai-upload__preview {
    text-align: center;
}
.lai-upload__preview img {
    max-width: 100%;
    max-height: 320px;
    margin-bottom: 16px;
    border: 1px solid var(--lai-border);
}
.lai-upload__actions {
    text-align: center;
    margin-top: 24px;
}
.lai-skip-link {
    font-size: 14px;
    color: var(--lai-text-light);
    text-decoration: underline;
}
.lai-skip-link:hover {
    color: var(--lai-gold);
}

/* ── Intro Section ───────────────────────────────────────────── */
.lai-intro__cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto 48px;
}
.lai-intro__card {
    background: var(--lai-white);
    border: 1px solid var(--lai-border);
    border-radius: 0;
    padding: 32px 20px;
    text-align: center;
    transition: all var(--lai-speed) var(--lai-ease);
}
.lai-intro__card:hover {
    transform: translateY(-6px);
    box-shadow: var(--lai-shadow-lg);
}
.lai-intro__card-icon {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--lai-gold);
    border-radius: 50%;
    color: var(--lai-gold);
}
.lai-intro__card-num {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    background: var(--lai-gold);
    color: var(--lai-white);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.lai-intro__card-title {
    font-family: var(--lai-font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--lai-text);
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.lai-intro__card-desc {
    font-size: 13px;
    color: var(--lai-text-light);
    margin: 0;
    line-height: 1.5;
}
.lai-intro__actions {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}
.lai-intro__actions .lai-btn {
    width: 100%;
    margin-bottom: 0;
}
.lai-intro__divider {
    margin: 20px 0;
    color: var(--lai-text-light);
    font-size: 13px;
    letter-spacing: 2px;
}
.lai-intro__skip {
    font-size: 14px;
    color: var(--lai-text-light);
    text-decoration: none;
    letter-spacing: 1px;
    transition: color var(--lai-speed);
}
.lai-intro__skip:hover {
    color: var(--lai-gold);
}

/* ── Result Step ──────────────────────────────────────────────── */
.lai-result__render {
    max-width: 720px;
    margin: 0 auto 40px;
}
.lai-result__render-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 80px 40px;
    background: var(--lai-cream);
    text-align: center;
}
.lai-result__render-placeholder i {
    font-size: 32px;
    color: var(--lai-gold);
}
.lai-result__render-placeholder p {
    font-size: 16px;
    color: var(--lai-text-mid);
}
.lai-result__before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.lai-result__img-wrap {
    position: relative;
    overflow: hidden;
}
.lai-result__img-wrap img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}
.lai-result__img-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--lai-green);
    color: var(--lai-white);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 14px;
}

/* ── Blur Gate ──────────────────────────────────────────────── */
.lai-gate {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 350px;
}
.lai-gate__bg {
    width: 100%;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    filter: blur(18px) brightness(0.7);
    transform: scale(1.1);
}
.lai-gate__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.lai-gate__card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 32px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}
.lai-gate__lock {
    font-size: 28px;
    color: var(--lai-gold, #C8A951);
    margin-bottom: 12px;
}
.lai-gate__card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--lai-green, #2D5E3F);
    margin: 0 0 8px;
}
.lai-gate__card p {
    font-size: 14px;
    color: var(--lai-text-mid, #666);
    margin: 0 0 20px;
    line-height: 1.5;
}
.lai-gate__field {
    margin-bottom: 12px;
}
.lai-gate__field input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0ddd6;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.lai-gate__field input:focus {
    border-color: var(--lai-green, #2D5E3F);
    outline: none;
    box-shadow: 0 0 0 3px rgba(45,94,63,0.1);
}
.lai-gate__field input.--invalid {
    border-color: #dc3232;
}
.lai-gate__error {
    color: #dc3232;
    font-size: 13px;
    margin-bottom: 12px;
    text-align: left;
}
.lai-gate__privacy {
    font-size: 11px;
    color: #999;
    margin: 12px 0 0;
}
/* Gate reveal animation */
.lai-gate--revealing .lai-gate__bg {
    animation: laiUnblur 0.8s ease-out forwards;
}
.lai-gate--revealing .lai-gate__overlay {
    animation: laiFadeOut 0.5s ease-out forwards;
}
@keyframes laiUnblur {
    from { filter: blur(18px) brightness(0.7); transform: scale(1.1); }
    to   { filter: blur(0) brightness(1); transform: scale(1); }
}
@keyframes laiFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; pointer-events: none; }
}

/* Estimate Card */
.lai-result__estimate {
    max-width: 560px;
    margin: 0 auto 32px;
}
.lai-result__estimate-card {
    background: var(--lai-white);
    border: 1px solid var(--lai-border);
    border-radius: 0;
    padding: 40px;
    text-align: center;
}
.lai-result__estimate-card .lai-label {
    margin-bottom: 16px;
}
.lai-result__range {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}
.lai-result__range-low,
.lai-result__range-high {
    font-family: var(--lai-font-heading);
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--lai-green);
}
.lai-result__range-dash {
    font-size: 1.5rem;
    color: var(--lai-text-light);
}
.lai-result__estimate-note {
    font-size: 13px;
    color: var(--lai-text-light);
    line-height: 1.6;
    margin: 0;
}

/* ADU extras */
.lai-result__adu-extras {
    margin-top: 16px;
    background: var(--lai-cream);
    padding: 24px 32px;
}
.lai-result__adu-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}
.lai-result__adu-row + .lai-result__adu-row {
    border-top: 1px solid var(--lai-border);
}
.lai-result__adu-label {
    font-size: 14px;
    color: var(--lai-text-mid);
}
.lai-result__adu-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--lai-green);
}

/* Summary card (non-visual) */
.lai-result__summary-card {
    max-width: 560px;
    margin: 0 auto 32px;
    background: var(--lai-white);
    border: 1px solid var(--lai-border);
    border-radius: 0;
    padding: 32px;
}
.lai-result__summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}
.lai-result__summary-row + .lai-result__summary-row {
    border-top: 1px solid var(--lai-border);
}
.lai-result__summary-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--lai-text-light);
    font-weight: 600;
}
.lai-result__summary-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--lai-text);
}

/* Line items */
.lai-result__line-items {
    max-width: 560px;
    margin: 0 auto 32px;
}
.lai-result__line-items-title {
    font-family: var(--lai-font-heading);
    font-size: 1.1rem;
    color: var(--lai-green);
    margin: 0 0 16px;
}
.lai-line-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
}
.lai-line-item + .lai-line-item {
    border-top: 1px solid var(--lai-border);
}
.lai-line-item__label {
    color: var(--lai-text-mid);
}
.lai-line-item__value {
    font-weight: 600;
    color: var(--lai-text);
}
.lai-line-item__note {
    font-weight: 600;
    color: var(--lai-gold);
}

/* CTA */
.lai-result__cta {
    text-align: center;
    padding-top: 16px;
}
.lai-result__cta-text {
    font-size: 16px;
    color: var(--lai-text-mid);
    margin-bottom: 20px;
}
.lai-result__cta-phone {
    margin-top: 16px;
    font-size: 14px;
    color: var(--lai-text-light);
}
.lai-result__cta-phone a {
    color: var(--lai-gold);
    font-weight: 600;
    text-decoration: none;
}

/* Result divider */
.lai-result__divider {
    max-width: 560px;
    margin: 48px auto;
    border: none;
    border-top: 1px solid var(--lai-border);
}

/* Result form section */
.lai-result__form-section {
    max-width: 560px;
    margin: 0 auto;
}
.lai-result__form-section .lai-step-header {
    margin-bottom: 32px;
}

/* ── Lead Form ────────────────────────────────────────────────── */
.lai-lead-form {
    max-width: 560px;
    margin: 0 auto;
}
.lai-form-row {
    margin-bottom: 16px;
}
.lai-form-row--2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.lai-form-field {
    margin-bottom: 4px;
}
.lai-form-field > label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--lai-text-light);
    margin-bottom: 8px;
}
.lai-required {
    color: #c44;
    font-weight: 400;
}
.lai-form-field input[type="text"],
.lai-form-field input[type="tel"],
.lai-form-field input[type="email"],
.lai-form-field textarea {
    width: 100%;
    padding: 14px 0;
    border: none;
    border-bottom: 1px solid var(--lai-border);
    background: transparent;
    font-family: var(--lai-font-body);
    font-size: 15px;
    color: var(--lai-text);
    transition: border-color var(--lai-speed);
    box-sizing: border-box;
    border-radius: 0;
}
.lai-form-field input:focus,
.lai-form-field textarea:focus {
    outline: none;
    border-bottom-color: var(--lai-gold);
}

/* Radio group */
.lai-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.lai-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 1px solid var(--lai-border);
    border-radius: 0;
    background: var(--lai-white);
    cursor: pointer;
    transition: all var(--lai-speed) var(--lai-ease);
    font-size: 14px;
    font-weight: 500;
    color: var(--lai-text-mid);
}
.lai-radio:hover {
    border-color: var(--lai-gold-light);
}
.lai-radio input[type="radio"] {
    display: none;
}
.lai-radio input[type="radio"]:checked + span {
    color: var(--lai-green);
    font-weight: 600;
}
label.lai-radio:has(input:checked) {
    border-color: var(--lai-gold);
    background: var(--lai-gold-muted);
}

/* Form error */
.lai-form-error {
    background: #fef2f2;
    color: #b91c1c;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    text-align: center;
    border: 1px solid #fecaca;
    border-radius: 0;
}

/* Privacy text */
.lai-form-privacy {
    text-align: center;
    font-size: 12px;
    color: var(--lai-text-light);
    margin-top: 12px;
    line-height: 1.5;
}

/* Submit button */
.lai-submit-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 40px;
    font-family: var(--lai-font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    background: var(--lai-gold);
    color: var(--lai-green);
    transition: all var(--lai-speed) var(--lai-ease);
    text-transform: uppercase;
    margin-top: 8px;
}
.lai-submit-btn:hover {
    background: var(--lai-gold-light);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(200,169,110,0.4);
}
.lai-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ── Thank You Screen ────────────────────────────────────────── */
.lai-thank-you {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}
.lai-thank-you__icon {
    margin-bottom: 24px;
}
.lai-thank-you__icon i {
    font-size: 56px;
    color: var(--lai-gold);
}
.lai-thank-you .lai-step-title {
    margin-bottom: 12px;
}
.lai-thank-you .lai-step-subtitle {
    margin-bottom: 32px;
}
.lai-thank-you__design {
    margin-bottom: 32px;
}
.lai-thank-you__design .lai-label {
    margin-bottom: 12px;
}
.lai-thank-you__design img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 1px solid var(--lai-border);
}
.lai-thank-you__cost {
    background: var(--lai-cream);
    padding: 24px 32px;
    margin-bottom: 32px;
}
.lai-thank-you__cost .lai-label {
    margin-bottom: 8px;
}
.lai-thank-you__range {
    font-family: var(--lai-font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--lai-green);
}
.lai-thank-you__cta {
    padding-top: 8px;
}
.lai-thank-you__cta p {
    font-size: 15px;
    color: var(--lai-text-mid);
    margin-bottom: 12px;
}

/* ── AI Render Loading Overlay ─────────────────────────────────── */
.lai-render-loading {
    position: absolute;
    inset: 0;
    background: rgba(15, 35, 24, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    min-height: 280px;
}
.lai-render-loading__inner {
    text-align: center;
    color: var(--lai-white);
    padding: 40px;
}
.lai-render-loading__spinner {
    margin: 0 auto 24px;
    width: 56px;
    height: 56px;
    position: relative;
}
.lai-render-loading__ring {
    width: 56px;
    height: 56px;
    border: 3px solid rgba(255,255,255,0.15);
    border-top-color: var(--lai-gold);
    border-radius: 50%;
    animation: laiSpin 1s linear infinite;
}
@keyframes laiSpin {
    to { transform: rotate(360deg); }
}
.lai-render-loading__message {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 16px;
    transition: opacity 0.3s var(--lai-ease);
    min-height: 24px;
}
.lai-render-loading__dots {
    display: flex;
    gap: 6px;
    justify-content: center;
}
.lai-render-loading__dots span {
    width: 6px;
    height: 6px;
    background: var(--lai-gold);
    border-radius: 50%;
    animation: laiDotPulse 1.4s ease-in-out infinite;
}
.lai-render-loading__dots span:nth-child(2) { animation-delay: 0.2s; }
.lai-render-loading__dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes laiDotPulse {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40%           { opacity: 1; transform: scale(1); }
}

/* ── Before/After Slider ──────────────────────────────────────── */
.lai-ba-slider {
    max-width: 720px;
    margin: 0 auto;
}
.lai-ba-slider__container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    cursor: col-resize;
    user-select: none;
    -webkit-user-select: none;
}
.lai-ba-slider__after {
    position: relative;
    width: 100%;
    height: 100%;
}
.lai-ba-slider__after img,
.lai-ba-slider__before img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lai-ba-slider__before {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
    z-index: 2;
}
.lai-ba-slider__before img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: cover;
}
.lai-ba-slider__badge {
    position: absolute;
    top: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 14px;
    z-index: 5;
    pointer-events: none;
}
.lai-ba-slider__badge--before {
    left: 12px;
    background: var(--lai-green);
    color: var(--lai-white);
}
.lai-ba-slider__badge--after {
    right: 12px;
    background: var(--lai-gold);
    color: var(--lai-green);
}
.lai-ba-slider__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    margin-left: -2px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lai-ba-slider__handle-line {
    flex: 1;
    width: 2px;
    background: var(--lai-white);
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}
.lai-ba-slider__handle-knob {
    width: 40px;
    height: 40px;
    background: var(--lai-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    color: var(--lai-green);
    font-size: 16px;
    flex-shrink: 0;
    cursor: col-resize;
    transition: transform 0.2s;
}
.lai-ba-slider--active .lai-ba-slider__handle-knob {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(0,0,0,0.3);
}

/* ── Render Actions ───────────────────────────────────────────── */
.lai-result__render-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px auto 32px;
    max-width: 720px;
}

/* ── Error ─────────────────────────────────────────────────────── */
.lai-wizard-error {
    background: #fee;
    color: #c00;
    padding: 12px 16px;
    margin-top: 16px;
    font-size: 14px;
    text-align: center;
}

/* ── Step transitions ─────────────────────────────────────────── */
.lai-step {
    animation: laiFadeIn 0.35s var(--lai-ease);
}
@keyframes laiFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .lai-wizard {
        padding: 24px 16px 24px;
    }
    .lai-service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .lai-service-card {
        padding: 24px 16px;
    }
    .lai-service-card__icon {
        font-size: 22px;
        width: 44px;
        height: 44px;
    }
    .lai-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .lai-option-card {
        padding: 20px 14px;
    }
    .lai-step-title {
        font-size: 1.8rem;
    }
    .lai-form-row--2 {
        grid-template-columns: 1fr;
    }
    .lai-radio-group {
        gap: 6px;
    }
    .lai-radio {
        padding: 8px 14px;
        font-size: 13px;
    }
    .lai-thank-you__range {
        font-size: 1.4rem;
    }
    .lai-result__before-after {
        grid-template-columns: 1fr;
    }
    .lai-ba-slider__after img,
    .lai-ba-slider__before img {
        max-height: 320px;
    }
    .lai-ba-slider__handle-knob {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    .lai-result__range-low,
    .lai-result__range-high {
        font-size: 2rem;
    }
    .lai-nav {
        gap: 12px;
    }
    .lai-intro__cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .lai-intro__card {
        padding: 24px 16px;
    }
}
@media (max-width: 480px) {
    .lai-step-title {
        font-size: 1.5rem;
    }
    .lai-service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .lai-options {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .lai-service-card__label {
        font-size: 12px;
    }
    .lai-intro__cards {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .lai-result__estimate-card {
        padding: 24px 16px;
    }
    .lai-result__range-low,
    .lai-result__range-high {
        font-size: 1.6rem;
    }
    .lai-nav {
        flex-wrap: wrap;
    }
    .lai-nav .lai-btn {
        flex: 1;
        min-width: 0;
    }
    .lai-result__render-actions {
        flex-direction: column;
    }
    .lai-result__render-actions .lai-btn {
        width: 100%;
    }
    .lai-gate__card {
        padding: 24px 20px;
        max-width: 340px;
    }
    .lai-gate__card h3 {
        font-size: 18px;
    }
    .lai-gate {
        min-height: 300px;
    }
    .lai-gate__bg {
        min-height: 300px;
    }
}
