/* Lead-capture modal — opened by any [data-open-lead] (all "BOOK NOW" buttons).
   Matches the packages-modal aesthetic. On submit it POSTs to the form-service
   endpoint set in the <form action> and shows an inline success state. */

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lead-modal.is-open { display: flex; }

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(4px);
}

.lead-modal__panel {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #141414;
  border: 3px solid var(--pink);
  border-radius: 22px;
  padding: 2.2rem 2rem 2rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  font-family: "Poppins", sans-serif;
  color: #fff;
}

.lead-modal__close {
  position: absolute;
  top: 0.7rem;
  right: 1rem;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
}

.lead-modal__kicker {
  display: inline-block;
  background: var(--cyan);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  transform: rotate(-2deg);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%, 10px 50%);
  margin-bottom: 0.9rem;
}

.lead-modal__title {
  margin: 0 0 0.4rem;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.lead-modal__title em { font-style: normal; color: var(--pink); }

.lead-modal__sub {
  margin: 0 0 1.4rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.5;
}

.lead-form { display: flex; flex-direction: column; gap: 1rem; }

.lead-form__field { display: flex; flex-direction: column; gap: 0.35rem; }

.lead-form__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
}

.lead-form__input,
.lead-form__select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: #0f0f0f;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 1rem; /* ≥16px so iOS Safari doesn't auto-zoom on focus */
}

.lead-form__select { appearance: none; }

.lead-form__input::placeholder { color: rgba(255, 255, 255, 0.4); }

.lead-form__input:focus,
.lead-form__select:focus { outline: none; border-color: var(--cyan); }

.lead-form__submit {
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--pink);
  color: #fff;
  border: 2px solid var(--cyan);
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.lead-form__submit:hover { transform: translateY(-2px); }
.lead-form__submit:disabled { opacity: 0.6; cursor: default; transform: none; }

.lead-form__error { color: #ff8aa8; font-size: 0.82rem; margin: 0; min-height: 1em; }

.lead-form__success { text-align: center; padding: 1.5rem 0.5rem; }
.lead-form__success h3 { font-family: "Fredoka", sans-serif; color: var(--pink); font-size: 1.5rem; margin: 0 0 0.5rem; }
.lead-form__success p { color: rgba(255, 255, 255, 0.8); font-size: 0.92rem; line-height: 1.5; margin: 0; }
