/* intake.css — SiteReach client intake form */
:root {
  --bg: #F8F5F0;
  --bg-alt: #EEE9E0;
  --navy: #0C1B2E;
  --amber: #E8A838;
  --amber-dim: #C48A20;
  --text: #1A1A2E;
  --text-muted: #6B6B7B;
  --white: #FFFFFF;
  --error: #C0392B;
  --success: #27AE60;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.1;
}

/* === FORM PAGE LAYOUT === */
.intake-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.intake-header {
  background: var(--navy);
  padding: 28px 60px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.intake-logo {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
}

.intake-logo-accent {
  color: var(--amber);
}

.intake-header-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-left: auto;
  font-weight: 400;
}

.intake-body {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 24px 80px;
}

.intake-container {
  width: 100%;
  max-width: 560px;
}

.intake-intro {
  margin-bottom: 40px;
}

.intake-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber-dim);
  font-weight: 500;
  margin-bottom: 14px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  display: inline-block;
  flex-shrink: 0;
}

.intake-title {
  font-size: clamp(26px, 4vw, 36px);
  color: var(--navy);
  margin-bottom: 12px;
}

.intake-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* === FORM CARD === */
.intake-card {
  background: var(--white);
  border: 1px solid #E0DBD2;
  border-radius: 8px;
  padding: 40px 44px;
}

.form-section {
  margin-bottom: 32px;
}

.form-section:last-of-type {
  margin-bottom: 0;
}

.form-section-label {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber-dim);
  font-weight: 500;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #EDEAE2;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.field:last-child {
  margin-bottom: 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}

label .required {
  color: var(--amber-dim);
  margin-left: 2px;
}

input, select, textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid #D6D0C8;
  border-radius: 5px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232, 168, 56, 0.15);
}

input::placeholder, textarea::placeholder {
  color: #B0AAA0;
}

textarea {
  resize: vertical;
  min-height: 90px;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B6B7B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

/* === RADIO GROUP (has domain) === */
.radio-group {
  display: flex;
  gap: 12px;
}

.radio-option {
  flex: 1;
  position: relative;
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: var(--bg);
  border: 1.5px solid #D6D0C8;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  text-align: center;
  user-select: none;
}

.radio-option input[type="radio"]:checked + label {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.radio-option label:hover {
  border-color: var(--amber-dim);
}

/* === SUBMIT === */
.submit-btn {
  width: 100%;
  background: var(--amber);
  color: var(--navy);
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 15px 28px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.1s;
}

.submit-btn:hover {
  background: var(--amber-dim);
}

.submit-btn:active {
  transform: scale(0.98);
}

/* === ALERTS === */
.alert {
  padding: 14px 18px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1.4;
}

.alert-success {
  background: rgba(39, 174, 96, 0.1);
  border: 1px solid rgba(39, 174, 96, 0.3);
  color: #1a6b3a;
}

.alert-error {
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.25);
  color: #922b21;
}

/* Payment received banner — shown when ?paid=true from Stripe redirect */
.paid-banner {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  padding: 1rem 1.25rem;
}

/* Pre-payment nudge shown when user lands on intake without paying */
.alert-pay {
  background: rgba(232, 168, 56, 0.1);
  border: 1px solid rgba(232, 168, 56, 0.35);
  color: #7a5a00;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 5px;
  font-size: 14px;
  margin-bottom: 1rem;
}

.alert-pay-link {
  color: #7a5a00;
  font-weight: 700;
  text-decoration: underline;
}

/* === VALIDATION ERRORS === */
.field-error {
  font-size: 12px;
  color: var(--error);
  font-weight: 500;
  display: none;
}

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

.field.has-error .field-error {
  display: block;
}

/* === GATE (UNPAID) STATE === */
.gate-card {
  text-align: center;
  padding: 56px 44px;
}

.gate-icon {
  font-size: 42px;
  margin-bottom: 20px;
}

.gate-title {
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 12px;
}

.gate-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 360px;
  margin: 0 auto 24px;
}

.gate-btn {
  display: inline-block;
  background: var(--amber);
  color: var(--navy);
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 5px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s;
}

.gate-btn:hover {
  background: var(--amber-dim);
}

.gate-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.gate-note a {
  color: var(--amber-dim);
}

/* === RADIO GRID (5-option style selector) === */
.radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 640px) {
  .radio-grid { grid-template-columns: 1fr; }
}

/* Section optional label */
.section-optional {
  font-size: 10px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  font-family: 'DM Sans', system-ui, sans-serif;
}

/* Success home link */
.success-home-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  color: var(--amber-dim);
  text-decoration: none;
  font-weight: 600;
}

.success-home-link:hover {
  text-decoration: underline;
}

/* === SUCCESS STATE === */
.success-card {
  text-align: center;
  padding: 48px 44px;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: rgba(39, 174, 96, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}

.success-title {
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 12px;
}

.success-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 360px;
  margin: 0 auto;
}

/* === FOOTER === */
.intake-footer {
  padding: 24px 60px;
  background: var(--bg-alt);
  text-align: center;
}

.intake-footer p {
  font-size: 12px;
  color: var(--text-muted);
}

.intake-footer a {
  color: var(--amber-dim);
  text-decoration: none;
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
  .intake-header { padding: 22px 24px; }
  .intake-body { padding: 40px 16px 60px; }
  .intake-card { padding: 28px 20px; }
  .intake-header-sub { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .radio-group { flex-direction: column; }
  .intake-footer { padding: 20px 24px; }
}