@import url("/CSS/theme.css");
* { box-sizing: border-box; margin: 0; padding: 0; font-family: var(--nd-font); }
body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 40px 20px;
}
.card {
  width: 100%;
  max-width: 480px;
  background: var(--nd-join-card-bg);
  border-radius: 28px;
  padding: 40px 36px;
  box-shadow: var(--nd-join-card-shadow);
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section.other {
  margin-top: 6px;
}
/* The lower sections stay at 25% and unclickable until "Join as" is picked. */
.section {
  transition: opacity 0.3s ease;
}
.section.dimmed {
  opacity: 0.25;
  pointer-events: none;
}
.section-title {
  /* h2/h3 here are card labels, not display type — hold the body face. */
  font-family: inherit;
  line-height: normal;
  letter-spacing: normal;
  color: var(--nd-text);
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}
.section-title.large {
  font-size: 30px;
  font-weight: 800;
}
.section-title.small {
  font-size: 17px;
  font-weight: 700;
}
.button-group {
  display: flex;
  gap: 18px;
}

/* --- Button states (see button states.png) --- */
/* A drop shadow means "clickable"; opacity means "how present it is". */
/* 1. default: white + shadow (clickable)                              */
/* 2. unselected sibling: 25% visible, no shadow, not clickable        */
/* 3. selected: green glow instead of the plain shadow                 */
/* 4. error: red flash on a mistaken click                            */
.btn-option {
  flex: 1;
  background-color: var(--nd-static-white);
  color: var(--nd-static-ink);
  border: 2px solid transparent;
  border-radius: 26px;
  padding: 15px 8px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  /* Figma drop shadow: X0 Y5, blur 5, spread 2, #000 @ 25% */
  box-shadow: 0 5px 5px 2px var(--nd-shadow-ink-soft);
  transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.btn-option:hover { transform: translateY(-2px); }

.btn-option.selected {
  border-color: var(--nd-success);
  box-shadow: 0 0 0 1px var(--nd-success-glow), 0 0 16px 2px var(--nd-success-glow);
}
/* Dimmed to 25% but still clickable, so the pick can be switched to it. */
.btn-option.unselected {
  opacity: 0.25;
  box-shadow: none;
}

/* --- Agreement ------------------------------------------------------------ */
/* Sits between the choice and everything that acts on it. The row carries a
   transparent border of its own so the same red flash the buttons use has
   something to appear on when someone tries to move past it unticked. */
.consent-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--nd-consent-border);
  border-radius: 14px;
  background-color: var(--nd-consent-bg);
  color: var(--nd-text);
  font-size: 15px;
  line-height: 1.55;
  text-align: left;
  cursor: pointer;
}

/* Big enough to hit on a phone, where this is one small square among buttons
   that are the width of the card. */
.consent-box {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 1px;
  accent-color: var(--nd-success);
  cursor: pointer;
}

/* ND.css strips the underline off every anchor on the site, which left these
   two as bold words in the middle of a sentence — nothing said they could be
   opened. Here the underline comes back: a link inside running text is the one
   place weight alone can't do the job. */
.consent-line a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.consent-line a:hover {
  opacity: 0.75;
}

/* The buttons' flash returns them to a transparent border; this one has a
   border of its own to come back to, so it gets its own keyframes rather than
   blinking the plate's outline out of existence on the way past. */
@keyframes redSignalConsent {
  0%, 100% { border-color: var(--nd-consent-border); box-shadow: none; }
  25%, 75% { border-color: var(--nd-neon-invalid); box-shadow: 0 0 16px 4px var(--nd-neon-invalid-glow); }
}
.consent-line.error-flash {
  animation: redSignalConsent 0.6s ease;
}

@keyframes redSignal {
  0%, 100% { border-color: transparent; box-shadow: none; }
  25%, 75% { border-color: var(--nd-neon-invalid); box-shadow: 0 0 16px 4px var(--nd-neon-invalid-glow); }
}
.btn-option.error-flash {
  animation: redSignal 0.6s ease;
}
