/* wizard.css */

.wizard-page {
    padding-top: 80px;
    /* Account for fixed nav */
    padding-bottom: 80px;
    min-height: 30vh;
    background: var(--bg);
    display: flex;
    justify-content: center;
}

.wizard-container {
    width: 100%;
    max-width: 800px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 48px 36px;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

@media (max-width: 768px) {
    .wizard-container {
        padding: 32px 24px;
        margin-top: 20px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* Progress Bar */
.wizard-progress {
    margin-bottom: 4px;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: var(--bg3);
    border-radius: var(--r-pill);
    overflow: hidden;
    margin-bottom: 2px;
}

.progress-bar-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.4s ease;
}

.progress-text {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    text-align: right;
    letter-spacing: 0.02em;
}

/* Steps */
.wizard-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--n100);
    margin-bottom: 12px;
    line-height: 1.2;
}

.step-sub {
    font-size: 18px;
    color: var(--text-sub);
    margin-bottom: 16px;
    line-height: 1.6;
}

.subsection-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 32px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14.5px;
    color: var(--text-sub);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg3);
    border: 1px solid var(--border-md);
    border-radius: var(--r-sm);
    padding: 14px 16px;
    color: var(--text);
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-group input.error,
.form-group select.error {
    border-color: #ff5e5e;
    box-shadow: 0 0 0 2px rgba(255, 94, 94, 0.2);
}

.error-message {
    color: #ff5e5e;
    font-size: 13px;
    margin-top: 4px;
    font-weight: 500;
}

/* Radio & Checkbox Cards */
.radio-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.radio-card {
    position: relative;
    cursor: pointer;
}

.radio-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.rc-content {
    background: var(--bg3);
    border: 2px solid var(--border);
    border-radius: var(--r);
    padding: 24px;
    text-align: center;
    transition: all 0.2s;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radio-card input:checked+.rc-content {
    border-color: var(--accent);
    background: rgba(212, 175, 84, 0.05);
    /* very light accent */
    box-shadow: var(--shadow-sm);
}

.rc-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
}

/* Toggle cards for multi-select */
.checkbox-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .checkbox-list {
        grid-template-columns: 1fr;
    }
}

.toggle-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg3);
    border: 1px solid var(--border-md);
    padding: 16px;
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: border-color 0.2s;
}

.toggle-card:hover {
    border-color: var(--accent-bdr);
}

.toggle-card input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
}

.toggle-card span {
    font-size: 15px;
    font-weight: 500;
}

/* Agreement Inline Checkboxes */
.checkbox-inline {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 12px;
}

.checkbox-inline.agreement-box {
    background: var(--bg3);
    padding: 16px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border-md);
}

.checkbox-inline input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.checkbox-inline span {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
}

/* Disclaimer blocks */
.credit-disclaimer {
    background: rgba(212, 175, 84, 0.1);
    border-left: 3px solid var(--accent);
    padding: 20px 24px;
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    margin-bottom: 32px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.credit-disclaimer svg {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.disclaimer-text h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--accent);
}

.credit-disclaimer p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

/* Actions */
.wizard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* Adjust align if no back button */
.wizard-actions:has(.btn-next:only-child) {
    justify-content: flex-end;
}

/* Review Section */
.review-container {
    background: var(--bg3);
    border: 1px solid var(--border-md);
    border-radius: var(--r-sm);
    padding: 24px;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.review-section {
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
}

.review-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.review-section h4 {
    color: var(--accent);
    font-size: 16px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edit-link {
    color: var(--text-muted);
    font-size: 13px;
    text-transform: none;
    letter-spacing: normal;
    text-decoration: underline;
    cursor: pointer;
}

.edit-link:hover {
    color: var(--text);
}

.review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .review-grid {
        grid-template-columns: 1fr;
    }
}

.review-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-label {
    font-size: 13px;
    color: var(--text-muted);
}

.review-val {
    font-size: 15px;
    color: var(--text);
    font-weight: 500;
}

/* Success Screen */
.success-screen {
    text-align: center;
    padding: 40px 0;
}

.success-icon {
    color: var(--accent);
    margin-bottom: 24px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}