/* ==========================================================================
   WIZARD - Multi-step form styling
   ========================================================================== */

.wizard-section {
    padding: 60px 0 120px;
    background: var(--obsidian);
}

.wizard-section .container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: flex-start;
}

.wizard {
    background: var(--graphite);
    border: 1px solid var(--border-subtle);
    border-radius: 28px;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.wizard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ===== PROGRESS ===== */
.wizard-progress {
    margin-bottom: 48px;
}

.wizard-progress-bar {
    height: 2px;
    background: var(--slate);
    border-radius: 2px;
    position: relative;
    margin-bottom: 20px;
}

.wizard-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
    border-radius: 2px;
    width: 20%;
    transition: width 0.6s var(--ease-apple);
    box-shadow: 0 0 10px rgba(201, 169, 97, 0.5);
}

.wizard-steps-nav {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.wizard-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--silver);
    position: relative;
    cursor: default;
}

.dot-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--steel);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.4s var(--ease-apple);
}

.dot-label {
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 500;
}

.wizard-step-dot.active .dot-number {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.15);
}

.wizard-step-dot.active {
    color: var(--gold);
}

.wizard-step-dot.completed .dot-number {
    background: var(--accent-green);
    color: var(--white);
    border-color: var(--accent-green);
}

.wizard-step-dot.completed .dot-number::after {
    content: '✓';
    font-size: 14px;
}

.wizard-step-dot.completed .dot-number span {
    display: none;
}

/* ===== WIZARD STEP ===== */
.wizard-step {
    display: none;
    animation: wizardFadeIn 0.5s var(--ease-apple);
}

.wizard-step.active {
    display: block;
}

@keyframes wizardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    margin-bottom: 36px;
}

.step-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.step-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    line-height: 1.2;
}

.step-desc {
    color: var(--platinum);
    font-size: 15px;
    line-height: 1.5;
}

/* ===== OPTION GRID ===== */
.option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.option-card {
    position: relative;
    cursor: pointer;
    display: block;
}

.option-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-content {
    padding: 24px;
    background: var(--steel);
    border: 2px solid var(--border-subtle);
    border-radius: 16px;
    transition: all 0.3s var(--ease-apple);
    height: 100%;
    position: relative;
}

.option-card:hover .option-content {
    border-color: var(--gold);
    transform: translateY(-3px);
}

.option-card input:checked + .option-content {
    border-color: var(--gold);
    background: linear-gradient(135deg, var(--steel), var(--slate));
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.2);
}

.option-card input:checked + .option-content::after {
    content: '';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gold);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

.option-icon {
    width: 44px;
    height: 44px;
    color: var(--gold);
    margin-bottom: 16px;
}

.option-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.option-content p {
    color: var(--platinum);
    font-size: 14px;
    line-height: 1.5;
}

.option-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gold);
    color: var(--black);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.option-card input:checked + .option-content .option-badge {
    display: none;
}

/* ===== VEHICLE GRID ===== */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.vehicle-card {
    cursor: pointer;
    display: block;
    position: relative;
}

.vehicle-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.vehicle-card-inner {
    background: var(--steel);
    border: 2px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s var(--ease-apple);
    height: 100%;
}

.vehicle-card:hover .vehicle-card-inner {
    border-color: var(--gold);
    transform: translateY(-3px);
}

.vehicle-card input:checked + .vehicle-card-inner {
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.2);
}

.vehicle-card input:checked + .vehicle-card-inner::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    z-index: 2;
}

.vehicle-card-image {
    width: 100%;
    aspect-ratio: 2/1;
    overflow: hidden;
    background: var(--steel);
}

.vehicle-preview {
    width: 100%;
    height: 100%;
}

.vehicle-card-body {
    padding: 20px;
    position: relative;
}

.vehicle-level {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--gold);
    background: rgba(201, 169, 97, 0.1);
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.vehicle-card-body h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.vehicle-card-body p {
    color: var(--silver);
    font-size: 13px;
    margin-bottom: 14px;
}

.vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: var(--platinum);
}

/* ===== FORMS ===== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.form-field {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--platinum);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--steel);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--white);
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s var(--ease-apple);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--slate);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--silver);
}

.form-input.error {
    border-color: var(--accent-red);
    animation: shake 0.4s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.form-textarea {
    resize: vertical;
    min-height: 90px;
    font-family: inherit;
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a961' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 48px;
}

.form-select option {
    background: var(--graphite);
    color: var(--white);
}

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--silver);
    margin-top: 6px;
}

/* ===== COUNTER ===== */
.counter-input {
    display: flex;
    align-items: center;
    background: var(--steel);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    width: fit-content;
}

.counter-btn {
    width: 48px;
    height: 48px;
    font-size: 20px;
    color: var(--gold);
    font-weight: 600;
    transition: all 0.2s var(--ease-apple);
}

.counter-btn:hover {
    background: var(--gold);
    color: var(--black);
}

.counter-input input {
    width: 60px;
    background: transparent;
    border: none;
    text-align: center;
    color: var(--white);
    font-size: 17px;
    font-weight: 600;
    font-family: inherit;
    padding: 0;
}

.counter-input input:focus {
    outline: none;
}

/* ===== CHECKBOX GRID ===== */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--steel);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s var(--ease-apple);
}

.checkbox-option:hover {
    border-color: var(--gold);
}

.checkbox-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--silver);
    border-radius: 6px;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s var(--ease-apple);
    position: relative;
}

.checkbox-option input:checked ~ .checkbox-custom {
    background: var(--gold);
    border-color: var(--gold);
}

.checkbox-option input:checked ~ .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 6px;
    height: 11px;
    border: solid var(--black);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-option strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 2px;
}

.checkbox-option small {
    font-size: 12px;
    color: var(--silver);
    line-height: 1.4;
}

.checkbox-inline {
    background: transparent;
    padding: 0;
    border: none;
}

.checkbox-inline:hover {
    border: none;
}

/* ===== NAV ===== */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
    gap: 16px;
}

/* ===== SUMMARY ===== */
.wizard-summary {
    margin-top: 32px;
    padding: 24px;
    background: var(--steel);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    border-left: 3px solid var(--gold);
}

.wizard-summary h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item span:first-child {
    color: var(--silver);
}

.summary-item span:last-child {
    color: var(--white);
    font-weight: 500;
    text-align: right;
}

/* ===== SUCCESS ===== */
.wizard-success {
    text-align: center;
    padding: 40px 0;
}

.success-icon {
    width: 100px;
    height: 100px;
    color: var(--accent-green);
    margin: 0 auto 24px;
    animation: successPop 0.6s var(--ease-apple);
}

@keyframes successPop {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    60% { transform: scale(1.1) rotate(0); }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

.wizard-success h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.wizard-success p {
    color: var(--platinum);
    max-width: 500px;
    margin: 0 auto 32px;
    font-size: 16px;
    line-height: 1.6;
}

.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== ASIDE ===== */
.wizard-aside {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aside-card {
    padding: 24px;
    background: var(--graphite);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    transition: all 0.3s var(--ease-apple);
}

.aside-card:hover {
    border-color: var(--gold);
    transform: translateX(-3px);
}

.aside-icon {
    width: 32px;
    height: 32px;
    color: var(--gold);
    margin-bottom: 12px;
}

.aside-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.aside-card p {
    font-size: 13px;
    color: var(--silver);
    line-height: 1.4;
}

.aside-contact {
    padding: 28px 24px;
    background: linear-gradient(135deg, var(--slate), var(--graphite));
    border: 1px solid var(--gold);
    border-radius: 16px;
    text-align: center;
}

.aside-contact p {
    font-size: 13px;
    color: var(--silver);
    margin-bottom: 8px;
}

.aside-phone {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.aside-hours {
    font-size: 12px;
    color: var(--platinum);
    letter-spacing: 0.05em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .wizard-section .container {
        grid-template-columns: 1fr;
    }
    .wizard-aside {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .aside-contact {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .wizard {
        padding: 28px 20px;
    }
    .option-grid,
    .vehicle-grid,
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .wizard-steps-nav .dot-label {
        display: none;
    }
    .wizard-aside {
        grid-template-columns: 1fr;
    }
    .aside-contact {
        grid-column: span 1;
    }
    .wizard-nav {
        flex-direction: column-reverse;
    }
    .wizard-nav .btn {
        width: 100%;
    }
    .step-title {
        font-size: 24px;
    }
}
