/* Step 2 (complete-registration.html). Same palette as the landing page. */
:root {
  --bg: #06172A;
  --bg-2: #081D33;
  --card: #0B2238;
  --text: #EAF4FA;
  --text-2: #C9D8E3;
  --muted: #A9BCCB;
  --accent: #4FE3EF;
  --accent-ink: #04202B;
  --amber: #F6A93B;
  --line: rgba(120,200,230,0.18);
  --line-strong: rgba(120,200,230,0.28);
}

.page {
  background: radial-gradient(900px 520px at 85% 0%, rgba(79,227,239,0.10), rgba(6,23,42,0) 70%), var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.topbar { border-bottom: 1px solid rgba(120,200,230,0.14); }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 18px 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: 64px; height: 40px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; font-family: Outfit, sans-serif; }
.brand-text span:first-child { font-weight: 500; font-size: 19px; letter-spacing: 0.26em; }
.brand-text span:last-child { font-size: 10px; letter-spacing: 0.42em; color: var(--muted); padding-left: 2px; }
.back-link { color: var(--text-2); font-size: 15px; text-decoration: none; }
.back-link:hover { color: var(--accent); }

/* Layout */
.wrap { flex: 1; width: 100%; max-width: 920px; margin: 0 auto; padding: 48px 16px 80px; box-sizing: border-box; }
.card { background: var(--card); border: 1px solid rgba(79,227,239,0.35); border-radius: 24px; padding: 40px; box-sizing: border-box; box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 0 0 6px rgba(79,227,239,0.05); display: flex; flex-direction: column; gap: 18px; }
.card[hidden] { display: none; }
.card h1 { margin: 0; font-family: Outfit, sans-serif; font-weight: 700; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--text-2); }
.eyebrow { font-family: Outfit, sans-serif; font-weight: 600; font-size: 14px; letter-spacing: 0.24em; color: var(--amber); }
.intro { display: flex; flex-direction: column; gap: 8px; }

.registered-banner { display: flex; gap: 12px; align-items: flex-start; background: rgba(79,227,239,0.08); border: 1px solid rgba(79,227,239,0.25); border-radius: 14px; padding: 14px 18px; font-size: 15px; color: var(--text-2); }
.registered-banner[hidden] { display: none; }
.registered-banner strong { color: var(--text); }
.check-dot { flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgba(79,227,239,0.15); display: inline-flex; align-items: center; justify-content: center; }
.check-dot.big { width: 56px; height: 56px; }

/* Form */
form { display: flex; flex-direction: column; gap: 28px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset[hidden] { display: none; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.span-2 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--text-2); }
.field input, .field select { height: 48px; box-sizing: border-box; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); padding: 0 14px; font-size: 16px; }
.field .invalid, .question.invalid .function-grid, .question.invalid .pills { outline: 2px solid #FF8A8A; outline-offset: 2px; border-radius: 12px; }

.question legend { font-family: Outfit, sans-serif; font-weight: 600; font-size: 21px; line-height: 1.3; padding: 0; margin-bottom: 4px; }
.hint { margin: 0 0 14px !important; font-size: 14px; color: var(--muted) !important; }

/* Function cards */
.function-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.fn-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; min-height: 128px; padding: 16px 10px; box-sizing: border-box; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.fn-card:hover { border-color: rgba(79,227,239,0.5); transform: translateY(-1px); }
.fn-card input { position: absolute; opacity: 0; pointer-events: none; }
.fn-icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(79,227,239,0.10); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.fn-label { font-family: Outfit, sans-serif; font-weight: 600; font-size: 15px; line-height: 1.25; color: var(--text); }
.fn-tick { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: transparent; }
.fn-card:has(input:checked) { border-color: var(--accent); background: rgba(79,227,239,0.10); }
.fn-card:has(input:checked) .fn-icon { background: var(--accent); color: var(--accent-ink); }
.fn-card:has(input:checked) .fn-tick { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.fn-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Pills */
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-flex; align-items: center; justify-content: center; min-width: 88px; min-height: 48px; padding: 0 22px; box-sizing: border-box; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg-2); font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.pill span:hover { border-color: rgba(79,227,239,0.5); }
.pill input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.form-error { margin: 0; color: #FF8A8A !important; font-size: 15px; }

/* Buttons */
.btn-primary, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; box-sizing: border-box; border-radius: 999px; font-family: Outfit, sans-serif; font-weight: 700; font-size: 18px; cursor: pointer; text-decoration: none; }
.btn-primary { border: 0; background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #7FEBF3; color: var(--accent-ink); }
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-ghost { border: 1px solid rgba(120,200,230,0.35); background: transparent; color: var(--text); font-weight: 600; font-size: 16px; }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
form .btn-primary { align-self: flex-start; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Offer */
.offer-title { font-size: clamp(24px, 2.8vw, 32px) !important; }
.offer-title #offer-functions { color: var(--accent); }
.offer-ask { color: var(--text) !important; font-weight: 600; font-size: 19px; }

/* Booking */
.meetings-slot { min-height: 200px; }
.meetings-slot iframe { width: 100%; min-height: 700px; border: 0; border-radius: 16px; background: #fff; }
.meetings-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 260px; border: 1.5px dashed var(--line-strong); border-radius: 16px; color: var(--muted); text-align: center; padding: 24px; }

/* Honeypot (hidden from people, visible to bots) */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Add to calendar */
.calendar-add { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.calendar-label { font-size: 14px; font-weight: 500; color: var(--muted); }
.calendar-links { display: flex; flex-wrap: wrap; gap: 10px; }
.cal-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; }
.cal-btn:hover { border-color: var(--accent); color: var(--text); }
#step-done .back-link { display: inline-block; margin-top: 4px; }

/* Footer */
.footer { border-top: 1px solid rgba(120,200,230,0.14); max-width: 1200px; width: 100%; margin: 0 auto; padding: 28px 24px; box-sizing: border-box; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 14px; color: var(--muted); }
.footer a { color: var(--muted); margin-left: 20px; }

@media (max-width: 640px) {
  .card { padding: 24px 18px; border-radius: 20px; }
  .wrap { padding-top: 24px; }
  .grid-2 { grid-template-columns: 1fr; }
  .function-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fn-card { min-height: 116px; }
  .btn-primary, .btn-ghost, form .btn-primary { width: 100%; }
  .back-link { display: none; }
}
