:root {
  --lp-prequal-green: #0d5869;
  --lp-prequal-green-hover: #0b4958;
  --lp-prequal-green-soft: #e9f4f2;
  --lp-prequal-line: #d7e1e5;
  --lp-prequal-text: #33343b;
}

body.is-lp-prequal {
  background: #f3f3f3;
}

html.is-embedded-flow,
html.is-embedded-flow body.is-lp-prequal {
  background: transparent;
}

body.is-lp-prequal .booking-page {
  justify-content: center;
  padding: 20px 0 16px;
}

.lp-prequal-card,
.booking-card.step-confirm.lp-prequal-card {
  width: min(760px, calc(100vw - 40px));
  min-height: 500px;
  height: auto;
  border-radius: 18px;
  border-width: 1px;
  border-color: #d6d6d6;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

html.is-embedded-flow .lp-prequal-card {
  box-shadow: none;
}

.lp-prequal-card-top {
  width: 100%;
  min-height: 38px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 12px;
}

.lp-prequal-card .floating-back-btn,
.lp-prequal-card .floating-close-btn {
  position: static;
  width: 38px;
  height: 38px;
  border: 1px solid #d9dce1;
  border-radius: 999px;
  background: #f7f8f9;
  color: #33343b;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.06), 0 6px 14px rgba(17, 24, 39, 0.08);
  transform: none;
}

.lp-prequal-card .floating-back-btn {
  visibility: hidden;
  pointer-events: none;
}

.lp-prequal-card.is-back-visible .floating-back-btn {
  visibility: visible;
  pointer-events: auto;
}

.lp-prequal-card .floating-close-btn {
  justify-self: end;
  visibility: visible;
  pointer-events: auto;
}

.lp-prequal-card .floating-back-btn:hover,
.lp-prequal-card .floating-close-btn:hover {
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.09), 0 8px 16px rgba(17, 24, 39, 0.12);
}

.lp-prequal-card .floating-back-btn:active,
.lp-prequal-card .floating-close-btn:active {
  transform: scale(0.98);
}

.lp-prequal-mobile-brand {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  min-width: 0;
  gap: 8px;
  color: #050505;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  visibility: hidden;
}

.lp-prequal-mobile-brand img {
  width: 18px;
  height: 24px;
  object-fit: contain;
}

.lp-prequal-step {
  min-height: inherit;
  height: 100%;
  overflow: hidden;
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
}

.lp-prequal-shell {
  width: 100%;
  min-height: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.05rem 1.4rem 1.9rem;
}

.lp-prequal-form,
.lp-prequal-success {
  width: min(100%, 560px);
  margin: 0 auto;
}

.lp-prequal-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lp-prequal-progress-head {
  display: grid;
  gap: 7px;
  justify-items: center;
  margin: 0 auto 1.7rem;
}

.lp-prequal-flow-title {
  color: var(--lp-prequal-green);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.1;
}

.lp-prequal-step-count {
  color: var(--lp-prequal-green);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.lp-prequal-progress {
  width: min(180px, 48vw);
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3ebee;
}

.lp-prequal-progress span {
  display: block;
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: var(--lp-prequal-green);
  transition: width 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lp-prequal-panel {
  will-change: opacity, transform;
}

.lp-prequal-panel.is-exiting {
  animation: lpPrequalExit 220ms cubic-bezier(0.55, 0.06, 0.68, 0.19) forwards;
}

.lp-prequal-panel.is-entering {
  animation: lpPrequalEnter 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lp-prequal-question {
  max-width: 560px;
  margin: 0 auto;
  color: var(--lp-prequal-text);
  font-size: 2.12rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
  text-align: center;
}

.lp-prequal-contact-prompt {
  max-width: 500px;
  font-size: 1.48rem;
  line-height: 1.22;
}

.lp-prequal-options {
  display: grid;
  gap: 10px;
  margin: 1.3rem auto 0;
}

.lp-prequal-option {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1.5px solid #ccd9de;
  border-radius: 14px;
  background: #ffffff;
  color: #2b2c32;
  padding: 10px 16px;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.18;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  transform: translateZ(0);
  transition:
    border-color 170ms ease,
    background-color 170ms ease,
    color 170ms ease,
    box-shadow 170ms ease,
    transform 170ms ease;
}

.lp-prequal-option::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2.5px solid #b9c9cf;
  background: #ffffff;
  box-shadow: inset 0 0 0 5px #ffffff;
  transition:
    border-color 170ms ease,
    background-color 170ms ease,
    box-shadow 170ms ease,
    transform 170ms ease;
}

.lp-prequal-option:hover,
.lp-prequal-option:focus-visible {
  border-color: #8db7c1;
  box-shadow: 0 8px 20px rgba(13, 88, 105, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.lp-prequal-option.is-selected {
  border-color: var(--lp-prequal-green);
  background: var(--lp-prequal-green-soft);
  color: var(--lp-prequal-green);
  box-shadow: 0 9px 22px rgba(13, 88, 105, 0.12);
  transform: translateY(-1px) scale(1.006);
}

.lp-prequal-option.is-selected::before {
  border-color: var(--lp-prequal-green);
  background: var(--lp-prequal-green);
  box-shadow: inset 0 0 0 5px #ffffff;
  transform: scale(1.04);
}

.lp-prequal-option.is-advancing {
  animation: lpPrequalPulse 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lp-prequal-important {
  margin: 1rem auto 0;
  color: #2b2c32;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.38;
  text-align: center;
}

.lp-prequal-contact {
  display: grid;
  gap: 11px;
  margin: 1.25rem auto 0;
}

.lp-prequal-contact .field-group {
  margin: 0;
}

.lp-prequal-contact label {
  margin-bottom: 6px;
  display: block;
  color: #37383f;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
}

.lp-prequal-contact input {
  width: 100%;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #eceeef;
  color: #1f2025;
  padding: 0 14px;
  font: inherit;
  font-size: 0.98rem;
  outline: none;
  transition: box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.lp-prequal-contact input:focus {
  border-color: rgba(13, 88, 105, 0.28);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(13, 88, 105, 0.12);
}

.lp-prequal-contact .iti {
  width: 100%;
  display: block;
}

.lp-prequal-contact .iti input {
  width: 100%;
  padding-left: 96px;
}

.lp-prequal-contact .iti--separate-dial-code .iti__selected-flag {
  background: transparent;
  padding: 0 8px 0 12px;
}

.lp-prequal-contact .iti--separate-dial-code .iti__selected-dial-code {
  color: #1f2126;
  font-weight: 800;
}

.lp-prequal-contact .iti__arrow {
  border-top-color: #555 !important;
}

.lp-prequal-error {
  width: 100%;
  margin-top: 12px;
  display: none;
  color: #d94c4c;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
}

.lp-prequal-error.is-visible {
  display: block;
}

.lp-prequal-actions {
  display: none;
  margin-top: 16px;
}

.lp-prequal-form.is-contact-step .lp-prequal-actions {
  display: block;
}

.lp-prequal-form.is-contact-step .lp-prequal-important {
  order: 5;
  margin-top: 0.88rem;
}

.lp-prequal-next,
.lp-prequal-close {
  width: 100%;
  min-height: 50px;
  border-radius: 12px;
  background: var(--lp-prequal-green);
  font-size: 1rem;
  font-weight: 800;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.lp-prequal-next:hover:not(:disabled),
.lp-prequal-close:hover:not(:disabled) {
  background: var(--lp-prequal-green-hover);
  box-shadow: 0 14px 30px rgba(13, 88, 105, 0.18);
  transform: translateY(-1px);
}

.lp-prequal-next:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.lp-prequal-success {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.lp-prequal-success[hidden] {
  display: none !important;
}

.lp-prequal-success .status-title {
  margin: 14px 0 0;
  text-align: center;
  white-space: normal;
  font-size: 2rem;
  line-height: 1.08;
  color: var(--lp-prequal-text);
}

.lp-prequal-success p {
  max-width: 440px;
  margin: 12px 0 0;
  color: #62656c;
  font-size: 0.98rem;
  line-height: 1.38;
}

.lp-prequal-success-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--lp-prequal-green);
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}

.lp-prequal-close {
  width: min(100%, 320px);
  margin-top: 22px;
}

@keyframes lpPrequalPulse {
  0% {
    transform: translateY(-1px) scale(1.006);
  }
  60% {
    transform: translateY(-1px) scale(1.018);
  }
  100% {
    transform: translateY(-1px) scale(1.006);
  }
}

@keyframes lpPrequalExit {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-14px) scale(0.985);
  }
}

@keyframes lpPrequalEnter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 860px) {
  body.is-lp-prequal .booking-page {
    justify-content: flex-start;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .lp-prequal-card,
  .booking-card.step-confirm.lp-prequal-card {
    width: min(620px, calc(100vw - 20px));
    min-height: auto;
    height: auto;
    border-radius: 18px;
  }

  .lp-prequal-shell {
    min-height: 480px;
    padding: 1rem 1.05rem 1.45rem;
  }

  .lp-prequal-card-top {
    margin-bottom: 6px;
  }

  .lp-prequal-progress-head {
    margin-bottom: 1.3rem;
  }

  .lp-prequal-question {
    font-size: 1.85rem;
    line-height: 1.14;
  }

  .lp-prequal-options {
    gap: 9px;
    margin-top: 1.05rem;
  }

  .lp-prequal-important {
    margin-top: 0.88rem;
    font-size: 0.9rem;
  }

  .lp-prequal-option {
    min-height: 50px;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    border-radius: 13px;
    padding: 9px 14px;
    font-size: 1rem;
  }
}

@media (max-width: 560px) {
  html.is-embedded-flow body.is-lp-prequal .booking-page {
    min-height: 100dvh;
    padding: 0;
  }

  html.is-embedded-flow .lp-prequal-card,
  html.is-embedded-flow .booking-card.step-confirm.lp-prequal-card {
    width: 100%;
    min-height: 100dvh;
    height: auto;
    border: 0;
    border-radius: 0;
  }

  html.is-embedded-flow .lp-prequal-shell {
    min-height: 100dvh;
    justify-content: flex-start;
    padding: 0.8rem 1rem 1.1rem;
  }

  .lp-prequal-card .floating-back-btn,
  .lp-prequal-card .floating-close-btn {
    width: 36px;
    height: 36px;
  }

  .lp-prequal-card-top {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    min-height: 36px;
    margin-bottom: 14px;
  }

  .lp-prequal-mobile-brand {
    visibility: visible;
  }

  .lp-prequal-form {
    justify-content: flex-start;
    padding-top: clamp(1.2rem, 5vh, 2.35rem);
  }

  .lp-prequal-progress-head {
    gap: 7px;
    margin-bottom: 1.15rem;
  }

  .lp-prequal-step-count {
    font-size: 0.9rem;
  }

  .lp-prequal-progress {
    width: min(160px, 50vw);
  }

  .lp-prequal-question {
    font-size: 1.45rem;
    line-height: 1.16;
  }

  .lp-prequal-contact-prompt {
    font-size: 1.24rem;
    line-height: 1.22;
  }

  .lp-prequal-option {
    min-height: 46px;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 0.92rem;
  }

  .lp-prequal-important {
    margin-top: 0.74rem;
    font-size: 0.84rem;
    line-height: 1.36;
  }

  .lp-prequal-option::before {
    width: 17px;
    height: 17px;
    border-width: 2px;
    box-shadow: inset 0 0 0 4px #ffffff;
  }

  .lp-prequal-contact {
    gap: 10px;
    margin-top: 1rem;
  }

  .lp-prequal-contact input {
    min-height: 46px;
    font-size: 0.95rem;
  }

  .lp-prequal-next,
  .lp-prequal-close {
    min-height: 48px;
    font-size: 0.96rem;
  }
}
