/* ══════════════════════════════════════════════
   INREGISTRARE WIZARD - CSS
   ══════════════════════════════════════════════ */

:root {
    --primary-color: #11998e;
    --primary-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --bg-dark: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

body {
    background: #f5f7fa;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Navbar ────────────────────────────────── */
.navbar-inregistrare {
    background: var(--bg-dark);
    padding: 14px 0;
}

.navbar-brand-custom {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
}

.navbar-brand-custom:hover {
    color: #38ef7d;
}

/* ── Buttons ───────────────────────────────── */
.btn-primary-custom {
    background: var(--primary-gradient);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 24px;
}

.btn-primary-custom:hover {
    opacity: .9;
    color: #fff;
}

.btn-primary-custom:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

/* ── Wizard Progress ──────────────────────── */
.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    transition: all .3s ease;
}

.wizard-step.active .step-circle {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 12px rgba(17, 153, 142, .3);
}

.wizard-step.completed .step-circle {
    background: #10b981;
    color: #fff;
}

.step-label {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
    font-weight: 500;
    white-space: nowrap;
}

.wizard-step.active .step-label,
.wizard-step.completed .step-label {
    color: #333;
}

.step-line {
    flex: 1;
    height: 3px;
    background: #e0e0e0;
    margin: 0 8px;
    margin-bottom: 22px;
    transition: background .3s ease;
}

.step-line.active {
    background: var(--primary-color);
}

/* ── Wizard Card ──────────────────────────── */
.wizard-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, .06);
    padding: 36px;
    max-width: 900px;
    margin: 0 auto;
}

.wizard-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.wizard-panel {
    display: none;
}

.wizard-panel.active {
    display: block;
}

/* ── Wizard Nav ───────────────────────────── */
.wizard-nav {
    display: flex;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* ── Alerts Custom ────────────────────────── */
.alert-success-custom {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
    border-radius: 8px;
    padding: 12px 16px;
}

.alert-info-custom {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    color: #1565c0;
    border-radius: 8px;
    padding: 12px 16px;
}

/* ── Modul Card ───────────────────────────── */
.modul-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all .2s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modul-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(17, 153, 142, .1);
}

.modul-card.modul-baza {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(17, 153, 142, .03) 0%, rgba(56, 239, 125, .03) 100%);
}

.modul-card.selected {
    border-color: var(--primary-color);
    background: rgba(17, 153, 142, .06);
    box-shadow: 0 4px 16px rgba(17, 153, 142, .15);
}

.modul-card.modul-principal.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(17, 153, 142, .07) 0%, rgba(56, 239, 125, .07) 100%);
}

.modul-card.modul-disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}

.modul-card.modul-addon {
    border-style: dashed;
}

.modul-pret {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.pret-lunar {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.pret-lunar small {
    font-weight: 400;
    color: #999;
}

.pret-anual {
    display: block;
    font-size: .85rem;
    color: #999;
}

.modul-trial {
    margin-top: 8px;
    font-size: .85rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* ── Total Section ────────────────────────── */
.total-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px 20px;
}

/* ── Rezumat (Pas 4) ─────────────────────── */
.rezumat-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
}

.rezumat-section h6 {
    margin-bottom: 12px;
    color: var(--primary-color);
}

.rezumat-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: .9rem;
}

.rezumat-item .label {
    color: #666;
}

.rezumat-item .value {
    font-weight: 600;
    color: #333;
}

/* ── Succes ────────────────────────────────── */
.succes-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(17, 153, 142, .3);
}

/* ── Procesare Panel ──────────────────────── */
.procesare-animation {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.procesare-steps {
    text-align: left;
}

.procesare-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.procesare-step[data-status="active"] {
    background: rgba(17, 153, 142, 0.1);
    border-color: var(--primary-color);
}

.procesare-step[data-status="completed"] {
    background: #d1fae5;
    border-color: #10b981;
}

.procesare-step[data-status="error"] {
    background: #fee2e2;
    border-color: #dc2626;
}

.procesare-step .step-indicator {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.procesare-step[data-status="waiting"] .step-indicator {
    color: #9ca3af;
}

.procesare-step[data-status="active"] .step-indicator {
    color: var(--primary-color);
}

.procesare-step[data-status="completed"] .step-indicator {
    color: #10b981;
}

.procesare-step[data-status="error"] .step-indicator {
    color: #dc2626;
}

.procesare-step .step-text {
    font-weight: 500;
    color: #374151;
}

.procesare-step[data-status="completed"] .step-text {
    color: #065f46;
}

.procesare-step[data-status="error"] .step-text {
    color: #991b1b;
}

.alert-warning-custom {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 12px 16px;
    color: #92400e;
}

/* ── In Curand ─────────────────────────────── */
.in-curand-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(17, 153, 142, .25);
}

/* ── Footer ────────────────────────────────── */
.footer-inregistrare {
    margin-top: auto;
    padding: 20px 0;
    color: #999;
    font-size: 13px;
}

.footer-inregistrare a {
    color: var(--primary-color);
    text-decoration: none;
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 768px) {
    .wizard-card {
        padding: 20px;
    }

    .step-label {
        display: none;
    }

    .step-circle {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .modul-card {
        padding: 14px;
    }
}
