:root {
    --orange: #f28c28;
    --orange-dark: #d96a00;
    --brown: #3b2416;
    --cream: #fff8f2;
    --white: #ffffff;
    --text: #2a211b;
    --muted: #6f6259;
    --danger: #cc3b2f;
    --success-bg: #eefaf0;
    --success-text: #1b6a2f;
    --shadow: 0 18px 40px rgba(59, 36, 22, 0.12);
    --radius: 22px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #fffaf5 0%, #fff3e8 100%);
    color: var(--text);
    line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 248, 242, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(59, 36, 22, 0.08);

}

.topbar-inner, .topbar.simple {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand { font-size: 1.05rem; font-weight: 800; color: var(--brown); }
.brand span { color: var(--orange-dark); }
.btn {
    border: none;
    border-radius: 999px;
    padding: 14px 22px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
    font-size: 0.98rem;
}
.btn-primary {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: var(--white);
    box-shadow: 0 12px 24px rgba(217, 106, 0, 0.24);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-secondary { background: var(--brown); color: var(--white); }
.btn-light { background: #fff1e3; color: var(--orange-dark); }
.btn-danger { background: #fff1f0; color: var(--danger); }
.hero { padding: 34px 0 26px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; }
.card, .hero-card, .info-card, .program-card, .pricing-card, .contact-card, .modal-card, .banner, .form-card, .child-card, .summary-card, .admin-card {
    background: rgba(255, 255, 255, 0.94);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(59, 36, 22, 0.08);
}
.hero-copy { padding: 26px; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff1e3;
    color: var(--orange-dark);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
}
h1 { font-size: clamp(2rem, 4vw, 4rem); line-height: 1.02; color: var(--brown); margin-bottom: 14px; }
.hero-copy p { color: var(--muted); font-size: 1.02rem; margin-bottom: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.point {
    background: #fffaf6;
    border-radius: 18px;
    padding: 14px;
    border: 1px solid rgba(242, 140, 40, 0.18);
}
.point strong { display: block; color: var(--brown); margin-bottom: 4px; }
.point span { color: var(--muted); font-size: 0.95rem; }
.hero-poster { overflow: hidden; border-radius: 28px; box-shadow: var(--shadow); border: 1px solid rgba(59, 36, 22, 0.08); background: var(--white); }
.hero-poster img { width: 100%; height: 100%; object-fit: cover; }
.section { padding: 16px 0 28px; }
.section-title { text-align: center; margin-bottom: 20px; }
.section-title h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); color: var(--brown); margin-bottom: 8px; }
.section-title p, .muted { color: var(--muted); }
.info-grid, .pricing-grid, .program-grid { display: grid; gap: 18px; }
.info-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pricing-grid, .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-card, .pricing-card, .program-card, .contact-card, .admin-card { padding: 22px; }
.info-card h3, .pricing-card h3, .program-card h3, .contact-card h3, .admin-card h3 { color: var(--brown); margin-bottom: 10px; font-size: 1.15rem; }
.info-card p, .pricing-card p, .contact-card p, .admin-card p { color: var(--muted); }
.price { font-size: 2rem; font-weight: 800; color: var(--orange-dark); margin: 8px 0; }
.program-list { list-style: none; display: grid; gap: 12px; }
.program-list li {
    background: #fffaf6;
    border-radius: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(242, 140, 40, 0.16);
    color: var(--text);
}
.cta-section { padding: 12px 0 56px; }
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.contact-card .btn { min-width: 220px; }
.footer { padding: 24px 0 36px; text-align: center; color: var(--muted); }
.modal {
    position: fixed; inset: 0; background: rgba(31, 23, 18, 0.58); display: none;
    align-items: center; justify-content: center; padding: 18px; z-index: 100;
}
.modal.active { display: flex; }
.modal-card { width: min(760px, 100%); padding: 24px; position: relative; }
.modal-close {
    position: absolute; top: 14px; right: 14px; background: #fff3e8; color: var(--brown);
    border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; font-weight: 700;
}
.modal-header h3 { color: var(--brown); font-size: 1.65rem; margin-bottom: 8px; }
.modal-header p { color: var(--muted); margin-bottom: 18px; }
.payment-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.payment-option {
    border: 2px solid rgba(59, 36, 22, 0.08); background: #fff; padding: 16px; border-radius: 18px;
    cursor: pointer; transition: 0.2s ease; text-align: left;
}
.payment-option.active { border-color: var(--orange); background: #fff7ef; }
.payment-option strong { display: block; color: var(--brown); margin-bottom: 4px; font-size: 1.05rem; }
.payment-option span { color: var(--muted); font-size: 0.94rem; }
.payment-display {
    display: none; grid-template-columns: 230px 1fr; gap: 18px; align-items: center;
    background: #fffaf6; border: 1px solid rgba(242, 140, 40, 0.18); border-radius: 20px; padding: 18px; margin-bottom: 18px;
}
.payment-display.active { display: grid; }
.qr-box { background: var(--white); border-radius: 20px; border: 1px dashed rgba(59, 36, 22, 0.22); padding: 14px; }
.qr-box img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; }
.payment-details h4 { color: var(--brown); margin-bottom: 8px; font-size: 1.2rem; }
.payment-number {
    display: inline-block; background: #fff1e3; color: var(--orange-dark); font-weight: 800; font-size: 1.12rem;
    padding: 10px 14px; border-radius: 14px; margin: 10px 0;
}
.payment-note { color: var(--muted); font-size: 0.95rem; }
.modal-actions { display: flex; justify-content: flex-end; }
.page { padding: 28px 0 48px; }
.banner, .form-card, .summary-card { padding: 22px; }
.banner { margin-bottom: 20px; }
.banner h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--brown); margin-bottom: 8px; }
.banner p { color: var(--muted); }
.payment-pill {
    display: inline-flex; margin-top: 12px; background: #fff1e3; color: var(--orange-dark);
    border-radius: 999px; padding: 10px 14px; font-weight: 800;
}
.form-layout { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 20px; align-items: start; }
.section-title-left { font-size: 1.25rem; color: var(--brown); margin-bottom: 14px; }
.section-text { color: var(--muted); margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 700; color: var(--brown); font-size: 0.96rem; }
input, select {
    width: 100%; border: 1px solid rgba(59, 36, 22, 0.14); background: #fff;
    border-radius: 14px; padding: 14px 14px; font-size: 0.98rem; outline: none;
}
input:focus, select:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(242, 140, 40, 0.12); }
.children-list { display: grid; gap: 16px; margin-top: 8px; }
.child-card { padding: 18px; background: #fffaf6; }
.child-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.child-title { font-weight: 800; color: var(--brown); font-size: 1.02rem; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-chip { position: relative; }
.radio-chip input { position: absolute; opacity: 0; pointer-events: none; }
.radio-chip span {
    display: inline-flex; align-items: center; justify-content: center; min-width: 82px;
    padding: 12px 16px; border-radius: 999px; border: 1px solid rgba(59, 36, 22, 0.14);
    background: #fff; color: var(--text); font-weight: 700; cursor: pointer;
}
.radio-chip input:checked + span { background: #fff1e3; border-color: var(--orange); color: var(--orange-dark); }
.school-code-wrap { display: none; margin-top: 12px; }
.school-code-wrap.visible { display: block; }
.summary-card { position: sticky; top: 20px; }
.summary-card h3 { color: var(--brown); margin-bottom: 14px; }
.summary-box { display: grid; gap: 12px; margin-bottom: 16px; }
.summary-item {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: #fffaf6; border-radius: 16px; padding: 12px 14px; border: 1px solid rgba(242, 140, 40, 0.16);
}
.summary-item span { color: var(--muted); }
.summary-item strong { color: var(--brown); }
.total-box {
    background: linear-gradient(135deg, #fff1e3 0%, #fff8f2 100%);
    border-radius: 18px; padding: 16px; border: 1px solid rgba(242, 140, 40, 0.18);
}
.total-label { color: var(--muted); margin-bottom: 6px; }
.total-value { font-size: 2rem; color: var(--orange-dark); font-weight: 800; }
.hint { font-size: 0.92rem; color: var(--muted); margin-top: 10px; }
.alert {
    background: var(--success-bg); color: var(--success-text); border-radius: 16px;
    padding: 12px 14px; font-size: 0.94rem; margin-bottom: 16px;
}
.flash-error {
    background: #fff1f0; color: #9e2d24; border: 1px solid #f2c4bf;
    padding: 14px 16px; border-radius: 14px; margin-bottom: 16px;
}
.submit-wrap { margin-top: 22px; }
.submit-wrap .btn { width: 100%; padding: 16px 20px; font-size: 1rem; }
.success-box { padding: 28px; text-align: center; }
.success-box h1 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.success-box .summary-list { text-align: left; display: grid; gap: 10px; margin: 20px auto; max-width: 520px; }
.success-box .summary-list div { background: #fffaf6; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(242, 140, 40, 0.16); }
.admin-wrap { padding: 28px 0 48px; }
.admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.admin-stat { padding: 18px; }
.admin-stat .value { font-size: 1.9rem; font-weight: 800; color: var(--orange-dark); }
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 12px 10px; border-bottom: 1px solid #eee; text-align: left; vertical-align: top; }
th { color: var(--brown); background: #fff8f2; }
.badge {
    display: inline-flex; padding: 6px 10px; border-radius: 999px; font-size: 0.86rem;
    background: #fff1e3; color: var(--orange-dark); font-weight: 700;
}
.login-box { max-width: 460px; margin: 42px auto; padding: 22px; }
.right { text-align: right; }
@media (max-width: 940px) {
    .hero-grid, .info-grid, .pricing-grid, .program-grid, .payment-display, .admin-grid, .form-layout, .grid { grid-template-columns: 1fr; }
    .hero-points { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .hero-copy, .info-card, .pricing-card, .program-card, .contact-card, .modal-card, .banner, .form-card, .summary-card, .admin-card { padding: 18px; }
    .payment-options { grid-template-columns: 1fr; }
    .contact-card { align-items: flex-start; }
    .hero { padding-top: 24px; }
}
