/* =========================================
   SNPD - REGULASI PELAYANAN
   Tampilan konsisten dengan Buku Panduan.
========================================= */

/* =========================================
   1. VARIABEL WARNA
========================================= */

:root {
    color-scheme: dark;

    --background: #080d16;
    --panel: #111b2a;
    --panel-soft: #172132;
    --border: #293447;
    --text: #f5f7fb;
    --muted: #a2adbf;
    --red: #ed4756;
    --radius: 13px;
}

/* =========================================
   2. GLOBAL
========================================= */

* {
    box-sizing: border-box;
}

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

body {
    display: flex;
    flex-direction: column;

    min-height: 100vh;
    margin: 0;

    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);

    background:
        linear-gradient(110deg, rgba(8, 13, 22, 0.94), rgba(8, 13, 22, 0.87)),
        url('../bg.png') center / cover fixed;

    background-color: var(--background);
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

/* =========================================
   3. KONTEN UTAMA
========================================= */

.page-shell {
    flex: 1;

    width: 100%;
    max-width: 1260px;

    margin: 0 auto;
    padding: 35px 24px 85px;
}

.page-hero {
    margin-bottom: 45px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    margin-bottom: 19px;

    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.breadcrumb a {
    text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.page-hero h1 {
    margin: 0 0 19px;

    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.09;
    letter-spacing: -1.6px;
}

.page-hero h1 span {
    color: var(--red);
}

.hero-description {
    max-width: 860px;
    margin: 0;

    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

/* =========================================
   4. JUDUL BAGIAN
========================================= */

.regulations {
    margin-bottom: 50px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;

    margin-bottom: 21px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.section-overline {
    margin: 0 0 8px;

    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.section-heading h2,
.note-header h2 {
    margin: 0;
    font-size: clamp(18px, 2vw, 23px);
    letter-spacing: 0.2px;
}

/* =========================================
   5. KARTU PELAYANAN
========================================= */

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
}

.service-card {
    min-width: 0;
    padding: 25px;

    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(155deg, rgba(23, 33, 50, 0.96), rgba(16, 23, 35, 0.94));
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.13);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;

    margin-bottom: 22px;
}

.service-number {
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    border: 1px solid rgba(237, 71, 86, 0.28);
    border-radius: 10px;
    background: rgba(237, 71, 86, 0.10);

    color: var(--red);
    font-weight: 800;
}

.issuer-tag {
    padding: 8px 11px;

    border: 1px solid rgba(237, 71, 86, 0.30);
    border-radius: 100px;

    color: #ff8992;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.service-title {
    margin: 0 0 7px;

    font-size: clamp(19px, 2.2vw, 23px);
    line-height: 1.35;
}

.service-abbreviation {
    margin: 0 0 24px;

    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

/* =========================================
   6. INFORMASI & TARIF
========================================= */

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

    margin-bottom: 21px;
}

.detail-group {
    min-width: 0;
}

.detail-heading {
    margin: 0 0 12px;

    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.detail-list {
    margin: 0;
    padding-left: 19px;

    color: var(--text);
    font-size: 14px;
    line-height: 1.8;
}

.detail-list li + li {
    margin-top: 5px;
}

.tariff-list {
    padding-top: 21px;
    border-top: 1px solid var(--border);
}

.tariff-item {
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: rgba(8, 13, 22, 0.55);
}

.tariff-item + .tariff-item {
    margin-top: 10px;
}

.tariff-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.tariff-type {
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.tariff-price {
    color: var(--red);
    font-size: 22px;
    font-weight: 800;
}

.tariff-description {
    margin: 8px 0 0;

    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.card-notice {
    margin-top: 18px;
    padding: 13px 15px;

    border-left: 3px solid var(--red);
    border-radius: 0 7px 7px 0;
    background: rgba(237, 71, 86, 0.08);

    color: #e9c3c8;
    font-size: 13px;
    line-height: 1.7;
}

.card-notice p {
    margin: 0;
}

/* =========================================
   7. KETENTUAN UMUM
========================================= */

.general-note {
    padding: 25px;

    border: 1px solid rgba(237, 71, 86, 0.32);
    border-radius: var(--radius);
    background: rgba(17, 27, 42, 0.94);
}

.note-header {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.note-symbol {
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    border-radius: 10px;
    background: rgba(237, 71, 86, 0.12);
    color: var(--red);
    font-size: 25px;
    font-weight: 800;
}

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

.billing-item {
    min-width: 0;
    padding: 17px 19px;

    border: 1px solid var(--border);
    border-radius: 9px;
    background: rgba(8, 13, 22, 0.45);
}

.billing-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.billing-copy {
    margin: 10px 0 0;

    color: var(--text);
    font-size: 14px;
    line-height: 1.7;
}

.billing-amount {
    margin: 9px 0 0;

    color: var(--red);
    font-size: 23px;
    font-weight: 800;
}

.page-status {
    margin: 20px 0 0;
    color: #ff9da6;
    font-size: 13px;
}

.loading-text {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/* =========================================
   8. FOOTER
========================================= */

.site-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;

    padding: 23px max(5%, calc((100vw - 1260px) / 2));

    border-top: 1px solid var(--border);
    background: rgba(8, 13, 22, 0.82);

    color: var(--muted);
    font-size: 12px;
}

/* =========================================
   9. RESPONSIVE MOBILE
========================================= */

@media (max-width: 650px) {
    body {
        background-attachment: scroll;
    }

    .page-shell {
        padding: 24px 18px 65px;
    }

    .page-hero {
        margin-bottom: 33px;
    }

    .breadcrumb {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .page-hero h1 {
        letter-spacing: -0.8px;
    }

    .hero-description {
        font-size: 14px;
    }

    .service-grid,
    .billing-rules {
        grid-template-columns: 1fr;
    }

    .service-card,
    .general-note {
        padding: 18px;
    }

    .details-grid {
        gap: 12px;
    }

    .service-title {
        font-size: 19px;
    }

    .site-footer {
        flex-direction: column;
        padding: 20px 18px;
    }
}

/* =========================================
   10. AKSESIBILITAS
========================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

}
