/* ==========================================================================
   Waitlist form — Mountain Air palette
   Used by [data-waitlist-form] widgets via /js/waitlist.js
   ========================================================================== */

.waitlist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 520px;
}

.waitlist-row {
  display: flex;
  gap: 8px;
  width: 100%;
  background: var(--white, #fff);
  border: 1px solid var(--border, #D4E1E7);
  border-radius: 12px;
  padding: 6px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.waitlist-row:focus-within {
  border-color: var(--blue, #254B5A);
  box-shadow: 0 0 0 4px rgba(37, 75, 90, 0.08);
}

.waitlist-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 12px 14px;
  font: 16px/1.3 var(--font-body, 'Plus Jakarta Sans', system-ui, sans-serif);
  color: var(--charcoal, #082434);
}

.waitlist-input::placeholder {
  color: var(--mid, #6B8290);
}

.waitlist-submit {
  flex: 0 0 auto;
  border: 0;
  cursor: pointer;
  background: var(--navy, #254B5A);
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  font: 600 15px/1 var(--font-body, 'Plus Jakarta Sans', system-ui, sans-serif);
  letter-spacing: 0.01em;
  transition: background 180ms ease, transform 120ms ease;
  white-space: nowrap;
}

.waitlist-submit:hover:not(:disabled) {
  background: #1b3b49;
}

.waitlist-submit:active:not(:disabled) {
  transform: translateY(1px);
}

.waitlist-submit:disabled {
  opacity: 0.7;
  cursor: default;
}

.waitlist-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.waitlist-message {
  font: 14px/1.4 var(--font-body, 'Plus Jakarta Sans', system-ui, sans-serif);
  color: var(--mid, #6B8290);
  min-height: 20px;
}

.waitlist-message[data-kind='success'] {
  color: var(--success, #6E8F7A);
}

.waitlist-message[data-kind='error'] {
  color: var(--error, #C06A5B);
}

.waitlist-fineprint {
  font: 13px/1.45 var(--font-body, 'Plus Jakarta Sans', system-ui, sans-serif);
  color: var(--muted, #8A9AA3);
  margin: 0;
}

.waitlist-fineprint a {
  color: inherit;
  text-decoration: underline;
}

/* On dark sections: apply .waitlist--on-dark on the wrapper */
.waitlist--on-dark .waitlist-row {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.waitlist--on-dark .waitlist-row:focus-within {
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

.waitlist--on-dark .waitlist-input {
  color: #fff;
}

.waitlist--on-dark .waitlist-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.waitlist--on-dark .waitlist-submit {
  background: #fff;
  color: var(--navy, #254B5A);
}

.waitlist--on-dark .waitlist-submit:hover:not(:disabled) {
  background: #f4f6f7;
}

.waitlist--on-dark .waitlist-message,
.waitlist--on-dark .waitlist-fineprint {
  color: rgba(255, 255, 255, 0.72);
}

.waitlist--on-dark .waitlist-message[data-kind='success'] {
  color: #c5e3cf;
}

.waitlist--on-dark .waitlist-message[data-kind='error'] {
  color: #f2c2b8;
}

/* Success state: collapse the row */
.waitlist[data-state='success'] .waitlist-row {
  opacity: 0.65;
}

.waitlist[data-state='loading'] .waitlist-row {
  opacity: 0.85;
}

/* Responsive: stack on narrow screens */
@media (max-width: 480px) {
  .waitlist-row {
    flex-direction: column;
    padding: 8px;
  }
  .waitlist-submit {
    width: 100%;
  }
}
