/* ===== Onesia - Cek Garansi (halaman sistem) ===== */
:root {
  --ok: #16a34a; --ok-bg: #e8f7ee;
  --warn: #d97706; --warn-bg: #fff4e0;
  --bad: #dc2626; --bad-bg: #fdecec;
  --radius: 14px;
}

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 20px;
}
.pill-red { background: #fdecec; color: var(--red); }

/* ----- Hero ----- */
.hero {
  background:
    radial-gradient(900px 340px at 85% -10%, rgba(227,6,19,.10), transparent 70%),
    radial-gradient(700px 300px at 0% 0%, rgba(13,110,253,.06), transparent 70%),
    linear-gradient(#fff, var(--bg));
  padding: 56px 0 40px; text-align: center;
}
.hero-compact { padding: 40px 0 64px; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: 34px; line-height: 1.25; font-weight: 700; margin: 16px 0 10px; }
.hero-lead { color: var(--muted); font-size: 16px; max-width: 560px; margin-bottom: 30px; }

/* ----- Panel ----- */
.panel {
  background: var(--white); width: 100%; max-width: 640px; text-align: left;
  border-radius: var(--radius); border-top: 4px solid var(--red);
  box-shadow: 0 14px 40px rgba(31,45,61,.08); padding: 32px 40px 36px;
}
.panel-form { max-width: 720px; }
.panel-result { max-width: 820px; }
.panel-title { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.panel-sub { color: var(--muted); margin-bottom: 22px; }

/* ----- Steps ----- */
.steps { list-style: none; display: flex; justify-content: center; gap: 0; margin-bottom: 26px; counter-reset: s; }
.steps li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.steps li + li::before { content: ""; width: 36px; height: 2px; background: var(--border); margin: 0 12px; }
.s-num {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: #eef0f3; color: var(--muted); font-size: 12px; flex: none;
}
.steps li.current { color: var(--text); }
.steps li.current .s-num { background: var(--red); color: #fff; box-shadow: 0 0 0 4px rgba(227,6,19,.15); }
.steps li.done { color: var(--text); }
.steps li.done .s-num { background: var(--text); color: #fff; }
.steps li.done + li::before, .steps li.current::before { background: var(--text); }

/* ----- Form ----- */
.label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.label i { color: var(--red); font-style: normal; }
.input-group {
  display: flex; align-items: center; gap: 10px; background: #fff;
  border: 1.5px solid var(--border); border-radius: 10px; padding: 0 14px; transition: border-color .2s, box-shadow .2s;
}
.input-group:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px rgba(227,6,19,.12); }
.input-group.has-error { border-color: var(--bad); }
.ig-icon { color: var(--muted); flex: none; }
.input-group input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; letter-spacing: .5px; padding: 14px 0; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field input {
  width: 100%; font: inherit; font-size: 15px; padding: 12px 14px; background: #fff;
  border: 1.5px solid var(--border); border-radius: 10px; outline: 0; transition: border-color .2s, box-shadow .2s;
}
.field input:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(227,6,19,.12); }
.field input.is-invalid { border-color: var(--bad); }
.field-error { color: var(--bad); font-size: 12.5px; margin-top: 6px; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; }

.hint { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 12.5px; margin-top: 18px; }
.hint svg { flex: none; margin-top: 2px; }

/* ----- Buttons ----- */
.btn { cursor: pointer; border: 0; font-family: inherit; justify-content: center; position: relative; }
.btn-red { background: var(--red); color: #fff; padding: 13px 26px; font-size: 14px; border-radius: 8px; box-shadow: 0 6px 16px rgba(227,6,19,.25); }
.btn-red:hover { background: var(--red-dark); }
.btn-block { width: 100%; margin-top: 16px; }
.btn-outline { border: 1.5px solid var(--border); padding: 12px 22px; border-radius: 8px; }
.btn-wa { background: #25d366; color: #fff; padding: 13px 22px; border-radius: 8px; }
.btn-wa:hover { background: #1fb457; }
.btn-wa img { filter: brightness(0) invert(1); }
.spinner { display: none; width: 16px; height: 16px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading { opacity: .85; pointer-events: none; }

/* ----- Alerts ----- */
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; font-size: 13.5px; }
.alert svg { flex: none; margin-top: 1px; }
.alert strong { display: block; font-size: 14px; }
.alert p { margin-top: 2px; word-break: break-word; }
.alert-ok { background: var(--ok-bg); color: #14532d; }
.alert-warn { background: var(--warn-bg); color: #7c4a03; }
.alert-danger { background: var(--bad-bg); color: #7f1d1d; }
.mono { font-family: Consolas, "SFMono-Regular", Menlo, monospace; letter-spacing: .5px; }

/* ----- Features ----- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 24px 16px 72px; max-width: 1000px; }
.feature { background: #fff; border-radius: var(--radius); padding: 26px 24px; box-shadow: 0 6px 20px rgba(31,45,61,.05); text-align: center; }
.f-icon { width: 52px; height: 52px; border-radius: 14px; background: #fdecec; color: var(--red); display: grid; place-items: center; margin: 0 auto 14px; }
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 13.5px; }

/* ----- Result ----- */
.panel-result.status-active { --c: var(--ok); --cbg: var(--ok-bg); }
.panel-result.status-expiring { --c: var(--warn); --cbg: var(--warn-bg); border-top-color: var(--warn); }
.panel-result.status-expired { --c: var(--bad); --cbg: var(--bad-bg); border-top-color: var(--bad); }
.panel-result.status-active { border-top-color: var(--ok); }

.result-head { display: flex; gap: 18px; align-items: center; padding-bottom: 22px; border-bottom: 1px dashed var(--border); }
.shield { color: var(--c); flex: none; }
.result-head-text { min-width: 0; }
.pill-status { background: var(--cbg); color: var(--c); margin-bottom: 8px; }
.result-head h2 { font-size: 22px; line-height: 1.3; word-break: break-word; }
.result-head .mono { color: var(--muted); font-size: 13px; margin-top: 2px; word-break: break-all; }

.timeline { margin: 24px 0 8px; }
.tl-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); font-weight: 600; gap: 12px; }
.tl-bar { height: 10px; background: #eef0f3; border-radius: 10px; overflow: hidden; margin: 8px 0; }
.tl-fill { height: 100%; width: var(--w, 0%); background: var(--c); border-radius: 10px; animation: fillbar 1.1s cubic-bezier(.2,.8,.2,1); }
@keyframes fillbar { from { width: 0; } }
.tl-note { font-size: 13.5px; color: var(--muted); text-align: center; }
.tl-note strong { color: var(--c); }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0 26px; }
.info { background: #f8f9fb; border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; min-width: 0; }
.info-hl { background: var(--cbg); border-color: transparent; }
.info dt { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 4px; }
.info dd { font-size: 16px; font-weight: 600; word-break: break-word; }
.info dd.accent { color: var(--c); font-size: 20px; }

.result-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .hero { padding: 36px 0 28px; }
  .hero-compact { padding: 24px 0 48px; }
  .hero h1 { font-size: 26px; }
  .hero-lead { font-size: 14.5px; margin-bottom: 22px; }
  .panel { padding: 24px 20px 28px; }
  .features { grid-template-columns: 1fr; padding-bottom: 48px; }
  .steps li + li::before { width: 18px; margin: 0 8px; }
}
@media (max-width: 576px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .s-label { display: none; }
  .steps li.current .s-label { display: inline; }
  .result-head { flex-direction: column; text-align: center; }
  .info-grid { grid-template-columns: 1fr; }
  .result-actions .btn { width: 100%; }
  .tl-top { font-size: 11.5px; }
  .copyright { padding-top: 48px; }
}

@media print {
  .topbar, .navbar, .footer, .to-top, .steps, .result-actions { display: none !important; }
  .hero { background: none; padding: 0; }
  .panel { box-shadow: none; }
  .tl-fill { animation: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ----- Footer ringkas ----- */
.footer-slim { background: #fff; border-top: 1px solid var(--border); font-size: 12px; }
.fs-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 12px; padding-bottom: 12px; max-width: 1400px; }
.fs-logo { height: 26px; width: auto; }
.fs-copy { color: var(--muted); text-align: center; flex: 1; }
.fs-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.fs-links a:hover { color: var(--red); }

/* ----- Desktop: satu layar tanpa scroll ----- */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; display: flex; flex-direction: column; }
main > .hero { flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px 0; }
@media (min-width: 993px) {
  body { height: 100vh; overflow: hidden; }
  .hero-inner { max-height: 100%; }
  .hero h1 { font-size: 30px; margin: 12px 0 6px; }
  .hero-lead { margin-bottom: 20px; font-size: 15px; }
  .panel { padding: 26px 36px 28px; }
  .panel-title { font-size: 20px; }
  .panel-sub { margin-bottom: 16px; }
  .alert { margin-bottom: 14px; padding: 10px 14px; }
  .form-grid { gap: 14px 20px; }
  .result-head { padding-bottom: 14px; }
  .result-head h2 { font-size: 20px; }
  .timeline { margin: 16px 0 4px; }
  .info-grid { margin: 14px 0 18px; }
  .info { padding: 10px 16px; }
  .info dd.accent { font-size: 17px; }
}
@media (max-width: 992px) {
  .footer-slim { padding: 0; }
  .fs-inner { flex-direction: column; text-align: center; gap: 8px; }
  .fs-links { justify-content: center; }
}
