
/* =========================================================
   PPDB ONLINE MTs ALMUTTAQIIN PIR C3
   File: daftar.css
   Desain modern, responsif, tanpa Bootstrap
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --navy: #0c1d42;
    --navy-light: #142e5d;
    --blue: #1649a3;
    --blue-light: #2366d1;
    --gold: #f4c65e;
    --gold-dark: #dcae3e;
    --teal: #16a6a1;
    --text: #17243b;
    --muted: #728098;
    --border: #e0e7f1;
    --surface: #ffffff;
    --background: #f3f6fc;
    --danger: #c62828;
    --success: #147d57;
    --radius: 18px;
    --shadow: 0 15px 45px rgba(12, 29, 66, .09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 0% 30%, rgba(35, 102, 209, .07), transparent 35%),
        radial-gradient(ellipse at 100% 70%, rgba(22, 166, 161, .06), transparent 32%),
        var(--background);
    color: var(--text);
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    color: var(--blue-light);
}

/* ===================== HERO ===================== */

.hero {
    position: relative;
    overflow: hidden;
    padding: 38px 20px 105px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 15%, rgba(244, 198, 94, .17), transparent 25%),
        radial-gradient(circle at 5% 100%, rgba(35, 102, 209, .5), transparent 35%),
        linear-gradient(130deg, #091731 0%, #103a71 55%, #1649a3 100%);
}

.hero::before,
.hero::after {
    position: absolute;
    content: "";
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 50%;
}

.hero::before {
    width: 390px;
    height: 390px;
    right: -110px;
    top: -230px;
}

.hero::after {
    width: 290px;
    height: 290px;
    right: -65px;
    top: -180px;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(100%, 1050px);
    margin: 0 auto;
}

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

.brand-logo {
    display: grid;
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    place-items: center;
    border: 1px solid rgba(244, 198, 94, .75);
    border-radius: 16px;
    background: linear-gradient(145deg, #f8d985, #dcae3e);
    color: var(--navy);
    font-family: "Manrope", sans-serif;
    font-size: 19px;
    font-weight: 800;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .15);
}

.brand h1 {
    margin: 0;
    color: #fff;
    font-family: "Manrope", sans-serif;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.45;
}

.brand p {
    margin: 3px 0 0;
    color: #cfdbf3;
    font-size: 12px;
    letter-spacing: .5px;
}

.hero h2 {
    max-width: 750px;
    margin: 44px 0 14px;
    color: #fff;
    font-family: "Manrope", sans-serif;
    font-size: clamp(29px, 4.5vw, 47px);
    font-weight: 800;
    letter-spacing: -1.3px;
    line-height: 1.25;
}

.subtitle {
    max-width: 650px;
    margin: 0;
    color: #d6e1f6;
    font-size: 15px;
    line-height: 1.8;
}

.login-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 13px;
    padding: 9px 15px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 30px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    transition: .2s ease;
}

.login-link::before {
    content: "↗";
    color: var(--gold);
    font-size: 16px;
}

.login-link:hover {
    border-color: var(--gold);
    background: rgba(255, 255, 255, .15);
    color: #fff;
}

/* ===================== HALAMAN ===================== */

.page {
    position: relative;
    width: min(100% - 36px, 1050px);
    margin: -65px auto 0;
    padding-bottom: 35px;
}

.form-card {
    overflow: hidden;
    border: 1px solid rgba(221, 229, 241, .9);
    border-radius: 23px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.form-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 27px 34px;
    border-bottom: 1px solid var(--border);
}

.form-top h3 {
    margin: 0;
    color: var(--navy);
    font-family: "Manrope", sans-serif;
    font-size: 21px;
    font-weight: 800;
}

.form-top p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.required-note {
    flex-shrink: 0;
    color: var(--muted);
    font-size: 12px;
}

.required {
    color: #dc3545;
    font-weight: 800;
}

/* ===================== PROGRESS WIZARD ===================== */

.wizard-progress {
    padding: 26px 34px 24px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #fbfcff, #fff);
}

.wizard-progress-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
}

#step-percent {
    color: var(--blue);
}

.wizard-progress-track {
    height: 7px;
    overflow: hidden;
    border-radius: 20px;
    background: #e8edf6;
}

.wizard-progress-bar {
    width: 11%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--teal));
    transition: width .35s ease;
}

.wizard-step-dots {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 10px;
    margin-top: 21px;
}

.wizard-dot {
    display: grid;
    width: 34px;
    height: 34px;
    justify-self: center;
    place-items: center;
    padding: 0;
    border: 1px solid #dfe6f1;
    border-radius: 50%;
    background: #fff;
    color: #8491a7;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: .25s ease;
}

.wizard-dot:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.wizard-dot.active {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
    box-shadow: 0 0 0 5px rgba(35, 102, 209, .12);
}

.wizard-dot.completed {
    border-color: #b9e6d3;
    background: #e4f8ef;
    color: #147d57;
}

/* ===================== ISI FORM ===================== */

.form-body {
    padding: 28px 34px 32px;
}

.notice {
    margin-bottom: 22px;
    padding: 15px 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 13px;
}

.notice strong {
    display: block;
    margin-bottom: 3px;
}

.notice.info {
    border-color: #d4e4fc;
    background: #f0f6ff;
    color: #204a83;
}

.notice.error {
    border-color: #f4c8cc;
    background: #fff1f2;
    color: #9f202b;
}

.notice ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.notice li + li {
    margin-top: 3px;
}

/* ===================== SECTION ===================== */

.section {
    display: none;
    animation: sectionEnter .28s ease;
}

.section.active {
    display: block;
}

.section[hidden] {
    display: none !important;
}

@keyframes sectionEnter {
    from {
        opacity: 0;
        transform: translateY(7px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 27px;
    padding-bottom: 21px;
    border-bottom: 1px solid var(--border);
}

.section-number {
    display: grid;
    width: 49px;
    height: 49px;
    flex-shrink: 0;
    place-items: center;
    border: 1px solid #dce7fa;
    border-radius: 15px;
    background: linear-gradient(145deg, #eff5ff, #e1ebff);
    color: var(--blue);
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    font-weight: 800;
}

.section-heading h4 {
    margin: 0;
    color: var(--navy);
    font-family: "Manrope", sans-serif;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.4;
}

.section-heading p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 21px 23px;
}

.field {
    min-width: 0;
}

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

.field label,
.upload-item > label {
    display: block;
    margin-bottom: 8px;
    color: #243450;
    font-size: 12px;
    font-weight: 800;
}

input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
select,
textarea {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #dce3ee;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: #17243b;
    font-size: 13px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

select {
    cursor: pointer;
}

input::placeholder,
textarea::placeholder {
    color: #a3adbd;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue-light) !important;
    box-shadow: 0 0 0 3px rgba(35, 102, 209, .11);
}

input:disabled,
select:disabled,
textarea:disabled {
    background: #f0f3f8 !important;
    color: #9ba5b5;
    cursor: not-allowed;
}

.help {
    display: block;
    margin-top: 6px;
    color: #8793a7;
    font-size: 11px;
    line-height: 1.6;
}

.inline-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    min-height: 46px;
}

.option {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    padding: 10px 13px;
    border: 1px solid #dfe6f0;
    border-radius: 10px;
    background: #fbfcff;
    color: #33415c !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer;
}

.option input[type="radio"],
.option input[type="checkbox"],
.consent input[type="checkbox"] {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    accent-color: var(--blue);
    cursor: pointer;
}

/* ===================== UPLOAD ===================== */

.upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.upload-item {
    min-width: 0;
    padding: 19px;
    border: 1px dashed #cbd7e8;
    border-radius: 14px;
    background: #fbfcff;
    transition: border-color .2s, background .2s;
}

.upload-item:hover {
    border-color: var(--blue-light);
    background: #f5f8ff;
}

.upload-item input[type="file"] {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 10px;
    overflow: hidden;
    border: 1px solid #dce3ee;
    border-radius: 9px;
    background: #fff;
    color: #52617a;
    font-size: 11px;
}

.upload-item input[type="file"]::file-selector-button {
    margin-right: 9px;
    padding: 8px 10px;
    border: 0;
    border-radius: 7px;
    background: #e8efff;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

/* ===================== PERSETUJUAN & TOMBOL ===================== */

.submit-area {
    padding: 25px 34px 30px;
    border-top: 1px solid var(--border);
    background: #fbfcff;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: #52617a;
    font-size: 12px;
    line-height: 1.8;
    cursor: pointer;
}

.consent input {
    margin-top: 4px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 23px;
}

.btn {
    display: inline-flex;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 19px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s, box-shadow .18s, background .18s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: #fff;
    box-shadow: 0 5px 13px rgba(22, 73, 163, .18);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #103b87, #1956b6);
    color: #fff;
    box-shadow: 0 8px 19px rgba(22, 73, 163, .25);
}

.btn-secondary {
    border-color: #dce3ee;
    background: #fff;
    color: #40516d;
}

.btn-secondary:hover {
    border-color: #b7c9e8;
    background: #f3f7ff;
    color: var(--blue);
}

button[hidden],
a[hidden],
[hidden] {
    display: none !important;
}

.hidden {
    display: none !important;
}

/* ===================== FOOTER ===================== */

.footer {
    padding: 25px 10px;
    color: #7f8ba0;
    font-size: 11px;
    text-align: center;
}

/* ===================== RESPONSIVE TABLET ===================== */

@media (max-width: 768px) {
    .hero {
        padding: 28px 20px 95px;
    }

    .hero h2 {
        margin-top: 35px;
        font-size: clamp(28px, 6vw, 38px);
    }

    .page {
        width: calc(100% - 24px);
        margin-top: -55px;
    }

    .form-top,
    .wizard-progress,
    .form-body,
    .submit-area {
        padding-right: 22px;
        padding-left: 22px;
    }

    .wizard-step-dots {
        gap: 6px;
    }

    .wizard-dot {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }
}

/* ===================== RESPONSIVE HP ===================== */

@media (max-width: 520px) {
    body {
        font-size: 13px;
    }

    .hero {
        padding: 23px 17px 84px;
    }

    .brand {
        gap: 10px;
    }

    .brand-logo {
        width: 45px;
        height: 45px;
        border-radius: 12px;
        font-size: 16px;
    }

    .brand h1 {
        font-size: 14px;
    }

    .brand p {
        font-size: 10px;
    }

    .hero h2 {
        margin-top: 30px;
        font-size: 29px;
        letter-spacing: -.7px;
    }

    .subtitle {
        font-size: 12px;
    }

    .page {
        width: calc(100% - 18px);
        margin-top: -45px;
    }

    .form-card {
        border-radius: 16px;
    }

    .form-top {
        align-items: flex-start;
        padding: 21px 17px;
    }

    .form-top h3 {
        font-size: 17px;
    }

    .form-top p {
        font-size: 11px;
    }

    .required-note {
        font-size: 10px;
    }

    .wizard-progress {
        padding: 20px 15px;
    }

    .wizard-step-dots {
        gap: 4px;
        margin-top: 17px;
    }

    .wizard-dot {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }

    .form-body {
        padding: 20px 16px 25px;
    }

    .section-heading {
        gap: 11px;
        margin-bottom: 22px;
        padding-bottom: 17px;
    }

    .section-number {
        width: 41px;
        height: 41px;
        border-radius: 12px;
        font-size: 12px;
    }

    .section-heading h4 {
        font-size: 15px;
    }

    .section-heading p {
        font-size: 10px;
    }

    .grid,
    .upload-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 17px;
    }

    .field.full {
        grid-column: auto;
    }

    .field label,
    .upload-item > label {
        font-size: 12px;
    }

    input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
    select,
    textarea {
        min-height: 44px;
        padding: 10px 11px;
        font-size: 13px;
    }

    .upload-item {
        padding: 15px;
    }

    .submit-area {
        padding: 21px 16px;
    }

    .actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .actions .btn {
        width: 100%;
        min-height: 43px;
        padding: 10px 8px;
        font-size: 11px;
    }

    .actions > a:last-child {
        grid-column: 1 / -1;
    }

    .notice {
        padding: 13px;
        font-size: 12px;
    }
}

/* ===================== AKSESIBILITAS ===================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
