/* ================================================================
   Antigravity — Brief Wizard Styles
   ================================================================ */

/* Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    width: 20%;
    /* Starts at 1/5 */
    background: linear-gradient(90deg, #b8860b, #CB9531);
    /* The requested #CB9531 color */
    box-shadow: 0 0 10px rgba(203, 149, 49, 0.5);
    transition: width 0.4s var(--ease-out);
}

/* Wizard Layout */
.wizard-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 80px;
    position: relative;
    z-index: 10;
}

.wizard-container {
    max-width: 700px;
    width: 100%;
}

.wizard-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.wizard-step {
    display: none;
    animation: fadeInStep 0.5s var(--ease-out) forwards;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.wizard-title span {
    display: block;
    margin-top: 8px;
    font-size: 2.5rem;
}

.wizard-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Inputs */
.form-group {
    margin-bottom: 24px;
}

.wizard-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-family: var(--font);
    transition: all 0.3s ease;
}

.wizard-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
    background: rgba(0, 0, 0, 0.5);
}

.wizard-input::placeholder {
    color: #4a4f63;
}

.wizard-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Options Grid (Radio & Checkboxes) */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.options-grid.checkboxes {
    grid-template-columns: repeat(2, 1fr);
}

.option-card {
    display: block;
    cursor: pointer;
    position: relative;
}

.option-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s var(--ease-out);
    height: 100%;
}

.radio-option .option-content {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    padding: 24px 16px;
}

.option-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.option-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.option-text small {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    margin-top: 4px;
    color: var(--text-muted);
}

/* Custom Checkbox */
.option-box {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid var(--text-muted);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

/* Hover States */
.option-card:hover .option-content {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Selected States */
.option-card input:checked~.option-content {
    border-color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
}

.option-card input:checked~.option-content .option-text {
    color: var(--text-primary);
}

.option-card input:checked~.option-content .option-box {
    border-color: var(--accent-cyan);
    background: var(--accent-cyan);
}

.option-card input:checked~.option-content .option-box::after {
    content: '';
    width: 10px;
    height: 5px;
    border-left: 2px solid #000;
    border-bottom: 2px solid #000;
    transform: rotate(-45deg);
    margin-top: -3px;
}

/* Controls */
.wizard-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.wizard-controls .hidden {
    display: none !important;
}

#btn-prev:disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Invalid State */
.invalid-input {
    border-color: #ef4444 !important;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Success Screen */
.success-screen {
    text-align: center;
    padding: 40px 0;
}

.success-icon-wrap {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    color: #10b981;
}

.success-icon {
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

.mt-8 {
    margin-top: 32px;
}

/* Responsive */
@media (max-width: 768px) {
    .wizard-form {
        padding: 32px 24px;
    }

    .wizard-title {
        font-size: 1.5rem;
    }

    .wizard-title span {
        font-size: 2rem;
    }

    .options-grid,
    .options-grid.checkboxes {
        grid-template-columns: 1fr;
    }

    .radio-option .option-content {
        flex-direction: row;
        text-align: left;
        justify-content: flex-start;
        padding: 16px;
    }

    .option-icon {
        margin-bottom: 0;
        margin-right: 16px;
    }
}