/* ══════════════════════════════════════════════════════════════
   État d'Âme · Request access  (request-access.css)
   ──────────────────────────────────────────────────────────────
   Loaded after dusk.css, welcome.css and tour.css by the practice
   access form and its thank-you page. The shell, hero and buttons
   come from those; this is the form card and its fields.
   ══════════════════════════════════════════════════════════════ */

.fp-hero--form.dusk-hero { padding-bottom: 150px; }
.fp-hero--thanks.dusk-hero { min-height: 72vh; padding-bottom: 110px; }
.ra-header-actions { margin-left: auto; }
.ra-footer {
  padding: 20px 0 28px;
  border-top: 1px solid var(--dusk-line);
  color: var(--dusk-muted);
  font-size: 12px;
  text-align: center;
}

/* The card rises into the hero, the same way the boundary table does
   on the tour pages. */
.ra-section { position: relative; z-index: 4; margin-top: -96px; padding-bottom: 54px; }
.ra-card {
  max-width: 720px; margin: 0 auto; padding: 36px 36px 30px;
  border: 1px solid var(--dusk-line); border-radius: var(--wl-radius);
  background: var(--dusk-card); box-shadow: var(--wl-sh-3);
}

.ra-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.ra-field { display: flex; flex-direction: column; gap: 7px; }
.ra-field--wide { grid-column: 1 / -1; }
.ra-field > span { color: var(--dusk-ink); font-size: 13px; font-weight: 700; }
.ra-field > span em { margin-left: 4px; color: var(--dusk-muted); font-style: normal; font-weight: 500; }

.ra-field input,
.ra-field select,
.ra-field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--dusk-line); border-radius: 12px;
  background: var(--dusk-bg); color: var(--dusk-ink);
  font: 500 15px/1.4 'Albert Sans', sans-serif;
  transition: border-color .2s, box-shadow .2s;
}
.ra-field textarea { resize: vertical; min-height: 104px; }
.ra-field select { appearance: none; padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--dusk-muted) 50%),
                    linear-gradient(135deg, var(--dusk-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.ra-field input:focus,
.ra-field select:focus,
.ra-field textarea:focus {
  outline: none; border-color: var(--dusk-rust);
  box-shadow: 0 0 0 3px rgba(var(--dusk-rust-rgb), .18);
}
/* Only flag a field once someone has actually been in it. */
.ra-field input:user-invalid,
.ra-field select:user-invalid { border-color: #c0543f; }

.ra-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 26px; }
.ra-fine { flex: 1 1 220px; color: var(--dusk-muted); font-size: 12.5px; line-height: 1.5; }
.ra-fine a, .ra-signin a { color: var(--dusk-rust); font-weight: 700; }

.ra-signin {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--dusk-line);
  color: var(--dusk-copy); font-size: 14px;
}

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

.ra-done-icon {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 6px;
  border-radius: 16px; background: rgba(255,255,255,.12); color: #f0c39c;
}
.ra-done-icon .material-symbols-rounded { font-size: 28px; }

@media (max-width: 620px) {
  .fp-hero--form.dusk-hero { padding-bottom: 120px; }
  .ra-section { margin-top: -72px; padding-bottom: 42px; }
  .ra-card { padding: 24px 20px 22px; }
  .ra-grid { grid-template-columns: 1fr; gap: 16px; }
  .ra-actions .wl-btn { width: 100%; }
}

/* A branch is a grouping for the script, not for the layout: display:contents
   lets its fields sit directly in .ra-grid so a revealed branch lines up with
   the shared fields instead of forming a nested block. The [hidden] rule has
   to be written out, because display:contents would otherwise override the
   browser default for the hidden attribute. */
.ra-branch { display: contents; }
.ra-branch[hidden] { display: none; }
