:root {
  --emerald-deep: #05392c;
  --gold: #e6c879;
  --gold-soft: #f4dfa8;
  --glass: rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.28);
  --text: #f4fbf7;
  --muted: rgba(244, 251, 247, 0.72);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 12%, #126b52 0%, transparent 45%),
    radial-gradient(circle at 88% 28%, #0a4d3a 0%, transparent 48%),
    linear-gradient(145deg, #063c2e 0%, #0a5c45 50%, #06382b 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Motif geometris Islami halus */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.28' stroke-width='1'%3E%3Cpath d='M48 8 L57 27 L76 20 L69 39 L88 48 L69 57 L76 76 L57 69 L48 88 L39 69 L20 76 L27 57 L8 48 L27 39 L20 20 L39 27 Z'/%3E%3Ccircle cx='48' cy='48' r='11'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 96px 96px;
  opacity: 0.5;
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); }
.orb--1 { width: 420px; height: 420px; background: #25d366; top: -140px; left: -120px; opacity: 0.28; }
.orb--2 { width: 380px; height: 380px; background: var(--gold); bottom: -160px; right: -90px; opacity: 0.18; }
.orb--3 { width: 300px; height: 300px; background: #0fb981; top: 45%; left: 62%; opacity: 0.14; }

.page {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: clamp(32px, 7vw, 72px) 0 48px;
}

/* Header */
.hero { text-align: center; margin-bottom: 28px; }
.hero__ornament {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: var(--gold); font-size: 16px; margin-bottom: 14px;
}
.hero__ornament::before, .hero__ornament::after {
  content: ""; height: 1px; width: 64px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.hero__ornament::after { transform: scaleX(-1); }
.basmalah {
  font-family: "Amiri", serif;
  font-size: clamp(20px, 4vw, 28px);
  color: var(--gold-soft);
  margin: 0 0 10px;
}
.hero h1 {
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.hero h1 span { display: block; color: var(--gold-soft); font-weight: 600; }
.hero__subtitle { color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 520px; margin: 12px auto 0; }

/* Kartu glass ala macOS */
.glass-card {
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.30);
  padding: clamp(20px, 4vw, 36px);
}

.card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.eyebrow { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.card-head h2 { margin: 0; font-size: 20px; font-weight: 700; }

/* Grid & field */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field--full { grid-column: 1 / -1; }
.field label:not(.file-drop) {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.92);
}
.required { color: #ffb4a8; }
.tag {
  font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  color: var(--gold-soft); background: rgba(230, 200, 121, 0.16);
  border: 1px solid rgba(230, 200, 121, 0.28);
}

.icon {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .icon { position: absolute; left: 14px; color: rgba(255, 255, 255, 0.65); pointer-events: none; }
.input-wrap .icon--top { top: 16px; align-self: flex-start; }
.input-wrap input, .input-wrap textarea {
  width: 100%;
  padding: 13px 14px 13px 44px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  font: inherit; font-size: 14px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.input-wrap textarea { resize: vertical; min-height: 96px; padding-top: 14px; line-height: 1.5; }
.input-wrap input::placeholder, .input-wrap textarea::placeholder { color: rgba(255, 255, 255, 0.5); }
.input-wrap input:focus, .input-wrap textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 3px rgba(230, 200, 121, 0.20);
}
.input-wrap input[readonly] { color: var(--gold-soft); font-weight: 600; cursor: default; }
.hint { display: block; margin-top: 6px; font-size: 11px; color: rgba(255, 255, 255, 0.55); }

/* Upload KTP */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.file-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; min-height: 150px; padding: 18px; text-align: center;
  border: 1.5px dashed rgba(255, 255, 255, 0.40);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.file-drop:hover, .file-drop.is-dragover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--gold);
}
.file-placeholder { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.file-icon { width: 34px; height: 34px; color: var(--gold-soft); }
.file-title { font-size: 14px; font-weight: 600; }
.file-subtitle { font-size: 11px; color: rgba(255, 255, 255, 0.6); }
.file-preview {
  max-width: 100%; max-height: 220px; object-fit: contain;
  border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.30);
}
.file-name { margin: 8px 2px 0; font-size: 12px; color: var(--gold-soft); word-break: break-all; }
.file-name.is-error { color: #ffb4a8; }

/* Aksi */
.actions { margin-top: 26px; }
.status {
  display: flex; align-items: flex-start; gap: 8px; min-height: 18px;
  margin: 0 0 14px; font-size: 12px; color: var(--muted);
}
.status .icon { width: 16px; height: 16px; margin-top: 1px; }
.status.is-ready { color: #b9f6d0; }
.status.is-error { color: #ffb4a8; }

.send-button {
  width: 100%;
  padding: 15px 20px;
  border: 0; border-radius: 14px;
  font: inherit; font-size: 15px; font-weight: 700;
  transition: transform 0.15s, background 0.25s, box-shadow 0.25s;
}
.send-button:disabled {
  background: linear-gradient(180deg, #aeb7b3, #8e9893);
  color: rgba(255, 255, 255, 0.85);
  cursor: not-allowed;
  box-shadow: none;
}
.send-button:not(:disabled) {
  background: linear-gradient(180deg, #2bade8, #1e93d0);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(34, 158, 217, 0.32);
}
.send-button:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(34, 158, 217, 0.42); }
.send-button:not(:disabled):active { transform: translateY(0); }
.send-button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.send-note { text-align: center; margin: 10px 0 0; font-size: 11px; color: rgba(255, 255, 255, 0.6); }
.footer-note { text-align: center; margin: 22px 0 0; font-size: 11px; color: rgba(255, 255, 255, 0.5); }

@media (max-width: 620px) {
  .page { width: min(100% - 24px, 760px); padding-top: 32px; }
  .grid { grid-template-columns: 1fr; }
  .glass-card { border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
