/* "Join Our Waitlist" popup (inc/wpforms-waitlist.php).
   Same card, header and field treatment as the 92 Alpine "Schedule a Tour"
   popup (assets/page-92-alpine.css) and the Contact page form
   (assets/contact-wpforms.css). Printed in the footer of any page with a
   waitlist button, so the tokens are redeclared here rather than relying on
   a page stylesheet being present. WPForms' own stylesheet is switched off
   on these pages, so this is the only thing styling the form. */

.fc-waitlist-modal {

  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: rgba(15, 20, 33, 0.85);
  box-sizing: border-box;
  font-family: var(--font-body);
  color: var(--ink);
}
.fc-waitlist-modal.open { display: flex; }

.fc-waitlist-modal-content {
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 62px 36px 32px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  text-align: left;
  box-sizing: border-box;
}
@media (max-width: 600px) {
  .fc-waitlist-modal { padding: 16px; }
  .fc-waitlist-modal-content { padding: 58px 20px 24px; }
}

/* Black circle, white plus rotated to an X; inside the card like the tour
   popup's close button. */
.fc-waitlist-modal-close {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  z-index: 2;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #000 !important;
  color: #fff !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.fc-waitlist-modal-close:hover,
.fc-waitlist-modal-close:focus-visible { background: #222 !important; }
.fc-waitlist-modal-close svg {
  width: 16px !important;
  height: 16px !important;
  stroke: #fff !important;
  transform: rotate(45deg);
}

.fc-waitlist-header { text-align: center; margin-bottom: 24px; }
.fc-waitlist-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 10px;
}
.fc-waitlist-h2 em { font-style: normal; color: var(--green); }
.fc-waitlist-sub {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--warm-gray);
  margin: 0;
}
.fc-waitlist-sub strong { color: var(--ink); font-weight: 700; }

/* Once submitted, the confirmation replaces the form; the intro copy above
   it no longer applies. */
.fc-waitlist-modal.is-submitted .fc-waitlist-sub { display: none; }

/* ---------- Form ---------- */
.fc-waitlist-form .wpforms-container { margin: 0; }
.fc-waitlist-form .wpforms-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.fc-waitlist-form .wpforms-field-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}
.fc-waitlist-form .wpforms-field {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0;
}
.fc-waitlist-form .wpforms-field.fc-half { grid-column: span 1; }
@media (max-width: 600px) {
  .fc-waitlist-form .wpforms-field-container { grid-template-columns: 1fr; }
  .fc-waitlist-form .wpforms-field.fc-half { grid-column: 1 / -1; }
}

.fc-waitlist-form .wpforms-field-label {
  display: block;
  margin: 0;
  font-family: var(--font-body);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  color: rgba(31, 36, 25, 0.72);
}
.fc-waitlist-form .wpforms-required-label { color: var(--green); }
.fc-waitlist-form .fc-optional .wpforms-field-label::after {
  content: ' (optional)';
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: rgba(31, 36, 25, 0.4);
}
.fc-waitlist-form .wpforms-field-sublabel,
.fc-waitlist-form .wpforms-field-description,
.fc-waitlist-form .wpforms-hidden,
.fc-waitlist-form .wpforms-field-hidden { display: none; }
.fc-waitlist-form .wpforms-field-hp {
  display: none !important;
  position: absolute !important;
  left: -9000px !important;
}

.fc-waitlist-form .wpforms-field input[type='text'],
.fc-waitlist-form .wpforms-field input[type='email'],
.fc-waitlist-form .wpforms-field input[type='tel'],
.fc-waitlist-form .wpforms-field select,
.fc-waitlist-form .wpforms-field textarea {
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  background-color: transparent;
  border: 1px solid rgba(31, 36, 25, 0.18);
  border-radius: 3px;
  padding: 0 13px;
  box-shadow: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.fc-waitlist-form .wpforms-field input[type='text'],
.fc-waitlist-form .wpforms-field input[type='email'],
.fc-waitlist-form .wpforms-field input[type='tel'],
.fc-waitlist-form .wpforms-field select { height: 46px; }
.fc-waitlist-form .wpforms-field textarea {
  height: auto;
  min-height: 84px;
  padding: 11px 13px;
  resize: vertical;
}

/* Native select chrome would otherwise show the OS default arrow, so one in
   the brand ink is drawn here (same as the Contact form). */
.fc-waitlist-form .wpforms-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%231f2419' stroke-opacity='.55' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.fc-waitlist-form .wpforms-field select option { color: var(--ink); background: #fff; }

/* Preferred contact method: WPForms renders the radio as a <ul> of
   input + label pairs, drawn here as three equal pill buttons in the same
   border/focus treatment as the text inputs. */
/* Radio fields come wrapped in a <fieldset>/<legend>; drop the browser's
   default frame so it reads like every other field. */
.fc-waitlist-form .fc-contact-method fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.fc-waitlist-form .fc-contact-method legend.wpforms-field-label {
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 7px;
}
.fc-waitlist-form .fc-contact-method ul {
  clear: both;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fc-waitlist-form .fc-contact-method li {
  position: relative;
  margin: 0;
  padding: 0;
}
.fc-waitlist-form .fc-contact-method input[type='radio'] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.fc-waitlist-form .fc-contact-method li label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  border: 1px solid rgba(31, 36, 25, 0.18);
  border-radius: 3px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.fc-waitlist-form .fc-contact-method li label:hover { border-color: rgba(31, 36, 25, 0.32); }
.fc-waitlist-form .fc-contact-method input:checked + label {
  color: var(--green-dark);
  font-weight: 600;
  border-color: var(--green);
  background-color: rgba(74, 124, 58, 0.08);
}
.fc-waitlist-form .fc-contact-method input:focus-visible + label {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(74, 124, 58, 0.16);
}
.fc-waitlist-form .fc-contact-method input.wpforms-error + label { border-color: #ce5c4a; }

.fc-waitlist-form .wpforms-field ::placeholder { color: rgba(31, 36, 25, 0.52); }
.fc-waitlist-form .wpforms-field input:hover,
.fc-waitlist-form .wpforms-field select:hover,
.fc-waitlist-form .wpforms-field textarea:hover { border-color: rgba(31, 36, 25, 0.32); }
.fc-waitlist-form .wpforms-field input:focus,
.fc-waitlist-form .wpforms-field select:focus,
.fc-waitlist-form .wpforms-field textarea:focus {
  outline: none;
  border-color: var(--green);
  background-color: rgba(74, 124, 58, 0.04);
  box-shadow: 0 0 0 3px rgba(74, 124, 58, 0.16);
}
.fc-waitlist-form .wpforms-field input.wpforms-error,
.fc-waitlist-form .wpforms-field select.wpforms-error,
.fc-waitlist-form .wpforms-field textarea.wpforms-error { border-color: #ce5c4a; }
.fc-waitlist-form .wpforms-field input.wpforms-error:focus,
.fc-waitlist-form .wpforms-field select.wpforms-error:focus,
.fc-waitlist-form .wpforms-field textarea.wpforms-error:focus {
  border-color: #ce5c4a;
  box-shadow: 0 0 0 3px rgba(206, 92, 74, 0.28);
}
.fc-waitlist-form em.wpforms-error,
.fc-waitlist-form label.wpforms-error,
.fc-waitlist-form .wpforms-error-container {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-style: normal;
  color: #963527;
  background: none;
  border: 0;
}

.fc-waitlist-form .wpforms-confirmation-container,
.fc-waitlist-form .wpforms-confirmation-container-full {
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-left: 3px solid var(--green);
  border-radius: 3px;
  background: rgba(74, 124, 58, 0.1);
  color: var(--green-dark);
  font-size: 14px;
  line-height: 1.5;
}
.fc-waitlist-form .wpforms-confirmation-container p,
.fc-waitlist-form .wpforms-confirmation-container-full p { margin: 0; color: inherit; }
.fc-waitlist-form .wpforms-error-container-full,
.fc-waitlist-form .wpforms-form > .wpforms-error-container {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-left: 3px solid #ce5c4a;
  border-radius: 3px;
  background: rgba(206, 92, 74, 0.1);
  color: #963527;
  font-size: 14px;
  line-height: 1.5;
}

.fc-waitlist-form .wpforms-submit-container { padding: 0; margin: 0; }
.fc-waitlist-form button.wpforms-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  margin-top: 2px;
  padding: 0 22px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background-color: var(--green);
  border: 1.5px solid var(--green);
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.fc-waitlist-form button.wpforms-submit:hover,
.fc-waitlist-form button.wpforms-submit:focus-visible {
  background-color: var(--green-light);
  border-color: var(--green-light);
  transform: translateY(-2px);
}
.fc-waitlist-form button.wpforms-submit:disabled {
  background-color: rgba(31, 36, 25, 0.22);
  border-color: rgba(31, 36, 25, 0.22);
  cursor: not-allowed;
  transform: none;
}
.fc-waitlist-form .wpforms-recaptcha-container { padding: 0; max-width: 100%; overflow-x: auto; }
/* Turnstile renders at its "flexible" size here (inc/wpforms-waitlist.php),
   which fills whatever width its container has, so match the submit button. */
.fc-waitlist-form .wpforms-recaptcha-container,
.fc-waitlist-form .wpforms-turnstile { width: 100%; }

/* Page behind the open popup shouldn't scroll. */
html.fc-waitlist-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .fc-waitlist-form button.wpforms-submit:hover,
  .fc-waitlist-form button.wpforms-submit:focus-visible { transform: none; }
}
