:root {
  --ink: #111820;
  --muted: #687381;
  --line: #d9dfe6;
  --surface: #f7f9fb;
  --white: #ffffff;
  --blue: #1f6feb;
  --blue-dark: #185fc9;
  --blue-soft: #eef5ff;
  --content-width: 780px;
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

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(31, 111, 235, 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: 3px;
  background: #e8edf3;
}

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

.application-header {
  position: fixed;
  top: 3px;
  right: 0;
  left: 0;
  z-index: 30;
  display: flex;
  height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

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

.application-brand img {
  display: block;
  width: 48px;
  height: auto;
  filter: invert(1);
}

.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(--surface);
}

.application-close span,
.application-close span::after {
  display: block;
  width: 17px;
  height: 1.5px;
  background: #5c6774;
  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: 118px 24px 54px;
}

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

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

.application-step-count {
  margin: 0 0 20px;
  color: #527eb1;
  font-size: 0.72rem;
  font-weight: 720;
  text-transform: uppercase;
}

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

.application-step[hidden] {
  display: none;
}

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

.application-step legend {
  width: 100%;
  max-width: 760px;
  margin: 0 0 30px;
  padding: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 540;
  line-height: 1.1;
  letter-spacing: 0;
}

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

.application-options {
  display: grid;
  width: min(650px, 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 #ccd5df;
  border-radius: 6px;
  color: #202a35;
  background: var(--white);
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 620;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.application-option:hover {
  border-color: #8fa4bb;
  background: #fbfcfd;
  transform: translateY(-1px);
}

.application-option:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: inset 3px 0 0 var(--blue);
}

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

.application-option:has(input:focus-visible) {
  outline: 3px solid rgba(31, 111, 235, 0.22);
  outline-offset: 3px;
}

.option-key {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #bdc9d5;
  border-radius: 4px;
  color: #506071;
  background: var(--surface);
  font-size: 0.72rem;
  font-weight: 720;
}

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

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

.application-detail[hidden] {
  display: none;
}

.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 #bac5d0;
  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(--blue);
  outline: 0;
}

::placeholder {
  color: #9aa5b1;
  opacity: 1;
}

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

.application-field {
  display: grid;
  gap: 7px;
  color: #4b5866;
  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: #8d98a5;
}

.application-field .iti {
  width: 100%;
  --iti-border-color: #d9dfe6;
  --iti-dialcode-color: #596675;
  --iti-dropdown-bg: #ffffff;
  --iti-hover-color: #f2f6fa;
}

.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: #f7f9fb;
}

.application-field .iti__country-container {
  border-bottom: 2px solid #bac5d0;
}

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

.iti__country-list {
  border-color: var(--line);
  border-radius: 6px;
  box-shadow: 0 18px 45px rgba(17, 24, 32, 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: #b3261e;
  font-size: 0.84rem;
}

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

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

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

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

.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: 50px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 20px;
  border-radius: 5px;
  color: var(--white);
  background: var(--blue);
  font-size: 0.9rem;
  font-weight: 680;
  transition: background 150ms ease, transform 150ms ease;
}

.application-next:hover {
  background: var(--blue-dark);
  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-ending {
  width: min(720px, 100%);
  animation: questionIn 360ms ease both;
}

.application-ending[hidden],
.application-booking-stage[hidden],
.application-saving[hidden] {
  display: none;
}

.ending-line {
  display: block;
  width: 42px;
  height: 2px;
  margin-bottom: 30px;
  background: var(--blue);
}

.application-ending h1 {
  max-width: 680px;
  margin: 0 0 24px;
  font-size: clamp(2.65rem, 6vw, 4.5rem);
  font-weight: 540;
  line-height: 1.04;
}

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

.application-ending a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0 19px;
  border-radius: 5px;
  color: var(--white);
  background: var(--blue);
  font-size: 0.88rem;
  font-weight: 680;
  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 #d7dfe8;
  border-top-color: var(--blue);
  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 - 79px);
  animation: questionIn 360ms ease both;
}

body.booking-stage-active .application-main {
  display: block;
  padding: 79px 0 0;
}

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

.application-booking-widget {
  display: block;
  width: 100%;
  min-width: 0;
  height: max(820px, calc(100dvh - 79px));
  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-main {
    align-items: start;
    padding: 104px 20px 34px;
  }

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

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

  .application-booking-widget {
    height: max(860px, calc(100dvh - 69px));
  }

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

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

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

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

  .application-controls {
    margin-top: 12px;
  }

  .application-next {
    min-height: 48px;
  }
}

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

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

  .application-option {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 11px;
    padding-right: 13px;
    padding-left: 13px;
  }

  .application-back > span:last-child {
    display: none;
  }
}

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