@font-face {
  font-family: 'Comfortaa';
  src: url('../fonts/Comfortaa-VariableFont.ttf') format('truetype');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cs-cream: #F7E9DC;
  --cs-ink: #43483A;
  --cs-sage: #757D66;
  --cs-sage-hover: #5D6452;
  --cs-terracotta: #D4835F;
  --cs-highlight: #EBC7AF;
}

* { box-sizing: border-box; }
html, body { margin: 0; }

body.cs-page {
  font-family: 'Comfortaa', system-ui, sans-serif;
  color: var(--cs-ink);
  background: var(--cs-cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.cs-page a { color: var(--cs-sage); text-decoration: none; }
.cs-page a:hover { color: var(--cs-terracotta); }
.cs-page img { display: block; max-width: 100%; }

.cs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.cs-content {
  background: var(--cs-cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 60px;
  gap: 46px;
}

.cs-logo { width: 190px; }

.cs-heading {
  font-weight: 400;
  font-size: clamp(28px, 4vw, 50px);
  letter-spacing: 0.06em;
  margin: 0;
  color: var(--cs-ink);
  line-height: 1.15;
}

.cs-highlight {
  background-image: linear-gradient(to top, var(--cs-highlight) 0.72em, transparent 0.72em);
  padding: 0 14px 0.06em;
}

.cs-hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: -20px;
}

.cs-support-line {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.cs-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.cs-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cs-sage);
  color: #FFFFFF;
  padding: 12px 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.cs-page a.cs-btn,
.cs-page a.cs-btn:hover { color: #FFFFFF; }
.cs-btn:hover { background: var(--cs-sage-hover); }
.cs-btn svg { flex: 0 0 auto; }

.cs-email-small {
  margin-top: -28px;
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.75;
  text-align: center;
}
.cs-email-small p { margin: 0 0 6px; }
.cs-email-small p:last-child { margin-bottom: 0; }

.cs-media {
  background-image: url(../images/coming-soon-hero.jpg);
  background-size: cover;
  background-position: center;
  min-height: 100vh;
}

@media (max-width: 860px) {
  .cs-grid { grid-template-columns: 1fr; }
  .cs-media { order: -1; min-height: 42vh; }
  .cs-content { padding: 56px 32px; gap: 34px; }
}

@media (max-width: 380px) {
  .cs-heading { white-space: normal; }
}

/* ============ Contact page ============ */
.cs-contact-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.cs-contact-card {
  width: 100%;
  max-width: 480px;
  background: #FFFFFF;
  border: 1px solid rgba(114, 124, 94, 0.2);
  border-radius: 4px;
  padding: 44px 40px;
}

.cs-back {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}

.cs-contact-card .cs-logo-sm { width: 140px; margin: 0 auto 28px; }

.cs-contact-card h1 {
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
  text-align: center;
}

.cs-contact-card .cs-lede {
  text-align: center;
  font-size: 14px;
  color: var(--cs-ink);
  opacity: 0.75;
  margin: 0 0 30px;
}

.cs-field { margin-bottom: 18px; }
fieldset.cs-yn + .cs-field { margin-top: 20px; }
.cs-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cs-sage);
  margin-bottom: 6px;
}
.cs-field input,
.cs-field textarea {
  width: 100%;
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 14px;
  color: var(--cs-ink);
  background: var(--cs-cream);
  border: 1.5px solid rgba(114, 124, 94, 0.3);
  border-radius: 4px;
  padding: 12px 14px;
  transition: border-color 0.15s ease;
}
.cs-field input:focus,
.cs-field textarea:focus {
  outline: none;
  border-color: var(--cs-sage);
}
.cs-field textarea { resize: vertical; min-height: 100px; }

.cs-contact-card .cs-btn {
  width: 100%;
  justify-content: center;
  border: none;
  font-family: inherit;
  cursor: pointer;
  margin-top: 6px;
}

.cs-contact-success { display: none; text-align: center; padding: 12px 0 4px; }
.cs-contact-success.show { display: block; }
.cs-contact-success h2 { font-weight: 400; font-size: 22px; margin: 0 0 8px; }
.cs-contact-success p { font-size: 14px; opacity: 0.75; margin: 0; }
.cs-contact-card.hide-form form { display: none; }

/* ============ Health screening page ============ */
.cs-hsq-wrap {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px;
}

.cs-hsq-card {
  width: 100%;
  max-width: 640px;
  background: #FFFFFF;
  border: 1px solid rgba(114, 124, 94, 0.2);
  border-radius: 4px;
  padding: 44px 40px;
}
.cs-hsq-card.hide-form form { display: none; }

.cs-hsq-card .cs-logo-sm { width: 140px; margin: 0 auto 28px; }
.cs-hsq-card h1 {
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
  text-align: center;
}
.cs-hsq-card .cs-lede {
  text-align: center;
  font-size: 14px;
  color: var(--cs-ink);
  opacity: 0.75;
  margin: 0 0 8px;
}

.cs-hsq-section { margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(114, 124, 94, 0.15); }
.cs-hsq-section:first-of-type { margin-top: 30px; padding-top: 0; border-top: none; }

.cs-hsq-section h2 {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cs-sage);
  margin: 0 0 18px;
}

.cs-hsq-subhead {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cs-ink);
  opacity: 0.7;
  margin: 22px 0 12px;
}
.cs-hsq-subhead:first-of-type { margin-top: 0; }

.cs-hsq-note { font-size: 13px; opacity: 0.75; margin: 0 0 16px; }

.cs-field-row { display: flex; gap: 14px; }
.cs-field-row .cs-field { flex: 1; }
.cs-field-narrow { max-width: 120px; flex: 0 0 auto !important; }
.cs-field-narrow:has(input[type="date"]) { max-width: 170px; }

.cs-yn {
  border: none;
  padding: 0 0 22px;
  margin: 20px 0 0;
  border-bottom: 1px solid rgba(114, 124, 94, 0.12);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cs-yn:first-child { margin-top: 0; }
.cs-yn legend {
  padding: 0 0 10px;
  font-size: 14px;
  line-height: 1.4;
  flex: 1 1 320px;
}
.cs-yn label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}
.cs-yn:not(.cs-yn-stack) label + label { margin-left: 20px; }
.cs-yn input[type="radio"],
.cs-yn input[type="checkbox"] { accent-color: var(--cs-sage); width: 16px; height: 16px; }

.cs-yn-stack {
  flex-direction: column;
  align-items: flex-start;
}
.cs-yn-stack legend { flex-basis: auto; font-weight: 600; margin-bottom: 10px; }
.cs-yn-stack label { display: flex; width: 100%; padding: 4px 0; }

/* ============ Linear scale (feedback form) ============ */
.cs-scale {
  border: none;
  padding: 0;
  margin: 0 0 28px;
}
.cs-scale legend {
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
}
.cs-scale-hint {
  font-size: 12px;
  opacity: 0.6;
  margin: 0 0 14px;
}
.cs-scale-options {
  display: grid;
  grid-template-columns: repeat(5, 38px);
  gap: 10px;
}
.cs-scale-options label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(114, 124, 94, 0.3);
  border-radius: 50%;
  font-size: 13px;
  color: var(--cs-ink);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.cs-scale-options input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.cs-scale-options label:has(input:checked) {
  background: var(--cs-sage);
  border-color: var(--cs-sage);
  color: #FFFFFF;
  font-weight: 600;
}
.cs-scale-endpoints {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  opacity: 0.6;
  margin-top: 6px;
  max-width: 320px;
}

.cs-declaration {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 22px;
  cursor: pointer;
}
.cs-declaration input { accent-color: var(--cs-sage); width: 16px; height: 16px; flex: 0 0 auto; margin-top: 3px; }
.cs-declaration input:disabled { cursor: not-allowed; opacity: 0.4; }
.cs-declaration:has(input:disabled) { cursor: not-allowed; opacity: 0.55; }
.cs-declaration a { display: inline-block; margin-top: 4px; font-weight: 600; }

@media (max-width: 520px) {
  .cs-hsq-card { padding: 32px 22px; }
  .cs-field-row { flex-direction: column; gap: 18px; }
  .cs-field-narrow { max-width: none; }
}

/* ============ Step form ============ */
.cs-progress { margin: 26px 0 6px; }
.cs-progress-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cs-sage);
  text-align: center;
  margin-bottom: 8px;
}
.cs-progress-track {
  height: 4px;
  background: rgba(114, 124, 94, 0.15);
  border-radius: 2px;
  overflow: hidden;
}
.cs-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--cs-sage);
  transition: width 0.25s ease;
}

.cs-step-hidden { display: none; }

.cs-step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 30px;
}
.cs-step-nav-end { justify-content: flex-end; }

.cs-btn-outline {
  background: transparent;
  color: var(--cs-sage);
  border: 1.5px solid var(--cs-sage);
}
.cs-page a.cs-btn-outline,
.cs-page a.cs-btn-outline:hover { color: var(--cs-sage); }
.cs-btn-outline:hover { background: rgba(114, 124, 94, 0.08); color: var(--cs-sage); }

@media (max-width: 520px) {
  .cs-step-nav { flex-direction: column-reverse; align-items: stretch; }
  .cs-step-nav .cs-btn { width: 100%; justify-content: center; }
}

/* ============ Footer ============ */
.cs-footer {
  text-align: center;
  padding: 28px 24px 40px;
  font-size: 12px;
  color: var(--cs-ink);
  opacity: 0.65;
}
.cs-footer a { color: inherit; }
.cs-footer a:hover { color: var(--cs-terracotta); }
.cs-footer-sep { margin: 0 10px; }

/* ============ Sign-status rows (join step 1) ============ */
.cs-sign-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(114, 124, 94, 0.12);
}
.cs-sign-label { font-size: 14px; }
.cs-sign-btn { padding: 8px 20px; font-size: 11px; }
.cs-sign-done {
  display: none;
  color: var(--cs-sage);
  font-weight: 600;
  font-size: 13px;
}
.cs-sign-row.signed .cs-sign-btn { display: none; }
.cs-sign-row.signed .cs-sign-done { display: inline-block; }

.cs-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 520px) {
  .cs-sign-row { flex-wrap: wrap; }
}

/* ============ Legal document pages ============ */
.cs-legal-wrap {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 48px 24px;
}

.cs-legal-card {
  width: 100%;
  max-width: 720px;
  background: #FFFFFF;
  border: 1px solid rgba(114, 124, 94, 0.2);
  border-radius: 4px;
  padding: 44px 40px;
}
.cs-legal-card.hide-form form { display: none; }

.cs-legal-card .cs-logo-sm { width: 140px; margin: 0 auto 24px; }
.cs-legal-card h1 {
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.04em;
  margin: 0 0 6px;
  text-align: center;
}
.cs-legal-meta {
  text-align: center;
  font-size: 12px;
  opacity: 0.6;
  margin: 0 0 34px;
}

.cs-legal-body h2 {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cs-sage);
  margin: 34px 0 12px;
}
.cs-legal-body h2:first-child { margin-top: 0; }
.cs-legal-body h3 {
  font-weight: 600;
  font-size: 14px;
  color: var(--cs-ink);
  margin: 18px 0 8px;
}
.cs-legal-body p { font-size: 14px; line-height: 1.7; margin: 0 0 12px; }
.cs-legal-body ul { margin: 0 0 12px; padding-left: 22px; }
.cs-legal-body li { font-size: 14px; line-height: 1.7; margin-bottom: 4px; }
.cs-legal-body .cs-legal-fill { color: var(--cs-sage); font-weight: 600; }
.cs-legal-body .cs-legal-blank { opacity: 0.45; }

.cs-contact-success .cs-payment-label {
  font-weight: 700;
  font-size: 16px;
  color: var(--cs-sage);
  opacity: 1;
  margin: 26px 0 10px;
}
.cs-contact-success .cs-payment-label:first-of-type { margin-top: 20px; }

.cs-contact-success .cs-payment-block {
  font-size: 14px;
  line-height: 2;
  opacity: 0.85;
  margin: 0;
}

.cs-legal-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 10px;
  cursor: pointer;
}
.cs-legal-choice input { accent-color: var(--cs-sage); width: 16px; height: 16px; flex: 0 0 auto; margin-top: 3px; }

.cs-legal-sign {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(114, 124, 94, 0.15);
}

@media (max-width: 520px) {
  .cs-legal-card { padding: 32px 22px; }
}
