/* Studio launch waitlist — inline hero form + modal.
   The modal reuses the demo scheduler's sd-* shell (studio-scheduler.css), so
   only the inline form, the select-as-optional bits, and the done state live
   here. */

/* ── Inline hero form ──────────────────────────────────────────────── */
.studio-wl--inline { width: 100%; max-width: 520px; margin: 0 auto; }
.studio-wl-row {
  display: flex; gap: 10px; align-items: stretch;
  background: #fff; border: 1.5px solid var(--color-line, #e2e6ee);
  border-radius: 14px; padding: 6px; box-shadow: 0 6px 22px rgba(13,18,28,.06);
}
.studio-wl-row:focus-within { border-color: var(--color-main, #1264ff); box-shadow: 0 0 0 4px rgba(18,100,255,.12); }
.studio-wl-row input[type=email] {
  flex: 1 1 auto; min-width: 0; border: 0; background: transparent;
  padding: 12px 14px; font-size: 16px; color: var(--color-ink, #0d121c);
}
.studio-wl-row input[type=email]:focus { outline: none; }
.studio-wl-row input[type=email]::placeholder { color: #9aa4b2; }
.studio-wl-row .button { flex: 0 0 auto; white-space: nowrap; }
.studio-wl-note { margin: 12px 0 0; font-size: 13px; color: var(--color-muted, #6b7686); text-align: center; }
.studio-wl-msg { display: block; width: 100%; margin: 10px 0 0; font-size: 13px; font-weight: 500; text-align: center; color: #16a34a; }
.studio-wl-msg.is-error { color: #b42318; }

/* Inline confirmation that replaces the form. */
.studio-wl-done {
  display: inline-flex; align-items: center; gap: 11px;
  background: #16a34a; color: #fff; border-radius: 13px;
  padding: 13px 18px; font-size: 15px; font-weight: 500; line-height: 1.35;
  max-width: 520px; text-align: left;
}
.studio-wl-check { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.22); }
.studio-wl-check svg { width: 14px; height: 14px; color: #fff; }

/* The inline form sits in .hero-cta; let it wrap above any ghost button. */
.hero-cta:has(.studio-wl--inline) { flex-direction: column; align-items: center; gap: 14px; }

/* Product pages: left-align the hero waitlist form to match the left-aligned hero copy. */
.phero .hero-cta:has(.studio-wl--inline) { flex-direction: column; align-items: flex-start; gap: 14px; }
.phero .studio-wl--inline { margin-left: 0; margin-right: 0; }
.phero .studio-wl-note { text-align: left; }

/* ── Modal extras (shell comes from studio-scheduler.css) ──────────── */
.wl-opt { font-weight: 400; color: #9aa4b2; }
.wl-form .sd-field select:invalid,
.wl-form .sd-field select option[value=""] { color: #9aa4b2; }
.wl-submit { margin-top: 4px; }

/* Lighter field borders + no blue focus highlight (scoped to the waitlist form). */
.wl-form .sd-field input,
.wl-form .sd-field textarea,
.wl-form .sd-field select { border-color: #d9dee8; }
.wl-form .sd-field input:focus,
.wl-form .sd-field textarea:focus,
.wl-form .sd-field select:focus { border-color: #d9dee8; box-shadow: none; }

/* Wider modal with a two-column field grid (scoped to the waitlist modal so the
   demo scheduler modal is unaffected). Email/Name, Interested/Job, Website/Tools
   pair up; the error and submit span the full width. (Width set once below.) */
.wl-modal .wl-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.wl-modal .wl-form .sd-field { margin: 0; }
.wl-modal .wl-form .sd-field--full,
.wl-modal .wl-form .sd-error,
.wl-modal .wl-form .wl-submit { grid-column: 1 / -1; }
@media (max-width: 560px) {
  .wl-modal .wl-form { grid-template-columns: 1fr; }
}

.wl-done { text-align: center; padding: 8px 0 4px; }
.wl-done-check { display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%; background: #16a34a; margin: 0 auto 16px; }
.wl-done-check svg { width: 28px; height: 28px; color: #fff; }
.wl-done p { margin: 0 0 18px; font-size: 15px; color: var(--color-muted, #6b7686); }

@media (max-width: 520px) {
  .studio-wl-row { flex-direction: column; gap: 8px; padding: 10px; }
  .studio-wl-row .button { width: 100%; justify-content: center; }
}

/* Two-column waitlist form reads best in a 600px card (vs the demo scheduler's
   shared 640px shell). Scoped to .wl-modal so the scheduler modal keeps its width. */
.wl-modal .sd-card { max-width: 600px; }
