/* ============================================================
   signup_page.css - the registration page (signup.php), 2026-11-28.
   Loads after css/pg-core.css (tokens, buttons, fields, labels) and
   css/home.css, which gives it the homepage's starry sky, header,
   light section card and footer; only the form is here.
   ============================================================ */

/* The card starts under the tall, clear header */
.su-main { padding-top: calc(var(--hm-head-tall) + 16px); }
/* a form reads best in a narrower column than the homepage's sections */
.hm-sheet > .su-card { max-width: 880px; padding: 48px 40px 40px; animation: pg-rise .6s var(--pg-ease) backwards; }
.su .hm-section-head { margin-bottom: 28px; }
.su .hm-end { padding-top: 32px; }

/* ---- The form: one white card per group of fields ---- */
.su-form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.su-group { padding: 22px 26px 26px; background: #fff; border: 1px solid var(--pg-line); border-radius: 18px; animation: pg-rise .6s var(--pg-ease) backwards; animation-delay: calc(var(--i, 0) * 50ms + 80ms); }
.su .su-group-title { margin: 0 0 18px; padding: 0 0 14px; border-bottom: 1px solid var(--pg-line); color: var(--pg-ink); font: 600 15px/1.2 var(--pg-font); text-shadow: none; }
.su-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.su-item { display: flex; flex-direction: column; min-width: 0; }
.su-item.is-wide { grid-column: 1 / -1; }
/* the three optional contact IDs share a row */
.su-grid.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* pg-core gives a field a fixed 168px; here it takes its column */
.su .su-item .pg-field { width: auto; }
.su .pg-field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; }
.su-req::after { content: " *"; color: var(--pg-navy); }

/* WeChat, Teams and WhatsApp carry their own marks, in their own colours */
.su .su-brand .pg-label { display: flex; align-items: center; gap: 6px; }
.su-brand-ico { width: 16px; height: 16px; flex: none; margin: -3px 0; }
.su-brand-ico.is-wechat { fill: #07C160; }
.su-brand-ico.is-teams { fill: #6264A7; }
.su-brand-ico.is-whatsapp { fill: #25D366; }

/* Country: a select the size of the fields beside it */
.su .su-select { width: 100%; height: 46px; padding: 0 40px 0 14px; border-radius: 12px; font: 500 15px/1 var(--pg-font); background-position: right 14px center; transition: border-color .18s, box-shadow .18s; }
.su .su-select:focus { border-color: var(--pg-navy); box-shadow: 0 0 0 3px rgba(0, 43, 92, .12); outline: 0; }

/* Phone: the dialling code opens the field. The list itself lies unseen over the code, so the field shows
   "+852" and not the whole country name. */
.su .su-tel { gap: 12px; padding-left: 0; }
.su-code { position: relative; align-self: stretch; display: flex; align-items: center; gap: 4px; padding: 0 10px 0 14px; border-right: 1px solid var(--pg-line); border-radius: 11px 0 0 11px; color: var(--pg-ink); font: 600 15px/1 var(--pg-font); font-variant-numeric: tabular-nums; transition: background .18s; }
.su-code .pg-ico { width: 14px; height: 14px; color: var(--pg-muted); }
.su-code:hover, .su-code:focus-within { background: var(--pg-tint); }
.su-code select { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; font-size: 16px; -webkit-appearance: none; appearance: none; }

/* Password: Show sits inside the field, as on the login page */
.su-show { height: 30px; margin-right: -6px; padding: 0 10px; font-size: 13px; }
.su-hint { margin-top: 7px; color: var(--pg-muted); font: 400 12px/1.3 var(--pg-font); }
.su .is-refused .su-hint { display: none; }

/* hCaptcha: room kept for the widget, so the card does not jump when it arrives */
.su .h-captcha { min-height: 78px; }

/* What was refused: said under the field in ink, the field's border navy (as on contact.php) */
.su-msg { margin-top: 7px; color: var(--pg-ink); font: 600 12px/1.3 var(--pg-font); animation: pg-flip .35s var(--pg-ease); }
.su .is-refused .pg-field, .su .is-refused .su-select { border-color: var(--pg-navy); }

/* ---- The one solid action ---- */
.su-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; animation: pg-rise .6s var(--pg-ease) backwards; animation-delay: calc(var(--i, 0) * 50ms + 80ms); }
.su .su-legend { color: var(--pg-muted); font: 400 13px/1.3 var(--pg-font); }
.su-legend span { color: var(--pg-navy); font-weight: 600; }
.su-go { height: 50px; padding: 0 26px; font-size: 15px; box-shadow: 0 8px 20px rgba(0, 43, 92, .24); }

/* ---- Submitted: the result in place of the form ---- */
.su-done { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; background: var(--pg-tint); border-radius: 14px; animation: pg-pop .35s var(--pg-spring) .35s backwards; }
.su-tick { flex: none; display: grid; place-items: center; width: 20px; height: 20px; background: var(--pg-navy); border-radius: 50%; color: #fff; }
.su-tick .pg-ico { width: 12px; height: 12px; stroke-width: 3; }
.su-done-text { flex: 1 1 260px; color: var(--pg-ink); font: 600 15px/1.4 var(--pg-font); }
.su .su-done .pg-btn-line { color: var(--pg-ink); }

/* ---- confirm.php: the page the verification email's link opens ---- */
.hm-sheet > .su-confirm { max-width: 640px; }
.su-confirm .hm-eyebrow span, .su-confirm .pg-btn span { font-weight: 500; opacity: .75; }
.su .su-confirm-zh { margin-top: 8px; color: var(--pg-muted); font: 500 22px/1.3 var(--pg-font); }
.su-steps { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.su-step { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 0; list-style: none; }
/* a step still to come shows its number in a ring; a finished one the navy tick, which pops in */
.su-step-mark { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--pg-line-strong); border-radius: 50%; color: var(--pg-muted); font: 600 12px/1 var(--pg-font); }
.su-step.is-done .su-step-mark { background: var(--pg-navy); border-color: var(--pg-navy); color: #fff; animation: pg-pop .35s var(--pg-spring) backwards; }
.su-step.is-done:nth-child(1) .su-step-mark { animation-delay: .35s; }
.su-step.is-done:nth-child(2) .su-step-mark { animation-delay: .5s; }
.su-step.is-done:nth-child(3) .su-step-mark { animation-delay: .65s; }
.su-step-mark .pg-ico { width: 14px; height: 14px; stroke-width: 3; }
.su-step-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-top: 4px; }
.su-step-name { color: var(--pg-ink); font: 600 15px/1.2 var(--pg-font); }
.su-step-name span { margin-left: 6px; color: var(--pg-muted); font-weight: 500; }
.su-step:not(.is-done) .su-step-name { color: var(--pg-ink); }
.su-step-note { color: var(--pg-muted); font: 400 13px/1.5 var(--pg-font); }
.su .su-confirm-text { color: var(--pg-ink); font: 400 15px/1.65 var(--pg-font); }
.su .su-confirm-text + .su-confirm-text { margin-top: 8px; }
.su-confirm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 20px; animation: pg-rise .6s var(--pg-ease) .15s backwards; }
.su .su-confirm-actions a.pg-btn-line, .su .su-confirm-actions a.pg-btn-quiet { color: var(--pg-ink); }

/* ---- Phone ---- */
@media (max-width: 760px) {
    .su-main { padding-top: calc(var(--hm-head-tall) + 8px); }
    .hm-sheet > .su-card { padding: 32px 14px 20px; }
    .su .hm-section-head { margin-bottom: 20px; padding: 0 4px; }
    .su-group { padding: 18px 16px 20px; }
    .su-grid, .su-grid.is-three { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .su-actions { flex-direction: column-reverse; align-items: stretch; gap: 14px; padding: 6px 2px 0; }
    .su-go { justify-content: center; }
    .su .su-legend { text-align: center; }
    .su .hm-end { padding-top: 16px; }
}
