/* =========================================
   Pendaftaran - LMS Magister
   ========================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #f4f6f8;
    color: #333333;
}

a {
    text-decoration: none;
}

/* ---------- Top bar ---------- */
.topbar {
    background-color: #e9efe9;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    padding: 18px 32px;
}

.search-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #cfd6cf;
    border-radius: 24px;
    padding: 8px 8px 8px 20px;
    width: 220px;
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    width: 100%;
    color: #6b6f76;
}

.icon-search {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--navy, #152257);
    color: #ffffff;
    font-size: 14px;
    flex-shrink: 0;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--navy, #152257);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

/* ---------- Navbar ---------- */
.navbar {
    background-color: var(--navy, #152257) !important;
    background-image: none !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--navy, #152257);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    color: #ffffff;
    font-size: 17px;
    letter-spacing: 0.3px;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
}

.brand-text strong {
    font-size: 17px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu a {
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
}

.nav-menu a.active {
    color: #ffffff;
}

.btn-account {
    border: 1.5px solid #ffffff;
    color: #ffffff;
    padding: 12px 32px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 700;
}

/* ---------- Wizard container ---------- */
.wizard-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 24px 60px;
}

.wizard-header h1 {
    font-size: 22px;
    font-weight: 600;
    color: var(--navy, #152257);
    margin-bottom: 4px;
}

.wizard-header p {
    font-size: 14px;
    color: #6b6f76;
    margin-top: 0;
    margin-bottom: 32px;
}

/* ---------- Stepper ---------- */
.stepper {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #c7cbd1;
    background: #ffffff;
    color: #9aa0a8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.step-label {
    margin-top: 8px;
    font-size: 12px;
    color: #6b6f76;
}

.step.active .step-circle {
    background-color: #e8823c;
    border-color:transparent;
    color: #ffffff;
}

.step.active .step-label {
    color: var(--navy, #152257);
    font-weight: 600;
}

.step.completed .step-circle {
    background-color: #25a870;
    border-color:transparent;
    color: #ffffff;
}

.step.highlight .step-circle {
    background-color: var(--navy, #152257);
    border-color:transparent;
    color: #ffffff;
}

.step.highlight .step-label {
    color: var(--navy, #152257);
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 2px;
    background-color: #e8823c;
    margin-bottom: 24px;
}

.step-line.inactive {
    background-color: #d8dce0;
}

/* ---------- Form card ---------- */
.form-card {
    background: #ffffff;
    border: 1px solid #e2e5e9;
    border-radius: 12px;
    padding: 32px;
}

.form-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--navy, #152257);
    margin-top: 0;
    margin-bottom: 24px;
}

.form-row {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
}

.form-group.half {
    flex: 2;
    min-width: 300px;
}

.form-group.quarter {
    flex: 1;
    min-width: 160px;
}

.form-group.full {
    flex: 1 1 100%;
}

.form-group label {
    font-size: 12px;
    color: #6b6f76;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: #f7f8fa;
    border: 1px solid #dde1e6;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 13px;
    color: #333333;
    font-family: inherit;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color:#c9d1de;
    background-color: #ffffff;box-shadow:0 0 0 3px rgba(25,44,77,.10);}

.form-group textarea {
    resize: vertical;
}

.input-inline {
    display: flex;
    gap: 12px;
}

.input-inline input {
    flex: 1;
}

.prodi-level-section {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #e2e5e9;
}

.prodi-level-section > label {
    display: block;
    color: var(--navy, #152257);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.prodi-level-help {
    color: #6b6f76;
    font-size: 12px;
    margin: 0 0 14px;
}

.prodi-level-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.prodi-level-card {
    min-height: 74px;
    padding: 12px 8px;
    border: 1px solid #dde1e6;
    border-radius: 8px;
    background: #f7f8fa;
    color: var(--navy, #152257);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.prodi-level-card strong {
    font-size: 18px;
}

.prodi-level-card span {
    color: #6b6f76;
    font-size: 10px;
    margin-top: 3px;
}

.prodi-level-card:hover,
.prodi-level-card:focus-visible {
    background: #fff7f0;
    border-color:#c9d1de;
    transform: translateY(-2px);box-shadow:0 0 0 3px rgba(25,44,77,.10);}

.prodi-level-card.selected {
    background: #fff7f0;
    border-color:transparent;
    box-shadow: 0 0 0 2px rgba(232, 130, 60, 0.15);
}

.error {
    color: #d0392b;
    font-size: 12px;
    margin-top: 4px;
}

/* ---------- Actions ---------- */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
}

.btn {
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline {
    background: #ffffff;
    border: 1px solid #c7cbd1;
    color: var(--navy, #152257);
}

.btn-outline:hover {
    background-color: #f4f6f8;
}

.btn-primary {
    background-color: var(--navy, #152257);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--navy, #1c2c6b);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .nav-menu {
        gap: 20px;
    }

    .nav-right {
        gap: 20px;
    }

    .nav-menu a {
        font-size: 15px;
    }

    .btn-account {
        padding: 10px 22px;
        font-size: 14px;
    }
}

@media (max-width: 700px) {
    .navbar {
        flex-wrap: wrap;
        gap: 12px;
    }

    .nav-right {
        flex-wrap: wrap;
        gap: 16px;
        width: 100%;
        justify-content: space-between;
    }

    .nav-menu {
        gap: 16px;
        flex-wrap: wrap;
    }

    .stepper {
        flex-wrap: wrap;
    }

    .step-line {
        display: none;
    }

    .form-card {
        padding: 20px;
    }

    .prodi-level-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
