/* ============================================
   FROEBEL — Enrollment Wizard Styles
   ============================================ */

/* === WIZARD CONTAINER === */
.wizard {
    max-width: 840px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* === PROGRESS BAR === */
.wizard__progress {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--space-6);
    background: linear-gradient(135deg, var(--color-primary-50), var(--color-bg));
    border-bottom: 1px solid var(--color-border-light);
    gap: 0;
    flex-wrap: wrap;
}

.wizard__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    opacity: 0.4;
    transition: all var(--duration-normal) var(--ease-default);
    min-width: 72px;
}

.wizard__step--active {
    opacity: 1;
}

.wizard__step--done {
    opacity: 0.8;
}

.wizard__step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--duration-normal) var(--ease-default);
}

.wizard__step--active .wizard__step-circle {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(26, 122, 109, 0.3);
    transform: scale(1.1);
}

.wizard__step--done .wizard__step-circle {
    background: var(--color-nature);
    border-color: var(--color-nature);
    color: white;
}

.wizard__step-label {
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    color: var(--color-text-light);
    text-align: center;
    white-space: nowrap;
}

.wizard__step--active .wizard__step-label {
    color: var(--color-primary);
    font-weight: var(--weight-semibold);
}

.wizard__step-line {
    flex: 1;
    height: 2px;
    background: var(--color-border);
    min-width: 24px;
    max-width: 64px;
    margin: 0 var(--space-1);
    margin-bottom: 24px;
    transition: background var(--duration-normal) var(--ease-default);
}

.wizard__step-line--done {
    background: var(--color-nature);
}

/* === WIZARD BODY === */
.wizard__body {
    padding: var(--space-8) var(--space-8) var(--space-4);
}

.wizard__section {
    animation: fadeInUp 0.4s var(--ease-out);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

.wizard__title {
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-2);
    color: var(--color-text);
}

.wizard__desc {
    font-size: var(--text-base);
    color: var(--color-text-light);
    margin-bottom: var(--space-8);
}

/* === FORM GRID === */
.wizard__form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
}

.wizard__field--full {
    grid-column: 1 / -1;
}

.wizard__field label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.wizard__field input,
.wizard__field select,
.wizard__field textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    transition: all var(--duration-fast) var(--ease-default);
    outline: none;
}

.wizard__field input:focus,
.wizard__field select:focus,
.wizard__field textarea:focus {
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(26, 122, 109, 0.1);
}

.wizard__field--focused label {
    color: var(--color-primary);
}

.wizard__field input::placeholder,
.wizard__field textarea::placeholder {
    color: var(--color-text-muted);
}

.wizard__field-error {
    font-size: var(--text-sm);
    color: var(--color-accent);
    margin-top: var(--space-1);
}

/* === DOCUMENTS GRID === */
.wizard__docs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.wizard__doc-card {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-bg);
    transition: all var(--duration-normal) var(--ease-default);
}

.wizard__doc-card:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-50);
}

.wizard__doc-card--uploaded {
    border-style: solid;
    border-color: var(--color-nature);
    background: rgba(129, 178, 154, 0.08);
}

.wizard__doc-card--uploading {
    opacity: 0.6;
    pointer-events: none;
}

.wizard__doc-icon {
    font-size: 1.5rem;
    min-width: 32px;
    text-align: center;
}

.wizard__doc-info {
    flex: 1;
    min-width: 0;
}

.wizard__doc-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text);
}

.wizard__doc-status {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wizard__doc-btn {
    flex-shrink: 0;
    padding: var(--space-2) var(--space-4);
    background: var(--color-primary);
    color: white;
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-default);
    border: none;
}

.wizard__doc-btn:hover {
    background: var(--color-primary-dark);
}

.wizard__doc-btn--change {
    background: var(--color-nature);
}

.wizard__note {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-top: var(--space-6);
    padding: var(--space-4);
    background: var(--color-secondary-50);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

.wizard__note span {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.wizard__note p {
    margin: 0;
}

/* === PAYMENT SECTION === */
.wizard__payment-summary {
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-8);
    border: 1px solid var(--color-border-light);
}

.wizard__payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) 0;
    font-size: var(--text-base);
}

.wizard__payment-row--highlight {
    color: var(--color-nature-dark);
}

.wizard__payment-row--total {
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    padding-top: var(--space-4);
}

.wizard__payment-row--sub {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    border-top: 1px dashed var(--color-border);
    margin-top: var(--space-2);
    padding-top: var(--space-3);
}

.wizard__payment-price {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.wizard__payment-original {
    text-decoration: line-through;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.wizard__payment-discount {
    color: var(--color-nature-dark);
    font-weight: var(--weight-semibold);
}

.wizard__payment-divider {
    height: 1px;
    background: var(--color-border);
    margin: var(--space-2) 0;
}

.wizard__payment-methods h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
}

.wizard__payment-tabs {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.wizard__payment-tab {
    flex: 1;
    padding: var(--space-4);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-bg);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    font-family: var(--font-body);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-default);
    text-align: center;
}

.wizard__payment-tab:hover {
    border-color: var(--color-primary);
}

.wizard__payment-tab--active {
    border-color: var(--color-primary);
    background: var(--color-primary-50);
    color: var(--color-primary);
}

.wizard__stripe-container {
    padding: var(--space-4);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: white;
    min-height: 44px;
}

.wizard__payment-test {
    margin-top: var(--space-3);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    background: rgba(233, 168, 32, 0.1);
    padding: var(--space-3);
    border-radius: var(--radius-md);
}

.wizard__payment-test code {
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: var(--text-sm);
}

/* Transfer info */
.wizard__transfer-info {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    border: 1px solid var(--color-border-light);
}

.wizard__transfer-info h4 {
    font-size: var(--text-base);
    margin-bottom: var(--space-4);
}

.wizard__transfer-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
    border-bottom: 1px solid var(--color-border-light);
}

.wizard__transfer-row:last-child {
    border-bottom: none;
}

.wizard__recurring-note {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-6);
    padding: var(--space-5);
    background: linear-gradient(135deg, var(--color-primary-50), rgba(26, 122, 109, 0.08));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(26, 122, 109, 0.15);
}

.wizard__recurring-note span {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.wizard__recurring-note strong {
    display: block;
    margin-bottom: var(--space-1);
    font-size: var(--text-base);
}

.wizard__recurring-note p {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin: 0;
}

/* === CONFIRMATION === */
.wizard__section--confirmation {
    text-align: center;
}

.wizard__confirm-icon {
    font-size: 4rem;
    margin-bottom: var(--space-4);
    animation: bounceIn 0.6s var(--ease-out);
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }

    60% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.wizard__confirm-card {
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    margin: var(--space-8) 0;
    text-align: left;
    border: 1px solid var(--color-border-light);
}

.wizard__confirm-status {
    text-align: center;
    margin-bottom: var(--space-6);
}

.wizard__status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
}

.wizard__status-badge--pending {
    background: rgba(233, 168, 32, 0.15);
    color: #b8860b;
}

.wizard__status-badge--approved {
    background: rgba(129, 178, 154, 0.2);
    color: var(--color-nature-dark);
}

.wizard__status-badge--rejected {
    background: rgba(224, 122, 95, 0.15);
    color: var(--color-accent);
}

.wizard__confirm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}

.wizard__confirm-grid h4 {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
}

.wizard__confirm-grid p {
    font-size: var(--text-sm);
    margin-bottom: var(--space-1);
}

.wizard__confirm-footer {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border-light);
}

.wizard__confirm-footer p {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-2);
}

.wizard__confirm-next {
    text-align: left;
    margin-top: var(--space-8);
}

.wizard__confirm-next h3 {
    text-align: center;
    margin-bottom: var(--space-6);
}

.wizard__confirm-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.wizard__confirm-step {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.wizard__confirm-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--weight-bold);
    font-size: var(--text-sm);
    flex-shrink: 0;
}

.wizard__confirm-step strong {
    display: block;
    margin-bottom: var(--space-1);
}

.wizard__confirm-step p {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin: 0;
}

/* === FOOTER NAV === */
.wizard__footer {
    padding: var(--space-5) var(--space-8) var(--space-8);
}

.wizard__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wizard__pay-btn {
    width: 100%;
    justify-content: center;
    padding: var(--space-5) var(--space-8);
    font-size: var(--text-lg);
}

/* === SPINNER === */
.wizard__spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.wizard__spinner--lg {
    width: 40px;
    height: 40px;
    border-width: 4px;
    border-color: rgba(26, 122, 109, 0.2);
    border-top-color: var(--color-primary);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === LOADING OVERLAY === */
.wizard__loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.wizard__loading-content {
    text-align: center;
}

.wizard__loading-content p {
    margin-top: var(--space-4);
    font-size: var(--text-lg);
    color: var(--color-text);
    font-weight: var(--weight-medium);
}

/* === TOAST === */
.wizard__toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s var(--ease-out);
    pointer-events: none;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.wizard__toast--error {
    background: #e17055;
    color: white;
}

.wizard__toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* === HOT BUTTON (CTA) === */
.hot-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-10);
    background: linear-gradient(135deg, #e9a820 0%, #d4941c 100%);
    color: var(--color-text) !important;
    font-size: var(--text-xl);
    font-weight: var(--weight-extrabold);
    font-family: var(--font-heading);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-default);
    box-shadow: 0 8px 32px rgba(233, 168, 32, 0.35);
    text-decoration: none;
    animation: hotPulse 2s ease-in-out infinite;
}

.hot-button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 40px rgba(233, 168, 32, 0.5);
}

@keyframes hotPulse {

    0%,
    100% {
        box-shadow: 0 8px 32px rgba(233, 168, 32, 0.35);
    }

    50% {
        box-shadow: 0 8px 40px rgba(233, 168, 32, 0.55);
    }
}

.hot-button__icon {
    font-size: 1.4rem;
}

/* === ADMIN STYLES === */
.admin-login {
    max-width: 400px;
    margin: 120px auto;
    padding: var(--space-8);
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.admin-dashboard {
    max-width: 1100px;
    margin: 100px auto var(--space-12);
    padding: 0 var(--space-6);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-8);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.admin-stat-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-card);
    text-align: center;
}

.admin-stat-card__number {
    font-size: var(--text-4xl);
    font-weight: var(--weight-extrabold);
    font-family: var(--font-heading);
    color: var(--color-primary);
}

.admin-stat-card__label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-1);
}

.admin-table {
    width: 100%;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.admin-table th,
.admin-table td {
    padding: var(--space-4);
    text-align: left;
    font-size: var(--text-sm);
    border-bottom: 1px solid var(--color-border-light);
}

.admin-table th {
    background: var(--color-bg);
    font-weight: var(--weight-semibold);
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: var(--text-xs);
}

.admin-table tr:hover td {
    background: var(--color-primary-50);
}

.admin-btn {
    padding: var(--space-2) var(--space-4);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-default);
    font-family: var(--font-body);
}

.admin-btn--approve {
    background: var(--color-nature);
    color: white;
}

.admin-btn--reject {
    background: var(--color-accent);
    color: white;
}

.admin-btn--view {
    background: var(--color-primary);
    color: white;
}

.admin-filters {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.admin-filter-btn {
    padding: var(--space-2) var(--space-5);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    background: transparent;
    font-size: var(--text-sm);
    font-family: var(--font-body);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-default);
}

.admin-filter-btn--active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .wizard__progress {
        padding: var(--space-4) var(--space-3);
    }

    .wizard__step-label {
        display: none;
    }

    .wizard__step-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .wizard__body {
        padding: var(--space-5) var(--space-4) var(--space-3);
    }

    .wizard__form-grid {
        grid-template-columns: 1fr;
    }

    .wizard__docs-grid {
        grid-template-columns: 1fr;
    }

    .wizard__payment-tabs {
        flex-direction: column;
    }

    .wizard__confirm-grid {
        grid-template-columns: 1fr;
    }

    .wizard__footer {
        padding: var(--space-4) var(--space-4) var(--space-6);
    }

    .hot-button {
        font-size: var(--text-lg);
        padding: var(--space-4) var(--space-8);
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-table {
        font-size: var(--text-xs);
        overflow-x: auto;
        display: block;
    }
}