/* ==========================================
   CLAVIUS MULTI-STEP REGISTRATION WIZARD
   ========================================== */

.clavius-wizard-container {
    max-width: 850px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(1, 24, 216, 0.08);
    border: 1px solid #eef2ff;
    padding: 35px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1e293b;
}

/* Header & Progress Bar */
.clavius-wizard-header {
    text-align: center;
    margin-bottom: 30px;
}

.clavius-wizard-header h2 {
    color: #0118D8;
    margin: 0 0 10px 0;
    font-size: 1.8em;
    font-weight: 800;
}

.clavius-progress-bar {
    display: flex;
    justify-content: space-between;
    margin: 25px 0;
    position: relative;
}

.clavius-progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
    transform: translateY(-50%);
}

.progress-step {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85em;
    border: 2px solid #cbd5e1;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: #0118D8;
    color: #fff;
    border-color: #0118D8;
}

.progress-step.completed .step-number {
    background: #22c55e;
    color: #fff;
    border-color: #22c55e;
}

.step-label {
    font-size: 0.75em;
    font-weight: 600;
    color: #64748b;
}

.progress-step.active .step-label {
    color: #0118D8;
    font-weight: 700;
}

/* Steps Container */
.wizard-step {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.wizard-step.active-step {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title {
    font-size: 1.25em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0f172a;
    text-align: center;
}

/* Choice Cards (Step 1 & Step 3) */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.choice-card {
    border: 2px solid #f1f5f9;
    background: #f8fafc;
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
}


/* KHUSUS Card di Step 3 (Program) */
#step-3 .choice-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Menjaga Judul di atas, Deskripsi di tengah, Harga di bawah */
    min-height: 230px;               /* Memberikan ruang yang pas di dalam card */
    text-align: center;
    padding: 22px 20px;
}

#step-3 .choice-card h3 {
    margin: 0 0 10px 0;
    color: #0f172a;
    font-size: 1.1em;
    font-weight: 700;
}

.wizard-desc-group {
    margin: auto 0; /* Otomatis menempatkan grup deskripsi tepat di tengah vertikal */
    padding: 8px 0;
}

.wizard-desc-line {
    font-size: 0.8em;
    color: #475569; /* Warna abu-abu elegan (sama untuk semua baris) */
    margin: 4px 0;
    line-height: 1.45;
}

#step-3 .choice-card .price {
    font-size: 1.25em;
    font-weight: 800;
    color: #0118D8;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0; /* Garis pemisah tipis sebelum harga (opsional) */
}


.choice-card:hover {
    border-color: #93c5fd;
    transform: translateY(-3px);
}

.choice-card.selected {
    border-color: #0118D8;
    background: #eff6ff;
    box-shadow: 0 10px 20px rgba(1, 24, 216, 0.1);
}

.choice-card h3 {
    margin: 0 0 8px 0;
    color: #0f172a;
    font-size: 1.15em;
}

.choice-card .price {
    font-size: 1.2em;
    font-weight: 800;
    color: #0118D8;
    margin-top: 10px;
}

/* Class Level Circle Buttons (Step 2) */
.class-buttons-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.class-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #fff;
    color: #0118D8;
    font-size: 1.2em;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;

    /* --- TAMBAHAN PERBAIKAN AKURASI TENGAH (FLEXBOX) --- */
    display: inline-flex !important;
    align-items: center !important;     /* Menengahkankan secara Vertikal */
    justify-content: center !important; /* Menengahkankan secara Horizontal */
    padding: 0 !important;              /* Menghapus padding bawaan browser */
    line-height: 1 !important;          /* Menghapus jarak tinggi baris ekstra */
    letter-spacing: normal !important;  /* Mencegah spasi antar-karakter */
    box-sizing: border-box !important;
}

.class-btn:hover, .class-btn.selected {
    background: #0118D8;
    color: #fff;
    border-color: #0118D8;
    transform: scale(1.08);
}

/* Form Styles (Step 4 & Step 5) */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85em;
    margin-bottom: 6px;
    color: #334155;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-size: 0.95em;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group input:focus, .form-group select:focus {
    border-color: #0118D8;
}

/* Order Summary Box */
.order-summary-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    margin-bottom: 8px;
    color: #475569;
}

.summary-row.total {
    border-top: 1px dashed #cbd5e1;
    padding-top: 10px;
    margin-top: 10px;
    font-weight: 800;
    font-size: 1.05em;
    color: #0118D8;
}

/* Wizard Navigation Buttons */
.wizard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.btn-wizard {
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9em;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-prev {
    background: #f1f5f9;
    color: #475569;
}

.btn-prev:hover { background: #e2e8f0; }

.btn-next, .btn-submit {
    background: #0118D8;
    color: #fff;
    margin-left: auto;
}

.btn-next:hover, .btn-submit:hover {
    background: #0012ad;
    box-shadow: 0 4px 12px rgba(1, 24, 216, 0.25);
}

/* Membuat indikator step bisa diklik & kursor berubah menjadi pointer */
.progress-step {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.progress-step:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

/* Tampilan visual saat step dinonaktifkan (belum boleh diklik) */
.progress-step.disabled {
    cursor: not-allowed;
    opacity: 0.4;
}