:root {
  --ink: #1b2b4b;
  --ink-2: #2d3d63;
  --rose: #b83b5e;
  --rose-dark: #962f4c;
  --rose-soft: #fbeef2;
  --text: #1f2937;
  --muted: #667085;
  --line: #dfe3ea;
  --line-strong: #c9cfda;
  --soft: #f5f6f9;
  --bg: #f4f1f3;
  --white: #ffffff;
  --error: #b42318;
  --error-bg: #fef3f2;
  --ok: #16804b;
  --ok-soft: #ecf8f1;
  --amber: #92400e;
  --amber-bg: #fff8eb;
  --amber-line: #f5d08a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(27, 43, 75, 0.05), 0 8px 24px rgba(27, 43, 75, 0.06);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.55;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

a { color: var(--rose); text-underline-offset: 2px; }
a:hover { color: var(--rose-dark); }

.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ------------------------------------------------------------------ Header */

.site-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1b2b4b 0%, #2a2552 55%, #5a2a4c 100%);
  color: var(--white);
  padding: 28px 0 84px;
}
.site-header::after {
  /* soft rose glow in the corner */
  content: "";
  position: absolute;
  right: -120px;
  top: -140px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 121, 160, 0.35), transparent 65%);
  pointer-events: none;
}
.site-header .wrap { position: relative; z-index: 1; }

.logo { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.logo-mark { width: 36px; height: 36px; flex: none; }
.brand {
  margin: 0 0 4px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f7b6c9;
}
.logo .brand { margin: 0; font-size: 0.95rem; color: var(--white); letter-spacing: 0.04em; }
.logo .brand span { color: #f7b6c9; }

.site-header h1 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 6vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.lede { margin: 0; color: #d9deeb; max-width: 60ch; }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #eef1f8;
}
.trust svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #f7b6c9;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------------------------------------------------- Progress (sticky) */

.progress {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-top: -56px;
  padding: 10px 0 0;
}
.progress .wrap {
  padding-top: 0;
}
.progress ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  margin: 0;
  padding: 10px 6px 8px;
  list-style: none;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 6px 18px rgba(27, 43, 75, 0.08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.progress a {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}
.progress a:hover { color: var(--ink); }
.progress a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.progress .dot {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--white);
  color: var(--muted);
  font-size: 0.8rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.progress li.done .dot {
  border-color: var(--ok);
  background: var(--ok);
  color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17l9-10'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}
.progress li.done a { color: var(--ok); }
.progress-bar {
  height: 4px;
  background: var(--line);
  border-radius: 0 0 4px 4px;
  overflow: hidden;
}
.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--rose), #e0708f);
  transition: width 0.3s ease;
}
@media (min-width: 640px) {
  .progress a { flex-direction: row; justify-content: center; gap: 8px; font-size: 0.85rem; }
}

main.wrap { padding-top: 18px; padding-bottom: 40px; }

/* ------------------------------------------------------------------- Cards */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  scroll-margin-top: 90px;
}
@media (min-width: 640px) { .card { padding: 30px 32px; } }

.card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 1.15rem;
  color: var(--ink);
}
.card-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.card-head h2 { margin: 2px 0 2px; }
.card-head .hint { margin: 0; }
.step {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--rose-soft);
  color: var(--rose);
  font-weight: 800;
  font-size: 0.95rem;
  flex: none;
}
.hint { margin: -8px 0 16px; color: var(--muted); font-size: 0.9rem; }

/* ------------------------------------------------------------- Disclaimer */

.disclaimer {
  display: flex;
  gap: 14px;
  padding: 18px 18px;
  margin-bottom: 16px;
  border: 1px solid var(--amber-line);
  border-radius: var(--radius);
  background: var(--amber-bg);
  color: #5b3a12;
  font-size: 0.93rem;
}
.disclaimer h2 { margin: 0 0 6px; font-size: 1rem; color: var(--amber); }
.disclaimer p { margin: 0 0 8px; }
.disclaimer p:last-child { margin-bottom: 0; }
.disclaimer-icon {
  width: 24px;
  height: 24px;
  flex: none;
  margin-top: 1px;
  fill: none;
  stroke: #c2780b;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ------------------------------------------------------------------ Fields */

.field { margin-bottom: 18px; min-width: 0; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

label, .label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

input[type="text"], input[type="tel"], input[type="url"], input[type="password"], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 16px; /* prevents iOS zoom on focus */
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder, textarea::placeholder { color: #a0a7b4; }
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
textarea { resize: vertical; min-height: 92px; }
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  cursor: pointer;
}
select:invalid { color: #a0a7b4; }
select option { color: var(--text); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(184, 59, 94, 0.14);
}
.invalid input, .invalid select, .invalid textarea, .invalid .dropzone { border-color: var(--error); }
.invalid input:focus, .invalid select:focus, .invalid textarea:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.12); }

.error {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin: 6px 0 0;
  color: var(--error);
  font-size: 0.85rem;
}
.error::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b42318' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v6M12 16.5v.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.error:empty { display: none; }

/* ----------------------------------------------------------------- Uploads */

.upload-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .upload-grid { grid-template-columns: 1fr 1fr; } }
.upload .dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 190px;
  padding: 16px;
  border: 2px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--soft);
  text-align: center;
  cursor: pointer;
  font-weight: 400;
  color: var(--muted);
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s;
}
.upload .dropzone:hover { border-color: var(--rose); background: var(--rose-soft); }
.upload:focus-within .dropzone { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(27, 43, 75, 0.12); }
.dz-icon {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: var(--rose);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dz-text { font-size: 0.9rem; line-height: 1.45; }
.dz-text strong { color: var(--rose); font-size: 1rem; }
.preview { max-width: 100%; max-height: 220px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.upload.has-file .dropzone { border-style: solid; border-color: var(--ok); background: var(--ok-soft); }
.upload.has-file .dz-icon { display: none; }
.file-name {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--ok);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.file-name::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316804b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12.5 2.5 2.5L16 9.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.file-name:empty { display: none; }
.pdf-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--rose);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.pdf-name { display: block; color: var(--ink); overflow-wrap: anywhere; }

.tips {
  display: grid;
  gap: 6px 16px;
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--soft);
  list-style: none;
  font-size: 0.87rem;
  color: var(--text);
}
@media (min-width: 640px) { .tips { grid-template-columns: 1fr 1fr; } }
.tips li { display: flex; gap: 8px; align-items: flex-start; }
.tips li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.tips .ok::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316804b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17l9-10'/%3E%3C/svg%3E");
}
.tips .no::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b42318' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- Consents */

.check {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 4px 12px;
  padding: 14px;
  margin-bottom: 10px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.15s, background 0.15s;
}
.check:hover { border-color: var(--line-strong); }
.check:has(input:checked) { border-color: var(--ok); background: var(--ok-soft); }
.check.invalid { border-color: var(--error); background: var(--error-bg); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--rose); cursor: pointer; }
.check label { margin: 0; font-weight: 400; color: var(--text); cursor: pointer; }
.check .error { grid-column: 2; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------------ Alerts */

.alert {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #fecdca;
  border-left: 4px solid var(--error);
  border-radius: 10px;
  background: var(--error-bg);
  color: var(--error);
  font-weight: 600;
  scroll-margin-top: 100px;
}

/* ------------------------------------------------------------------ Submit */

.submit-area { margin-top: 8px; }
.submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 15px 20px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rose), #a3304f);
  color: var(--white);
  font: inherit;
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(184, 59, 94, 0.28);
  transition: transform 0.1s, box-shadow 0.15s, filter 0.15s;
}
.submit:hover { filter: brightness(1.05); box-shadow: 0 10px 24px rgba(184, 59, 94, 0.34); }
.submit:active { transform: translateY(1px); }
.submit:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.submit[disabled] { opacity: 0.8; cursor: progress; box-shadow: none; }
.submit .lock {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.submit[disabled] .lock { display: none; }
.spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.submit[disabled] .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }

.fineprint { text-align: center; color: var(--muted); font-size: 0.82rem; margin: 12px 0 0; }

/* ----------------------------------------------------------------- Success */

.success { text-align: center; padding: 40px 22px; margin-top: 8px; }
.success h2 { justify-content: center; font-size: 1.4rem; margin-bottom: 8px; }
.success-icon {
  display: inline-grid;
  place-items: center;
  width: 64px; height: 64px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--ok-soft);
  box-shadow: 0 0 0 8px rgba(22, 128, 75, 0.06);
}
.success-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--ok);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.receipt {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px 16px;
  max-width: 460px;
  margin: 22px auto;
  padding: 16px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--soft);
  text-align: left;
}
.receipt dt { color: var(--muted); font-size: 0.88rem; }
.receipt dd { margin: 0; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.ref-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#success-ref { font-size: 1.15rem; letter-spacing: 0.03em; font-variant-numeric: tabular-nums; }
.copy-btn {
  padding: 5px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.copy-btn:hover { border-color: var(--ink); }
.copy-btn.copied { border-color: var(--ok); color: var(--ok); }
.next-steps {
  max-width: 460px;
  margin: 0 auto 16px;
  padding: 0;
  list-style: none;
  counter-reset: next;
  text-align: left;
}
.next-steps li {
  position: relative;
  padding: 0 0 14px 40px;
  counter-increment: next;
  color: var(--text);
  font-size: 0.93rem;
}
.next-steps li::before {
  content: counter(next);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--rose-soft);
  color: var(--rose);
  font-weight: 700;
  font-size: 0.82rem;
}
.success .hint { margin: 0; }

/* ------------------------------------------------------------------ Footer */

.site-footer { padding: 8px 0 36px; color: var(--muted); font-size: 0.85rem; text-align: center; }
.site-footer p { margin: 0; }

/* ----------------------------------------------------- Terms & setup pages */

.doc { padding-top: 24px; margin-top: -48px; position: relative; }
.doc h2 { font-size: 1.05rem; margin: 24px 0 8px; color: var(--ink); }
.doc h2:first-child { margin-top: 0; }
.doc ul { padding-left: 22px; }
.doc .notice {
  padding: 12px 14px;
  border: 1px solid var(--amber-line);
  border-radius: 10px;
  background: var(--amber-bg);
  color: var(--amber);
  font-size: 0.9rem;
}
.doc code { padding: 1px 5px; border-radius: 4px; background: var(--soft); font-size: 0.9em; overflow-wrap: anywhere; }
.doc textarea[readonly] { font-family: ui-monospace, Consolas, monospace; font-size: 0.85rem; }
.upload.invalid .dropzone { border-color: var(--error); background: var(--error-bg); }

/* ------------------------------------------------------------ Terms page */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: -6px 0 14px;
  color: #f7b6c9;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}
.back-link:hover { color: var(--white); }
.back-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.terms { margin-top: -60px; position: relative; padding-top: 0; }
.terms .card-head { align-items: center; margin-bottom: 12px; }
.terms .card-head h2 { margin: 0; }
.term p { margin: 0 0 12px; }
.term p:last-child { margin-bottom: 0; }

.glance {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow);
}
@media (min-width: 640px) { .glance { grid-template-columns: repeat(4, 1fr); } }
.glance-item { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--white); }
.glance-label { color: var(--muted); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.glance-value { color: var(--rose); font-size: 1.45rem; font-weight: 800; line-height: 1.2; }
.glance-value small { color: var(--ink); font-size: 0.8rem; font-weight: 600; }

.penalties { width: 100%; margin: 4px 0 14px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.penalties th { padding: 10px 14px; background: var(--soft); color: var(--muted); font-size: 0.78rem; text-align: left; text-transform: uppercase; letter-spacing: 0.04em; }
.penalties td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.penalties .amount { width: 34%; color: var(--rose); font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.penalties .amount span { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 600; white-space: normal; }

.paunawa {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid var(--amber-line);
  border-radius: var(--radius);
  background: var(--amber-bg);
  color: #5b3a12;
}
.paunawa h2 { margin: 0 0 8px; font-size: 1.05rem; color: var(--amber); }
.paunawa p { margin: 0 0 10px; }
.paunawa p:last-child { margin-bottom: 0; }
.paunawa-icon { width: 24px; height: 24px; flex: none; fill: none; stroke: #c2780b; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

  display: grid;
  grid-template-columns: 1fr;
  gap: 22px 28px;
  max-width: none;
  margin: 4px 0;
}

.terms-actions { margin-top: 8px; }
a.submit { text-decoration: none; }
a.submit:hover { color: var(--white); }

/* ------------------------------------------------------ Loan amount */

.money { position: relative; }
.money-prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
  pointer-events: none;
}
.money input { padding-left: 34px; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.field-help { margin: 6px 0 0; color: var(--muted); font-size: 0.84rem; }

/* ------------------------------------------------------ Live camera */

button.dropzone { width: 100%; font: inherit; }
.live-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--rose-soft);
  color: var(--rose);
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: 1px;
}
body.camera-open { overflow: hidden; }
.camera {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(10, 16, 32, 0.82);
}
.camera[hidden] { display: none; }
.camera-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  max-height: 100%;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.camera-head { display: flex; align-items: center; justify-content: space-between; }
.camera-head h2 { margin: 0; font-size: 1.05rem; color: var(--ink); }
.camera-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  cursor: pointer;
}
.camera-close svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.camera-view {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #0b1224;
  aspect-ratio: 3 / 4;
  max-height: 62vh;
}
.camera-view video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* mirrored only for the selfie (see .camera--selfie below) */
}
.camera-guide { position: absolute; inset: 0; pointer-events: none; }
/* Face oval with a large ID frame directly below it (held under the chin,
   close to the camera) so both the face and the ID text are readable. */
.camera--selfie .camera-guide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3%;
  padding: 4% 0;
}
.guide-face {
  width: 40%;
  max-height: 46%;
  aspect-ratio: 0.8;
  border: 2.5px dashed rgba(255, 255, 255, 0.85);
  border-radius: 50%;
}
.guide-id {
  width: 76%;
  max-height: 42%;
  aspect-ratio: 1.586;
  display: grid;
  place-items: center;
  border: 3px dashed rgba(247, 182, 201, 0.95);
  border-radius: 12px;
  color: rgba(247, 182, 201, 0.95);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.camera-status {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  font-size: 0.85rem;
  white-space: nowrap;
}
.camera-status[hidden] { display: none; }
.camera-tip { margin: 0; color: var(--muted); font-size: 0.88rem; text-align: center; }
.camera-shoot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  background: var(--rose);
  color: var(--white);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}
.camera-shoot:hover { background: var(--rose-dark); }
.camera-shoot[disabled] { opacity: 0.6; cursor: progress; }
.shutter { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--white); box-shadow: inset 0 0 0 2px var(--rose); background: var(--white); }
@media (max-width: 520px) {
  .camera { padding: 0; place-items: stretch; }
  .camera-panel { max-width: none; border-radius: 0; height: 100%; }
  .camera-view { flex: 1; max-height: none; aspect-ratio: auto; }
}

.optional { color: var(--muted); font-weight: 400; font-size: 0.85rem; }

/* ------------------------------------------------ Facebook link or screenshot */

.fb-intro { margin: -2px 0 10px; }
.fb-help {
  margin: 8px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--soft);
  font-size: 0.88rem;
}
.fb-help summary { color: var(--rose); font-weight: 600; cursor: pointer; }
.fb-help ol { margin: 8px 0 2px; padding-left: 20px; }
.fb-help li { margin-bottom: 4px; }
.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.upload .dropzone.dropzone-compact { min-height: 120px; flex-direction: row; gap: 14px; text-align: left; justify-content: flex-start; padding: 14px 18px; }
.dropzone-compact .dz-icon { width: 40px; height: 40px; flex: none; }
.dropzone-compact .preview { max-height: 180px; margin: 0 auto; }
.fb-upload .error:empty { display: none; }

/* ------------------------------------------------------------ Notes */

.note-box {
  display: flex;
  gap: 12px;
  margin: 6px 0 0;
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.note-box ul { margin: 6px 0 0; padding-left: 18px; }
.note-box li { margin-bottom: 5px; }
.note-box li:last-child { margin-bottom: 0; }
.note-title { margin: 0; font-weight: 700; }
.note-icon { width: 22px; height: 22px; flex: none; margin-top: 1px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.note-important { background: #eef4ff; border: 1px solid #c7d7fe; color: #1e3a8a; }
.note-important .note-title { color: #1e3a8a; }
.note-important .note-icon { stroke: #2f5bd3; }
.note-safety { margin: 0 0 16px; background: var(--white); border: 1.5px solid var(--line); color: var(--text); box-shadow: var(--shadow); }
.note-safety .note-title { color: var(--ink); }
.note-safety .note-icon { stroke: var(--ok); }
.soft-warning {
  margin: -4px 0 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--amber-bg);
  border: 1px solid var(--amber-line);
  color: #7a4a0c;
  font-size: 0.86rem;
}
.soft-warning[hidden] { display: none; }
.tips + .tips { margin-top: 10px; }
.money input::placeholder { font-weight: 400; font-size: 1rem; color: #a0a7b4; }

/* Camera modes: ID (back camera, card frame) vs selfie (front camera, mirrored) */
.camera--selfie .camera-view video { transform: scaleX(-1); }
.guide-card {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  aspect-ratio: 1.586;
  display: grid;
  place-items: end center;
  padding-bottom: 8px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(10, 16, 32, 0.35);
}
.guide-card span {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
}
.camera--id .guide-face, .camera--id .guide-id { display: none; }
.camera--selfie .guide-card { display: none; }
.camera-only-note { margin: 12px 0 0; }
