@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --green: #006B3C;
    --green-dark: #004d2c;
    --green-mid: #008249;
    --green-light: #e8f5ee;
    --yellow: #F5A623;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --bg: #ffffff;
    --white: #ffffff;
    --radius: 10px;
    --shadow: 0 1px 4px rgba(0,0,0,0.07), 0 4px 12px rgba(0,0,0,0.05);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
}

/* ── HEADER ── */
.top-header {
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 54px;
    position: sticky;
    top: 0;
    z-index: 200;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-box {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-box span {
    font-size: 9px;
    font-weight: 800;
    color: var(--green);
    letter-spacing: -0.5px;
}

.logo-text {
    color: white;
    line-height: 1.2;
}

.logo-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.logo-text small {
    font-size: 9.5px;
    opacity: 0.75;
    font-weight: 400;
}

.header-actions {
    display: flex;
    gap: 18px;
    align-items: center;
}

.header-actions a {
    color: white;
    font-size: 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* ── HERO ── */
.hero {
    background: linear-gradient(145deg, var(--green-dark) 0%, var(--green-mid) 100%);
    padding: 20px 20px 0 20px;
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}

.hero-tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.hero-body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}

.hero-left { flex: 1; padding-bottom: 20px; }

.hero-left h1 {
    color: white;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
}

.hero-left p {
    color: rgba(255,255,255,0.78);
    font-size: 11.5px;
    line-height: 1.55;
}

.hero-img {
    flex-shrink: 0;
    width: 145px;
    align-self: flex-end;
}

.hero-img img {
    width: 100%;
    display: block;
    object-fit: contain;
    border-radius: 0;
}

/* ── QUICK MENU ── */
.quick-menu {
    background: white;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 14px 8px 10px;
    border-bottom: 1px solid var(--border);
}

.qm-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 6px 4px;
    border-radius: 8px;
    text-decoration: none;
}

.qm-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 1px;
}

.qm-icon.c1 { background: #e6f4ee; color: var(--green); }
.qm-icon.c2 { background: #eaf1ff; color: #1a56db; }
.qm-icon.c3 { background: #fff4e5; color: #c05621; }
.qm-icon.c4 { background: #f0ebff; color: #6b21a8; }

.qm-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    line-height: 1.3;
}

/* ── CONTENT ── */
.content {
    padding: 14px 14px 110px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8f9fa;
}

/* ── CARD ── */
.card {
    background: white;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.card h2 {
    font-size: 14px;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 7px;
}

.card p {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.65;
}

/* ── PROMO BANNER ── */
.promo-banner {
    background: var(--green);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.promo-icon {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: white;
    flex-shrink: 0;
}

.promo-text { color: white; }
.promo-text strong { display: block; font-size: 13px; font-weight: 700; margin-bottom: 1px; }
.promo-text span { font-size: 11px; opacity: 0.82; }

/* ── LINK MORE ── */
.link-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    color: var(--green);
    font-size: 12px;
    font-weight: 600;
    border: 1.5px solid var(--green);
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.link-more:hover, .link-more:active {
    background: var(--green);
    color: white;
}

/* ── SYARAT LIST ── */
.syarat-list {
    list-style: none;
    margin-top: 6px;
}

.syarat-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    font-size: 12.5px;
    color: var(--muted);
    border-bottom: 1px solid #f1f2f4;
}

.syarat-list li:last-child { border-bottom: none; }

.syarat-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.syarat-check i { font-size: 10px; color: white; }

/* ── STEPS ── */
.steps-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 14px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
}

.step-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--green);
    color: white;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-ic {
    font-size: 20px;
    color: var(--green);
    margin-top: 2px;
}

.step-lbl {
    font-size: 9.5px;
    font-weight: 600;
    color: #374151;
    line-height: 1.3;
}

/* ── FORM ── */
.form-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--green);
    text-align: center;
    margin-bottom: 4px;
}

.form-sub {
    font-size: 11.5px;
    color: var(--muted);
    text-align: center;
    margin-bottom: 18px;
    line-height: 1.5;
}

.field {
    margin-bottom: 13px;
}

.field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}

.field input {
    width: 100%;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: 11px 13px;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    color: var(--text);
    background: white;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field input::placeholder { color: #9ca3af; }

.field input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0,107,60,0.1);
}

.btn-submit {
    width: 100%;
    background: var(--green);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 13px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 4px;
    letter-spacing: 0.1px;
    transition: background 0.15s;
}

.btn-submit:active { background: var(--green-dark); }

/* ── BOTTOM CTA ── */
.bottom-cta {
    position: fixed;
    bottom: 56px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    padding: 8px 14px;
    z-index: 100;
    pointer-events: none;
}

.bottom-cta-btn {
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--yellow);
    color: white;
    border: none;
    border-radius: 28px;
    padding: 13px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(245,166,35,0.45);
    letter-spacing: 0.1px;
}

/* ── BOTTOM NAV ── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: white;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid var(--border);
    height: 56px;
    z-index: 200;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 9.5px;
    font-weight: 500;
    color: #9ca3af;
    text-decoration: none;
}

.nav-item.active { color: var(--green); }
.nav-item i { font-size: 20px; }

/* ── LOADER ── */
#loader {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(2px);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 38px;
    height: 38px;
    border: 3px solid rgba(0,107,60,0.15);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── OTP PAGE ── */
.otp-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.otp-box {
    width: 48px;
    height: 54px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: var(--green);
    background: white;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.otp-box:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0,107,60,0.1);
}

/* ── INNER PAGES ── */
.page-wrap {
    padding: 20px 14px 100px;
    background: #f8f9fa;
    min-height: calc(100vh - 54px);
}

.inner-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 20px;
}

.inner-card h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--green);
    text-align: center;
    margin-bottom: 6px;
}

.inner-card .sub {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.6;
}

.icon-circle {
    width: 56px;
    height: 56px;
    background: var(--green-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: var(--green);
}

.card-premium {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px 18px;
    margin-bottom: 14px;
}

.animate-fade-in {
    animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* desktop: center phone frame */
@media (min-width: 520px) {
    body {
        background: #e9ebee;
        box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 8px 32px rgba(0,0,0,0.12);
    }
}
