/* ==========================================================================
   Request access page. Loaded only by /request-access.html.
   Left: what happens after you send it. Right: a three-part form.
   Field names are unchanged; main.js still does the submit.
   ========================================================================== */
.ra-page {
  position: relative; overflow: clip;
  padding: var(--sp-7, 48px) 0 var(--sp-9, 96px);
  background:
    radial-gradient(40% 50% at 85% 10%, rgba(0, 122, 252, 0.10), transparent 70%),
    var(--surface);
}
.ra-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--sp-8, 64px); align-items: start; }

/* ---- left column --------------------------------------------------------- */
.ra-intro { position: sticky; top: 110px; }
.ra-intro h1 { margin-top: 10px; font-size: clamp(2.2rem, 4vw, 3.1rem); letter-spacing: -0.025em; line-height: 1.06; }
.ra-intro .lede { margin-top: var(--sp-4, 16px); max-width: 40ch; }
.ra-next { list-style: none; margin: var(--sp-6, 32px) 0 0; padding: 0; counter-reset: ra; display: grid; gap: 18px; position: relative; }
.ra-next::before { content: ""; position: absolute; left: 15px; top: 16px; bottom: 16px; border-left: 2px dashed var(--line-strong); }
.ra-next li { position: relative; counter-increment: ra; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; }
.ra-next li::before {
  content: counter(ra); grid-row: 1 / span 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  position: relative; z-index: 1; background: #fff; border: 2px solid var(--accent-soft-2, #c9dcff);
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--accent);
}
.ra-next li:first-child::before { background: var(--accent); border-color: var(--accent); color: #fff; }
.ra-next b { font-size: 0.95rem; color: var(--text-1); padding-top: 5px; }
.ra-next span { font-size: 0.85rem; line-height: 1.5; color: var(--text-2); }
.ra-note { display: flex; align-items: center; gap: 8px; margin-top: var(--sp-6, 32px); font-size: 0.82rem; color: var(--text-3); }
.ra-note svg { width: 15px; height: 15px; color: var(--accent); flex: 0 0 15px; }

/* ---- the form ------------------------------------------------------------ */
.ra-form {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 30px 60px -36px rgba(0, 24, 60, 0.35), 0 2px 6px rgba(0, 24, 60, 0.04);
  padding: 8px 32px 28px;
}
.ra-step { border: 0; margin: 0; padding: 22px 0; min-width: 0; }
.ra-step + .ra-step { border-top: 1px solid var(--line); }
/* float takes the legend out of the fieldset border, so it sits inside the
   padding like a normal heading instead of cutting through the divider. */
.ra-step legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 14px; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--text-1); }
.ra-step legend span {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--text-1); color: #fff; font-size: 0.8rem;
}
.ra-step > legend + * { clear: both; }
.ra-label { display: block; margin: 0 0 6px; font-size: 0.82rem; font-weight: 600; color: var(--text-1); }
.ra-form .form-input, .ra-form .form-textarea { font-size: 0.95rem; }
.ra-form .form-textarea { min-height: 0; }

/* service tiles: a whole card is the checkbox */
.ra-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ra-svc {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 12px 12px 11px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.ra-svc:hover { border-color: var(--line-strong); }
.ra-svc input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ra-svc svg { width: 20px; height: 20px; color: var(--text-3); transition: color 0.15s ease; }
.ra-svc span { font-size: 0.86rem; font-weight: 600; line-height: 1.25; color: var(--text-1); }
.ra-svc small { font-size: 0.68rem; font-weight: 600; color: var(--text-3); border: 1px solid var(--line); border-radius: 999px; padding: 1px 6px; margin-left: 2px; }
.ra-svc::after {   /* the tick that appears when chosen */
  content: ""; position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: #fff center / 11px no-repeat;
}
.ra-svc:has(input:checked) { border-color: var(--accent); background: #f3f8ff; box-shadow: 0 0 0 3px var(--accent-soft, #e3efff); }
.ra-svc input:checked ~ svg { color: var(--accent); }
.ra-svc:has(input:checked)::after {
  border-color: var(--accent);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.ra-svc:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* "you are a" pills */
.ra-types { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.ra-types-label { font-size: 0.8rem; color: var(--text-3); margin-right: 4px; }
.ra-types label { position: relative; cursor: pointer; }
.ra-types input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ra-types label span {
  display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 0.8rem; font-weight: 600; color: var(--text-2); background: #fff; transition: all 0.15s ease;
}
.ra-types label:hover span { border-color: var(--text-3); }
.ra-types input:checked + span { background: var(--text-1); border-color: var(--text-1); color: #fff; }
.ra-types input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.ra-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ra-more { margin-top: 16px; }
.ra-more summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.86rem; font-weight: 600; color: var(--accent);
}
.ra-more summary::-webkit-details-marker { display: none; }
.ra-more summary::before { content: "+"; width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; background: var(--accent-soft, #e3efff); font-weight: 700; }
.ra-more[open] summary::before { content: "\2212"; }
.ra-more summary span { font-weight: 400; color: var(--text-3); }
.ra-more[open] > .ra-row { margin-top: 14px; }
.ra-more > .ra-label { margin-top: 14px; }

.ra-submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 6px; }
.ra-submit .btn { gap: 8px; }
.ra-submit .btn svg { width: 18px; height: 18px; }
.ra-submit > span { font-size: 0.8rem; color: var(--text-3); }
.ra-form .form-msg { margin-top: 14px; }

@media (max-width: 1024px) {
  .ra-grid { grid-template-columns: 1fr; gap: var(--sp-6, 32px); max-width: 680px; margin-inline: auto; }
  .ra-intro { position: static; }
  .ra-next { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .ra-next::before { display: none; }
  .ra-next li { grid-template-columns: 1fr; row-gap: 6px; }
  .ra-next li::before { grid-row: auto; }
  .ra-next b { padding-top: 0; }
}
@media (max-width: 640px) {
  .ra-page { padding-top: var(--sp-5, 24px); padding-bottom: var(--sp-7, 48px); }
  .ra-next { grid-template-columns: 1fr; gap: 10px; margin-top: var(--sp-5, 24px); }
  .ra-next li { grid-template-columns: 32px minmax(0, 1fr); row-gap: 0; align-items: center; }
  .ra-next li::before { grid-row: auto; }
  .ra-next b { padding-top: 0; }
  .ra-next span { display: none; }   /* titles alone on phones, so the form comes sooner */
  .ra-note { margin-top: var(--sp-4, 16px); }
  .ra-form { padding: 4px 18px 22px; border-radius: 16px; }
  .ra-services { grid-template-columns: 1fr 1fr; }
  .ra-row { grid-template-columns: 1fr; }
  .ra-submit .btn { width: 100%; justify-content: center; }
  .ra-submit > span { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .ra-svc, .ra-svc svg, .ra-types label span { transition: none; } }
