/* =====================================================================
   Sentrock waitlist — LIGHT MODE (commercial site experiment).
   Extends styles.css; form panel, fields, validation, success state.
   ===================================================================== */

.waitlist-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  min-height: calc(100vh - 68px);
}

/* ---------- Left: pitch ---------- */
.waitlist-left {
  background: var(--bg-2); border-right: 1px solid var(--border);
  display: flex; align-items: flex-start; padding: 64px 0;
  position: relative; overflow: hidden;
}
.waitlist-left::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 45% at 20% 10%, rgba(124,58,237,.10), transparent 60%);
}
.waitlist-left-inner { position: relative; width: 100%; max-width: 520px; margin: 0 auto; padding: 0 40px; }
.waitlist-left h1 { font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -.03em; margin-top: 16px; }
.waitlist-sub { margin-top: 16px; font-size: 17.5px; line-height: 1.6; color: var(--text-muted); }

.expect-list { margin-top: 36px; display: flex; flex-direction: column; gap: 22px; }
.expect-list li { display: flex; gap: 14px; align-items: flex-start; }
.expect-check {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  color: #fff; background: var(--accent); box-shadow: var(--shadow-accent);
}
.expect-list strong { display: block; font-size: 15.5px; color: var(--text); margin-bottom: 3px; }
.expect-list p { font-size: 14.5px; line-height: 1.55; color: var(--text-muted); }

.trust-badge-row { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; }
.trust-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text-muted);
}
.trust-badge svg { color: var(--accent); }

/* ---------- Right: form ---------- */
.waitlist-right { display: flex; align-items: flex-start; padding: 64px 0; background: var(--bg); }
.waitlist-right-inner { width: 100%; max-width: 520px; margin: 0 auto; padding: 0 40px; }
.form-panel { }
.form-header h2 { font-size: 26px; letter-spacing: -.02em; }
.form-header p { margin-top: 8px; font-size: 15px; color: var(--text-muted); }

#waitlist-form { margin-top: 26px; display: flex; flex-direction: column; gap: 18px; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label { font-size: 13.5px; font-weight: 600; color: var(--text); }
.req { color: var(--accent); }
.opt { color: var(--text-dim); font-weight: 400; }

.form-field input, .form-field select {
  width: 100%; font-family: var(--font); font-size: 15px; color: var(--text);
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 13px; transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none;
}
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23838A99' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px;
}
.form-field input::placeholder { color: var(--text-dim); }
.form-field input:focus, .form-field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-field.is-error input, .form-field.is-error select { border-color: var(--unhealthy); box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
.form-field.is-valid input, .form-field.is-valid select { border-color: rgba(16,185,129,.55); }
.form-error-message { font-size: 12.5px; color: var(--unhealthy); min-height: 0; }
.form-field.is-error .form-error-message { min-height: 16px; }

/* Consent */
.consent-field { margin-top: 2px; }
.consent-label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
/* Restore native checkbox rendering (the generic .form-field input rule sets
   appearance:none + full width/padding, which blanked the check). accent-color
   then tints the native checkmark with the brand purple. */
.consent-label input[type="checkbox"] {
  flex-shrink: 0; width: 18px; height: 18px; min-width: 18px; margin-top: 2px;
  padding: 0; border: 0; border-radius: 4px; background: none; box-shadow: none;
  -webkit-appearance: checkbox; appearance: auto; accent-color: var(--accent); cursor: pointer;
}
.consent-text { font-size: 13px; line-height: 1.5; color: var(--text-muted); font-weight: 400; }
.consent-text a { color: var(--accent); text-decoration: underline; }
.consent-field.is-error .form-error-message { min-height: 16px; }

/* Error banner */
.form-error-banner {
  padding: 12px 14px; border-radius: 10px; font-size: 14px;
  background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.3); color: #B91C1C;
}
.form-error-banner a { color: #B91C1C; text-decoration: underline; }

/* Submit */
.btn-block { width: 100%; }
.submit-btn { position: relative; margin-top: 4px; }
.submit-spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; animation: spin .7s linear infinite; }
.submit-btn.is-loading .submit-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.legal-copy { font-size: 12px; line-height: 1.6; color: var(--text-dim); text-align: center; margin-top: 4px; }
.legal-copy a { color: var(--text-muted); text-decoration: underline; }

/* ---------- Success state ---------- */
.form-success { text-align: center; padding: 20px 0; }
.checkmark-animation { color: var(--healthy); margin: 0 auto 18px; }
.check-path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .5s ease .15s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success h2 { font-size: 26px; }
.success-body { margin: 12px auto 22px; font-size: 15.5px; line-height: 1.6; color: var(--text-muted); max-width: 400px; }
.success-steps { list-style: none; padding-left: 0; text-align: left; max-width: 400px; margin: 0 auto 26px; display: flex; flex-direction: column; gap: 12px; counter-reset: s; }
.success-steps li { position: relative; padding-left: 40px; font-size: 14.5px; line-height: 1.5; color: var(--text-muted); counter-increment: s; }
.success-steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; background: var(--accent);
}
.share-nudge { margin-top: 22px; font-size: 14px; color: var(--text-muted); }
.share-nudge a { color: var(--accent); font-weight: 600; text-decoration: underline; }

/* ---------- Footer ---------- */
.waitlist-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 24px 0; text-align: center; }
.waitlist-footer p { font-size: 13px; color: var(--text-dim); }
.waitlist-footer a { color: var(--text-muted); }
.waitlist-footer a:hover { color: var(--accent); }
.waitlist-footer .sep { margin: 0 8px; color: var(--text-dim); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .waitlist-layout { grid-template-columns: 1fr; min-height: 0; }
  .waitlist-left { border-right: 0; border-bottom: 1px solid var(--border); padding: 56px 0; }
  .waitlist-left-inner, .waitlist-right-inner { max-width: 560px; padding: 0 24px; }
}
@media (max-width: 480px) {
  .form-row-split { grid-template-columns: 1fr; }
}
