/*
 * Lead form: the Get a Quote popup, the section above the footer on every page,
 * and the forms placed on the homepage and contact page. Markup comes from
 * scripts/partials/ via scripts/sync-lead-form.mjs; behaviour is in js/booking.js.
 *
 * Same tokens as the rest of the site: ink #0F1117, body #4B5563, muted #6B7280,
 * borders #E5E7EB, surface #F5F5F3, accent #E5FC52; 8px fields, 6px buttons,
 * 10-14px cards with the acid top edge used on the location cards.
 */

.lf [hidden],
.lf[hidden],
.lf-modal[hidden] {
  display: none !important;
}

.lf {
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #0F1117;
  text-align: left;
}

.lf-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lf-hp {
  display: none;
}

.lf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lf-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.lf-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: #111827;
}

.lf-optional {
  font-size: 12px;
  font-weight: 500;
  color: #9CA3AF;
}

.lf-input {
  width: 100%;
  height: 50px;
  box-sizing: border-box;
  margin: 0;
  padding: 0 16px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  background-color: #FFFFFF;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: #0F1117;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.lf-input::placeholder {
  color: #9CA3AF;
  font-weight: 400;
}

.lf-input:hover {
  border-color: #9CA3AF;
}

.lf-input:focus {
  outline: none;
  border-color: #0F1117;
  box-shadow: 0 0 0 4px rgba(229, 252, 82, 0.7);
}

.lf-select {
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%230F1117' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

/* "Choose a range" reads as a placeholder until a range is picked. */
.lf-select:invalid {
  color: #9CA3AF;
  font-weight: 400;
}

.lf-select option {
  color: #0F1117;
}

.lf-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #F5F5F3;
  font-size: 12.5px;
  line-height: 1.55;
  color: #6B7280;
  cursor: pointer;
}

.lf-consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #0F1117;
  cursor: pointer;
}

.lf-consent a {
  color: #374151;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 54px;
  padding: 16px 32px;
  border: none;
  border-radius: 6px;
  background: #E5FC52;
  color: #0F1117;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 17, 23, 0.08);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.lf-submit:hover {
  background: #D4EB3A;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 17, 23, 0.14);
}

.lf-submit:focus-visible,
.lf-modal__close:focus-visible {
  outline: 2px solid #0F1117;
  outline-offset: 3px;
}

.lf-submit:disabled {
  background: #E5E7EB;
  color: #6B7280;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.lf-form .lf-submit {
  width: 100%;
  margin-top: 2px;
}

.lf-note {
  margin: -6px 0 0;
  text-align: center;
  font-size: 13px;
  color: #6B7280;
}

.lf-error {
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #FECACA;
  border-radius: 8px;
  background: #FEF2F2;
  color: #991B1B;
  font-size: 14px;
  line-height: 1.5;
}

.lf-thanks {
  padding: 28px;
  border-radius: 10px;
  background: #F5F5F3;
}

.lf-thanks__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0F1117;
}

.lf-thanks__title::before {
  content: '';
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E5FC52 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230F1117' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.lf-thanks__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #4B5563;
}

.lf-thanks__book {
  margin-top: 20px;
}

/* Section above the footer */
.lf-section {
  background: #F5F5F3;
  padding: 104px 0;
}

.lf-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}

/* Beats .lf-section__intro p, which would otherwise restyle it as body text. */
.lf-section .lf-section__eyebrow {
  font-family: var(--mono, 'IBM Plex Mono', ui-monospace, Menlo, monospace);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #6B7280;
  margin: 0 0 14px;
}

.lf-section__title {
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #0F1117;
  margin: 0 0 20px;
}

.lf-section__intro p {
  font-size: 17px;
  line-height: 1.65;
  color: #4B5563;
  margin: 0 0 16px;
}

.lf-section__intro a {
  color: #0F1117;
  font-weight: 600;
}

.lf-section__card {
  background: #FFFFFF;
  padding: 40px;
  border: 1px solid #E5E7EB;
  border-top: 3px solid #E5FC52;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 17, 23, 0.04), 0 16px 40px rgba(15, 17, 23, 0.06);
}

/* Get a Quote popup */
.lf-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px;
  overflow-y: auto;
  background: rgba(15, 17, 23, 0.62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.lf-modal__panel {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 600px;
  margin: auto 0;
  padding: 40px;
  background: #FFFFFF;
  border-top: 3px solid #E5FC52;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  animation: lf-modal-in 0.18s ease-out;
}

@keyframes lf-modal-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
}

.lf-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: #6B7280;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lf-modal__close:hover {
  background: #F3F4F6;
  color: #0F1117;
}

.lf-modal__title {
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #0F1117;
  margin: 0 0 8px;
  padding-right: 40px;
}

.lf-modal__text,
.lf-modal__alt {
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #4B5563;
  margin: 0 0 28px;
}

.lf-modal__alt {
  font-size: 14px;
  color: #6B7280;
  text-align: center;
  margin: 20px 0 0;
}

.lf-modal__alt a {
  color: #0F1117;
  font-weight: 600;
}

html.lf-modal-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .lf-input,
  .lf-submit,
  .lf-modal__close {
    transition: none;
  }

  .lf-submit:hover {
    transform: none;
  }

  .lf-modal__panel {
    animation: none;
  }
}

@media (max-width: 992px) {
  .lf-section__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .lf-row {
    grid-template-columns: 1fr;
  }

  .lf-section {
    padding: 72px 0;
  }

  .lf-section__inner {
    padding: 0 16px;
  }

  .lf-section__card {
    padding: 24px 20px;
  }

  .lf-modal {
    padding: 12px;
  }

  .lf-modal__panel {
    padding: 28px 20px 24px;
  }

  .lf-modal__title {
    font-size: 26px;
  }
}
