/* Start Wizard Styles - Rize Mortgage Brand Theme */
:root {
    --wizard-primary: #F36C37;
    --wizard-primary-hover: #e05b26;
    --wizard-primary-light: rgba(243, 108, 55, 0.1);
    --wizard-primary-glow: rgba(243, 108, 55, 0.25);
    --wizard-navy: #102A55;
    --wizard-slate: #1E293B;
    --wizard-muted: #64748B;
    --wizard-light-bg: #F7F9FC;
    --wizard-card-bg: #FFFFFF;
    --wizard-border: #E2E8F0;
    --wizard-border-hover: #CBD5E1;
}

body.start-wizard-body {
    background-color: var(--wizard-light-bg);
    color: var(--wizard-slate);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Header & Progress Bar */
.wizard-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: var(--wizard-light-bg);
    padding: 1.5rem clamp(18px, 5vw, 44px) 0.75rem;
    border-bottom: none;
}

.wizard-header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.wizard-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: var(--wizard-muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.18s ease;
    padding: 4px 6px;
}

.wizard-back-btn:hover:not(:disabled) {
    color: var(--wizard-navy);
}

.wizard-back-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.wizard-advisor-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--wizard-navy);
    text-decoration: none;
    transition: color 0.18s ease;
}

.wizard-advisor-link:hover {
    color: var(--wizard-primary);
}

.wizard-advisor-link strong {
    color: var(--wizard-primary);
    font-weight: 700;
    white-space: nowrap;
}

.wizard-advisor-phone-icon {
    color: var(--wizard-primary);
    flex-shrink: 0;
}

.wizard-progress-track {
    height: 5px;
    width: 100%;
    margin-top: 0.75rem;
    background-color: #E2E8F0;
    border-radius: 999px;
    overflow: hidden;
}

.wizard-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FF9466 0%, #F36C37 100%);
    border-radius: 999px;
    transition: width 0.35s ease;
}

.wizard-progress-text {
    width: 100%;
    margin-top: 0.45rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    font-weight: 500;
    color: var(--wizard-muted);
    letter-spacing: 0.02em;
}

/* Main Container */
.wizard-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 120px 1.25rem 3.5rem;
}

.wizard-card-wrap {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    text-align: center;
}

.wizard-card-wrap.wide {
    max-width: 700px;
}

/* Titles */
.wizard-title {
    color: var(--wizard-navy);
    font-size: clamp(1.45rem, 3.8vw, 1.95rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.22;
    margin-bottom: 0.65rem;
}

.wizard-subtitle {
    color: var(--wizard-muted);
    font-size: 0.95rem;
    line-height: 1.45;
    margin-bottom: 1.75rem;
}

/* Choice Cards */
.wizard-choices-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wizard-choices-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.wizard-choices-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.wizard-choice-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.05rem 1.25rem;
    background: var(--wizard-card-bg);
    border: 1.5px solid var(--wizard-border);
    border-radius: 14px;
    color: var(--wizard-slate);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    width: 100%;
}

.wizard-choice-btn:hover {
    border-color: var(--wizard-primary);
    box-shadow: 0 8px 20px -8px var(--wizard-primary-glow);
    transform: translateY(-1px);
}

.wizard-choice-btn.selected {
    border-color: var(--wizard-primary);
    background-color: #FFF9F5;
    box-shadow: 0 0 0 2px var(--wizard-primary-light);
}

.wizard-choice-btn .choice-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: #FFF3EB;
    color: var(--wizard-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.wizard-choice-btn:hover .choice-icon {
    background: var(--wizard-primary);
    color: #FFFFFF;
}

.wizard-choice-btn .choice-texts {
    flex: 1;
}

.wizard-choice-btn .choice-label {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--wizard-navy);
    line-height: 1.25;
}

.wizard-choice-btn .choice-sublabel {
    font-size: 0.82rem;
    color: var(--wizard-muted);
    margin-top: 2px;
}

/* Tile Style (e.g. Property Types) */
.wizard-tile-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.35rem 0.85rem;
    background: var(--wizard-card-bg);
    border: 1.5px solid var(--wizard-border);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 0.65rem;
}

.wizard-tile-btn:hover {
    border-color: var(--wizard-primary);
    box-shadow: 0 8px 18px -8px var(--wizard-primary-glow);
    transform: translateY(-2px);
}

.wizard-tile-btn.selected {
    border-color: var(--wizard-primary);
    background: #FFF9F5;
    box-shadow: 0 0 0 2px var(--wizard-primary-light);
}

.wizard-tile-btn .tile-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #FFF3EB;
    color: var(--wizard-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wizard-tile-btn:hover .tile-icon {
    background: var(--wizard-primary);
    color: #FFFFFF;
}

.wizard-tile-btn .tile-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--wizard-navy);
}

/* Accolades / Trust Banner on Step 1 */
.wizard-accolades {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.accolade-stat {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--wizard-navy);
}

.accolade-desc {
    font-size: 0.78rem;
    color: var(--wizard-muted);
    font-weight: 500;
    margin-top: 2px;
}

/* Form Inputs & Sliders */
.wizard-input-box {
    text-align: left;
    margin-bottom: 1.25rem;
}

.wizard-input-box label {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--wizard-navy);
    margin-bottom: 0.4rem;
}

.wizard-required-star {
    color: var(--wizard-primary);
    margin-left: 2px;
}

.wizard-input {
    width: 100%;
    padding: 0.95rem 1.15rem;
    border: 1.5px solid var(--wizard-border);
    border-radius: 12px;
    background: #FFFFFF;
    color: var(--wizard-slate);
    font-size: 1.05rem;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
}

.wizard-input:focus {
    border-color: var(--wizard-primary);
    box-shadow: 0 0 0 3px var(--wizard-primary-light);
}

.wizard-field-error {
    display: none;
    color: var(--wizard-primary);
    font-size: 12.5px;
    font-weight: 500;
    margin-top: 6px;
    text-align: left;
}

.wizard-input.has-error {
    border-color: var(--wizard-primary);
    box-shadow: 0 0 0 3px var(--wizard-primary-light);
}

.wizard-currency-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.wizard-currency-prefix {
    position: absolute;
    left: 1.15rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--wizard-muted);
    pointer-events: none;
}

.wizard-input.with-prefix {
    padding-left: 2.35rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--wizard-navy);
    letter-spacing: -0.01em;
}

/* Range Slider */
.wizard-range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 7px;
    border-radius: 5px;
    background: #E2E8F0;
    outline: none;
    margin: 1.5rem 0 0.5rem;
    cursor: pointer;
}

.wizard-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--wizard-primary);
    border: 3px solid #FFFFFF;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.wizard-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* CTA Buttons */
.wizard-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
    background: var(--wizard-primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 18px -4px var(--wizard-primary-glow);
    margin-top: 1rem;
}

.wizard-cta-btn:hover {
    background: var(--wizard-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 12px 22px -6px var(--wizard-primary-glow);
}

.wizard-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    text-align: left;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--wizard-muted);
    cursor: pointer;
    margin-top: 1rem;
}

.wizard-checkbox-label input[type="checkbox"] {
    accent-color: var(--wizard-primary);
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Step transition */
.step-container {
    display: none;
    animation: fadeInStep 0.24s ease-out forwards;
}

.step-container.active {
    display: block;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Card */
.wizard-success-card {
    background: #FFFFFF;
    border: 1.5px solid var(--wizard-border);
    border-radius: 18px;
    padding: 2.5rem 2rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.wizard-success-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #FFF3EB;
    color: var(--wizard-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

/* Google Places Autocomplete dropdown styling */
.pac-container {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    font-family: inherit;
    margin-top: 6px;
    z-index: 1050;
    padding: 4px 0;
}

.pac-item {
    padding: 10px 14px;
    font-size: 0.92rem;
    cursor: pointer;
    border-top: 1px solid #F1F5F9;
    color: var(--wizard-slate);
    line-height: 1.4;
}

.pac-item:first-child {
    border-top: none;
}

.pac-item:hover, .pac-item-selected {
    background-color: #FFF9F5;
}

.pac-item-query {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--wizard-navy);
}

.pac-icon {
    margin-top: 3px;
}

@media (max-width: 640px) {
    .wizard-header {
        padding: 0.85rem 1rem 0.65rem;
    }
    .wizard-main {
        padding-top: 110px;
    }
    .wizard-choices-grid-2 {
        grid-template-columns: 1fr;
    }
    .wizard-accolades {
        gap: 1.5rem;
    }
}

