/* =====================================================
   PATH FILE : style.css
   FUNGSI    : Style glassmorphism bersama untuk
               index.php & form.php (DUKCAPIL BENGKAYANG)
   ===================================================== */

/* ============ VARIABEL & RESET ============ */
:root {
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-bg-strong: rgba(255, 255, 255, 0.22);
    --glass-border: rgba(255, 255, 255, 0.28);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --accent: #6a5af9;
    --accent-2: #00c6ff;
}

* { box-sizing: border-box; }

/* ============ BODY & BACKGROUND ============ */
body {
    min-height: 100vh;
    margin: 0;
    padding: 20px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #fff;
    background:
        radial-gradient(circle at 15% 15%, #6a5af9 0%, transparent 45%),
        radial-gradient(circle at 85% 20%, #00c6ff 0%, transparent 45%),
        radial-gradient(circle at 25% 85%, #f857a6 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, #0f2027 0%, transparent 55%),
        linear-gradient(135deg, #1b1b3a 0%, #0f2027 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

.main-wrapper { max-width: 440px; width: 100%; }

/* ============ GLASS CARD (dipakai 2 halaman) ============ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    position: relative;
}

.glass-card::before {
    content: "";
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.glass-header {
    padding: 24px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(106,90,249,0.55), rgba(0,198,255,0.35));
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    z-index: 1;
}

.glass-header h4 {
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.glass-header small {
    opacity: 0.85;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.glass-body {
    padding: 22px 18px;
    position: relative;
    z-index: 1;
}

/* ============ DIVIDER & FOOTER ============ */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    margin: 20px 0;
}

.footer-text {
    text-align: center;
    margin-top: 16px;
    font-size: 0.75rem;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

/* =====================================================
   KHUSUS index.php — DAFTAR LAYANAN
   ===================================================== */
.layanan-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    text-decoration: none;
    color: #fff;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.layanan-card::after {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}
.layanan-card:hover::after { left: 100%; }

.layanan-card:hover {
    background: var(--glass-bg-strong);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
    color: #fff;
}

.layanan-card .emoji {
    font-size: 1.7rem;
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.18);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.25);
    flex-shrink: 0;
}

.layanan-card .txt { font-weight: 700; font-size: 0.98rem; display: block; }
.layanan-card .sub { font-size: 0.72rem; opacity: 0.75; display: block; margin-top: 2px; }

/* =====================================================
   KHUSUS form.php — FORM INPUT
   ===================================================== */
.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
    opacity: 0.95;
}

.form-control {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    color: #fff;
    padding: 12px 14px;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.25s;
}
.form-control::placeholder { color: rgba(255,255,255,0.55); }
.form-control:focus {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(106, 90, 249, 0.25);
}

/* Pilihan jumlah KTP */
.jumlah-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 4px;
}
.jumlah-grid input[type="radio"] { display: none; }
.jumlah-grid label {
    display: block;
    cursor: pointer;
    padding: 14px 8px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 14px;
    transition: all 0.25s;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    font-size: 1.15rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.jumlah-grid label .sub {
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    display: block;
    margin-top: 2px;
    letter-spacing: 1px;
}
.jumlah-grid label:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-2px);
}
.jumlah-grid input[type="radio"]:checked + label {
    border-color: rgba(0, 198, 255, 0.8);
    background: linear-gradient(135deg, rgba(106,90,249,0.55), rgba(0,198,255,0.45));
    color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.25), 0 8px 20px rgba(106,90,249,0.35);
}
.jumlah-grid input[type="radio"]:checked + label .sub { color: #fff; }

/* Warning box syarat wajib */
.warning-box {
    background: rgba(255, 82, 82, 0.15);
    border: 1px solid rgba(255, 82, 82, 0.35);
    border-radius: 14px;
    padding: 12px;
    text-align: center;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.warning-box .title {
    color: #ffb3b3;
    font-weight: 800;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
    font-size: 0.8rem;
}
.warning-box p {
    margin: 0;
    color: rgba(255,255,255,0.85);
    line-height: 1.4;
}

/* =====================================================
   TOMBOL (dipakai 2 halaman)
   ===================================================== */
.btn-glass-primary {
    background: linear-gradient(135deg, #6a5af9 0%, #00c6ff 100%);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 13px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(106, 90, 249, 0.4);
    transition: all 0.25s;
}
.btn-glass-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(106, 90, 249, 0.55);
    color: #fff;
}
.btn-glass-primary:disabled { opacity: 0.6; color: #fff; }

.btn-glass-secondary {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    padding: 11px;
    border-radius: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.25s;
    display: block;
    text-align: center;
    text-decoration: none;
}
.btn-glass-secondary:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
    transform: translateY(-2px);
}

/* ============ IKON STORE (tanpa card putih) ============ */
.icon-store {
    width: 100%;
    height: 60px;
    object-fit: contain;
    display: block;
    /* mix-blend-mode: screen; // aktifkan jika PNG tidak transparan */
}