@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
    --sage: #aebda9;
    --sage-soft: #dfe8dc;
    --army: #425843;
    --army-dark: #263b2b;
    --blue: #173d65;
    --blue-soft: #4e7194;
    --cream: #f5f5ef;
    --white: #ffffff;
    --line: rgba(23, 61, 101, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "DM Sans", sans-serif;
    background:
        linear-gradient(135deg, #edf2ea 0%, #dbe6d7 45%, #c8d6c4 100%);
    color: var(--blue);
    overflow-x: hidden;
}

.background-shape {
    position: fixed;
    border-radius: 50%;
    opacity: 0.5;
    z-index: -1;
}

.shape-1 {
    width: 420px;
    height: 420px;
    background: #8fa68a;
    top: -140px;
    left: -130px;
}

.shape-2 {
    width: 360px;
    height: 360px;
    background: #78927c;
    right: -120px;
    bottom: -120px;
}

.shape-3 {
    width: 220px;
    height: 220px;
    background: #c8d7c4;
    top: 35%;
    right: 8%;
}

.main-wrapper {
    width: min(1100px, 92%);
    min-height: 100vh;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 55px;
    padding: 45px 0;
}

.brand-section {
    width: 42%;
}

.logo-box {
    width: 95px;
    height: 95px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(23, 61, 101, 0.14);
    border-radius: 24px;
    padding: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.small-title,
.hasil-header p {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 0 0 12px;
    color: var(--army);
}

.brand-section h1,
.hasil-header h1 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 38px;
    line-height: 1.18;
    margin: 0;
    color: var(--blue);
}

.subtitle {
    color: #48617b;
    font-size: 16px;
    line-height: 1.7;
    margin-top: 20px;
}

.announcement-card,
.hasil-card {
    width: 520px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 20px 55px rgba(39, 67, 47, 0.16);
    backdrop-filter: blur(10px);
}

.card-header,
.hasil-title {
    display: flex;
    gap: 16px;
    align-items: center;
}

.header-icon,
.check-circle {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--army);
    color: white;
    font-size: 23px;
    font-weight: bold;
}

.card-header h2,
.hasil-title h2 {
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 20px;
}

.card-header p,
.hasil-title p {
    margin: 6px 0 0;
    color: #6d7f8f;
    font-size: 13px;
}

.form-peserta {
    margin-top: 32px;
}

.form-peserta label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 9px;
}

.form-peserta input {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid #cbd8c8;
    border-radius: 14px;
    font-size: 16px;
    outline: none;
    color: var(--blue);
    background: #f9fcf7;
}

.form-peserta input:focus {
    border-color: var(--army);
}

.form-peserta button {
    width: 100%;
    margin-top: 16px;
    border: none;
    border-radius: 14px;
    padding: 16px;
    background: linear-gradient(135deg, var(--army), var(--army-dark));
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.form-peserta button:hover {
    transform: translateY(-2px);
}

.arrow {
    font-size: 20px;
}

.footer-card,
.hasil-footer {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    color: #708092;
    font-size: 12px;
}

.dot {
    color: var(--army);
}

.status-tutup {
    text-align: center;
    padding: 35px 10px 10px;
}

.status-icon,
.error-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    margin: 0 auto 16px;
    background: #d9e4d5;
    color: var(--army-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    font-weight: bold;
}

.status-tutup h3 {
    margin: 0;
    font-size: 20px;
}

.status-tutup p {
    color: #6c7b88;
    line-height: 1.7;
}

.jadwal-box {
    background: #eef4eb;
    border: 1px solid #d4e0d0;
    border-radius: 15px;
    padding: 15px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 13px;
}

.hasil-wrapper {
    width: min(850px, 92%);
    margin: auto;
    padding: 45px 0;
}

.hasil-header {
    text-align: center;
    margin-bottom: 25px;
}

.hasil-header h1 {
    font-size: 30px;
}

.hasil-card {
    width: 100%;
}

.garis {
    height: 1px;
    background: var(--line);
    margin: 25px 0;
}

.isi-pengumuman {
    font-size: 15px;
    line-height: 1.8;
    color: #36516b;
}

.nama-siswa {
    margin: 25px 0 10px;
    padding: 18px;
    text-align: center;
    border-radius: 14px;
    background: #e9f0e6;
    color: var(--blue);
    font-size: 20px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 800;
}

.dinyatakan {
    text-align: center;
    margin: 22px 0 8px;
}

.status-lulus {
    background: var(--army);
    color: white;
    padding: 13px 20px;
    text-align: center;
    border-radius: 12px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.info-daftar-ulang {
    background: #f2f7ef;
    border: 1px solid #dbe7d6;
    padding: 22px;
    border-radius: 18px;
    margin-top: 25px;
}

.info-daftar-ulang h3 {
    margin-top: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--army-dark);
}

.info-daftar-ulang ol {
    padding-left: 22px;
}

.peringatan {
    margin-top: 18px;
    background: #e1ebdc;
    border-left: 4px solid var(--army);
    padding: 14px;
    border-radius: 8px;
    font-size: 14px;
}

.tidak-ditemukan {
    text-align: center;
    padding: 55px 30px;
}

.tidak-ditemukan h2 {
    margin: 0 0 12px;
    font-family: "Plus Jakarta Sans", sans-serif;
}

.tidak-ditemukan p {
    color: #637789;
}

.nomor-cari {
    margin-top: 22px;
    background: #edf3ea;
    padding: 12px;
    border-radius: 10px;
}

.btn-kembali {
    display: block;
    width: fit-content;
    margin: 25px auto 0;
    text-decoration: none;
    background: rgba(255,255,255,0.65);
    color: var(--blue);
    padding: 13px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid rgba(23, 61, 101, 0.1);
}

.btn-kembali:hover {
    background: white;
}

@media (max-width: 850px) {
    .main-wrapper {
        flex-direction: column;
        gap: 28px;
    }

    .brand-section,
    .announcement-card {
        width: 100%;
    }

    .brand-section {
        text-align: center;
    }

    .logo-box {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 500px) {
    .announcement-card,
    .hasil-card {
        padding: 24px 20px;
        border-radius: 22px;
    }

    .brand-section h1 {
        font-size: 29px;
    }

    .hasil-header h1 {
        font-size: 24px;
    }

    .footer-card,
    .hasil-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

.public-footer {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 1000;

    width: 100%;
    min-height: 54px;
    background: #263b2b;
    color: #aebda9;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;

    padding: 15px 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.footer-divider {
    color: #78927c;
    font-size: 16px;
    font-weight: 400


}


/* =========================================================
   RESPONSIVE KHUSUS HALAMAN PUBLIK UNTUK HP
   ========================================================= */

@media (max-width: 768px) {

    body {
        padding-bottom: 58px;
    }

    .background-shape {
        opacity: 0.35;
    }

    .shape-1 {
        width: 260px;
        height: 260px;
        top: -95px;
        left: -110px;
    }

    .shape-2 {
        width: 240px;
        height: 240px;
        right: -110px;
        bottom: -95px;
    }

    .shape-3 {
        width: 150px;
        height: 150px;
        top: 42%;
        right: -70px;
    }

    .main-wrapper {
        width: 100%;
        min-height: auto;
        padding: 30px 16px 35px;
        gap: 24px;
        align-items: stretch;
    }

    .brand-section {
        width: 100%;
    }

    .logo-box {
        width: 74px;
        height: 74px;
        border-radius: 20px;
        padding: 9px;
        margin-bottom: 16px;
    }

    .small-title {
        font-size: 10px;
        letter-spacing: 1.5px;
        margin-bottom: 8px;
    }

    .brand-section h1 {
        font-size: 27px;
        line-height: 1.2;
    }

    .subtitle {
        margin-top: 12px;
        font-size: 14px;
        line-height: 1.55;
    }

    .announcement-card {
        width: 100%;
        border-radius: 22px;
        padding: 23px 18px;
    }

    .card-header {
        gap: 12px;
        align-items: flex-start;
    }

    .header-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        border-radius: 13px;
        font-size: 20px;
    }

    .card-header h2 {
        font-size: 17px;
        line-height: 1.35;
    }

    .card-header p {
        font-size: 12px;
        line-height: 1.5;
    }

    .form-peserta {
        margin-top: 23px;
    }

    .form-peserta label {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .form-peserta input {
        padding: 15px;
        font-size: 16px;
        border-radius: 12px;
    }

    .form-peserta button {
        padding: 15px;
        border-radius: 12px;
        font-size: 14px;
    }

    .footer-card {
        margin-top: 20px;
        padding-top: 15px;
        gap: 5px;
        align-items: center;
        text-align: center;
        flex-wrap: wrap;
        justify-content: center;
        font-size: 11px;
    }

    .status-tutup {
        padding: 26px 5px 4px;
    }

    .status-tutup h3 {
        font-size: 17px;
    }

    .status-tutup p {
        font-size: 13px;
    }

    .jadwal-box {
        font-size: 12px;
    }

    /* =========================
       HALAMAN HASIL.PHP
       ========================= */

    .hasil-wrapper {
        width: 100%;
        padding: 27px 16px 35px;
    }

    .hasil-header {
        margin-bottom: 18px;
    }

    .hasil-header p {
        font-size: 10px;
        letter-spacing: 1.5px;
        margin-bottom: 8px;
    }

    .hasil-header h1 {
        font-size: 23px;
        line-height: 1.3;
    }

    .hasil-card {
        width: 100%;
        padding: 23px 18px;
        border-radius: 22px;
    }

    .hasil-title {
        gap: 12px;
        align-items: flex-start;
    }

    .check-circle {
        width: 42px;
        height: 42px;
        min-width: 42px;
        border-radius: 13px;
        font-size: 20px;
    }

    .hasil-title h2 {
        font-size: 17px;
        line-height: 1.35;
    }

    .hasil-title p {
        font-size: 10px;
        letter-spacing: 0.7px;
    }

    .garis {
        margin: 19px 0;
    }

    .isi-pengumuman {
        font-size: 14px;
        line-height: 1.75;
        text-align: left;
    }

    .nama-siswa {
        margin: 20px 0 8px;
        padding: 15px 12px;
        border-radius: 12px;
        font-size: 16px;
        line-height: 1.45;
    }

    .dinyatakan {
        margin: 18px 0 7px;
        font-size: 13px;
    }

    .status-lulus {
        padding: 12px;
        border-radius: 11px;
        font-size: 16px;
        margin-bottom: 20px;
    }

    .info-daftar-ulang {
        margin-top: 20px;
        padding: 17px 15px;
        border-radius: 15px;
    }

    .info-daftar-ulang h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .info-daftar-ulang p,
    .info-daftar-ulang ol {
        font-size: 13px;
        line-height: 1.7;
    }

    .info-daftar-ulang ol {
        padding-left: 20px;
    }

    .peringatan {
        margin-top: 15px;
        padding: 12px;
        font-size: 12px;
        line-height: 1.65;
    }

    .hasil-footer {
        margin-top: 20px;
        padding-top: 15px;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        text-align: center;
        font-size: 11px;
    }

    .tidak-ditemukan {
        padding: 35px 18px;
    }

    .tidak-ditemukan h2 {
        font-size: 20px;
    }

    .tidak-ditemukan p {
        font-size: 13px;
        line-height: 1.65;
    }

    .btn-kembali {
        width: 100%;
        text-align: center;
        padding: 14px;
        border-radius: 12px;
        font-size: 13px;
    }

    /* FOOTER FIXED */
    .public-footer {
        min-height: 58px;
        padding: 13px 15px;
        font-size: 12px;
        gap: 8px;
    }
}

/* HP KECIL: layar sekitar 360px */
@media (max-width: 390px) {

    .main-wrapper {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hasil-wrapper {
        padding-left: 12px;
        padding-right: 12px;
    }

    .brand-section h1 {
        font-size: 24px;
    }

    .announcement-card,
    .hasil-card {
        padding: 20px 15px;
    }

    .nama-siswa {
        font-size: 15px;
    }

    .isi-pengumuman {
        font-size: 13px;
    }

    .public-footer {
        font-size: 11px;
    }
}


/* =========================================
   COUNTDOWN ELEGAN - SATU BARIS
   ========================================= */

.countdown-elegant {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 6px;
    margin: 0 auto 20px;
    padding: 13px 16px;
    border-radius: 13px;
    background: #eef4eb;
    border: 1px solid #d1dfcc;
    color: #2d4a37;
    white-space: nowrap;
}

.countdown-elegant strong {
    font-size: 40px;
    line-height: 1;
    font-weight: 900;
    color: #263b2b;
    letter-spacing: -0.5px;
}

.countdown-elegant span {
    margin-left: -3px;
    font-size: 11px;
    font-weight: 800;
    color: #617963;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.countdown-elegant b {
    margin: 0 3px;
    color: #829583;
    font-size: 20px;
    font-weight: 500;
}

@media (max-width: 480px) {
    .countdown-elegant {
        gap: 4px;
        padding: 11px 8px;
    }

    .countdown-elegant strong {
        font-size: 20px;
    }

    .countdown-elegant span {
        font-size: 8px;
        letter-spacing: 0;
    }

    .countdown-elegant b {
        margin: 0 1px;
        font-size: 17px;
    }
}