:root {
  --form-cream: #fff8ea;
  --form-green: #163b30;
  --form-red: #c20b15;
  --form-muted: #68776d;
}

.site-modal {
  position: fixed;
  width: min(540px, calc(100% - 40px));
  max-width: none;
  max-height: min(92vh, 900px);
  padding: 38px 36px 32px;
  overflow: auto;
  border: 0;
  border-radius: 12px;
  background: var(--form-cream);
  color: var(--form-green);
  box-shadow: 0 24px 80px #061c1670;
  font-family: var(--sans, 'Manrope', Arial, sans-serif);
}

.site-modal::backdrop {
  background: #061c16b8;
  backdrop-filter: blur(3px);
}

.site-modal h2 {
  margin: 0 48px 24px 0;
  color: var(--form-green);
  font-family: var(--sans, 'Manrope', Arial, sans-serif);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--form-green);
  font: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.booking-form {
  display: grid;
  gap: 18px;
}

.booking-form label {
  display: grid;
  gap: 8px;
  color: #5e7768;
  font-size: 13px;
  font-weight: 700;
}

.booking-form input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  height: 52px;
  padding: 0 15px;
  border: 1px solid #e6e1d7;
  border-radius: 9px;
  outline: none;
  background: #fff;
  color: var(--form-green);
  font: inherit;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}

.booking-form input::placeholder {
  color: #8d978f;
  opacity: 1;
}

.booking-form input:focus {
  border-color: var(--form-green);
  box-shadow: 0 0 0 3px #163b3018;
}

.form-submit {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--form-red);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.form-submit:hover {
  transform: translateY(-1px);
  background: #a90812;
}

.form-notice {
  margin: -4px 0 0;
  color: var(--form-muted);
  font-size: 11px;
  line-height: 1.65;
}

.booking-full-link {
  display: inline-block;
  margin-top: 17px;
  color: var(--form-green);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.booking-dialog .form-notice {
  display: none;
}

.info-dialog {
  width: min(620px, calc(100% - 40px));
  padding: 38px 36px;
}

.info-dialog h2 {
  font-size: 30px;
}

.info-dialog-copy {
  color: var(--form-green);
  font-size: 14px;
  line-height: 1.75;
}

.info-dialog-copy p + p {
  margin-top: 24px;
}

.participation-dialog .form-eyebrow,
.participation-dialog .eyebrow {
  margin: 0 0 16px;
  color: var(--form-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.participation-dialog h2 {
  margin-bottom: 24px;
  font-size: 34px;
}

.participation-dialog h2 em {
  color: var(--form-red);
  font-family: var(--serif, Georgia, serif);
  font-weight: 600;
}

.participation-steps {
  display: grid;
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: steps;
}

.participation-steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 16px;
  counter-increment: steps;
}

.participation-steps li::before {
  grid-row: span 2;
  content: counter(steps);
  color: var(--form-red);
  font-size: 25px;
  font-weight: 800;
}

.participation-steps b {
  font-size: 15px;
}

.participation-steps span {
  margin-top: 5px;
  color: var(--form-muted);
  font-size: 12px;
  line-height: 1.6;
}

.participation-note {
  margin: 24px 0 0;
  color: var(--form-muted);
  font-size: 10px;
  line-height: 1.7;
}

.form-page {
  min-height: 100vh;
  margin: 0;
  background: var(--form-cream);
  color: var(--form-green);
  font-family: 'Manrope', Arial, sans-serif;
}

.standalone-form {
  width: min(100%, 560px);
  min-height: 100vh;
  padding: 40px;
  margin: 0 auto;
  box-sizing: border-box;
}

.form-back {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--form-green);
  font-size: 12px;
  font-weight: 700;
}

.form-eyebrow {
  margin: 0 0 22px;
  color: var(--form-muted);
  font-size: 10px;
  font-weight: 800;
}

.standalone-form h1 {
  margin: 0;
  color: var(--form-green);
  font-size: 36px;
  line-height: 1.15;
}

.standalone-form h1 em {
  color: var(--form-red);
  font-family: var(--serif, Georgia, serif);
  font-weight: 600;
}

.form-intro {
  margin: 22px 0 24px;
  color: var(--form-muted);
  font-size: 13px;
  line-height: 1.7;
}

.detailed-booking-form {
  gap: 20px;
}

.detailed-booking-form label {
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
}

.detailed-booking-form input {
  height: 47px;
  border-radius: 5px;
  font-size: 13px;
}

.detailed-booking-form .form-submit {
  min-height: 54px;
  margin-top: 1px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

@media(max-width:600px) {
  .site-modal,
  .info-dialog {
    width: 100%;
    max-width: none;
    max-height: 100%;
    height: 100dvh;
    padding: 38px 24px 24px;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .site-modal h2 {
    max-width: 260px;
    margin: 0 0 26px;
    font-size: 30px;
  }

  .modal-close {
    top: 7px;
    right: 9px;
  }

  .booking-form {
    gap: 20px;
  }

  .booking-dialog .form-notice {
    display: none;
  }

  .booking-form label {
    gap: 8px;
    font-size: 13px;
  }

  .booking-form input {
    height: 52px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    font-size: 14px;
  }

  .form-submit {
    min-height: 56px;
    margin-top: 2px;
    border-radius: 12px;
    font-size: 14px;
  }

  .form-notice {
    font-size: 11px;
  }

  .booking-full-link {
    display: none;
  }

  .info-dialog-copy {
    font-size: 13px;
  }

  .participation-dialog h2 {
    font-size: 31px;
  }

  .standalone-form {
    padding: 28px 24px 36px;
  }

  .form-back {
    margin-bottom: 28px;
  }

  .standalone-form h1 {
    font-size: 32px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .booking-form input,
  .form-submit {
    transition: none;
  }
}
