/*
 * Seasonal booking flow.
 *
 * The audience here is 65+, so everything is a size up from the rest of the
 * site: larger base type, 44px minimum touch targets, and a visible focus
 * ring that does not rely on colour alone.
 *
 * Scoped to .seasonal so the HPV and MenACWY flows are untouched.
 */

.seasonal {
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 44rem;
}

.seasonal h1 {
  font-size: 2.1rem;
  margin-bottom: 0.75rem;
}

.seasonal h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.seasonal h3 {
  font-size: 1.3rem;
}

.seasonal label,
.seasonal .form-label {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.seasonal .form-control,
.seasonal .form-select {
  font-size: 1.15rem;
  min-height: 3rem;
  padding: 0.55rem 0.85rem;
}

.seasonal .btn {
  font-size: 1.15rem;
  min-height: 3rem;
  padding: 0.6rem 1.5rem;
}

.seasonal .btn-primary {
  background-color: #005EB8;
  border-color: #005EB8;
}

.seasonal .btn-primary:hover,
.seasonal .btn-primary:focus {
  background-color: #003d78;
  border-color: #003d78;
}

/* The global a:hover rule turns links yellow, which looks broken on buttons. */
.seasonal a.btn:hover {
  background-color: #003d78 !important;
  color: #fff !important;
  text-decoration: none !important;
}

.seasonal *:focus-visible {
  outline: 3px solid #FAE100;
  outline-offset: 2px;
  box-shadow: none;
}

/* --- Step indicator --- */

.seasonal-steps {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0 0 2rem 0;
  gap: 0.4rem;
}

.seasonal-steps li {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 600;
  color: #4c6272;
  padding-top: 0.6rem;
  border-top: 6px solid #d8dde0;
  text-align: left;
}

.seasonal-steps li.is-done {
  border-top-color: #007f3b;
  color: #007f3b;
}

.seasonal-steps li.is-current {
  border-top-color: #005EB8;
  color: #005EB8;
}

.seasonal-step-count {
  font-size: 1rem;
  color: #4c6272;
  margin-bottom: 0.25rem;
}

/* --- Selectable option cards --- */

.seasonal-choice {
  display: block;
  border: 2px solid #aeb7bd;
  border-radius: 6px;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  cursor: pointer;
  font-weight: 400;
  background: #fff;
}

.seasonal-choice:hover {
  border-color: #005EB8;
  background-color: #f0f4f5 !important;
}

.seasonal-choice input {
  width: 1.6rem;
  height: 1.6rem;
  margin-right: 0.85rem;
  vertical-align: top;
  flex-shrink: 0;
}

.seasonal-choice-body {
  display: flex;
  align-items: flex-start;
}

.seasonal-choice-title {
  font-size: 1.25rem;
  font-weight: 600;
  display: block;
}

.seasonal-choice-hint {
  color: #4c6272;
  font-size: 1rem;
  display: block;
  margin-top: 0.2rem;
}

.seasonal-choice:has(input:checked) {
  border-color: #005EB8;
  border-width: 3px;
  background-color: #f0f4f5;
}

/* --- Notices --- */

.seasonal-notice {
  border-left: 8px solid #005EB8;
  background: #f0f4f5;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.seasonal-notice.is-warning {
  border-left-color: #d5281b;
}

.seasonal-notice.is-success {
  border-left-color: #007f3b;
}

.seasonal-notice h2,
.seasonal-notice h3 {
  margin-top: 0;
}

.seasonal-notice p:last-child {
  margin-bottom: 0;
}

/* --- Placeholder marker for the clinical questions still to be agreed --- */

.seasonal-placeholder {
  border: 3px dashed #d5281b;
  background: #fdf2f1;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.seasonal-placeholder-label {
  display: inline-block;
  background: #d5281b;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  margin-bottom: 0.75rem;
}

/* --- Review list --- */

.seasonal-summary {
  width: 100%;
  margin-bottom: 1.5rem;
}

.seasonal-summary th,
.seasonal-summary td {
  padding: 0.75rem 0;
  border-bottom: 1px solid #d8dde0;
  vertical-align: top;
  text-align: left;
}

.seasonal-summary th {
  width: 40%;
  font-weight: 600;
}

.seasonal-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 2rem 0 1rem 0;
  flex-wrap: wrap;
}

@media (max-width: 575px) {
  .seasonal-steps li {
    font-size: 0;
    padding-top: 0.4rem;
  }
  .seasonal-actions .btn {
    width: 100%;
  }
}

/* --- Section cards ---
   The appointment step carries several unrelated things at once: who the
   patient is, how many visits they want, and which slot. Boxing each one
   stops them reading as a single wall of content. */

.seasonal-card {
  border: 1px solid #d8dde0;
  border-radius: 8px;
  padding: 1.25rem 1.5rem 1.5rem;
  margin-bottom: 1.5rem;
  background: #fff;
}

.seasonal-card > h2:first-child,
.seasonal-card > h3:first-child {
  margin-top: 0;
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #d8dde0;
}

.seasonal-card .seasonal-summary {
  margin-bottom: 0;
}

.seasonal-card .seasonal-choice:last-of-type {
  margin-bottom: 0;
}

/* --- Foldaway section ---
   Used for the higher-risk question when the patient still has a vaccine to
   book. Most people are not in a risk group, so it opens on demand rather
   than filling the page. A native <details> keeps it working with no
   JavaScript, and keeps the question inside reachable by keyboard. */

.seasonal-disclosure {
  border-top: 1px solid #d8dde0;
  margin-top: 1rem;
  padding-top: 0.9rem;
}

.seasonal-disclosure > summary {
  color: #005EB8;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

/* Safari still paints the default triangle without this. */
.seasonal-disclosure > summary::-webkit-details-marker {
  display: none;
}

.seasonal-disclosure > summary::before {
  content: "";
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.15em) rotate(-45deg);
}

.seasonal-disclosure[open] > summary::before {
  transform: translateY(0.05em) rotate(45deg);
}

.seasonal-disclosure > summary:hover,
.seasonal-disclosure > summary:focus-visible {
  text-decoration: underline;
}

.seasonal-disclosure-body {
  padding-top: 0.75rem;
}

/* --- Vaccine status list ---
   Shows every vaccine the patient asked about, whether it is going ahead or
   not. A vaccine that cannot be given is stated plainly alongside the ones
   that can, rather than as a warning banner above unrelated booking
   controls. */

.seasonal-status {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem 0;
}

.seasonal-status li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  border: 2px solid #d8dde0;
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.75rem;
}

.seasonal-status li:last-child {
  margin-bottom: 0;
}

.seasonal-status .is-marker {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  color: #fff;
}

.seasonal-status .seasonal-status-name {
  font-weight: 600;
  font-size: 1.15rem;
  display: block;
}

.seasonal-status .seasonal-status-detail {
  color: #4c6272;
  font-size: 1rem;
  display: block;
  margin-top: 0.15rem;
}

.seasonal-status li.is-included {
  border-color: #007f3b;
  background: #f2f8f4;
}

.seasonal-status li.is-included .is-marker {
  background: #007f3b;
}

.seasonal-status li.is-excluded {
  border-color: #aeb7bd;
  background: #f7f8f9;
}

.seasonal-status li.is-excluded .is-marker {
  background: #6c757d;
}

/* The dash is a drawn box, not an en dash. A glyph is placed by the font's
   baseline, which leaves it sitting above the middle of the circle however
   the flex box is aligned; a box centres exactly, at any font size. */
.seasonal-status li.is-excluded .is-marker::before {
  content: "";
  width: 0.7rem;
  height: 0.15rem;
  border-radius: 1px;
  background: currentColor;
}

.seasonal-status li.is-excluded .seasonal-status-name {
  color: #4c6272;
}
