:root {
  --ink: #292927;
  --green: #354839;
  --green-bright: #3e874a;
  --green-hover: #347d3f;
  --cream: #fbf8f1;
  --cream-deep: #f1ecdf;
  --sage: #c9c9b1;
  --gold: #9b9573;
  --muted: #6d6b63;
  --line: rgba(53, 72, 57, 0.18);
  --white: #ffffff;
  --error: #a33b32;
  --content-width: 790px;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Switzer", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--cream);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(62, 135, 74, 0.22);
  outline-offset: 3px;
}

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

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

.application-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 40;
  height: 4px;
  background: #e5e1d5;
}

.application-progress span {
  display: block;
  width: 14.285%;
  height: 100%;
  background: var(--green-bright);
  transform-origin: left center;
  transition: width 260ms ease;
}

.application-header {
  position: fixed;
  top: 4px;
  right: 0;
  left: 0;
  z-index: 30;
  display: flex;
  height: 78px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 54px);
  border-bottom: 1px solid rgba(53, 72, 57, 0.07);
  background: rgba(251, 248, 241, 0.94);
  backdrop-filter: blur(14px);
}

.application-brand {
  display: inline-flex;
  align-items: center;
}

.application-brand img {
  display: block;
  width: 132px;
  height: auto;
}

.application-close {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  transition: border-color 160ms ease, background 160ms ease;
}

.application-close:hover {
  border-color: var(--line);
  background: var(--cream-deep);
}

.application-close span,
.application-close span::after {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--green);
  content: "";
}

.application-close span {
  transform: rotate(45deg);
}

.application-close span::after {
  transform: rotate(90deg);
}

.application-main {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 122px 24px 54px;
}

.application-form-native {
  width: min(var(--content-width), 100%);
}

.application-stage {
  animation: stageIn 400ms ease both;
}

.application-step-count {
  margin: 0 0 18px;
  color: var(--green-bright);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.application-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.application-step.is-entering {
  animation: questionIn 300ms ease both;
}

.application-step legend {
  width: 100%;
  max-width: 780px;
  margin: 0 0 28px;
  padding: 0;
  color: var(--green);
  font-family: var(--font-head);
  font-size: clamp(2.15rem, 4.25vw, 3.35rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
}

.application-description {
  max-width: 650px;
  margin: -12px 0 26px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.application-options {
  display: grid;
  width: min(670px, 100%);
  gap: 10px;
}

.application-option {
  position: relative;
  display: grid;
  min-height: 58px;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 11px 16px;
  border: 1px solid rgba(53, 72, 57, 0.25);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  font-size: 0.99rem;
  font-weight: 600;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.application-option:hover {
  border-color: rgba(62, 135, 74, 0.68);
  background: var(--white);
  transform: translateY(-1px);
}

.application-option:has(input:checked) {
  border-color: var(--green-bright);
  background: #f0f5ec;
  box-shadow: inset 3px 0 0 var(--green-bright);
}

.application-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.application-option:has(input:focus-visible) {
  outline: 3px solid rgba(62, 135, 74, 0.22);
  outline-offset: 3px;
}

.option-key {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(53, 72, 57, 0.28);
  border-radius: 4px;
  color: var(--green);
  background: var(--cream-deep);
  font-size: 0.72rem;
  font-weight: 700;
}

.application-option:has(input:checked) .option-key {
  border-color: var(--green-bright);
  color: var(--white);
  background: var(--green-bright);
}

.application-detail {
  display: grid;
  width: min(670px, 100%);
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.application-input-wrap {
  display: block;
  width: min(720px, 100%);
}

.application-input-wrap input,
.application-input-wrap textarea,
.application-detail input,
.application-field input,
.application-field select {
  width: 100%;
  border: 0;
  border-bottom: 2px solid rgba(53, 72, 57, 0.28);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  transition: border-color 160ms ease;
}

.application-input-wrap input,
.application-detail input {
  min-height: 58px;
  padding: 8px 2px;
  font-size: 1.18rem;
}

.application-input-wrap textarea {
  min-height: 170px;
  padding: 12px 2px;
  resize: vertical;
  font-size: 1.08rem;
  line-height: 1.65;
}

.application-input-wrap input:focus,
.application-input-wrap textarea:focus,
.application-detail input:focus,
.application-field input:focus,
.application-field select:focus {
  border-color: var(--green-bright);
  outline: 0;
}

::placeholder {
  color: #929186;
  opacity: 1;
}

.contact-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 28px;
}

.application-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
}

.application-field input,
.application-field select {
  min-height: 50px;
  padding: 7px 1px;
  font-size: 1rem;
}

.application-field select {
  color: var(--ink);
  cursor: pointer;
}

.application-field select:invalid {
  color: #8d8c82;
}

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

.application-field .iti {
  width: 100%;
  --iti-border-color: var(--line);
  --iti-dialcode-color: var(--muted);
  --iti-dropdown-bg: #ffffff;
  --iti-hover-color: #f4f1e8;
}

.application-field .iti__selected-country {
  min-width: 82px;
  padding: 0 10px 0 2px;
  border: 0;
  background: transparent;
}

.application-field .iti__selected-country:hover,
.application-field .iti__selected-country:focus-visible {
  background: var(--cream-deep);
}

.application-field .iti__country-container {
  border-bottom: 2px solid rgba(53, 72, 57, 0.28);
}

.application-field .iti:focus-within .iti__country-container {
  border-bottom-color: var(--green-bright);
}

.iti__country-list {
  border-color: var(--line);
  border-radius: 6px;
  box-shadow: 0 18px 45px rgba(41, 41, 39, 0.14);
  color: var(--ink);
  font-family: inherit;
}

.iti__search-input {
  border-color: var(--line);
  border-radius: 4px;
  font-family: inherit;
}

.application-error {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--error);
  font-size: 0.84rem;
}

.application-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.application-back,
.application-next {
  border: 0;
  cursor: pointer;
}

.application-back {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 0 6px 0 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.86rem;
  font-weight: 620;
  transition: color 150ms ease;
}

.application-back:hover {
  color: var(--green);
}

.application-back > span:first-child {
  position: relative;
  width: 16px;
  height: 10px;
}

.application-back > span:first-child::before,
.application-back > span:first-child::after {
  position: absolute;
  left: 0;
  content: "";
}

.application-back > span:first-child::before {
  top: 4px;
  width: 16px;
  height: 1.5px;
  background: currentColor;
}

.application-back > span:first-child::after {
  top: 1px;
  width: 7px;
  height: 7px;
  border-bottom: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.application-next {
  display: inline-flex;
  min-height: 51px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 22px;
  border-radius: 5px;
  color: var(--white);
  background: var(--green-bright);
  box-shadow: 0 10px 24px rgba(62, 135, 74, 0.18);
  font-size: 0.91rem;
  font-weight: 700;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.application-next:hover {
  background: var(--green-hover);
  box-shadow: 0 13px 28px rgba(62, 135, 74, 0.22);
  transform: translateY(-1px);
}

.application-next:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.next-arrow {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}

.next-arrow::before,
.next-arrow::after {
  position: absolute;
  right: 0;
  content: "";
}

.next-arrow::before {
  top: 4px;
  width: 16px;
  height: 1.5px;
  background: currentColor;
}

.next-arrow::after {
  top: 1px;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.application-legal {
  margin: 24px 0 0;
  color: #7d7a70;
  font-size: 0.75rem;
  line-height: 1.55;
}

.application-legal a {
  color: var(--green);
  text-underline-offset: 2px;
}

.application-ending {
  width: min(720px, 100%);
  animation: questionIn 360ms ease both;
}

.ending-line {
  display: block;
  width: 44px;
  height: 3px;
  margin-bottom: 28px;
  background: var(--green-bright);
}

.ending-eyebrow {
  margin: 0 0 13px !important;
  color: var(--gold) !important;
  font-size: 0.75rem !important;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.application-ending h1 {
  max-width: 680px;
  margin: 0 0 24px;
  color: var(--green);
  font-family: var(--font-head);
  font-size: clamp(2.7rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.04;
}

.application-ending p {
  max-width: 630px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.application-ending a {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  gap: 9px;
  padding: 0 20px;
  border-radius: 5px;
  color: var(--white);
  background: var(--green-bright);
  font-size: 0.89rem;
  font-weight: 700;
  text-decoration: none;
}

.application-saving {
  display: grid;
  justify-items: center;
  gap: 18px;
  color: var(--muted);
  text-align: center;
}

.application-saving span {
  width: 34px;
  height: 34px;
  border: 2px solid #d7d2c5;
  border-top-color: var(--green-bright);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.application-saving p {
  margin: 0;
  font-size: 0.9rem;
}

.application-booking-stage {
  width: 100%;
  min-height: calc(100dvh - 82px);
  background: var(--white);
  animation: questionIn 360ms ease both;
}

body.booking-stage-active .application-main {
  display: block;
  padding: 82px 0 0;
  background: var(--white);
}

.application-booking-intro {
  padding: 42px max(24px, calc((100% - 900px) / 2)) 34px;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  text-align: center;
}

.booking-eyebrow {
  margin: 0 0 10px;
  color: var(--green-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.application-booking-intro h1 {
  margin: 0 0 12px;
  color: var(--green);
  font-family: var(--font-head);
  font-size: clamp(2.25rem, 4vw, 3.65rem);
  font-weight: 600;
  line-height: 1.06;
}

.application-booking-intro > [data-booking-message] {
  max-width: 600px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.98rem;
}

.application-submission-feedback {
  max-width: 600px;
  margin: 18px auto 0;
  padding: 13px 16px;
  border: 1px solid #d9e5d9;
  border-radius: 5px;
  background: #f0f6f0;
  text-align: left;
}

.application-submission-feedback[hidden],
.application-submission-feedback a[hidden] {
  display: none;
}

.application-submission-feedback p {
  margin: 0;
  color: var(--green);
  font-size: 0.88rem;
  line-height: 1.5;
}

.application-submission-feedback.is-error {
  border-color: #e8cbc3;
  background: #fff4f0;
}

.application-submission-feedback.is-error p {
  color: #7f3e31;
}

.application-submission-feedback a {
  display: inline-block;
  margin-top: 9px;
  color: #7f3e31;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.application-booking-calendar {
  overflow: hidden;
  width: 100%;
  min-height: 760px;
  background: var(--white);
}

.application-booking-widget {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 820px;
  border: 0;
  background: var(--white);
}

@keyframes stageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes questionIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
  .application-header {
    height: 66px;
    padding: 0 18px;
  }

  .application-brand img {
    width: 112px;
  }

  .application-main {
    align-items: start;
    padding: 104px 20px 34px;
  }

  body.booking-stage-active .application-main {
    padding: 70px 0 0;
  }

  .application-booking-stage {
    min-height: calc(100dvh - 70px);
  }

  .application-booking-intro {
    padding: 34px 20px 28px;
  }

  .application-booking-intro h1 {
    font-size: 2.45rem;
  }

  .application-booking-widget {
    min-height: 900px;
  }

  .application-step-count {
    margin-bottom: 15px;
  }

  .application-step legend {
    margin-bottom: 23px;
    font-size: 2.15rem;
    line-height: 1.08;
  }

  .application-description {
    margin-top: -10px;
  }

  .application-option {
    min-height: 56px;
  }

  .contact-fields {
    grid-template-columns: 1fr;
    gap: 19px;
  }

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

  .application-input-wrap textarea {
    min-height: 150px;
  }

  .application-controls {
    gap: 18px;
  }

  .application-next {
    margin-left: auto;
  }

  .application-ending h1 {
    font-size: 2.75rem;
  }
}

@media (max-width: 390px) {
  .application-main {
    padding-right: 17px;
    padding-left: 17px;
  }

  .application-step legend {
    font-size: 1.95rem;
  }

  .application-option {
    padding-right: 13px;
    padding-left: 13px;
  }
}

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