/* SRMA sign-up page. Built on the RCX theme tokens (style.css :root) so it follows light/dark mode. */

.srma-section { padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 8vw, 96px); }

.srma-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 32px;
  align-items: start;
}

/* ── hero: the poster, recoloured to the RCX palette ── */
.srma-hero {
  position: sticky;
  top: 108px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-card) 100%);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.srma-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 28px;
  background: #fff;
}

.srma-hero__top img { height: 52px; width: auto; }

.srma-hero__tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.srma-hero__body { padding: 32px 28px 28px; }

.srma-free {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(90, 154, 213, 0.18);
  border: 1px solid rgba(90, 154, 213, 0.35);
  color: var(--blue-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.srma-hero h1 {
  margin: 18px 0 16px;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  text-wrap: balance;
}

.srma-hero h1 em { font-style: normal; color: var(--blue-bright); }

.srma-lede { margin-bottom: 24px; color: rgba(255, 255, 255, 0.72); max-width: 46ch; }
.srma-lede strong { color: #fff; }

.srma-when {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  margin: 0 0 24px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.srma-when dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-bright);
  line-height: 1.9;
}

.srma-when dd { margin: 0; font-weight: 600; }

.srma-weeks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
}

.srma-weeks li { display: flex; gap: 10px; }

.srma-weeks b {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--blue-bright);
}

/* ── form card (mirrors the contact page's form) ── */
.srma-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 5vw, 48px);
  box-shadow: var(--shadow-soft);
  scroll-margin-top: 108px; /* clear the sticky nav when linked to #signup */
}

.srma-card h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 10px; }
.srma-sub { color: var(--text-soft); margin-bottom: 28px; }

.srma-form { display: grid; gap: 22px; }

.srma-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}

.srma-field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.srma-field[hidden] { display: none; }

.srma-field > label,
.srma-field legend {
  padding: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.srma-field legend { margin-bottom: 8px; line-height: 1.5; }
.srma-req { color: var(--blue); }
.srma-hint { font-size: 0.88rem; color: var(--text-soft); }

.srma-field input[type="text"],
.srma-field input[type="email"],
.srma-field select,
.srma-field textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.srma-field select {
  appearance: none;
  padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--blue) 50%), linear-gradient(135deg, var(--blue) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.srma-field textarea { min-height: 96px; resize: vertical; }

.srma-field input:focus,
.srma-field select:focus,
.srma-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background-color: var(--bg-surface);
  box-shadow: 0 0 0 4px var(--blue-subtle);
}

.srma-field.is-invalid input,
.srma-field.is-invalid select,
.srma-field.is-invalid textarea { border-color: #dc2626; }

.srma-err { font-size: 0.88rem; font-weight: 500; color: #dc2626; }
.srma-err:empty { display: none; }
[data-theme="dark"] .srma-err { color: #f87171; }

.srma-yn { display: flex; flex-wrap: wrap; gap: 12px; }

.srma-yn label,
.srma-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  color: var(--text);
}

.srma-yn label {
  align-items: center;
  min-width: 110px;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-input);
  font-weight: 600;
}

.srma-yn label:has(input:checked) { border-color: var(--blue); background: var(--blue-subtle); }

.srma-consent { font-size: 0.92rem; line-height: 1.55; color: var(--text-mid); }
.srma-consent a { color: var(--blue); text-decoration: underline; }

.srma-yn input,
.srma-consent input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: var(--blue); }
.srma-consent input { margin-top: 2px; }

.srma-form .rcx-notice { margin-bottom: 0; }
.srma-form .rcx-notice[hidden] { display: none; }

.srma-submit { justify-content: center; width: 100%; }
.srma-submit:disabled { opacity: 0.7; cursor: progress; transform: none; }

.srma-small { font-size: 0.85rem; color: var(--text-soft); }
.srma-small a { color: var(--blue); }

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

/* ── done ── */
.srma-done:focus { outline: none; }
.srma-done p { margin-bottom: 12px; color: var(--text-mid); }
.srma-done ul { margin: 0 0 18px; padding-left: 20px; color: var(--text-mid); line-height: 1.8; }

.srma-tick {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--blue-subtle);
  color: var(--blue);
}

.srma-tick svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .srma-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .srma-hero { position: static; }
}

@media (max-width: 560px) {
  .srma-row { grid-template-columns: minmax(0, 1fr); }
  .srma-hero__body,
  .srma-hero__top { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 420px) {
  .srma-weeks { grid-template-columns: minmax(0, 1fr); }
}
