/*
 * Anon-C stylesheet.
 *
 * The original app compiled Tailwind v4 at build time. Hostinger shared
 * hosting has no Node toolchain, so this is a hand-authored port of the same
 * design: identical tokens, spacing scale, type scale and colours, expressed
 * as component classes instead of utilities. Nothing here needs a build step,
 * and there is no runtime CSS framework to download.
 *
 * Order: tokens -> reset -> layout -> components -> pages -> utilities.
 */

/* ------------------------------------------------------------------ tokens */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #2f7cc0;
  --primary-dark: #24649d;
  --primary-text: #1e619b;
  --navy: #14167f;
  --announcement: #2d7dd2;
  --mist: #f5f8fc;
  --sand: #d98e4a;
  --sand-text: #a85f20;

  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;

  --red-50: #fef2f2;
  --red-300: #fca5a5;
  --red-700: #b91c1c;
  --red-800: #991b1b;
  --red-900: #7f1d1d;

  --green-50: #f0fdf4;
  --green-300: #86efac;
  --green-700: #15803d;
  --green-900: #14532d;

  --shadow-card: 0 10px 30px rgb(20 22 127 / 0.08);
  --shadow-panel: 0 12px 35px rgb(20 22 127 / 0.1);
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
}

/* ------------------------------------------------------------------- reset */

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

html {
  scroll-behavior: smooth;
  height: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100%;
  background: #fff;
  color: var(--slate-800);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
fieldset {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

fieldset {
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

legend {
  padding: 0;
}

::selection {
  background: #cfe5f8;
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--sand);
  outline-offset: 3px;
}

/* ------------------------------------------------------------------ layout */

.page-shell {
  margin-inline: auto;
  width: min(100% - 2rem, 72rem);
}

.section-space {
  padding-block: clamp(4rem, 9vw, 7rem);
}

.section--mist {
  background: var(--mist);
}

.section--white {
  background: #fff;
}

.section--navy {
  background: var(--navy);
  color: #fff;
}

.scroll-anchor {
  scroll-margin-top: 7rem;
}

/* The crisis banner is sticky, so anything scrolled to by fragment has to
   clear it. */
[id] {
  scroll-margin-top: 4rem;
}

#page-top {
  scroll-margin-top: 0;
}

.page-frame {
  display: flex;
  min-height: calc(100vh - 2.5rem);
  flex-direction: column;
}

.page-frame__main {
  flex: 1;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  border-radius: var(--radius);
  background: #fff;
  color: var(--navy);
  padding: 0.75rem 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgb(15 23 42 / 0.2);
}

.skip-link:focus {
  top: 1rem;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 5rem;
  z-index: 40;
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  transform: translateY(0.75rem);
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 24px rgb(15 23 42 / 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease, background-color 150ms ease;
}

.back-to-top:hover {
  background: var(--primary-dark);
}

.back-to-top--visible,
.back-to-top:focus-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.back-to-top svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* -------------------------------------------------------- crisis + header */

.crisis-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--announcement);
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}

.crisis-banner a {
  border-radius: 0.25rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.crisis-banner a:hover {
  text-decoration: none;
}

.site-header {
  border-bottom: 1px solid var(--slate-200);
  background: #fff;
}

.site-header__inner {
  display: flex;
  min-height: 5rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}

.brand {
  border-radius: 0.25rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--navy);
  text-decoration: none;
}

.brand span {
  color: var(--primary);
}

.site-nav {
  order: 3;
  width: 100%;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 1.25rem;
  row-gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
}

.site-nav__list a {
  border-radius: 0.25rem;
  text-decoration: none;
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible {
  color: var(--primary);
}

.site-header__cta {
  order: 2;
}

.site-header__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-600);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--primary-dark);
}

.btn--primary:disabled {
  background: var(--slate-400);
  cursor: not-allowed;
}

.btn--secondary {
  border: 2px solid var(--primary);
  background: #fff;
  color: var(--primary-text);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: var(--blue-50);
}

.btn--secondary:disabled {
  border-color: var(--slate-300);
  color: var(--slate-400);
  cursor: not-allowed;
}

.btn--ghost {
  background: transparent;
  color: var(--primary-text);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--blue-50);
}

.btn--ghost:disabled {
  color: var(--slate-400);
  cursor: not-allowed;
}

.btn--danger {
  border: 2px solid var(--red-700);
  background: #fff;
  color: var(--red-800);
}

.btn--danger:hover,
.btn--danger:focus-visible {
  background: var(--red-50);
}

.btn--block {
  width: 100%;
}

.btn--link {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0.25rem;
  background: none;
  padding: 0;
  text-align: center;
  font-weight: 600;
  color: var(--primary-text);
  cursor: pointer;
  text-underline-offset: 4px;
}

.btn--link:hover,
.btn--link:focus-visible {
  text-decoration: underline;
}

/* ------------------------------------------------------------------- card */

.card {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.card--selected {
  outline: 3px solid var(--primary);
  outline-offset: -1px;
}

.card--stretch {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.card--accent {
  border: 2px solid var(--sand);
  text-align: center;
}

/* ------------------------------------------------------------ typography */

.eyebrow {
  font-weight: 700;
  color: var(--primary-text);
}

.eyebrow--sand {
  color: var(--sand-text);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
}

.eyebrow--light {
  color: var(--blue-200);
}

.heading-1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--navy);
}

/* Only the home hero grows with the viewport; every other page keeps its
   heading at a steady 2.25rem, as the original did. */
.heading-1--hero {
  font-size: 2.25rem;
}

.heading-2 {
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
}

.heading-3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

.section--navy .heading-1,
.section--navy .heading-2,
.section--navy .heading-3 {
  color: #fff;
}

.lede {
  font-size: 1.25rem;
  line-height: 2rem;
  color: var(--slate-700);
  max-width: 42rem;
}

.prose {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--slate-700);
}

.prose > * + * {
  margin-top: 1.5rem;
}

.muted {
  color: var(--slate-700);
}

.small-print {
  font-size: 0.875rem;
  color: var(--slate-600);
}

.text-balance {
  text-wrap: balance;
}

.center {
  text-align: center;
}

.stack-sm > * + * {
  margin-top: 0.5rem;
}

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-7 { margin-top: 1.75rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }

/* --------------------------------------------------------------- messages */

.alert {
  border-radius: var(--radius);
  border: 1px solid;
  padding: 1rem;
  font-weight: 600;
}

.alert--error {
  border-color: var(--red-300);
  background: var(--red-50);
  color: var(--red-900);
}

.alert--success {
  border-color: var(--green-300);
  background: var(--green-50);
  color: var(--green-900);
}

.alert--info {
  border: 1px solid var(--blue-200);
  background: var(--blue-50);
  color: var(--slate-800);
  font-weight: 400;
}

.alert--info strong {
  display: block;
  color: var(--navy);
}

/* ------------------------------------------------------------------ forms */

.field {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
}

.field__input {
  margin-top: 0.5rem;
  display: block;
  min-height: 3rem;
  width: 100%;
  border: 1px solid var(--slate-400);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 400;
  color: var(--slate-900);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}

.field__input::placeholder {
  color: var(--slate-500);
}

.field__input[aria-invalid="true"] {
  border-color: var(--red-700);
}

.password-field {
  position: relative;
  margin-top: 0.5rem;
}

.password-field .field__input {
  margin-top: 0;
  padding-right: 3.5rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.375rem;
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  transform: translateY(-50%);
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--slate-600);
  cursor: pointer;
}

.password-toggle[hidden] {
  display: none;
}

.password-toggle:hover {
  background: var(--blue-50);
  color: var(--primary-text);
}

.password-toggle__icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle__icon--hide,
.password-toggle[aria-pressed="true"] .password-toggle__icon--show {
  display: none;
}

.password-toggle[aria-pressed="true"] .password-toggle__icon--hide {
  display: block;
}

.field__note {
  margin-top: 0.5rem;
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--slate-600);
}

.field__note--error {
  color: var(--red-800);
}

.password-fields {
  display: grid;
  gap: 1.25rem;
}

.password-requirements {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: var(--mist);
  padding: 1rem;
}

.password-requirements__title {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
}

.password-requirements__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--slate-600);
}

.password-requirements__list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.password-requirements__list li > span {
  display: inline-flex;
  flex: 0 0 auto;
  width: 1.125rem;
  height: 1.125rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--slate-400);
  border-radius: 999px;
  background: #fff;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.password-requirements__list li.is-met {
  color: var(--green-900);
  font-weight: 600;
}

.password-requirements__list li.is-met > span {
  border-color: var(--green-700);
  background: var(--green-700);
}

.password-requirements__list li.is-met > span::before {
  content: "\2713";
}

.form-panel {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}

.form-stack > * + * {
  margin-top: 1.25rem;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--navy);
}

.checkbox-field input {
  width: 1.125rem;
  height: 1.125rem;
}

/* --------------------------------------------------------------- wave art */

.wave {
  display: block;
  height: 3rem;
  width: 100%;
  color: var(--mist);
}

.wave--flip {
  transform: rotate(180deg);
}

/* ------------------------------------------------------------------- grid */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--3 {
  grid-template-columns: 1fr;
}

.grid--2 {
  grid-template-columns: 1fr;
}

.measure {
  max-width: 42rem;
}

.measure--wide {
  max-width: 48rem;
}

.center-column {
  margin-inline: auto;
}

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.hero__grid {
  display: grid;
  align-items: center;
  gap: 3rem;
  padding-block: 4rem;
}

.hero__cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__claim {
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

.hero__art {
  position: relative;
  margin-inline: auto;
  width: 100%;
  max-width: 42rem;
  aspect-ratio: 4 / 3;
}

.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* -------------------------------------------------------------- steps grid */

.step-card__number {
  display: flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--navy);
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}

/* -------------------------------------------------------- counsellor card */

.counsellor-card__avatar {
  display: flex;
  width: 5rem;
  height: 5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(to bottom right, var(--blue-100), var(--blue-50));
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
}

.counsellor-card__quals {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-text);
}

.counsellor-card__bio {
  margin-top: 1rem;
  flex: 1;
  color: var(--slate-700);
}

.counsellor-card .btn {
  margin-top: 1.5rem;
  width: 100%;
}

/* -------------------------------------------------------------- privacy CTA */

.privacy-panel {
  display: grid;
  align-items: center;
  gap: 2.5rem;
}

.privacy-panel__seal {
  margin-inline: auto;
  display: flex;
  width: 13rem;
  height: 13rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgb(147 197 253 / 0.4);
  background: rgb(255 255 255 / 0.1);
}

.privacy-panel__seal svg {
  width: 7rem;
  height: 7rem;
}

.on-navy {
  color: #eff6ff;
  font-size: 1.125rem;
}

/* -------------------------------------------------------------- accordion */

.accordion {
  overflow: hidden;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}

.accordion__item + .accordion__item {
  border-top: 1px solid var(--slate-200);
}

.accordion__item {
  padding-inline: 1.25rem;
}

.accordion__summary {
  display: flex;
  min-height: 4rem;
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.accordion__summary::-webkit-details-marker {
  display: none;
}

.accordion__sign {
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 150ms ease;
}

.accordion__item[open] .accordion__sign {
  transform: rotate(45deg);
}

.accordion__answer {
  max-width: 48rem;
  padding-bottom: 1.25rem;
  color: var(--slate-700);
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--navy);
  color: #fff;
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 3rem;
}

.site-footer__brand {
  font-size: 1.25rem;
  font-weight: 800;
}

.site-footer p.site-footer__blurb {
  margin-top: 0.75rem;
  max-width: 24rem;
  color: var(--blue-100);
}

.site-footer__links {
  margin-top: 0.75rem;
  color: var(--blue-100);
}

.site-footer__links li + li {
  margin-top: 0.5rem;
}

.site-footer a {
  border-radius: 0.25rem;
  text-decoration: none;
  text-underline-offset: 4px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.site-footer__urgent {
  border-radius: var(--radius);
  border: 1px solid rgb(147 197 253 / 0.4);
  background: rgb(255 255 255 / 0.1);
  padding: 1.25rem;
}

.site-footer__urgent p + p {
  margin-top: 0.5rem;
  color: #eff6ff;
}

.site-footer__urgent a {
  font-weight: 700;
  text-decoration: underline;
}

.site-footer__legal {
  border-top: 1px solid rgb(255 255 255 / 0.2);
  padding-block: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--blue-100);
}

/* -------------------------------------------------------- step indicator */

.step-indicator {
  margin-bottom: 2.5rem;
}

.step-indicator__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.step-indicator__item {
  text-align: center;
}

.step-indicator__dot {
  margin-inline: auto;
  display: flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--slate-300);
  border-radius: 999px;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--slate-600);
}

.step-indicator__item--active .step-indicator__dot {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.step-indicator__item--complete .step-indicator__dot {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.step-indicator__label {
  margin-top: 0.5rem;
  display: none;
  font-size: 0.875rem;
  color: var(--slate-600);
}

.step-indicator__item--active .step-indicator__label {
  font-weight: 700;
  color: var(--navy);
}

/* --------------------------------------------------------------- booking */

.booking-flow[aria-busy="true"] {
  cursor: progress;
}

.booking-flow[aria-busy="true"] form {
  pointer-events: none;
}

.booking-choice-loading::after {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-left: 0.625rem;
  border: 2px solid currentcolor;
  border-right-color: transparent;
  border-radius: 999px;
  vertical-align: -0.15rem;
  animation: booking-choice-spin 650ms linear infinite;
}

.slot.booking-choice-loading {
  position: relative;
  padding-right: 3rem;
}

.slot.booking-choice-loading::after {
  position: absolute;
  top: calc(50% - 0.5rem);
  right: 1rem;
  margin-left: 0;
}

@keyframes booking-choice-spin {
  to {
    transform: rotate(360deg);
  }
}

.choice-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.booking-stage + .booking-stage {
  margin-top: 2rem;
}

.booking-stage--time {
  border-top: 1px solid var(--slate-300);
  padding-top: 2rem;
}

.booking-stage__heading {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.booking-stage__number {
  display: inline-flex;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--navy);
  font-size: 0.875rem;
  font-weight: 800;
  color: #fff;
}

.date-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.date-choice-grid form {
  display: block;
}

.date-choice {
  display: flex;
  width: 100%;
  min-height: 6.25rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--slate-300);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.75rem;
  color: var(--slate-800);
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.date-choice:hover {
  border-color: var(--primary);
  background: var(--blue-50);
}

.date-choice--selected {
  border-color: var(--navy);
  background: var(--blue-100);
  color: var(--navy);
}

.date-choice.booking-choice-loading {
  position: relative;
  padding-right: 2.5rem;
}

.date-choice.booking-choice-loading::after {
  position: absolute;
  top: calc(50% - 0.5rem);
  right: 0.875rem;
  margin-left: 0;
}

.date-choice__weekday {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-600);
}

.date-choice__date {
  margin-top: 0.125rem;
  font-size: 1.125rem;
  font-weight: 800;
}

.date-choice__availability {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: var(--slate-600);
}

.date-choice-prompt {
  border: 1px dashed var(--slate-400);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.55);
  padding: 1.25rem;
  color: var(--slate-600);
}

@media (min-width: 640px) {
  .date-choice-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .date-choice-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.slot-day + .slot-day {
  margin-top: 2rem;
}

.slot-day__legend {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
}

.slot-grid {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

/* Each time is its own form, so the form is the grid cell and the button
   inside it has to fill that cell. */
.slot-grid form {
  display: block;
}

.slot {
  width: 100%;
  min-height: 4rem;
  border: 2px solid var(--slate-300);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  color: var(--slate-800);
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.slot:hover,
.slot:focus-visible {
  border-color: var(--primary);
}

.slot:not(.slot--selected):hover,
.slot:not(.slot--selected):focus-visible {
  background: var(--blue-50);
}

.slot__time {
  display: block;
  font-weight: 700;
}

.slot__name {
  display: block;
  font-size: 0.875rem;
  color: var(--slate-600);
}

.slot--selected {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.slot--selected .slot__name {
  color: var(--blue-100);
}

.flow-actions {
  margin-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.flow-actions--end {
  justify-content: flex-end;
}

.flow-actions--confirm {
  align-items: flex-end;
  flex-wrap: wrap;
}

.booking-confirm-form {
  flex: 1 1 19rem;
  max-width: 22rem;
}

.summary-list {
  display: grid;
  gap: 1.25rem;
}

.summary-list dt {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-600);
}

.summary-list dd {
  margin: 0.25rem 0 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
}

/* ----------------------------------------------------------- confirmation */

.success-mark {
  margin-inline: auto;
  display: flex;
  width: 3.5rem;
  height: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--green-700);
  font-size: 1.5rem;
  color: #fff;
}

.access-code {
  display: block;
  margin-block: 1.5rem;
  overflow-wrap: anywhere;
  border-radius: var(--radius);
  background: var(--mist);
  padding: 1.25rem 1rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  color: var(--navy);
}

.access-code-warning {
  font-weight: 700;
  color: var(--red-800);
}

.copy-status {
  margin-top: 0.75rem;
  min-height: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
}

.download-grid {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

/* ------------------------------------------------------- counsellor portal */

.portal {
  min-height: calc(100vh - 2.5rem);
  background: var(--mist);
}

.portal__main {
  padding-block: 2.5rem;
}

.login-panel {
  margin-inline: auto;
  max-width: 28rem;
  padding-block: 2rem;
}

.login-panel__card {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 1.75rem;
  box-shadow: var(--shadow-panel);
}

.dashboard__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.session-card {
  display: grid;
  align-items: center;
  gap: 1.25rem;
}

.session-card + .session-card {
  margin-top: 1rem;
}

.session-card__when {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
}

.session-card__meta {
  font-size: 0.875rem;
  color: var(--slate-600);
}

.session-card__ref-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-500);
}

.session-card__ref {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-weight: 700;
  color: var(--navy);
}

.session-card__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pill {
  border-radius: 999px;
  background: var(--blue-100);
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: capitalize;
  color: var(--navy);
}

.admin-actions,
.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.admin-form {
  max-width: 44rem;
  margin-inline: auto;
}

@media (max-width: 34rem) {
  .password-requirements__list {
    grid-template-columns: 1fr;
  }
}

.admin-table-wrap {
  overflow-x: auto;
  padding: 0;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th,
.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--slate-200);
  vertical-align: middle;
}

.admin-table th {
  font-size: 0.875rem;
  color: var(--slate-600);
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

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

/* -------------------------------------------------------------- responsive */

@media (min-width: 640px) {
  .crisis-banner {
    font-size: 1rem;
  }

  .heading-1--hero {
    font-size: 3rem;
  }

  .heading-2 {
    font-size: 2.25rem;
  }

  .site-nav__list {
    font-size: 1rem;
  }

  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .access-code {
    font-size: 1.875rem;
  }

  .choice-row,
  .dashboard__header {
    flex-direction: row;
    align-items: center;
  }

  .login-panel__card {
    padding: 2.25rem;
  }

  .form-panel {
    padding: 2rem;
  }

  .step-indicator__label {
    display: block;
  }
}

@media (min-width: 768px) {
  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    padding-block: 6rem;
  }

  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .privacy-panel {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .site-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-nav {
    order: 2;
    width: auto;
  }

  .site-header__cta {
    order: 3;
  }

  .session-card {
    grid-template-columns: 1fr auto auto;
  }
}

@media (min-width: 1024px) {
  .heading-1--hero {
    font-size: 3.75rem;
  }

  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .slot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------- utilities */

.mb-9 { margin-bottom: 2.25rem; }
.mb-10 { margin-bottom: 2.5rem; }

.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }

.capitalize { text-transform: capitalize; }

.divider-top {
  border-top: 1px solid var(--slate-200);
  padding-top: 1.5rem;
}

.detail-list > div + div {
  margin-top: 1rem;
}

.detail-list dt {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-600);
}

.detail-list dd {
  margin: 0;
}

.detail-list dd.detail-list__lead {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
}

.mb-6 { margin-bottom: 1.5rem; }

.eyebrow--soft { font-weight: 600; }

.empty-note {
  font-weight: 600;
  color: var(--navy);
}

a.error-action:hover,
a.error-action:focus-visible {
  color: var(--primary);
}
