@font-face {
  font-family: "Source Sans Pro";
  src: url("../../font/SourceSansPro-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../../font/PlayfairDisplay-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --green: #008c6f;
  --green-dark: #006d58;
  --green-soft: #e4f4f0;
  --navy: #273142;
  --muted: #657287;
  --page: #f1f4f8;
  --white: #ffffff;
  --border: #dfe4e8;
  --disabled: #e4e8eb;
  --shadow: 0 16px 40px rgba(39, 49, 66, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--navy);
  background: var(--page);
  font-family: "Source Sans Pro", Arial, sans-serif;
  line-height: 1.5;
}

button {
  font: inherit;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 58px 20px 76px;
  color: var(--white);
  text-align: center;
  background: var(--green);
}

.hero__inner {
  width: min(680px, 100%);
  margin: 0 auto;
}

.hero__logo {
  display: block;
  width: min(300px, 78vw);
  height: auto;
  margin: 0 auto 14px;
}

.section-kicker,
.step-label {
  margin: 0;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.hero h1 {
  margin: 10px 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 6vw, 48px);
  font-weight: 500;
  line-height: 1.14;
}

.hero__lead {
  max-width: 580px;
  margin: 0 auto;
  font-size: 18px;
  opacity: 0.92;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: -38px auto 0;
  position: relative;
}

.intro-card,
.calendar-card,
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.intro-card {
  /*max-width: 780px;*/
  margin: 0 auto 28px;
  padding: 26px 30px;
  border-radius: 5px;
  text-align: left;
}

.section-kicker,
.step-label {
  color: var(--green);
}

.intro-card h2,
.calendar-heading h2,
.preferences-heading h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
}

.intro-card h2 {
  margin: 3px 0 8px;
  font-size: 30px;
}

.intro-card > p {
  /*max-width: 650px;*/
  margin: 0 auto;
  color: var(--muted);
}

.info-notice {
  margin: 0 0 20px;
  padding: 14px 18px;
  background: rgb(0 140 111 / 0.1);
  border-left: 3px solid var(--green);
}

.intro-card .info-notice {
  margin: 18px 0 0;
}

.info-notice p {
  margin: 0 0 8px;
}

.info-notice p:last-child {
  margin-bottom: 0;
}

.info-notice ul {
  margin: 0;
  padding-left: 1.2em;
}

.info-notice li + li {
  margin-top: 4px;
}

.calendar-card {
  padding: clamp(24px, 4vw, 44px);
  border-radius: 6px;
}

.public-form {
  display: grid;
  gap: 24px;
}

.form-card {
  padding: clamp(24px, 4vw, 38px);
  border-radius: 6px;
}

.form-section-heading {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.form-section-heading h2 {
  margin: 3px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(24px, 4vw, 29px);
  font-weight: 500;
}

.form-section-heading > p:last-child:not(.step-label) {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 22px;
}

.field {
  margin-bottom: 18px;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
}

.field label span {
  color: var(--green);
}

.contact-panel[hidden] {
  display: none;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid #cfd6dc;
  border-radius: 4px;
  font: inherit;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.field select {
  min-height: 46px;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
  outline: 0;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #a83232;
}

.field-hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.field-counter {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.field-error {
  min-height: 20px;
  margin: 5px 0 0;
  color: #9c2f2f;
  font-size: 13px;
  font-weight: 600;
}

.field-error:empty {
  min-height: 0;
  margin: 0;
}

.field-error--center {
  text-align: center;
}

.form-alert {
  padding: 15px 18px;
  color: #772626;
  background: #fff0f0;
  border: 1px solid #e3b4b4;
  border-radius: 5px;
  font-weight: 600;
}

.form-alert[hidden] {
  display: none;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.calendar-heading,
.preferences-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.calendar-heading {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.calendar-explanation {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.calendar-heading h2 {
  margin: 3px 0 0;
  font-size: clamp(24px, 4vw, 31px);
}

.selection-limit,
.selection-count {
  flex: 0 0 auto;
  margin: 0;
  padding: 7px 12px;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.calendar-status {
  min-height: 150px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.calendar-status[hidden] {
  display: none;
}

.calendar-status.is-error,
.error-message {
  color: #9c2f2f;
}

.calendar-app[hidden] {
  display: none;
}

.mobile-navigation {
  display: none;
}

.calendar-grid {
  --column-count: 4;
  display: grid;
  grid-template-columns: repeat(var(--column-count), minmax(150px, 1fr));
  gap: 18px;
  padding: 26px 0 12px;
  overflow-x: auto;
}

.calendar-day {
  min-width: 0;
  text-align: center;
}

.day-heading {
  min-height: 68px;
  margin-bottom: 12px;
  padding: 0 8px 13px;
  border-bottom: 2px solid var(--border);
}

.day-weekday {
  display: block;
  color: var(--navy);
  text-transform: lowercase;
  font-size: 17px;
  font-weight: 700;
}

.day-date {
  display: block;
  color: var(--muted);
  font-size: 16px;
}

.slots-list {
  display: grid;
  gap: 10px;
}

.slot-button {
  position: relative;
  width: 100%;
  min-height: 54px;
  padding: 12px 15px;
  color: var(--white);
  background: var(--green);
  border: 2px solid var(--green);
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 140, 111, 0.18);
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.slot-button:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
}

.slot-button:focus-visible,
.nav-button:focus-visible,
.remove-preference:focus-visible {
  outline: 3px solid rgba(0, 140, 111, 0.25);
  outline-offset: 3px;
}

.slot-button.is-selected {
  color: var(--green-dark);
  background: var(--white);
  box-shadow:
    inset 0 0 0 1px var(--green),
    0 4px 10px rgba(0, 140, 111, 0.12);
}

.preference-badge {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  width: 27px;
  height: 27px;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
  place-items: center;
  transform: translateY(-50%);
  font-size: 14px;
}

.slot-button.is-unavailable,
.slot-button.is-unavailable:hover {
  color: var(--white);
  background: #aa3d3d;
  border-color: #aa3d3d;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
  transform: none;
}

.selection-message {
  min-height: 24px;
  margin: 8px 0 16px;
  color: var(--green-dark);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.selection-message.is-warning {
  color: #8a5a00;
}

.preferences-panel {
  margin-top: 10px;
  padding: 24px;
  background: #f8fafb;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.preferences-heading {
  align-items: center;
}

.preferences-heading h3 {
  margin: 2px 0 0;
  font-size: 22px;
}

.preferences-empty {
  margin: 18px 0 0;
  color: var(--muted);
}

.preferences-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: preference;
}

.preference-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.preference-item::before {
  counter-increment: preference;
  content: counter(preference);
  display: grid;
  width: 30px;
  height: 30px;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
  place-items: center;
  font-weight: 700;
}

.preference-text {
  font-weight: 600;
}

.remove-preference {
  padding: 7px 9px;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
}

.remove-preference:hover {
  color: var(--navy);
}

.consent-card {
  margin-bottom: 0;
}

.captcha-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 24px 0 0;
}

.captcha-field .g-recaptcha {
  width: 304px;
}

.captcha-field .field-error {
  text-align: left;
}

.submit-area {
  margin-top: 26px;
  text-align: left;
}

.submit-button {
  min-width: 240px;
  padding: 15px 28px;
  color: var(--white);
  background: var(--green);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition:
    background 0.16s ease,
    transform 0.16s ease;
}

.submit-button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.submit-button:focus-visible {
  outline: 3px solid rgba(0, 140, 111, 0.25);
  outline-offset: 3px;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.submit-area p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.phase-note,
.page-footer {
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.phase-note {
  margin: 20px 0 0;
}

.page-footer {
  padding: 38px 20px;
}

.info-list {
  margin: 0;
  padding-left: 1.2em;
}

.info-list li + li {
  margin-top: 6px;
}

.info-list a,
.info-list__link a {
  color: var(--green);
  font-weight: 700;
}

.info-list__link {
  margin: 16px 0 0;
}

.confirmation-page {
  min-height: 100vh;
  display: grid;
  padding: 24px;
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(255, 255, 255, 0.1),
      transparent 32%
    ),
    linear-gradient(135deg, var(--green), var(--green-dark));
  place-items: center;
}

.confirmation-shell {
  width: min(620px, 100%);
  padding: clamp(32px, 7vw, 56px);
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(20, 48, 44, 0.24);
  text-align: center;
}

.confirmation-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
  place-items: center;
  font-size: 30px;
}

.confirmation-shell h1 {
  margin: 5px 0 14px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(29px, 5vw, 38px);
  font-weight: 500;
  line-height: 1.2;
}

.confirmation-shell > p:not(.section-kicker):not(.confirmation-note) {
  color: var(--muted);
}

.reference-card {
  margin: 28px 0 14px;
  padding: 20px;
  background: var(--green-soft);
  border: 1px solid rgba(0, 140, 111, 0.2);
  border-radius: 6px;
}

.reference-card span,
.reference-card strong {
  display: block;
}

.reference-card span {
  color: var(--green-dark);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.reference-card strong {
  margin-top: 4px;
  font-size: clamp(24px, 6vw, 32px);
  letter-spacing: 0.04em;
}

.confirmation-note {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
}

.secondary-link {
  color: var(--green-dark);
  font-weight: 700;
}

.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;
}

@media (max-width: 700px) {
  .hero {
    padding: 42px 18px 65px;
  }

  .hero__lead {
    font-size: 16px;
  }

  .page-shell {
    width: min(100% - 20px, 560px);
  }

  .intro-card,
  .calendar-card,
  .form-card {
    padding: 22px 18px;
  }

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

  .field--wide {
    grid-column: auto;
  }

  .calendar-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .mobile-navigation {
    display: grid;
    grid-template-columns: 46px 1fr 46px;
    align-items: center;
    gap: 12px;
    margin: 20px 0 4px;
  }

  .nav-button {
    display: grid;
    width: 44px;
    height: 44px;
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50%;
    place-items: center;
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
  }

  .nav-button:disabled {
    color: #b9c0c6;
    cursor: not-allowed;
  }

  .mobile-day-counter {
    margin: 0;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
    font-weight: 600;
  }

  .calendar-grid {
    display: block;
    padding-top: 10px;
    overflow: visible;
  }

  .calendar-day:not(.is-current) {
    display: none;
  }

  .calendar-day {
    max-width: 340px;
    margin: 0 auto;
  }

  .day-heading {
    min-height: auto;
  }

  .day-weekday,
  .day-date {
    display: inline;
    font-size: 18px;
  }

  .day-date::before {
    content: " ";
  }

  .preference-item {
    grid-template-columns: 32px 1fr;
  }

  .remove-preference {
    grid-column: 2;
    justify-self: start;
    padding-left: 0;
  }

  .submit-button {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
