/* ==================================================================
   CREVIC · marcacao.css
   ------------------------------------------------------------------
   Folha de estilos só da marcação de exames. Não depende do style.css
   do site nem do Bootstrap: tem apenas o que esta página usa, com as
   mesmas cores, letras e regras do site (cantos retos, sem sombras).

   Pontos de quebra:
     900px  resumo passa para baixo; dia e hora um por baixo do outro
     640px  telemóvel

   ÍNDICE
   00  Tokens          cores, espaços, letras
   01  Base            reset, texto, ligações, foco
   02  Elementos       contentor, botão, ligação, campo, nota
   03  Cabeçalho       .header
   04  Título e passos .banner  .breadcrumbs  .steps
   05  Marcação        .booking  .panel
   06  Exames          .multi  .choice
   07  Pagamento       .pay
   08  Calendário      .agenda  .calendar
   09  Horas           .slots  .slot
   10  Resumo          .summary
   11  Rodapé          .footer
   12  Passos da agenda e dados  .agenda-step  .captcha  .form-actions
   13  Confirmação     .review  .done
   ================================================================== */


/* ==================================================================
   00 • TOKENS
   ================================================================== */
:root {
  --brand: #058a43;
  --brand-dark: #09762f;
  --footer-bg: #1e352f;
  --tint: #f1f8f4;            /* fundo de opção escolhida */
  --tint-2: #e8f4ed;          /* verde-claro: banner, notas, dias com vagas */
  --line-green: #cfe0d5;
  --ink: #0f172a;
  --text-soft: #4b5563;
  --muted: #6b7280;
  --off: #c4c9d0;             /* dias passados, horas indisponíveis */
  --line: #e5e7eb;
  --field-line: #cfd7e3;
  --field-bg: #f7f9fc;

  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;

  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 1.5rem);
  --space-section: var(--sp-5);

  --font-heading: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (max-width: 640px) {
  :root {
    --space-section: var(--sp-4);
  }
}


/* ==================================================================
   01 • BASE
   ================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  /* Rodapé sempre em baixo: a página ocupa pelo menos o ecrã todo
     e o <main> estica para ocupar o espaço que sobra */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1 0 auto;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.2;
}

p {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
}

a:hover {
  color: var(--brand);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Radios e caixas escondidos, mas acessíveis ao teclado e a leitores de ecrã */
.choice input,
.pay__option input,
.calendar__day input,
.slot input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}


/* ==================================================================
   02 • ELEMENTOS
   ================================================================== */
.container {
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--container);
  margin: 0 auto;
}

/* Botão */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  height: 44px;
  padding: 0 1.4rem;
  border: 0;
  border-radius: 0;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.2s;
}

.btn:hover {
  filter: brightness(0.92);
  color: #fff;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}

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

.btn--line {
  margin-top: var(--sp-2);
  background: #fff;
  color: var(--brand-dark);
  border: 1px solid var(--brand);
}

/* Ligação de texto */
.link {
  font-weight: 600;
  color: var(--brand-dark);
}

.link:hover {
  color: var(--brand);
}

/* Campo de formulário: rótulo por cima */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.95rem;
}

.field select,
.field input {
  width: 100%;
  height: 44px;
  padding: 0 0.85rem;
  border: 1px solid var(--field-line);
  border-radius: 0;
  background: var(--field-bg);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
}

/* Seta da caixa de escolha igual à da caixa "Exames" (.multi__toggle::after) */
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5' fill='none' stroke='%230f172a' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  cursor: pointer;
}

.field select::-ms-expand {
  display: none;
}

.field select:focus,
.field input:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
  background: #fff;
}

/* Formulário dos dados (passo 2) */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3) var(--sp-3);
  max-width: 640px;
  margin-top: var(--sp-3);
}

.form-grid__full {
  grid-column: 1 / -1;
}

.req {
  color: #b42318;            /* vermelho: campo obrigatório */
}

.field__optional {
  color: var(--muted);
}

.field__error {
  font-size: 0.9rem;
  font-weight: 600;
  color: #b42318;
}

.field input[aria-invalid="true"] {
  border-color: #b42318;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Nota em verde-claro com ícone */
.note {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-1);
  margin-top: var(--sp-2);
  padding: 0.9rem 1.25rem;
  background: var(--tint-2);
}

.note p + p,
.note strong + p {
  margin-top: 2px;
}

.note--flush {
  margin-top: 0;
}

.note--error {
  background: #fef3f2;
}

.note--error .icon {
  color: #b42318;
}

.icon {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--brand);
}


/* ==================================================================
   03 • CABEÇALHO
   Logótipo, telefone e "Voltar ao site".
   ================================================================== */
.header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  min-height: 72px;
}

.header__logo img {
  width: 160px;
  height: auto;
}

.header__links {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.header__phone {
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 640px) {
  .header__logo img {
    width: 128px;
  }

  .header__phone {
    display: none;
  }
}


/* ==================================================================
   04 • TÍTULO E PASSOS
   Faixa baixa: título à esquerda e passos à direita, para a escolha
   do exame aparecer logo no primeiro ecrã.
   ================================================================== */
.banner {
  padding: var(--sp-3) 0;
  background: var(--tint-2);
}

.banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-5);
}

.breadcrumbs {
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-soft);
}

.breadcrumbs span[aria-hidden="true"] {
  margin: 0 0.4rem;
}

.banner__title {
  font-size: clamp(1.5rem, 1vw + 1.1rem, 2rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--brand-dark);
}

/* Passos 1 · 2 · 3 */
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.step__num {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--brand);
  background: #fff;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
}

.step--current .step__num {
  background: var(--brand);
  color: #fff;
}

.step__icon {
  width: 20px;
  height: 20px;
}

.step__title {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.25;
}

.step:not(.step--current) .step__title {
  color: var(--text-soft);
}

.step__text {
  display: block;
  font-size: 0.875rem;
  line-height: 1.3;
}

@media (max-width: 640px) {
  .banner {
    padding: var(--sp-2) 0;
  }

  .breadcrumbs {
    display: none;
  }

  /* Telemóvel: os três passos numa só linha, com o nome por baixo do número */
  .steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-1);
    width: 100%;
  }

  .step {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .step__title {
    font-size: 0.8125rem;
  }

  .step__text {
    font-size: 0.8125rem;
  }
}


/* ==================================================================
   05 • MARCAÇÃO
   Coluna principal (exames, pagamento, dia e hora) + resumo à direita.
   ================================================================== */
.section {
  padding: var(--space-section) 0;
}

.booking {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: var(--sp-5) var(--sp-6);
  align-items: start;
}

.booking__main {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  min-width: 0;
}

.panel__title {
  margin-bottom: var(--sp-2);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--brand-dark);
}

.panel__lead {
  margin-bottom: var(--sp-2);
  color: var(--text-soft);
}

.panel__small {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-soft);
}

@media (max-width: 900px) {
  .booking {
    grid-template-columns: 1fr;
  }
}


/* ==================================================================
   06 • EXAMES
   Caixa de escolha múltipla com o mesmo aspeto do campo "Tipo de
   exame". Os exames escolhidos ficam em cima, como etiquetas. A lista
   abre por baixo, dentro da página: empurra o calendário para baixo
   em vez de ficar por cima dele, e a altura acompanha o número de
   exames (com barra de deslocamento a partir de um certo tamanho).
   ================================================================== */
.field--wide {
  max-width: 640px;
}

.multi {
  gap: 0;                               /* caixa e lista coladas */
  margin-top: var(--sp-3);
}

.multi > span:first-child {             /* rótulo "Exames" */
  margin-bottom: 0.45rem;
}

.multi__control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 5px 6px;
  border: 1px solid var(--field-line);
  background: var(--field-bg);
}

.multi__control:focus-within {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
  background: #fff;
}

.multi__chips {
  display: contents;
}

.multi__chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding-left: 0.6rem;
  border: 1px solid var(--line-green);
  background: var(--tint-2);
  font-size: 0.95rem;
  line-height: 1.3;
}

.multi__remove {
  flex: none;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--brand-dark);
  cursor: pointer;
}

.multi__remove:hover {
  color: var(--ink);
}

.multi__toggle {
  flex: 1 1 160px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-1);
  min-height: 32px;
  padding: 0 0.4rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.multi__toggle > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multi__toggle::after {                 /* seta, como num campo de escolha */
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s;
}

.multi__toggle[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(-135deg);
}

.multi__toggle:focus-visible {
  outline: none;                        /* o contorno fica na caixa toda */
}

/* Lista (sem JavaScript fica sempre aberta) */
.multi__panel {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--field-line);
  border-top: 0;
  background: #fff;
}

.multi__search {
  display: block;
  padding: var(--sp-1);
  border-bottom: 1px solid var(--line);
}

.multi__search input {
  width: 100%;
  height: 40px;
  padding: 0 0.75rem;
  border: 1px solid var(--field-line);
  border-radius: 0;
  background: var(--field-bg);
  font: inherit;
  font-size: 1rem;
}

.multi__search input:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  background: #fff;
}

.multi__list {
  max-height: min(320px, 45vh);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.multi__none {
  padding: 0.75rem 1rem;
  color: var(--text-soft);
}

.multi__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: 0.5rem 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--text-soft);
}

.multi__close {
  padding: 0.4rem 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.choice:last-of-type {
  border-bottom: 0;
}

.choice:hover {
  background: var(--tint);
}

.choice__box {
  flex: none;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid var(--brand);
  background: #fff;
}

.choice input:checked ~ .choice__box {
  background: var(--brand);
}

.choice input:checked ~ .choice__box::after {          /* visto */
  content: "";
  width: 6px;
  height: 11px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.choice:has(input:checked) {
  background: var(--tint);
  font-weight: 600;
}

.choice input:focus-visible ~ .choice__box {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}


/* ==================================================================
   07 • PAGAMENTO
   ================================================================== */
.pay {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pay__option {
  position: relative;
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--field-line);
  background: #fff;
  cursor: pointer;
}

.pay__option--duas {
  flex-basis: 260px;
  align-items: flex-start;
}

.pay__option--duas .pay__dot {
  margin-top: 3px;
}

.pay__text strong {
  display: block;
  font-weight: 600;
}

.pay__text span {
  font-size: 0.95rem;
  color: var(--muted);
}

.pay__dot {
  flex: none;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--brand);
  border-radius: 50%;
}

.pay__option:has(input:checked) {
  border-color: var(--brand);
  background: var(--tint);
}

.pay__option input:checked ~ .pay__dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}

.pay__option input:focus-visible ~ .pay__dot {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}


/* ==================================================================
   08 • CALENDÁRIO
   Dia e hora lado a lado; um por baixo do outro em ecrãs estreitos.
   ================================================================== */
.agenda {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  align-items: flex-start;
}

.agenda__days {
  flex: 1 1 340px;
  min-width: 0;
}

.agenda__hours {
  flex: 1 1 300px;
  min-width: 0;
}

.calendar__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-1);
  margin-bottom: 0.75rem;
}

.calendar__arrow {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-green);
  border-radius: 0;
  background: #fff;
  font-size: 1.25rem;
  color: var(--brand);
  cursor: pointer;
}

.calendar__arrow:hover {
  background: var(--tint);
}

.calendar__arrow:disabled {
  border-color: var(--line);
  color: var(--off);
  background: #fff;
  cursor: default;
}

.calendar__month {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  text-align: center;
}

.calendar__wd {
  padding: 4px 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
}

.calendar__day {
  position: relative;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.calendar__day--past {
  color: var(--off);
}

.calendar__day--free {
  border: 1px solid var(--brand);
  background: var(--tint-2);
  font-weight: 600;
  color: var(--brand-dark);
  cursor: pointer;
}

.calendar__day--free:hover {
  background: var(--tint);
}

.calendar__day--free:has(input:checked) {
  background: var(--brand);
  color: #fff;
}

.calendar__day--free:has(input:focus-visible) {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.calendar__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-3);
  margin-top: var(--sp-2);
  font-size: 0.875rem;
  color: var(--text-soft);
}

.calendar__legend > span {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
}

.calendar__key {
  width: 16px;
  height: 16px;
}

.calendar__key--free {
  border: 1px solid var(--brand);
  background: var(--tint-2);
}

.calendar__key--on {
  background: var(--brand);
}


/* ==================================================================
   09 • HORAS
   Botões de hora por manhã e tarde. Com vários médicos, cada hora
   mostra o nome. Mamografia + ecografia: dois passos numerados.
   ================================================================== */
.slots__group {
  margin-bottom: 1.25rem;
}

.slots__label {
  display: block;
  margin-bottom: var(--sp-1);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: var(--sp-1);
}

.slots--named {                        /* com o nome do médico: sempre 2 colunas */
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.slot {
  position: relative;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--line-green);
  background: #fff;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.slots--named .slot {
  min-height: 52px;
  padding: 0.35rem 0.6rem;
}

.slots--named .slot__who {              /* nome numa só linha; o JS diminui a letra se não couber */
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.slot:hover {
  background: var(--tint);
}

.slot__time {
  font-weight: 600;
}

.slot__who {
  font-size: 0.8125rem;
}

.slot:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.slot:has(input:focus-visible) {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.slot--off,
.slot--off:hover {
  border-color: var(--line);
  background: #fff;
  color: #9ca3af;
  cursor: not-allowed;
}

.slot--off .slot__time {
  text-decoration: line-through;
}

/* ==================================================================
   10 • RESUMO
   Caixa à direita (fica fixa ao descer a página no computador).
   ================================================================== */
.summary {
  position: sticky;
  top: var(--sp-3);
  padding: var(--sp-4);
  border: 1px solid var(--line-green);
  background: #fff;
}

.summary__list {
  margin: 0 0 var(--sp-3);
}

.summary__row {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

.summary__row dt {
  color: var(--text-soft);
}

.summary__row dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.summary__empty {
  font-weight: 400;
  color: var(--muted);
}

.summary__help {
  margin-top: var(--sp-2);
  font-size: 0.95rem;
  color: var(--text-soft);
}

@media (max-width: 900px) {
  .summary {
    position: static;
  }
}

@media (max-width: 640px) {
  .summary {
    padding: var(--sp-3);
  }
}


/* ==================================================================
   11 • RODAPÉ
   ================================================================== */
.footer {
  background: var(--footer-bg);
  color: #fff;
  font-size: 0.95rem;
}

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-1) var(--sp-4);
  padding: var(--sp-3) 0;
}

.footer a {
  color: #fff;
}

.footer a:hover {
  text-decoration: underline;
}

/* Nota do custo da chamada ao lado dos telefones: um pouco mais pequena */
.tel-note {
  font-size: 0.85em;
  color: var(--muted, #667085);
}

/* Asterisco dos exames com custo (ex.: eletrocardiograma) */
.ast {
  margin-left: 2px;
  font-weight: 700;
  color: #b42318;
}

.footer__ids {                           /* registo ERS e licença, por baixo da morada */
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--line-green);
}

.footer__nota {                          /* "* Exame com custo…" por baixo da morada */
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--line-green);
}

.footer__nota .ast {
  margin: 0 2px 0 0;
  color: #ff8b7f;                         /* vermelho mais claro, para se ver no fundo escuro */
}

.footer__nota a {
  color: var(--line-green);
  text-decoration: underline;
}


/* ==================================================================
   12 • PASSOS DA AGENDA E DADOS
   Mamografia + ecografia mamária: dois blocos numerados; o primeiro
   fecha num resumo com "Alterar" quando se avança para o segundo.
   ================================================================== */
.agenda-step + .agenda-step {
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

.agenda-step__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--sp-3);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--brand-dark);
}

.agenda-step__num {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

.agenda-step__done {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-1) var(--sp-3);
  padding: 0.9rem 1.25rem;
  background: var(--tint-2);
  font-weight: 600;
}

.agenda-step__change {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.agenda-step__next {
  width: 100%;
  margin-top: var(--sp-2);
}

.agenda-step__next:disabled {
  border-color: var(--line);
  color: var(--muted);
}

.calendar__loading {
  grid-column: 1 / -1;
  padding: var(--sp-3) 0;
}

/* Exame único (tipo com um só exame): sem lista nem botão de retirar */
.multi__control--fixed {
  background: #fff;
}

.multi__chip--fixed {
  padding: 0.3rem 0.75rem;
}

/* reCAPTCHA e botões do passo 2 */
.captcha {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: var(--sp-3);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
  margin-top: var(--sp-3);
}

@media (max-width: 640px) {
  .form-actions .btn {
    width: 100%;
  }
}


/* ==================================================================
   13 • CONFIRMAÇÃO
   Passo 3: rever (exame, dia e hora + dados, cada um com "Alterar")
   e, depois de confirmar, "Marcação confirmada".
   ================================================================== */
.review {
  margin-top: var(--sp-3);
}

.review + .review {
  margin-top: var(--sp-4);
}

.review__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-2);
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--brand);
}

.review__title {
  font-size: 1.05rem;
  font-weight: 500;
}

.review__list {
  margin: 0;
}

.review__list dd {
  overflow-wrap: anywhere;
}

.note > div {
  min-width: 0;
}

/* Marcação feita */
.done__icon {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: var(--sp-2);
  color: var(--brand);
}

.done__title {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 500;
  color: var(--brand-dark);
}

.done__lead {
  margin-top: var(--sp-1);
  font-size: 1.15rem;
}

.done__text {
  margin: var(--sp-1) 0 var(--sp-3);
  color: var(--text-soft);
}

.done__list {
  margin: var(--sp-3) 0 0;
  padding-left: 1.2rem;
  color: var(--text-soft);
}

.done__list li + li {
  margin-top: 0.35rem;
}

@media (max-width: 640px) {
  .review__list .summary__row {
    flex-direction: column;
    gap: 2px;
  }

  .review__list dd {
    text-align: left;
  }
}
