/* Divas Solutions — customer payment page (colours match the Divas Solutions website) */
:root {
  --navy: #101b35;
  --blue: #315efb;
  --blue-dark: #2149d8;
  --blue-soft: #edf1ff;
  --ink: #172033;
  --muted: #647087;
  --bg: #f6f8fc;
  --line: #e7ebf2;
  --danger: #d92d20;
  --ok: #1aa779;
  --ok-soft: #e7f7f1;
  --radius: 9px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: radial-gradient(circle at 80% 8%, #dce5ff 0, transparent 34%), linear-gradient(135deg, #f7f9ff, #fff 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
#root { min-height: 100vh; display: flex; flex-direction: column; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
code { font-family: var(--mono); font-size: 0.88em; background: rgba(0, 0, 0, .05); padding: 1px 5px; border-radius: 4px; }

.testbar {
  background: #fff3cd; color: #7a5a00;
  font-size: 12.5px; font-weight: 600; text-align: center;
  padding: 6px 12px;
}

/* ---------- Header ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner {
  width: min(1120px, 92%); margin: 0 auto; height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { text-decoration: none !important; }
.wordmark { font-size: 23px; font-weight: 800; color: var(--navy); letter-spacing: -0.7px; }
.wordmark span { color: var(--blue); }
.secure-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: #45516a;
  border: 1px solid var(--line); background: #fff;
  padding: 5px 11px 5px 9px; border-radius: 999px;
}
.secure-pill svg { width: 15px; height: 15px; fill: none; stroke: var(--ok); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Layout ---------- */
.layout {
  flex: 1; width: min(1120px, 92%); margin: 0 auto;
  padding: 64px 0 72px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 64px; align-items: start;
}
.intro { padding-top: 8px; }

.eyebrow {
  margin: 0; color: var(--blue);
  font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
}
h1 {
  margin: 14px 0 16px; color: var(--navy);
  font-size: clamp(36px, 4.6vw, 54px); line-height: 1.1; letter-spacing: -2px; font-weight: 800;
}
h1 span { color: var(--blue); }
.lead { margin: 0 0 32px; font-size: 18px; color: var(--muted); max-width: 32em; }

.steps { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 14px; max-width: 34em; }
.steps li {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border-left: 3px solid var(--blue); border-radius: 0 12px 12px 0;
  padding: 14px 16px;
}
.steps li > span {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: var(--blue); background: var(--blue-soft);
}
.steps strong { display: block; font-weight: 700; font-size: 15px; color: var(--navy); }
.steps div { color: var(--muted); font-size: 14px; line-height: 1.5; }

.notice {
  background: #fff; border: 1px solid var(--line); border-radius: 15px;
  padding: 16px 18px; font-size: 14px; color: var(--muted); max-width: 34em;
}
.notice strong { color: var(--navy); }
.notice .contact { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-weight: 600; }

/* ---------- Card + form ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px;
  box-shadow: 0 22px 60px rgba(29, 43, 80, .08);
}
.card-head { margin-bottom: 20px; }
.card-head h2 { margin: 0; font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: -0.4px; }
.card-head p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset:disabled { opacity: .75; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

.field { min-width: 0; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }

input {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: #fff;
  border: 1px solid #dce2ec; border-radius: var(--radius);
  padding: 0 13px; height: 46px; outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
input::placeholder { color: #a3acbd; }
input:hover { border-color: #c5cddb; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49, 94, 251, .15); }
[aria-invalid="true"] { border-color: var(--danger) !important; background-color: #fffbfa; }
[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(217, 45, 32, .12); }

.amount { position: relative; }
.amount span {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-weight: 600; font-size: 18px; pointer-events: none;
}
.amount input { height: 54px; padding-left: 34px; font-size: 20px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }

.err { margin: 4px 0 10px; font-size: 12.5px; line-height: 1.35; color: var(--danger); }
.err:empty { margin: 0 0 14px; }

.alert { border-radius: 12px; padding: 12px 14px; font-size: 14px; margin: 4px 0 0; }
.card > .alert { margin: 0 0 18px; }
.alert-error { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }
.alert-warn { background: #fff7e6; color: #7a5a00; border: 1px solid #f5e0a8; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; width: 100%; height: 52px;
  border: 0; border-radius: 10px; background: var(--blue); color: #fff;
  font: inherit; font-size: 16px; font-weight: 700;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 8px 20px rgba(49, 94, 251, .28);
  transition: background .15s, transform .05s, box-shadow .15s;
}
.btn:hover { background: var(--blue-dark); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(49, 94, 251, .35); outline-offset: 2px; }
.btn:disabled { background: #cfd6e4; box-shadow: none; cursor: not-allowed; }
.pay-form .btn { margin-top: 16px; }
.btn.is-loading { pointer-events: none; background: var(--blue-dark); }

.spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.btn.is-loading .spinner, .spinner.dark { display: inline-block; }
.spinner.dark { width: 26px; height: 26px; border-color: var(--line); border-top-color: var(--blue); }
@keyframes spin { to { transform: rotate(360deg); } }

.btn-ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); box-shadow: none; height: 44px; font-size: 14.5px; font-weight: 600; }
.btn-ghost:hover { background: var(--bg); }

.methods {
  margin: 12px 0 0; display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12.5px; color: var(--muted); text-align: center;
}
.methods svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.agree { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }

/* ---------- Thank-you page ---------- */
.thanks {
  flex: 1; width: min(560px, 92%); margin: 0 auto; padding: 72px 0;
  display: flex; align-items: center;
}
.thanks .card { width: 100%; text-align: center; padding: 44px 32px; }
.thanks h1 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -1px; margin: 4px 0 8px; }
.thanks .lead { margin: 0 auto 28px; font-size: 17px; }
.thanks .btn { width: auto; padding: 0 30px; text-decoration: none; }
.tick {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--ok-soft); display: grid; place-items: center;
  animation: pop .35s cubic-bezier(.2, 1.4, .4, 1);
}
.tick svg { width: 32px; height: 32px; fill: none; stroke: var(--ok); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #c0cbe0; }
.footer-inner {
  width: min(1120px, 92%); margin: 0 auto; padding: 22px 0 26px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  font-size: 13px;
}
.footer p { margin: 0; }
.footer strong { color: #fff; }
.footer a { color: #c0cbe0; }
.footer a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; gap: 24px; padding: 32px 0 48px; max-width: 560px; }
  .steps, .notice { display: none; }
  .lead { margin-bottom: 0; font-size: 16px; }
}
@media (max-width: 520px) {
  body { font-size: 14.5px; }
  .topbar-inner { height: 62px; }
  .wordmark { font-size: 20px; }
  .secure-pill { font-size: 11.5px; padding: 4px 9px 4px 7px; }
  .layout { padding: 22px 0 36px; gap: 18px; width: calc(100% - 28px); }
  h1 { font-size: 31px; letter-spacing: -1px; margin: 8px 0 10px; }
  .card { padding: 20px 16px; border-radius: 16px; }
  .row2 { grid-template-columns: 1fr; }
  input { font-size: 16px; } /* stops iOS zoom on focus */
  .thanks { padding: 36px 0; width: calc(100% - 28px); }
  .thanks .card { padding: 32px 20px; }
  .footer-inner { flex-direction: column; padding: 18px 0; }
}

/* ---------- Full-screen wait screen (payment being prepared / confirmed) ---------- */
.pay-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 20px calc(24px + env(safe-area-inset-bottom, 0px));
  background: rgba(16, 27, 53, .55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: overlay-in .15s ease-out;
}
.pay-overlay-card {
  width: min(360px, 100%); padding: 30px 24px 26px; text-align: center; outline: none;
  background: #fff; border-radius: 18px; box-shadow: 0 24px 70px rgba(0, 0, 0, .25);
}
.overlay-spinner {
  display: inline-block; width: 46px; height: 46px; border-radius: 50%;
  border: 4px solid var(--blue-soft); border-top-color: var(--blue);
  animation: spin .8s linear infinite;
}
.overlay-title { margin: 16px 0 6px; font-size: 18px; font-weight: 800; color: var(--navy); }
.overlay-text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
@keyframes overlay-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .overlay-spinner { animation-duration: 2s; }
  .pay-overlay { animation: none; }
}

/* ---------- KYC page ---------- */
.kyc-main { flex: 1; width: min(640px, 92%); margin: 0 auto; padding: 40px 0 56px; }
.kyc-paid {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 12px 16px;
  background: var(--ok-soft); border: 1px solid #bfe8d8; border-radius: 14px; color: #0b6b4d; font-size: 14px;
}
.kyc-paid strong { display: block; font-size: 15px; }
.kyc-paid-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.kyc-paid-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--ok); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.kyc-card h1 { margin: 0; font-size: 24px; letter-spacing: -0.5px; }
.kyc-section { margin: 6px 0 2px; font-size: 16px; font-weight: 800; color: var(--navy); }
.kyc-hint { margin: 4px 0 12px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.file-field .kyc-hint { margin: 6px 0 0; }
.optional { font-weight: 500; color: var(--muted); }

.file-field input[type="file"] { height: auto; padding: 8px; font-size: 14px; cursor: pointer; }
.file-field input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 8px 14px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--blue-soft); color: var(--blue); font: inherit; font-weight: 700;
}
.file-info { margin: 5px 0 0; font-size: 12.5px; font-weight: 600; color: #0b6b4d; overflow-wrap: anywhere; }
.file-info:empty { display: none; }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink); cursor: pointer; }
.check input {
  flex: none; width: 18px; height: 18px; margin: 2px 0 0; padding: 0;
  -webkit-appearance: auto; appearance: auto; accent-color: var(--blue);
}
.kyc-form .btn { margin-top: 4px; }
.later-link { display: block; margin-top: 12px; text-align: center; font-size: 14px; font-weight: 600; color: var(--muted); }
.kyc-privacy { display: flex; gap: 8px; align-items: flex-start; margin: 18px 0 0; font-size: 12.5px; color: var(--muted); }
.kyc-privacy svg { flex: none; width: 14px; height: 14px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.kyc-center { text-align: center; padding: 40px 28px; }
.kyc-center .lead { margin: 8px auto 22px; font-size: 16px; }
.kyc-center .btn { width: auto; padding: 0 28px; text-decoration: none; }

/* KYC: document choice (same look as the text boxes) */
.kyc-form select {
  width: 100%; height: 46px; padding: 0 40px 0 13px; font: inherit; font-size: 15px; color: var(--ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23647087' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
  border: 1px solid #dce2ec; border-radius: var(--radius); outline: none; cursor: pointer;
  -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s;
}
.kyc-form select:hover { border-color: #c5cddb; }
.kyc-form select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49, 94, 251, .15); }
@media (max-width: 520px) { .kyc-form select { font-size: 16px; } }
