/* ==========================================================================
   FixCloud Workshop - Registration
   Shape rule: surfaces 20px, controls 10px.
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens (fixcloud.ai family, one step lighter) ---------- */
:root {
  --bg: #0e143a;
  --surface: #141b46;
  --surface-2: #1a2354;
  --ink: #f2f5ff;
  --ink-2: #d8def0;
  --muted: #b3bcd9;
  --line: rgb(255 255 255 / 0.12);
  --line-strong: rgb(255 255 255 / 0.26);

  --accent: #29b1fd;
  --accent-hover: #4ec0ff;
  --accent-soft: rgb(41 177 253 / 0.14);
  --on-accent: #041038;
  --sky: #29b1fd;
  --navy: #0a1148;
  --navy-2: #12227a;

  --error: #ff9c9c;
  --error-soft: rgb(255 120 120 / 0.12);

  --radius-lg: 20px;
  --radius: 10px;
  --shadow: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 24px 60px -28px rgb(0 0 0 / 0.7);
  --ring: 0 0 0 4px rgb(41 177 253 / 0.28);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --topbar-h: 68px;

  color-scheme: dark;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
/* Same fixed sky glow as fixcloud.ai */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(60vw 60vw at 85% 10%, rgb(41 177 253 / 0.16), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.topbar, main, .footer { position: relative; z-index: 1; }
main { flex: 1; }

img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius);
  z-index: 100;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, transform 0.15s var(--ease), box-shadow 0.2s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn:disabled { opacity: 0.6; cursor: progress; }

.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--surface-2); border-color: var(--muted); }

.btn.is-loading .btn__label { opacity: 0.7; }
.btn.is-loading .icon { animation: nudge 0.9s ease-in-out infinite; }
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* ---------- Topbar ---------- */
.topbar {
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: 1320px;
  margin: 0 auto;
  height: var(--topbar-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 32px; width: auto; }

/* ---------- Register layout ---------- */
.register {
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 24px 72px;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 32px;
  align-items: stretch;
}

/* ---------- Brand panel ---------- */
.panel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #f2f6ff;
  background:
    radial-gradient(900px 400px at 110% -10%, rgb(41 177 253 / 0.28), transparent 60%),
    radial-gradient(600px 400px at -20% 110%, rgb(41 177 253 / 0.18), transparent 60%),
    linear-gradient(170deg, var(--navy-2) 0%, var(--navy) 70%);
  box-shadow: var(--shadow);
}
.panel__cover {
  position: relative;
  aspect-ratio: 1128 / 300;
  overflow: hidden;
}
.panel__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.panel__body { padding: 8px 36px 36px; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 14px;
}
.panel__title {
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
}
.panel__lead {
  margin-top: 14px;
  font-size: 19px;
  color: rgb(242 246 255 / 0.82);
}

.location {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: center;
}
.location__icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  display: grid; place-items: center;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.12);
  color: var(--sky);
}
.location__icon .icon { width: 20px; height: 20px; }
.location__text { display: grid; gap: 1px; }
.location__text strong { font-weight: 600; color: #fff; }
.location__text span { font-size: 14px; color: rgb(242 246 255 / 0.66); }

.services {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  display: grid;
  gap: 10px;
}
.service {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.1);
}
.service__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  display: grid; place-items: center;
  background: rgb(41 177 253 / 0.14);
  color: var(--sky);
}
.service__icon .icon { width: 24px; height: 24px; }
.service__text { display: grid; gap: 1px; }
.service__text strong { font-size: 16px; font-weight: 600; color: #fff; }
.service__text span { font-size: 14px; color: rgb(242 246 255 / 0.7); }

/* ---------- Form shell ---------- */
.form-wrap {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 36px 40px 32px;
  scroll-margin-top: 16px;
}
.form { display: flex; flex-direction: column; justify-content: center; flex: 1; }
.form__head { margin-bottom: 28px; }
.form__title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  outline: none;
}
.form__desc { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* Fields */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: 1fr 1fr; }
.grid + .grid, .grid + .field, .form > .field + .field, .field + .grid { margin-top: 20px; }

.field { display: grid; gap: 8px; min-width: 0; }
.field > label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.04);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.field input::placeholder { color: var(--muted); opacity: 0.8; }
.field input:hover { border-color: rgb(255 255 255 / 0.32); }
.field input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgb(255 255 255 / 0.06);
  box-shadow: var(--ring);
}
.field input[aria-invalid="true"] {
  border-color: var(--error);
  background: var(--error-soft);
}
.field input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--error) 20%, transparent);
}

.field__error {
  display: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--error);
}
.field__error:not(:empty) { display: block; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Consent */
.consents { display: grid; gap: 8px; margin-top: 24px; }
.consent {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  cursor: pointer;
}
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent__check {
  width: 22px; height: 22px;
  margin-top: 1px;
  border-radius: 6px;
  border: 1.5px solid var(--line-strong);
  background: rgb(255 255 255 / 0.04);
  display: grid; place-items: center;
  color: var(--on-accent);
  transition: background-color 0.2s, border-color 0.2s;
}
.consent__check .icon { width: 14px; height: 14px; opacity: 0; transform: scale(0.6); transition: opacity 0.15s, transform 0.2s var(--ease); }
.consent input:checked + .consent__check { background: var(--accent); border-color: var(--accent); }
.consent input:checked + .consent__check .icon { opacity: 1; transform: none; }
.consent input:focus-visible + .consent__check { box-shadow: var(--ring); }
.consent__text { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.consent.is-invalid .consent__check { border-color: var(--error); }

.form__alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--error-soft);
  color: var(--error);
  font-size: 14px;
  font-weight: 500;
}
.form__alert .icon { width: 20px; height: 20px; margin-top: 1px; }

.form__nav {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* Success */
.success { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 16px 0 8px; animation: rise 0.5s var(--ease) both; }
.success__icon {
  width: 76px; height: 76px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  animation: pop 0.6s var(--ease) both;
}
.success__icon .icon { width: 44px; height: 44px; }
@keyframes pop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.success__lead { margin: 10px auto 0; max-width: 46ch; color: var(--muted); }
.success .btn { margin-top: 28px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); }
.footer__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}
.footer__links { display: flex; gap: 20px; font-weight: 500; }
.footer__copy { margin-left: auto; font-size: 13px; }

/* ---------- Dialog ---------- */
.dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.dialog::backdrop { background: rgb(0 0 68 / 0.45); backdrop-filter: blur(4px); }
.dialog__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.dialog__head h2 { font-size: 18px; font-weight: 600; }
.dialog__close {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: grid; place-items: center;
  cursor: pointer;
}
.dialog__close:hover { background: var(--surface-2); }
.dialog__body { padding: 24px; display: grid; gap: 14px; font-size: 15px; color: var(--ink-2); }

/* ---------- Entry motion ---------- */
.reveal { animation: rise 0.7s var(--ease) both; }
.reveal:nth-child(2) { animation-delay: 0.1s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .register { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .panel__body { padding: 4px 28px 28px; }
  .form-wrap { padding: 28px 28px 24px; }
}

@media (max-width: 639px) {
  .topbar__inner { padding: 0 16px; }
  .register { padding: 16px 16px 48px; }
  .panel__cover { aspect-ratio: 1128 / 340; }
  .panel__cover img { object-position: 37% center; }
  .panel__body { padding: 0 22px 24px; }
  .form-wrap { padding: 24px 18px 20px; border-radius: 16px; }
  .grid--2 { grid-template-columns: 1fr; }
  .form__title { font-size: 22px; }
  .form__nav .btn { width: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__copy { margin-left: 0; }
}
