:root {
    --orange-1: #FFC15C;
    --orange-2: #F5A623;
    --orange-3: #EE7A1E;
    --navy: #152B4E;
    --navy-2: #25406B;
    --cream: #FBF2E2;
    --white: #FFFFFF;
    --red: #E24B33;
    --green: #2E7D4F;
    --ink: #2A2418;
    --muted: #8C816C;
    --line: #EDE2CC;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(37, 27, 10, 0.10);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    background: var(--cream);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------- Header ---------- */
.site-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.site-logo {
    height: 34px;
    width: auto;
    display: block;
}

.site-brand { text-decoration: none; }

.site-tagline {
    color: var(--orange-1);
    font-family: 'Baloo 2', sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
}

/* ---------- Main ---------- */
.site-main {
    flex: 1;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 28px 20px 48px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy);
    padding: 18px 24px;
    text-align: center;
}

.site-footer-inner {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
}

/* ---------- Halaman daftar kelas ---------- */
.page-title {
    font-family: 'Baloo 2', sans-serif;
    color: var(--navy);
    font-size: 26px;
    margin: 0 0 6px;
}

.page-sub {
    color: var(--muted);
    margin: 0 0 22px;
    font-size: 14px;
}

.kelas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.kelas-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.15s ease;
}

.kelas-card:hover { transform: translateY(-3px); }

.kelas-card-cover {
    height: 130px;
    background-size: cover;
    background-position: center;
    background: linear-gradient(160deg, #F7C57A, #E88A2E);
    display: flex;
    align-items: flex-end;
}

.kelas-card-body { padding: 14px 16px 16px; }

.kelas-card-title {
    font-family: 'Baloo 2', sans-serif;
    font-size: 18px;
    color: var(--navy);
    margin: 0 0 4px;
}

.kelas-card-desc {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 10px;
}

.badge-lokasi {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFF3DC;
    color: #A05A00;
    border: 1px solid #F5D9A8;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.btn-daftar {
    margin-top: 10px;
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, var(--orange-1), var(--orange-3));
    color: var(--navy);
    font-weight: 800;
    border: none;
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 14px;
    cursor: pointer;
    font-family: 'Baloo 2', sans-serif;
}

.btn-daftar:hover { filter: brightness(1.05); }

.btn-daftar:disabled {
    background: #E4DDCF;
    color: #A79B87;
    cursor: not-allowed;
}

.empty-state {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 34px 24px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

/* ---------- Form trial ---------- */
.form-hero { margin-bottom: 22px; }

.form-hero-cover {
    height: 170px;
    border-radius: var(--radius);
    background-size: cover;
    background-position: center;
    background: linear-gradient(160deg, #F7C57A, #E88A2E);
}

.form-hero-title {
    font-family: 'Baloo 2', sans-serif;
    font-size: 24px;
    color: var(--navy);
    margin: 14px 0 4px;
}

.form-hero-desc { color: var(--muted); font-size: 14px; margin: 0; }

.form-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px 22px;
}

.form-section-title {
    font-family: 'Baloo 2', sans-serif;
    color: var(--navy);
    font-size: 16px;
    margin: 0 0 4px;
}

.form-section-sub { color: var(--muted); font-size: 13px; margin: 0 0 16px; }

.field { margin-bottom: 16px; }

.field label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: var(--navy);
    margin-bottom: 6px;
}

.field .req { color: var(--red); }

.field input[type="text"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="date"],
.field select {
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #FFFDF8;
    color: var(--ink);
}

.field input:focus, .field select:focus {
    outline: none;
    border-color: var(--orange-2);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

.field input[readonly] {
    background: #F6F0E2;
    color: #6E6350;
}

.field input.is-invalid { border-color: var(--red); }

.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }

.field .error { color: var(--red); font-size: 12px; margin-top: 5px; }

.radio-group { display: flex; gap: 12px; flex-wrap: wrap; }

.radio-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 9px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    background: #FFFDF8;
    color: var(--ink);
    user-select: none;
}

.radio-chip input { accent-color: var(--orange-3); width: 16px; height: 16px; }

.radio-chip.selected { border-color: var(--orange-2); background: #FFF3DC; }

.banner-info {
    background: #EAF4EE;
    border: 1px solid #C4E2D0;
    color: var(--green);
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.banner-full {
    background: #FDEBE7;
    border: 1px solid #F5C4BA;
    color: var(--red);
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
}

.banner-error {
    background: #FDEBE7;
    border: 1px solid #F5C4BA;
    color: var(--red);
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 14px;
    margin-bottom: 18px;
}

.divider {
    border: none;
    border-top: 1.5px dashed var(--line);
    margin: 22px 0;
}

/* ---------- Sukses ---------- */
.sukses-box {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 26px;
    text-align: center;
}

.sukses-icon {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange-1), var(--orange-3));
    color: var(--white);
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.sukses-title {
    font-family: 'Baloo 2', sans-serif;
    font-size: 24px;
    color: var(--navy);
    margin: 0 0 8px;
}

.sukses-desc { color: var(--muted); font-size: 14px; margin: 0 auto 22px; max-width: 420px; }
