/* === Intake Page Styles ===
   Matches FormeLab design language (theme.css tokens)
*/

/* === Hero === */
.intake-hero {
  background: var(--bg);
  padding: 4rem 2.5rem 3.5rem;
}
.intake-hero-inner {
  max-width: 700px;
  margin: 0 auto;
}
.intake-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}
.intake-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--green);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.intake-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.75;
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

/* Step preview */
.intake-steps-preview {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.preview-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.preview-num {
  width: 28px;
  height: 28px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.preview-text {
  font-size: 0.85rem;
  color: var(--fg-muted);
  font-weight: 500;
}
.preview-arrow {
  color: var(--accent);
  flex-shrink: 0;
}

/* === Form Section === */
.form-section {
  background: var(--bg-alt);
  padding: 4rem 2.5rem 6rem;
}
.form-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.form-wrapper {
  background: var(--white);
  border: 1px solid rgba(27, 67, 50, 0.1);
  border-radius: 12px;
  padding: 2.5rem;
}
.form-title {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--green);
  margin-bottom: 0.4rem;
}
.form-subtitle {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.intake-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.label-optional {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--fg-muted);
}

.form-input,
.form-select,
.form-textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(27, 67, 50, 0.15);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--fg);
  background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%231B4332' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(107,107,107,0.5); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.08);
}
.form-textarea { resize: vertical; min-height: 100px; }

.input-error {
  border-color: var(--accent) !important;
}
.form-error {
  font-size: 0.75rem;
  color: var(--accent);
  display: none;
}
.form-error.visible { display: block; }

/* Submit button */
.form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--green);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.9rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  margin-top: 0.5rem;
  position: relative;
  min-height: 52px;
}
.form-submit:hover { background: var(--green-light); transform: translateY(-1px); }
.form-submit:active { transform: translateY(0); }
.form-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.form-submit.success { background: #2D6A4F; }

.submit-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  display: none;
}
.submit-spinner.spinning { display: block; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* === Schedule Wrapper === */
.schedule-wrapper {
  background: var(--white);
  border: 1px solid rgba(27, 67, 50, 0.1);
  border-radius: 12px;
  padding: 2.5rem;
}
.schedule-header {
  margin-bottom: 2rem;
}
.schedule-icon {
  width: 44px;
  height: 44px;
  background: var(--bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin-bottom: 1rem;
}
.schedule-title {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--green);
  margin-bottom: 0.4rem;
}
.schedule-subtitle {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* Calendly inline widget */
.calendly-wrapper {
  border-radius: 8px;
  overflow: hidden;
}

/* === Responsive === */
@media (max-width: 900px) {
  .form-section-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
@media (max-width: 768px) {
  .intake-hero { padding: 3rem 1.5rem 2.5rem; }
  .form-section { padding: 3rem 1.5rem 5rem; }
  .form-wrapper,
  .schedule-wrapper { padding: 1.75rem 1.5rem; }
  .intake-steps-preview { gap: 0.75rem; }
  .preview-arrow { display: none; }
}