/* Site consultation — client brief wizard */

.tl-consult {
  background: #f1f5f9;
  min-height: 100vh;
}

.consult-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.consult-loading,
.consult-error {
  text-align: center;
  padding: 3rem 1rem;
  color: #64748b;
}

.consult-error {
  color: #991b1b;
  background: #fef2f2;
  border-radius: 12px;
}

.consult-done {
  text-align: center;
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.consult-done h1 {
  margin: 0 0 0.75rem;
}

.consult-portal-hint {
  font-size: 0.9375rem;
  color: #64748b;
  margin: 1.25rem 0 1.5rem;
}

.consult-header {
  margin-bottom: 1.75rem;
}

.consult-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0052cc;
  margin: 0 0 0.35rem;
}

.consult-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.consult-lead {
  color: #64748b;
  font-size: 0.9375rem;
  margin: 0 0 1.25rem;
  line-height: 1.55;
}

.consult-progress {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.consult-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #0052cc, #3b82f6);
  border-radius: 999px;
  width: 0%;
  transition: width 0.35s ease;
}

.consult-step-label {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0;
}

.consult-form {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.consult-step {
  display: none;
}

.consult-step.is-active {
  display: block;
}

.consult-step h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.consult-step-desc {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.consult-field {
  margin-bottom: 1.15rem;
}

.consult-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: #0f172a;
}

.consult-field input[type="text"],
.consult-field input[type="email"],
.consult-field input[type="url"],
.consult-field input[type="tel"],
.consult-field input[type="date"],
.consult-field select,
.consult-field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font: inherit;
  font-size: 0.9375rem;
}

.consult-field textarea {
  min-height: 88px;
  resize: vertical;
}

.consult-field input:focus,
.consult-field select:focus,
.consult-field textarea:focus {
  outline: none;
  border-color: #0052cc;
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.12);
}

.consult-hint {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

.consult-choice-grid {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.consult-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.consult-choice:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.consult-choice.is-selected {
  border-color: #0052cc;
  background: #eff6ff;
}

.consult-choice input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.consult-choice-body strong {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.15rem;
}

.consult-choice-body span {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.45;
}

.consult-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.consult-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
}

.consult-check:has(input:checked) {
  border-color: #0052cc;
  background: #eff6ff;
}

.consult-check input {
  width: auto;
  margin: 0;
}

.consult-conditional {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #e2e8f0;
}

.consult-conditional[hidden] {
  display: none !important;
}

.consult-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
}

.consult-save-status {
  font-size: 0.75rem;
  color: #64748b;
  text-align: center;
  margin: 0.75rem 0 0;
  min-height: 1.2em;
}

.consult-save-status.is-ok {
  color: #15803d;
}

@media (max-width: 640px) {
  .consult-form {
    padding: 1.25rem;
  }
  .consult-nav {
    flex-direction: column-reverse;
  }
  .consult-nav .btn {
    width: 100%;
  }
}
