:root {
  --main-blue: #004c97;
  --main-blue-dark: #003366;
  --accent-yellow: #f9c513;
  --bg: #f2f7ff;
  --border: #c9d7f0;
  --ink: #111827;
  --muted: #6b7280;
  --danger: #d64545;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
}

body {
  min-height: 100vh;
  background: radial-gradient(
    circle at top,
    #dbeafe 0,
    var(--bg) 50%,
    var(--bg) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  color: var(--ink);
}

.page {
  width: 100%;
  max-width: 480px;
}

/* HEADER + BANNER */
.hero {
  background: linear-gradient(135deg, var(--main-blue), var(--main-blue-dark));
  border-radius: 20px 20px 0 0;
  padding: 12px 14px 10px;
  color: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.3);
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.hero-logo {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  position: relative;
  overflow: hidden;
}

.hero-logo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 15%, #ffffff 0, transparent 55%);
  opacity: 0.55;
}

.hero-logo span {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 16px;
  font-weight: 700;
}

.hero-sub {
  font-size: 12px;
  opacity: 0.9;
}

.hero-pill {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  display: inline-block;
  margin-bottom: 2px;
}

.hero-slider {
  margin-top: 8px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.hero-slider img {
  display: block;
  width: 100%;
  height: auto;
}

/* CARD MULTI STEP */
.card {
  background: #fff;
  border-radius: 0 0 24px 24px;
  padding: 18px 18px 20px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-top: none;
}

.card-title {
  text-align: center;
  font-size: 20px;
  margin-bottom: 4px;
  color: var(--main-blue-dark);
}

.card-subtitle {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.card-subtitle strong {
  color: var(--accent-yellow);
}

.step-label {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

/* CARD TESTI (TERPISAH) */
.card-testi {
  margin-top: 12px;
  border-radius: 18px;
}

/* STEPPER */
.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.step-circle {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  background: #fff;
  flex-shrink: 0;
}

.step-circle.active {
  border-color: var(--main-blue);
  background: var(--main-blue);
  color: #fff;
  font-weight: 600;
}

.step-circle.done {
  border-color: var(--main-blue);
  background: var(--main-blue);
  color: #fff;
}

.step-line {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: #e2e8f0;
  margin: 0 2px;
  overflow: hidden;
}

.step-line-inner {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-yellow), var(--main-blue));
  transition: width 0.25s ease;
}

.progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-bar-inner {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-yellow), var(--main-blue));
  transition: width 0.25s ease;
}

/* STEP CONTENT */
.step {
  display: none;
}
.step.active {
  display: block;
}

.form-group {
  margin-bottom: 10px;
}

label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

input[type="text"],
input[type="tel"],
input[type="age"],
input[type="date"],
select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 9px 10px;
  font-size: 14px;
  outline: none;
  transition:
    border 0.15s ease,
    box-shadow 0.15s ease;
  background: #f9fafb;
}

input:focus,
select:focus {
  border-color: var(--main-blue);
  box-shadow: 0 0 0 1px rgba(0, 76, 151, 0.24);
  background: #fff;
}

input.is-invalid,
select.is-invalid {
  border-color: var(--muted) !important;
  box-shadow: 0 0 0 1px rgba(214, 69, 69, 0.3) !important;
  background: #fff5f5 !important;
}

.hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.note-box {
  font-size: 11px;
  color: var(--muted);
  background: #f3f4ff;
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 10px;
  border: 1px dashed rgba(0, 76, 151, 0.35);
}

.error {
  font-size: 12px;
  color: var(--danger);
  margin-bottom: 8px;
  display: none;
}

.btn-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.btn {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 11px 12px;
  font-size: 18px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn-primary {
  background: #0088cc;
  color: #fff;
}

.btn-secondary {
  background: #e5e7eb;
  color: #374151;
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn-loading {
  position: relative;
  pointer-events: none;
}

.btn-loading::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-top-color: transparent;
  margin-left: 8px;
  display: inline-block;
  animation: spin 0.7s linear infinite;
}

.btn svg {
  width: 16px;
  height: 16px;
  margin-right: 6px;
}

.otp-inputs {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.otp-inputs input {
  width: 40px;
  height: 40px;
  text-align: center;
  font-size: 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f9fafb;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* SUMMARY */
.summary-box {
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: #f9fafb;
  padding: 14px 14px 10px;
  margin-top: 8px;
}

.summary-title {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 16px;
}

.summary-row {
  font-size: 13px;
  margin-bottom: 4px;
}

.summary-label {
  font-weight: 600;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  background: var(--main-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto 10px;
  color: #fff;
  font-size: 40px;
  box-shadow: 0 12px 30px rgba(0, 76, 151, 0.5);
}

.success-title {
  text-align: center;
  color: var(--main-blue-dark);
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 18px;
}

.success-text {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.external-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 999px;
  background: var(--accent-yellow);
  color: #1f2937;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* TESTIMONI */
.testi-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--main-blue-dark);
  text-align: left;
  margin-bottom: 4px;
}

.testi-note {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
  margin-top: 2px;
}

.testi-card {
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.testi-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
  font-size: 12px;
}

.testi-name {
  font-weight: 600;
  color: #111827;
}

.testi-time {
  font-size: 11px;
  color: var(--muted);
}

.testi-text {
  font-size: 12px;
  color: #374151;
  margin-bottom: 4px;
}

.testi-meta {
  font-size: 11px;
  color: var(--muted);
}

/* FOOTER */
footer {
  margin-top: 16px;
  padding: 14px 16px 10px;
  border-radius: 18px;
  background: #0f172a;
  color: #e5e7eb;
  font-size: 11px;
  text-align: center;
}

footer p {
  margin-bottom: 4px;
}
footer strong {
  color: #f9fafb;
}

@media (min-width: 640px) {
  body {
    padding-top: 32px;
  }
}
