/* The chat window, and what Reception shows around it. Loaded after brand.css. */

.section--reception { padding-block: clamp(1.5rem, 5vw, 3rem); padding-inline: var(--gutter); }

/* On a phone: the heading, Victoria, then the chat. On a wide screen Victoria sits to the left. */
.reception {
  display: grid;
  gap: 1.25rem;
  max-width: 68rem;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .reception {
    grid-template-columns: 17rem minmax(0, 1fr);
    grid-template-areas: 'head head' 'clinician chat';
    column-gap: 2rem;
    align-items: start;
  }
  .reception > .reception__head { grid-area: head; }
  .reception > .clinician { grid-area: clinician; position: sticky; top: 1.5rem; }
  .reception > .reception__chat { grid-area: chat; }
}

.reception__title { margin-bottom: 0; }

/* The quiz: Vic's heading and lines above, the chat below, one column. */
.quiz { display: grid; gap: 1.5rem; max-width: 44rem; margin-inline: auto; }
.quiz__title { margin-bottom: 0.25em; }
.quiz__subtitle { font-weight: 600; color: var(--plum); font-size: 1.15rem; }
.quiz__head p:last-child { margin-bottom: 0; }
.signup-note { font-size: 0.9rem; color: var(--green-dark); }

/* ---------- Victoria, the person behind reception ---------- */

.clinician {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--green-light) 18%, var(--paper));
}

.clinician__photo {
  flex: none;
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
}

.clinician p { margin: 0; line-height: 1.4; }
.clinician__name { font-family: var(--serif); font-size: 1.25rem; color: var(--plum); }
.clinician__letters { font-size: 0.85rem; font-weight: 600; color: var(--green-dark); }
.clinician__role { font-size: 0.9rem; }
.clinician__line { display: none; }

@media (min-width: 900px) {
  .clinician {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.4rem;
  }
  .clinician__photo { width: 160px; height: 160px; margin-inline: auto; }
  .clinician__words { display: grid; gap: 0.35rem; }
  .clinician__line {
    display: block;
    margin-top: 0.6rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--sage);
    font-size: 0.95rem;
  }
}

/* ---------- chat ---------- */

.chat {
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.chat__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--sage);
  background: color-mix(in srgb, var(--green-light) 22%, var(--paper));
}

/* VicBot's picture is a logo, so it's shown whole on white rather than cropped. */
.chat__mark { display: block; width: 48px; height: 48px; border-radius: 50%; object-fit: contain; padding: 3px; background: #fff; border: 1px solid var(--sage); }
.chat__name { margin: 0; font-weight: 700; color: var(--plum); line-height: 1.2; }
.chat__role { margin: 0; font-size: 0.85rem; color: var(--green-dark); line-height: 1.3; }

.chat__log {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: min(60vh, 34rem);
  padding: 1rem;
  overflow-y: auto;
}

.bubble {
  max-width: 85%;
  margin: 0;
  padding: 0.65rem 0.95rem;
  border-radius: 18px;
  overflow-wrap: anywhere;
}

.bubble--bot {
  align-self: flex-start;
  border-top-left-radius: 4px;
  background: color-mix(in srgb, var(--green-light) 28%, var(--paper));
  color: #3a4a35;
}

.bubble--her {
  align-self: flex-end;
  border-top-right-radius: 4px;
  background: var(--plum);
  color: var(--cream);
  white-space: pre-wrap;
}

.bubble--typing { letter-spacing: 0.2em; opacity: 0.7; }

/* Read out by a screen reader, so each bubble says who is speaking. Not shown. */
.chat__who {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.chat__form {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--sage);
}

.chat__input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--sage);
  border-radius: 12px;
  background: #fff;
  color: var(--grey);
  font: inherit;
  line-height: 1.45;
  resize: none;
}

.chat__input:disabled { background: var(--paper); }

.chat__send,
.room__button {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border: 0;
  border-radius: 999px;
  background: var(--plum);
  color: var(--cream);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.chat__send:hover,
.room__button:hover { background: var(--plum-deep); }

.chat__send:disabled,
.room__button:disabled { opacity: 0.4; cursor: default; }

.chat__below:not(:empty) {
  padding: 1rem;
  border-top: 1px solid var(--sage);
}

.chat__notice { font-weight: 600; color: var(--plum); }

.choices { display: flex; flex-wrap: wrap; gap: 0.6rem; }


/* ---------- her notes for Victoria, offered with the call ---------- */

.notes {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--sage);
}

.notes__offer { margin-bottom: 0.6rem; font-weight: 600; color: var(--plum); }
.notes__saved { margin: 0; font-weight: 600; color: var(--green-dark); }

/* ---------- her details ---------- */

.details { display: grid; gap: 0.5rem; max-width: 26rem; }
.details > label:not(.details__tick) { font-weight: 600; color: var(--plum); }

.details input[type='text'],
.details input[type='email'] {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--sage);
  border-radius: 12px;
  font: inherit;
  color: var(--grey);
}

.details__tick {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.details__tick input {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.25rem;
  accent-color: var(--green-dark);
}

.details__problem { margin: 0; font-weight: 600; color: var(--plum); }
.details .room__button { justify-self: start; margin-top: 0.4rem; }

/* ---------- her answer ---------- */

.answer__lead { font-size: 1.5rem; }
.answer__more { margin: 1.5rem 0 0.6rem; font-size: 1.05rem; color: var(--green-dark); }

.room {
  padding: 1rem 1.15rem;
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  background: var(--paper);
}

.room + .room { margin-top: 0.75rem; }

.room--primary {
  border: 2px solid var(--green-dark);
  background: color-mix(in srgb, var(--green-light) 22%, var(--paper));
}

.room__name { margin-bottom: 0.35em; font-size: 1.2rem; }
.room:not(.room--primary) .room__button { background: var(--green-dark); }
.room:not(.room--primary) .room__button:hover { background: #3d5038; }

/* The quieter button (the emergency "no", and "yes, she can see it") is an outline wherever it sits.
   It comes last so the green rooms above can't paint over it. */
.room__button.room__button--quiet,
.room:not(.room--primary) .room__button.room__button--quiet {
  border: 2px solid var(--green-dark);
  background: transparent;
  color: var(--green-dark);
}

.room__button.room__button--quiet:hover,
.room:not(.room--primary) .room__button.room__button--quiet:hover { background: color-mix(in srgb, var(--green-light) 25%, transparent); }

.reception__urgent { border-left: 5px solid var(--plum); }

/* ---------- the decoder's appointment brief ---------- */

.brief { display: grid; gap: 1rem; }
.brief__title { margin-bottom: 0; font-size: clamp(1.5rem, 4vw, 2rem); }
.brief__sub { margin: 0; font-weight: 600; color: var(--green-dark); }
.brief__note { margin: 0; padding: 0.8rem 1rem; border-left: 4px solid var(--green-light); font-size: 0.92rem; }

.brief__card {
  padding: 1rem 1.15rem;
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  background: var(--paper);
}

.brief__card h3 { margin-bottom: 0.5em; font-size: 1.15rem; }
.brief__card > :last-child { margin-bottom: 0; }
.brief__card--flag { border: 2px solid var(--plum); background: #fff; }

.test { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.7rem 0; border-top: 1px solid var(--sage); }
.test:last-of-type { margin-bottom: 0.8rem; }
.test p { margin: 0; }
.test__name { font-weight: 700; color: var(--plum); }
.test__why { font-size: 0.95rem; }

.test__badge {
  flex: none;
  margin-top: 0.15rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--green-dark);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.test__badge--private { background: var(--plum); }
