/* intake.css — Service request form styles */
/* Matches Afterly design tokens from theme.css */

.intake-page {
  min-height: calc(100vh - 70px);
  background: var(--bg);
  padding: 60px 24px 100px;
}

.intake-wrap {
  max-width: 680px;
  margin: 0 auto;
}

/* Header */
.intake-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.intake-heading {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 12px;
  line-height: 1.1;
}

.intake-sub {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 48px;
}

/* Form sections */
.intake-form {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--fg);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* Fields */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}

.field-hint {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.4;
  margin-top: -2px;
}

.required {
  color: var(--accent);
}

.optional {
  color: var(--fg-muted);
  font-weight: 400;
  font-size: 12px;
}

.field input,
.field select,
.field textarea {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 15px;
  color: var(--fg);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  resize: vertical;
  -webkit-appearance: none;
  appearance: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--stone-light);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 112, 90, 0.12);
}

.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='%236B5E54' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Urgency selector */
.urgency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.urgency-option {
  cursor: pointer;
}

.urgency-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.urgency-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 12px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  gap: 6px;
  cursor: pointer;
}

.urgency-card:hover {
  border-color: var(--accent-light);
}

.urgency-option input[type="radio"]:checked + .urgency-card {
  border-color: var(--accent);
  background: rgba(196, 112, 90, 0.06);
  box-shadow: 0 0 0 3px rgba(196, 112, 90, 0.12);
}

.urgency-icon {
  font-size: 22px;
  line-height: 1;
}

.urgency-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.urgency-desc {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.3;
}

/* Error */
.form-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 14px;
  color: #B91C1C;
}

/* Submit area */
.form-submit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: #b3614d;
}

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

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 12px 28px;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-outline:hover {
  background: rgba(196, 112, 90, 0.08);
}

.form-privacy {
  font-size: 13px;
  color: var(--fg-muted);
}

/* Success state */
.intake-success {
  text-align: center;
  padding: 80px 24px;
}

.success-icon {
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 24px;
  animation: pop 0.4s ease-out;
}

@keyframes pop {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.success-heading {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 40px;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 16px;
}

.success-body {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
}

.link-warm {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Nav extras */
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 14px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-link:hover {
  color: var(--fg);
}

.nav-cta {
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s;
}

.nav-cta:hover {
  background: #b3614d;
}

/* Responsive */
@media (max-width: 600px) {
  .field-row {
    grid-template-columns: 1fr;
  }

  .urgency-grid {
    grid-template-columns: 1fr;
  }

  .intake-page {
    padding: 40px 20px 80px;
  }

  .nav-link {
    display: none;
  }
}
