/* ============================================================
   ResVR Sign-Up Form
   Styled to the ResVR Marketing design system (design.resvr.com)
   Tokens from https://design.resvr.com/tokens.css (Figma 2026-02-22)
   ============================================================ */

:root {
  /* Color — Brand (Teal) */
  --color-brand-1000: #062b2c;
  --color-brand-900:  #083a3c;
  --color-brand-800:  #0a4c4d;
  --color-brand-700:  #0d6163;
  --color-brand-600:  #117a7c;
  --color-brand-500:  #16c9cc;  /* Primary accent */
  --color-brand-400:  #4ddadd;
  --color-brand-300:  #8ee8ea;
  --color-brand-200:  #c2f3f4;
  --color-brand-100:  #e6fafa;
  --color-brand-50:   #f2fdfc;

  /* Color — Neutral (Warm Gray) */
  --color-neutral-1000: #1f1d1a;
  --color-neutral-900:  #2f2c28;
  --color-neutral-800:  #5f5b55;
  --color-neutral-700:  #5f5b55;
  --color-neutral-600:  #7d7871;
  --color-neutral-500:  #9f9a94;
  --color-neutral-400:  #bab6b1;
  --color-neutral-300:  #d2cfcb;
  --color-neutral-200:  #e4e2de;
  --color-neutral-100:  #f6f5f3;
  --color-neutral-50:   #faf9f7;
  --color-neutral-0:    #ffffff;

  --color-error: #ef4444;

  /* Typography */
  --font-display: "Neue Haas Grotesk Display Pro", "Helvetica Neue", Arial, sans-serif;
  --font-text:    "Neue Haas Grotesk Text Pro", "Helvetica Neue", Arial, sans-serif;

  /* Jeff Shore Summit promo (temporary, not a ResVR token) */
  --promo-green: #a6d327;
  --promo-green-ink: #6d8f0e;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--color-neutral-50);
  color: var(--color-neutral-1000);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 26px;
}

h1, h2 { font-family: var(--font-display); font-weight: 500; }

/* Header */
.site-header {
  background: var(--color-brand-1000);
  padding: 1.1rem 1.5rem;
  display: flex;
  justify-content: center;
}

.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-logo { width: 2rem; height: 2rem; color: var(--color-neutral-0); }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--color-neutral-0);
  letter-spacing: -0.5px;
}
.brand-sub {
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-brand-300);
  margin-top: 0.4rem;
}

.header-accent { height: 4px; background: var(--color-brand-500); }

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4.5rem;
}

/* Intro */
.intro h1 {
  font-size: 2.75rem;
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0 0 1rem;
}
.intro p { max-width: 42rem; color: var(--color-neutral-800); font-size: 18px; line-height: 28px; }
.intro a { color: var(--color-brand-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Sections as cards */
.form-section {
  margin-top: 2rem;
  background: var(--color-neutral-0);
  border: 1px solid var(--color-neutral-200);
  border-radius: 12px;
  padding: 2rem;
}

.section-title {
  font-size: 1.5rem;
  line-height: 2rem;
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-neutral-200);
  position: relative;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 56px;
  height: 2px;
  background: var(--color-brand-500);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.25rem;
}

.span-2 { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .choice-group legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-neutral-700);
}
.req { color: var(--color-brand-600); margin-left: 2px; }

input[type="text"],
input[type="email"],
input[type="date"],
select,
textarea {
  font-family: var(--font-text);
  font-size: 15px;
  padding: 10px 12px;
  border: 1.5px solid var(--color-neutral-300);
  border-radius: 6px;
  color: var(--color-neutral-1000);
  background: var(--color-neutral-0);
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--color-brand-500);
}

input.invalid, textarea.invalid, select.invalid {
  border-color: var(--color-error);
}

textarea { resize: vertical; }

.hint { color: var(--color-neutral-600); font-size: 13px; margin: 0.9rem 0 0; }
.muted { color: var(--color-neutral-600); }

/* Pricing table */
.pricing-table {
  border: 1px solid var(--color-neutral-200);
  border-radius: 8px;
  overflow: hidden;
}

.pricing-row {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-top: 1px solid var(--color-neutral-200);
  align-items: center;
  background: var(--color-neutral-0);
}

.pricing-row:first-child { border-top: none; }

.pricing-head {
  background: var(--color-brand-1000);
  color: var(--color-neutral-0);
  font-weight: 600;
}

.pricing-total {
  background: var(--color-brand-100);
  color: var(--color-brand-1000);
  font-weight: 700;
}

.inline-fields { display: flex; gap: 1rem; flex-wrap: wrap; }
.inline-fields .field { min-width: 190px; }
.inline-fields .grow { flex: 1; }

.price-cell { font-weight: 600; display: flex; align-items: baseline; gap: 0.55rem; flex-wrap: wrap; }
.price-was { color: var(--color-neutral-500); text-decoration: line-through; font-weight: 400; font-size: 0.9em; }
.promo-price { color: var(--promo-green-ink); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

/* Choice groups */
.choice-group { border: none; padding: 0; margin: 0; }
.choice-group legend { padding: 0; margin-bottom: 8px; }
.choices { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.choice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 400;
  color: var(--color-neutral-900);
  cursor: pointer;
}
.choice input { accent-color: var(--color-brand-500); width: 18px; height: 18px; margin: 0; }

/* Signature */
.agreement-copy { max-width: 44rem; color: var(--color-neutral-800); margin-top: 0; }
.signature-wrap { position: relative; }
#signature-pad {
  background: var(--color-neutral-0);
  border: 1.5px solid var(--color-neutral-300);
  border-radius: 6px;
  width: 100%;
  max-width: 640px;
  height: 180px;
  touch-action: none;
  cursor: crosshair;
  display: block;
}

#clear-signature {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: var(--color-brand-500);
  color: var(--color-brand-1000);
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-primary:hover { background: var(--color-brand-400); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 600;
  background: var(--color-neutral-0);
  color: var(--color-brand-600);
  border: 1.5px solid var(--color-brand-500);
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-secondary:hover { background: var(--color-brand-50); }

.submit-row { margin-top: 2rem; text-align: center; }

/* Terms + Turnstile */
.terms-row {
  margin-top: 2rem;
  background: var(--color-neutral-0);
  border: 1px solid var(--color-neutral-200);
  border-radius: 12px;
  padding: 1.1rem 1.5rem;
}
.terms-row .choice { align-items: flex-start; font-size: 14px; line-height: 22px; }
.terms-row .choice input { margin-top: 2px; flex-shrink: 0; }
.terms-row a { color: var(--color-brand-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.turnstile-container { margin-top: 1.5rem; display: flex; justify-content: center; }
.turnstile-container:empty { margin-top: 0; }

/* Alerts */
.form-error {
  margin-top: 1.5rem;
  background: #fef2f2;
  border: 1.5px solid var(--color-error);
  color: #b91c1c;
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  font-size: 14px;
  line-height: 22px;
}

.success-panel {
  margin-top: 2.5rem;
  background: var(--color-brand-50);
  border: 1px solid var(--color-brand-300);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
}
.success-panel h2 { color: var(--color-brand-700); margin-top: 0; font-size: 1.75rem; }
.success-panel p { max-width: 36rem; margin: 0.75rem auto 0; color: var(--color-neutral-800); }

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Footer */
.site-footer { margin-top: 2rem; }
.footer-inner {
  background: var(--color-brand-1000);
  display: flex;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  color: var(--color-brand-200);
  font-size: 14px;
}
.footer-inner a { color: var(--color-brand-400); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   JEFF SHORE PROMO — temporary; remove with the promo section in index.html
   ========================================================================== */
.promo-block {
  margin-top: 2.25rem;
  background: var(--color-neutral-0);
  border: 1.5px solid var(--promo-green);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
}
.promo-logo {
  display: flex;
  align-items: stretch;
  gap: 0.9rem;
  width: fit-content;
}
.promo-bracket {
  width: 14px;
  border: 3px solid var(--promo-green);
  border-right: none;
  border-radius: 8px 0 0 8px;
}
.promo-bracket-right {
  border: 3px solid var(--promo-green);
  border-left: none;
  border-radius: 0 8px 8px 0;
}
.promo-logo-text {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1.1;
}
.promo-logo-line1 {
  color: var(--promo-green-ink);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}
.promo-logo-line2 {
  color: var(--color-neutral-1000);
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: 0.05em;
}
.promo-where {
  color: var(--color-neutral-600);
  font-size: 13px;
  margin: 0.85rem 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.promo-offer { margin: 0.35rem 0 1rem; max-width: 40rem; color: var(--color-neutral-900); }
.promo-offer s { color: var(--color-neutral-500); }
.promo-offer strong { color: var(--promo-green-ink); }
.promo-apply {
  background: var(--color-neutral-100);
  border: 1px solid var(--color-neutral-200);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  display: flex;
  font-weight: 600;
}
.promo-apply input { accent-color: var(--promo-green-ink); }

/* Responsive */
@media (max-width: 640px) {
  .field-grid { grid-template-columns: 1fr; }
  .pricing-row { grid-template-columns: 1fr; }
  .intro h1 { font-size: 2.25rem; }
  .form-section { padding: 1.5rem 1.25rem; }
}
