/* ===========================================================
   MWANA FITNESS — Registo de Clientes
   Self-contained stylesheet.

   This folder deploys on its own, so it does NOT depend on the
   marketing site's css/style.css. The design tokens below are
   copied from it deliberately — if you restyle the main site,
   this form keeps working and looking the same.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Manrope:wght@400;500;600;700;800&display=swap');

:root{
  --bg:            #0c0d0c;
  --bg-alt:        #141613;
  --surface:       #1a1d19;
  --surface-2:     #21251f;
  --border:        rgba(255,255,255,.08);
  --text:          #f3f4f1;
  --text-muted:    #a2a69e;
  --text-faint:    #6f736b;

  --green:         #3ddc74;
  --yellow:        #f0c419;
  --red:           #e8453c;

  --radius-sm: 8px;
  --radius-md: 14px;

  --ff-head: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --ff-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 96px;               /* clears the fixed header */
  padding-bottom: 140px;           /* clears the fixed nav bar */
}
a{ color: inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1{
  font-family: var(--ff-head); font-weight:400;
  letter-spacing:.02em; line-height:1.05; margin:0 0 .4em;
}
p{ margin:0 0 1em; color: var(--text-muted); }
section{ padding:0; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.6em;
  font-family: var(--ff-body);
  font-weight:700; font-size:.95rem; letter-spacing:.02em;
  padding: 15px 30px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease,
              color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-primary{ background: var(--green); color:#08120b; }
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(61,220,116,.55); }
.btn-outline{ background: transparent; color: var(--text); border-color: rgba(255,255,255,.25); }
.btn-outline:hover{ border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.btn[disabled]{ opacity:.55; pointer-events:none; }

/* ---------- logo / eyebrow ---------- */
.logo{
  display:inline-flex; align-items:baseline; gap:.15em;
  font-family: var(--ff-head);
  font-size: 1.3rem; letter-spacing:.02em; line-height:1;
}
.logo .l1{ color: var(--green); }
.logo .l2{ color: var(--yellow); }

.eyebrow{
  display:inline-flex; align-items:center; gap:.5em;
  font-family: var(--ff-head);
  letter-spacing:.18em; font-size:.85rem;
  color: var(--green); text-transform:uppercase;
  margin-bottom: 1em;
}
.eyebrow::before{
  content:''; width: 28px; height: 2px;
  background: var(--yellow); display:inline-block;
}

/* ---------- layout ---------- */
.form-shell{
  width:100%;
  max-width: 640px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- header ---------- */
.form-header{
  position: fixed; top:0; left:0; right:0; z-index: 100;
  background: rgba(12,13,12,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.form-header-row{
  display:flex; align-items:center; justify-content:space-between;
  height: 64px;
}

/* ---------- language switch ---------- */
.lang-switch{
  display:flex; gap:2px;
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: 100px;
  padding: 3px;
}
.lang-btn{
  min-width: 46px; min-height: 34px;
  border:0; border-radius: 100px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--ff-body);
  font-size:.82rem; font-weight:700; letter-spacing:.06em;
  cursor:pointer;
  transition: background .18s ease, color .18s ease;
}
.lang-btn.is-on{ background: var(--green); color:#08120b; }

/* ---------- progress ---------- */
.progress{ height: 3px; background: rgba(255,255,255,.07); }
.progress-bar{
  height:100%; width:0;
  background: var(--green);
  transition: width .3s ease;
}

.step-counter{
  font-family: var(--ff-head);
  letter-spacing:.16em; text-transform:uppercase;
  font-size:.78rem; color: var(--text-faint);
  margin: 22px 0 0;
}

/* ---------- steps ---------- */
.step{ display:none; padding: 8px 0 0; }
.step.is-active{ display:block; animation: stepIn .28s ease both; }

@keyframes stepIn{
  from{ opacity:0; transform: translateY(10px); }
  to  { opacity:1; transform: none; }
}
@media (prefers-reduced-motion: reduce){
  .step.is-active{ animation:none; }
  .progress-bar{ transition:none; }
}

.step-title{
  font-size: clamp(1.9rem, 7vw, 2.6rem);
  margin-bottom:.25em;
}
.step-sub{ color: var(--text); font-weight:600; margin-bottom: 1em; }
.muted-note{ color: var(--text-faint); font-size:.9rem; }

/* ---------- fields ---------- */
.field{ margin: 0 0 20px; border:0; padding:0; }
.field-sm{ max-width: 220px; }

.field > label,
.field > legend{
  display:block;
  font-size:.85rem; font-weight:700;
  color: var(--text);
  margin: 0 0 7px; padding:0;
}
.req{ color: var(--green); }

.field input[type="text"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="number"],
.field input[type="password"],
.field textarea{
  width:100%;
  /* 16px minimum stops iOS Safari zooming in on focus */
  font-size: 16px;
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  min-height: 48px;
  transition: border-color .18s ease, background .18s ease;
  -webkit-appearance:none;
  appearance:none;
}
.field textarea{ resize: vertical; line-height:1.5; }

.field input:focus,
.field textarea:focus{
  outline:none;
  border-color: var(--green);
  background: var(--surface-2);
}
.field input[readonly]{
  color: var(--text-muted);
  background: rgba(255,255,255,.03);
  border-style: dashed;
}
.field input::placeholder,
.field textarea::placeholder{ color: var(--text-faint); }

input[type="date"]::-webkit-calendar-picker-indicator{
  filter: invert(1) opacity(.55);
  cursor:pointer;
}

.field.is-invalid input,
.field.is-invalid textarea{ border-color: var(--red); }

.help{ font-size:.78rem; color: var(--text-faint); margin: 6px 0 0; }
.error{
  font-size:.8rem; color: var(--red); font-weight:600;
  margin: 6px 0 0;
}
.error:empty{ display:none; }

.row{ display:flex; gap: 12px; }
.row > .field{ flex:1; min-width:0; }
.row > .field-sm{ max-width: 120px; flex: 0 0 120px; }

/* ---------- checkboxes ---------- */
.check-grid{ display:flex; flex-direction:column; gap: 8px; }

.check{
  display:flex; align-items:flex-start; gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor:pointer;
  font-size:.92rem;
  transition: border-color .18s ease, background .18s ease;
}
.check:has(input:checked){
  border-color: var(--green);
  background: rgba(61,220,116,.07);
}
.check input{
  flex: 0 0 auto;
  width: 20px; height: 20px;
  accent-color: var(--green);
  margin: 1px 0 0;
}
.check-confirm{ margin: 4px 0 0; font-weight:600; }

/* ---------- chips (days / times) ---------- */
.chip-row{ display:flex; flex-wrap:wrap; gap: 8px; }
.chip{
  position:relative;
  display:inline-flex; align-items:center; justify-content:center;
  min-width: 60px; min-height: 46px;
  padding: 10px 16px;
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: 100px;
  font-size:.9rem; font-weight:600;
  cursor:pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.chip input{
  position:absolute; opacity:0; width:100%; height:100%;
  margin:0; cursor:pointer;
}
.chip:has(input:checked){
  background: var(--green); border-color: var(--green); color:#08120b;
}

/* ---------- health screening ---------- */
.q-card{
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 0 0 12px;
}
.q-card.is-invalid{ border-color: var(--red); }
.q-card.is-flagged{ border-color: rgba(240,196,25,.5); }

.q-head{ display:flex; gap: 12px; margin-bottom: 14px; }
.q-num{
  flex: 0 0 auto;
  width: 26px; height: 26px;
  display:flex; align-items:center; justify-content:center;
  border-radius: 100px;
  background: var(--surface-2);
  border:1px solid var(--border);
  font-size:.75rem; font-weight:700;
  color: var(--text-muted);
}
.q-text{ margin:0; color: var(--text); font-size:.95rem; line-height:1.45; }

.yn{ display:flex; gap: 8px; }
.yn label{
  position:relative;
  flex:1;
  display:flex; align-items:center; justify-content:center;
  min-height: 46px;
  border:1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-weight:700; font-size:.9rem;
  cursor:pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.yn input{ position:absolute; opacity:0; width:100%; height:100%; margin:0; cursor:pointer; }
.yn label:has(input[value="Sim"]:checked){
  background: var(--yellow); border-color: var(--yellow); color:#1b1400;
}
.yn label:has(input[value="Não"]:checked){
  background: var(--green); border-color: var(--green); color:#08120b;
}
.yn label:has(input:focus-visible){ outline: 2px solid var(--green); outline-offset: 2px; }

.q-detail{ margin: 14px 0 0; }
.q-detail.is-hidden{ display:none; }
.q-detail label{
  display:block; font-size:.8rem; font-weight:700; margin: 0 0 6px;
  color: var(--yellow);
}
.q-detail textarea{
  width:100%; font-size:16px; font-family: var(--ff-body);
  color: var(--text); background: var(--bg-alt);
  border:1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px; min-height: 76px; resize: vertical;
}
.q-detail textarea:focus{ outline:none; border-color: var(--yellow); }
.q-detail .error{ margin-top: 5px; }

/* ---------- rules and regulations ---------- */
.rules{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px 16px;
  margin: 0 0 20px;
  /* long enough to need its own scroll on a phone rather than
     pushing the accept box far below the fold */
  max-height: 46vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.rule{
  display:flex; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.rule:last-child{ border-bottom:0; }
.rule-num{
  flex: 0 0 auto;
  width: 24px; height: 24px;
  display:flex; align-items:center; justify-content:center;
  border-radius: 100px;
  background: var(--surface-2);
  border:1px solid var(--border);
  font-size:.72rem; font-weight:700;
  color: var(--green);
}
.rule-body{ min-width:0; }
.rule-title{
  display:block;
  font-size:.88rem; font-weight:700; color: var(--text);
  margin-bottom: 3px;
}
.rule-text{ margin:0; font-size:.85rem; line-height:1.5; }
.rules-version{
  font-size:.72rem; color: var(--text-faint);
  text-align:right; margin: 0 0 14px;
}

/* ---------- callouts ---------- */
.callout{
  border-left: 3px solid var(--border);
  background: var(--bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px;
  font-size:.85rem; line-height:1.55;
  color: var(--text-muted);
  margin: 22px 0 0;
}
.callout-warn{ border-left-color: var(--yellow); color: var(--text); }
.callout-strong{ border-left-color: var(--green); color: var(--text); }

/* ---------- PIN gate ---------- */
.pin-gate{ display:none; }
.pin-gate.is-active{ display:block; animation: stepIn .28s ease both; }

/* ---------- review ---------- */
.review{
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px 16px;
  margin: 0 0 20px;
}
.review-group{
  font-family: var(--ff-head);
  letter-spacing:.14em; text-transform:uppercase;
  font-size:.75rem; color: var(--green);
  padding: 18px 0 8px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.review-group:first-child{ border-top:0; margin-top:0; }
.review-item{
  display:flex; justify-content:space-between; gap: 16px;
  padding: 8px 0;
  font-size:.88rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.review-item:last-child{ border-bottom:0; }
.review-item dt{ color: var(--text-muted); flex: 1 1 auto; min-width:0; }
.review-item dd{
  margin:0; text-align:right; font-weight:600;
  flex: 0 1 auto; min-width:0;
  overflow-wrap: anywhere;
}
.review-item.is-flagged dd{ color: var(--yellow); }
.review-item.is-empty dd{ color: var(--text-faint); font-weight:400; }

/* ---------- done screen ---------- */
.done-screen{ display:none; text-align:center; }
.done-screen.is-active{ display:block; animation: stepIn .28s ease both; }

.done-mark{
  width: 68px; height: 68px;
  margin: 12px auto 20px;
  border-radius: 100px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(61,220,116,.12);
  border: 1px solid rgba(61,220,116,.4);
  color: var(--green);
}
.done-mark svg{ width: 32px; height: 32px; }

.member-card{
  background: var(--surface);
  border: 1px solid var(--green);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  margin: 24px 0;
}
.member-card-label{
  display:block;
  font-family: var(--ff-head);
  letter-spacing:.16em; text-transform:uppercase;
  font-size:.75rem; color: var(--text-muted);
  margin-bottom: 10px;
}
.member-card-number{
  display:block;
  font-family: var(--ff-head);
  font-size: clamp(2.2rem, 12vw, 3.4rem);
  line-height:1;
  color: var(--green);
  letter-spacing:.04em;
  overflow-wrap: anywhere;
}
.done-screen .callout{ text-align:left; }
.done-screen .btn{ margin-top: 12px; }

.done-screen.is-queued .done-mark{
  background: rgba(240,196,25,.12);
  border-color: rgba(240,196,25,.45);
  color: var(--yellow);
}
.done-screen.is-queued .member-card{ border-color: var(--yellow); }
.done-screen.is-queued .member-card-number{ color: var(--yellow); }

/* ---------- nav bar ---------- */
.form-nav{
  position: fixed; bottom:0; left:0; right:0; z-index: 90;
  display:flex; gap: 12px;
  width:100%; max-width: 640px;
  margin-inline:auto;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(12,13,12,0), var(--bg) 28%);
}
.form-nav .btn{ flex:1; padding: 15px 20px; min-height: 52px; }
.form-nav .btn[hidden]{ display:none; }
.form-nav.is-hidden{ display:none; }

.form-status{
  position: fixed; bottom: 78px; left:0; right:0; z-index: 91;
  max-width: 640px; margin-inline:auto;
  padding: 0 20px;
  text-align:center;
  font-size:.82rem; font-weight:600;
  color: var(--yellow);
}
.form-status:empty{ display:none; }

/* ---------- footer ---------- */
.form-footer{
  padding: 28px 0 0;
  font-size:.75rem;
  color: var(--text-faint);
  text-align:center;
}

.is-hidden{ display:none !important; }

/* ---------- wider screens ---------- */
@media (min-width: 720px){
  body{ padding-top: 108px; }
  .form-nav{
    border: 1px solid var(--border);
    border-bottom: 0;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    background: var(--bg-alt);
  }
  .rules{ max-height: 52vh; }
}
