/* ===== Theme tokens ===== */
:root {
  --bg: #0b1220;           /* page gradient start (dark navy base) */
  --bg2: #111827;          /* page gradient end  */
  --card: #0f172a;         /* form card bg (slate-900) */
  --text: #e5e7eb;         /* text on dark */
  --muted: #94a3b8;        /* secondary text */
  --border: rgba(148,163,184,.25);
  --radius: 16px;
  --shadow: 0 20px 40px rgba(0,0,0,.35);

  --accent: #2563eb;       /* default: blue */
  --accent-weak: rgba(37,99,235,.15);
}

/* Green theme */
.theme-green {
  --accent: #10b981;       /* emerald-500 */
  --accent-weak: rgba(16,185,129,.18);
}

/* Red theme */
.theme-red {
  --accent: #ef4444;       /* red-500 */
  --accent-weak: rgba(239,68,68,.18);
}

/* ===== Reset / base ===== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 700px at 50% -10%, var(--bg), var(--bg2));
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.45;
}

/* ===== Layout ===== */
.page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 20px;
}

form {
  width: 100%;
  max-width: 560px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

/* Stylish accent ring */
form::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  padding: 1px;
  background: linear-gradient(120deg, transparent 0 10%, var(--accent) 40%, transparent 60% 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

/* ===== Banner ===== */
.kv {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.kv img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Header text ===== */
.form-head {
  margin-bottom: 8px;
}
h1 {
  font-size: 22px;
  margin: 4px 0 4px;
  letter-spacing: .2px;
}
.subtitle {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
}

/* ===== Field ===== */
.field {
  margin-top: 12px;
}
label {
  display: block;
  font-weight: 600;
  margin: 0 0 6px;
  font-size: 14px;
}
.req { color: #ff6b6b; }

input, select, button {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(17,24,39,.65); /* glassy dark */
  color: var(--text);
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, transform .04s;
}

input::placeholder { color: #9ca3af; }

input:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-weak);
}

/* intl-tel-input tweaks (dark mode) */
.iti__flag-container .iti__selected-flag,
.iti__country-list {
  background: #0b1220 !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
.iti__country-list {
  border: 1px solid var(--border) !important;
}
.iti__country.iti__highlight {
  background: rgba(255,255,255,.06) !important;
}

/* Hints & errors */
.hint {
  color: var(--muted);
  font-size: 12px;
  margin: 6px 2px 0;
}
.error {
  color: #ff8fa3;
  font-size: 13px;
  margin: 6px 2px 0;
}

/* Submit */
.btn-submit {
  margin-top: 16px;
  background: var(--accent);
  border: none;
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.btn-submit:hover { filter: brightness(1.03); }
.btn-submit:active { transform: translateY(1px); }

/* Desktop refinements */
@media (min-width: 768px) {
  h1 { font-size: 24px; }
  form { padding: 22px; }
}
