/* Brand colours: change these two to match U Mobile Team's design */
:root {
  --brand: #ff6a00;
  --brand-dark: #e85d00;
  --brand-gradient: linear-gradient(90deg, #ff7a00 0%, #ff3d3d 45%, #d63ce6 75%, #7b5cff 100%);
  --display: "UMobile Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --ink: #1d2433;
  --muted: #5b6577;
  --line: #dde2ea;
  --bg: #f4f5f8;
  --card: #ffffff;
  --ok: #1f8a4c;
  --bad: #c43636;
  --radius: 14px;
}

@font-face { font-family: "UMobile Display"; src: url("/assets/fonts/UMobileDisplay-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "UMobile Display"; src: url("/assets/fonts/UMobileDisplay-BoldItalic.ttf") format("truetype"); font-weight: 700; font-style: italic; font-display: swap; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Logo bar */
.brandbar { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 16px; display: flex; justify-content: center; }
.brand-logo { height: 84px; width: auto; display: block; }
@media (max-width: 700px) { .brand-logo { height: 64px; } }

/* Headings in U Mobile Display */
.intro h1, .card h2, .state h2 { font-family: var(--display); font-weight: 700; font-style: italic; letter-spacing: 0; }

/* Banner */
.banner { position: relative; background: #1d2433; }
.banner img { display: block; width: 100%; height: auto; }
.banner picture { display: block; }
.banner-fallback { display: none; }
.banner.no-img picture { display: none; }
.banner.no-img .banner-fallback {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  aspect-ratio: 1920 / 600; color: #fff; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  background: var(--brand-gradient);
}
.banner .logo { height: 48px; }
@media (max-width: 700px) { .banner.no-img .banner-fallback { aspect-ratio: 1 / 1; } }

.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px 48px; }

.intro { padding: 28px 4px 8px; }
.intro h1 { margin: 0 0 10px; font-size: 28px; line-height: 1.2; letter-spacing: -0.3px; }
.banner { background: #05050a; }
.lead { margin: 0 0 18px; color: var(--muted); }
.sub-h { margin: 22px 0 10px; font-family: var(--display); font-style: italic; font-size: 17px; color: var(--brand); }
.lead strong { color: var(--ink); }
.form-intro { margin: 6px 0 6px; color: var(--muted); font-size: 15px; }
.form-intro strong { color: var(--ink); }
.facts { margin: 0; display: grid; gap: 8px; }
.facts div { display: flex; gap: 12px; }
.facts dt { width: 64px; flex: none; font-weight: 700; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; padding-top: 1px; }
.facts dd { margin: 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 20px; }
.card h2 { margin: 0 0 4px; font-size: 20px; }
.mandatory { margin: 0 0 18px; font-size: 13.5px; color: var(--muted); }
.state h2 { margin-bottom: 8px; }

.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
label, legend { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; padding: 0; }
.req { color: var(--bad); }
input[type=text], input:not([type]), input[type=email], input[type=tel] {
  width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
input[readonly] { background: #f3f5f9; color: var(--muted); }
input.short { max-width: 160px; letter-spacing: 3px; text-transform: uppercase; }
input.short::placeholder { text-transform: none; }
input.plate { max-width: 240px; text-transform: uppercase; letter-spacing: 1px; }
input.plate::placeholder { text-transform: none; }
.vip-badge { display: inline-block; margin-left: 8px; vertical-align: 3px; font-size: 12px; font-weight: 700; letter-spacing: 1px;
  color: #8a6408; background: #fbf1d6; border: 1px solid #ecd590; border-radius: 20px; padding: 2px 10px; }
.hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

.choices { display: grid; gap: 10px; }
.choice { display: flex; align-items: center; gap: 10px; font-weight: 500; margin: 0;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, #fff); }
.choice input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }

.pdpa { margin: 6px 0 18px; }
.pdpa a { color: var(--brand); font-weight: 600; text-decoration: underline; }

/* Privacy notice pop-up */
.modal { border: 0; padding: 0; border-radius: 16px; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal::backdrop { background: rgba(10,12,20,.55); }
.modal-box { padding: 26px 24px 20px; display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.modal-box h2 { margin: 0 0 12px; font-family: var(--display); font-style: italic; font-size: 20px; }
.modal-body { overflow-y: auto; font-size: 14.5px; line-height: 1.65; color: #3a4254; white-space: pre-line; }
.modal-close { margin-top: 18px; align-self: flex-end; font: inherit; font-weight: 700; border: 0; border-radius: 999px; padding: 10px 22px; background: var(--ink); color: #fff; cursor: pointer; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14.5px; margin: 0; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--brand); }

.err { margin: 6px 0 0; font-size: 13.5px; color: var(--bad); min-height: 0; }
.err:empty { display: none; }
.has-err input, .has-err .choice { border-color: var(--bad); }
.form-err { margin-bottom: 12px; }

.turnstile { margin: 0 0 16px; }
.turnstile:empty { display: none; }

button[type=submit] {
  width: 100%; font-family: var(--display); font-weight: 700; font-style: italic; font-size: 18px; color: #fff; background: var(--brand-gradient);
  border: 0; border-radius: 999px; padding: 15px 20px; cursor: pointer;
}
button[type=submit]:hover { filter: brightness(.95); }
button[type=submit]:disabled { opacity: .6; cursor: default; }

.state { text-align: center; padding: 36px 24px; }
.state h2 { margin: 10px 0 8px; }
.state p { margin: 0; color: var(--muted); }
.icon { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; font-weight: 700; }
.icon.ok { background: var(--ok); }
.icon.info { background: #8a93a3; }

.foot { margin-top: 28px; text-align: center; font-size: 13.5px; color: var(--muted); }
.foot a { color: inherit; }

/* ---- Top section polish (mobile first) ---- */
@media (max-width: 700px) {
  /* Trim the empty dark band at the bottom of the square banner */
  .banner img { aspect-ratio: 1080 / 930; object-fit: cover; object-position: center top; }
}
.intro { padding: 0; margin-top: -22px; position: relative; }
.intro-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px 20px; box-shadow: 0 10px 30px rgba(10, 12, 20, .08); }
.intro h1 { font-size: 23px; line-height: 1.25; margin: 0 0 12px; }
.intro h1::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; margin-top: 12px; background: var(--brand-gradient); }
.lead { font-size: 15.5px; line-height: 1.65; margin: 0 0 6px; }
.lead strong { font-weight: 600; }
.sub-h { margin: 18px 0 10px; font-size: 15px; letter-spacing: .3px; }
.facts { gap: 0; border-top: 1px solid var(--line); }
.facts div { padding: 11px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { width: 70px; font-size: 12.5px; padding-top: 2px; }
.facts dd { font-size: 15px; font-weight: 600; color: var(--ink); }
@media (min-width: 701px) {
  .intro { margin-top: -14px; }
  .intro-card { padding: 30px 32px 24px; }
  .intro h1 { font-size: 28px; }
}
