:root {
    --as-bg: #f4f8f6;
    --as-panel: #ffffff;
    --as-ink: #17382e;
    --as-muted: #667a73;
    --as-green: #0c6b4e;
    --as-green-dark: #064735;
    --as-border: #dce9e3;
    --as-shadow: 0 18px 48px rgba(14, 66, 49, .09);
}

.amanah-sim-shell {
    width: min(1000px, calc(100% - 28px));
    margin: 26px auto 64px;
    color: var(--as-ink);
    font-family: inherit;
    font-size: var(--font-paragraf-size, 16px);
}
.amanah-sim-test-banner {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding: 10px 14px;
    border: 1px solid #e8cb66;
    border-radius: 12px;
    color: #674000;
    background: #fff4c7;
    text-align: center;
    font-size: max(11px, calc(var(--font-paragraf-size, 16px) - 2px));
}
.amanah-sim-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 30px;
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 14% 20%, rgba(83, 226, 174, .25), transparent 32%),
        linear-gradient(135deg, #042b21, #0d654c 58%, #073d4b);
    box-shadow: var(--as-shadow);
}
.amanah-sim-hero > div { max-width: 760px; }
.amanah-sim-eyebrow {
    margin: 0 0 7px;
    color: #e4b93f;
    font-size: max(11px, calc(var(--font-paragraf-size, 16px) - 3px));
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.amanah-sim-hero h1,
.amanah-sim-receipt h1 { margin: 0; font-size: var(--h1-size, 30px); line-height: 1.08; }
.amanah-sim-hero p:not(.amanah-sim-eyebrow) { margin: 12px 0 0; color: rgba(255,255,255,.84); line-height: 1.7; }
.amanah-sim-symbol {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 28px;
    background: rgba(255,255,255,.08);
    font-size: 3.25rem;
}
.amanah-sim-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 15px 0 20px; }
.amanah-sim-nav a { padding: 9px 13px; border-radius: 999px; color: var(--as-green-dark); background: #e4f0eb; font-weight: 900; text-decoration: none; }
.amanah-sim-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .8fr); gap: 18px; align-items: start; }
.amanah-sim-form,
.amanah-sim-info,
.amanah-sim-receipt {
    border: 1px solid var(--as-border);
    border-radius: 21px;
    background: var(--as-panel);
    box-shadow: var(--as-shadow);
}
.amanah-sim-form { display: grid; gap: 15px; padding: 22px; }
.amanah-sim-field label { display: block; margin-bottom: 6px; font-weight: 900; }
.amanah-sim-input,
.amanah-sim-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #cadbd3;
    border-radius: 12px;
    color: var(--as-ink);
    background: #fff;
    font: inherit;
}
.amanah-sim-textarea { resize: vertical; line-height: 1.6; }
.amanah-sim-input:focus,
.amanah-sim-textarea:focus { outline: 3px solid rgba(12,107,78,.12); border-color: var(--as-green); }
.amanah-sim-field small { display: block; margin-top: 5px; color: var(--as-muted); font-size: max(11px, calc(var(--font-paragraf-size, 16px) - 3px)); }
.amanah-sim-field small.error,
.amanah-sim-check-error { color: #a0342d; font-weight: 800; }
.amanah-sim-check-row { display: flex; gap: 9px; align-items: flex-start; line-height: 1.5; }
.amanah-sim-checkbox { margin-top: .25em; }
.amanah-sim-check-row.acknowledgement { padding: 12px; border: 1px solid #e4d28c; border-radius: 13px; background: #fff8dc; }
.amanah-sim-submit { min-height: 46px; border: 0; border-radius: 13px; color: #fff; background: var(--as-green); cursor: pointer; font: inherit; font-weight: 900; }
.amanah-sim-submit:hover { background: var(--as-green-dark); }
.amanah-sim-info { padding: 21px; }
.amanah-sim-info h2 { margin: 0 0 13px; font-size: var(--h3-size, 20px); }
.amanah-sim-info ol { margin: 0; padding-left: 1.25em; line-height: 1.75; }
.amanah-sim-safety { margin-top: 18px; padding: 14px; border-radius: 14px; color: #315a4d; background: #eaf4f0; }
.amanah-sim-safety p { margin: 5px 0 0; color: var(--as-muted); line-height: 1.55; }
.amanah-sim-honeypot-wrap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.amanah-sim-error-box { padding: 11px 13px; border-radius: 12px; color: #8b3029; background: #ffe8e5; border: 1px solid #efb6b0; }

.amanah-sim-shell.receipt-page { max-width: 780px; }
.amanah-sim-receipt { padding: 28px; text-align: center; }
.amanah-sim-receipt-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%; color: #fff; background: var(--as-green); font-size: 1.8rem; font-weight: 900; }
.amanah-sim-receipt .lead { max-width: 600px; margin: 12px auto 22px; color: var(--as-muted); line-height: 1.7; }
.amanah-sim-receipt dl { margin: 0; text-align: left; }
.amanah-sim-receipt dl > div { display: grid; grid-template-columns: 175px minmax(0,1fr); gap: 15px; padding: 12px 0; border-bottom: 1px solid #edf2f0; }
.amanah-sim-receipt dt { color: var(--as-muted); font-weight: 800; }
.amanah-sim-receipt dd { margin: 0; overflow-wrap: anywhere; }
.amanah-sim-receipt .status { display: inline-flex; padding: 4px 9px; border-radius: 999px; font-size: max(11px, calc(var(--font-paragraf-size, 16px) - 3px)); font-weight: 900; }
.amanah-sim-receipt .status.pending { color: #6d4800; background: #fff0bd; }
.amanah-sim-receipt .status.paid { color: #0a5d43; background: #d9f5e9; }
.amanah-sim-receipt .status.cancelled,
.amanah-sim-receipt .status.refunded { color: #7c302a; background: #ffe5e2; }
.amanah-sim-balance-note { margin-top: 20px; padding: 13px; border-radius: 13px; color: #654300; background: #fff4ce; line-height: 1.55; }
.amanah-sim-balance-note.success { color: #0b5a42; background: #dff6ec; }
.amanah-sim-balance-note.cancelled { color: #7c302a; background: #ffe5e2; }
.amanah-sim-receipt-actions { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; margin-top: 22px; }
.amanah-sim-receipt-actions a { padding: 10px 14px; border-radius: 12px; color: #fff; background: var(--as-green); text-decoration: none; font-weight: 900; }
.amanah-sim-receipt-actions a.secondary { color: var(--as-green-dark); background: #e4f0eb; }
.amanah-sim-receipt-actions a.manager { color: #725200; background: #fff0bd; }

@media (max-width: 760px) {
    .amanah-sim-layout { grid-template-columns: 1fr; }
    .amanah-sim-symbol { display: none; }
    .amanah-sim-receipt dl > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 480px) {
    .amanah-sim-shell { width: min(100% - 16px, 1000px); margin-top: 12px; }
    .amanah-sim-hero, .amanah-sim-form, .amanah-sim-info, .amanah-sim-receipt { padding: 18px; }
}
