/* =====================================================
   OPWORKS · CONSULTATION FORM
   Layered on top of opworks.css
   Reuses .audit-form / .form-step / #progressFill class
   names so existing script.js keeps working.
   ===================================================== */

.ow-consult {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 40px clamp(80px, 10vw, 140px);
}
.ow-consult-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: start;
}

/* ---------- LEFT COLUMN ---------- */
.ow-consult-aside {
  position: sticky;
  top: 96px;
}
.ow-consult-h1 {
  font-size: clamp(48px, 6vw, 88px);
  margin: 22px 0 24px;
}
.ow-consult-points {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ow-consult-points li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.ow-consult-points li:first-child { border-top: 0; padding-top: 0; }
.ow-consult-points .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 4px;
}
.ow-consult-points strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: -0.012em;
  color: var(--text);
  margin-bottom: 4px;
}
.ow-consult-points span {
  display: block;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.55;
}

.ow-consult-trust {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ow-consult-trust > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  align-items: baseline;
}
.ow-consult-trust .lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.ow-consult-trust .val {
  font-size: 14px;
  color: var(--text);
}

/* ---------- FORM CARD ---------- */
.ow-form-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.ow-form-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.ow-form-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
.ow-form-step-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.ow-form-step-label span { color: var(--accent); }
.ow-form-step-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.005em;
}

.ow-form-progress { margin-bottom: 28px; }
.ow-form-progress-track {
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.ow-form-progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width .35s cubic-bezier(.2,.7,.2,1);
}

.ow-form-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin: 0 0 6px;
  color: var(--text);
  text-wrap: balance;
}
.ow-form-sub {
  margin: 0 0 28px;
  font-size: 14.5px;
  color: var(--text-soft);
}

/* ---------- FORM PRIMITIVES ---------- */
.ow-form { position: relative; }

.ow-form-step {
  display: none;
  flex-direction: column;
  gap: 22px;
  opacity: 1;
}
.ow-form-step.active {
  display: flex;
  animation: ow-fade-in .25s ease-out;
}
@keyframes ow-fade-in {
  from { transform: translateY(4px); }
  to { transform: translateY(0); }
}
@keyframes ow-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.ow-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ow-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ow-field > label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.ow-field-optional {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 400;
  margin-left: 4px;
}
.ow-field-hint,
.ow-form-hint {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--text-mute);
}
.ow-field-hint { margin-top: 2px; }

.ow-form input[type="text"],
.ow-form input[type="email"],
.ow-form textarea {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text);
  background: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
  transition: border-color .15s, background .15s, box-shadow .15s;
  font-feature-settings: "ss01";
}
.ow-form input:hover,
.ow-form textarea:hover { border-color: var(--line-3); }
.ow-form input:focus,
.ow-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(182,242,74,0.12);
  background: var(--ink-3);
}
.ow-form input::placeholder,
.ow-form textarea::placeholder { color: rgba(170,177,170,0.4); }
.ow-form textarea { resize: vertical; min-height: 92px; }

/* radio chip rows */
.ow-choice-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.ow-choice-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ow-choice {
  position: relative;
  cursor: pointer;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--ink);
  transition: all .15s;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  text-align: left;
}
.ow-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ow-choice:hover { border-color: var(--line-3); background: var(--ink-3); }
.ow-choice:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(182,242,74,0.15);
}
.ow-choice:has(input:checked) {
  border-color: var(--accent);
  background: rgba(182,242,74,0.06);
  color: var(--text);
}
.ow-choice:has(input:checked)::after {
  content: "";
  position: absolute;
  top: 50%; right: 14px;
  transform: translateY(-50%);
  width: 7px; height: 7px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.ow-choice-row .ow-choice {
  justify-content: center;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13.5px;
}
.ow-choice-row .ow-choice:has(input:checked)::after { display: none; }

/* wide stacked choices (with description) */
.ow-choice-wide { padding: 14px 16px; padding-right: 36px; }
.ow-choice-wide span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
}
.ow-choice-wide strong {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.ow-choice-wide em {
  font-style: normal;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.45;
}

/* ---------- ACTIONS ---------- */
.ow-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.ow-form-actions .ow-btn-ghost {
  background: transparent;
  border: 0;
  padding-left: 0;
  padding-right: 0;
  color: var(--text-mute);
}
.ow-form-actions .ow-btn-ghost:hover { color: var(--text); transform: none; }

/* ---------- SUMMARY (step 3) ---------- */
.ow-form-summary {
  background: rgba(182,242,74,0.04);
  border: 1px solid rgba(182,242,74,0.18);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.ow-form-summary .ow-eyebrow {
  color: var(--accent);
  margin-bottom: 8px;
}
.ow-form-summary .ow-eyebrow::before { background: currentColor; }
.ow-form-summary p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
}
.ow-form-summary strong { color: var(--accent); font-weight: 500; }

/* ---------- MESSAGE ---------- */
.ow-form-message {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  border: 1px solid var(--line-2);
  display: none;
}
.ow-form-message:not(:empty) { display: block; }
.ow-form-message.success,
.ow-form-message.is-success {
  border-color: rgba(182,242,74,0.4);
  background: rgba(182,242,74,0.07);
  color: var(--text);
}
.ow-form-message.error,
.ow-form-message.is-error {
  border-color: rgba(255,120,100,0.35);
  background: rgba(255,120,100,0.07);
  color: #FFD9D2;
}

/* invalid state */
.ow-form input:user-invalid,
.ow-form textarea:user-invalid {
  border-color: rgba(255,120,100,0.5);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .ow-consult-grid { grid-template-columns: 1fr; gap: 48px; }
  .ow-consult-aside { position: static; }
}
@media (max-width: 720px) {
  .ow-consult { padding: 48px 20px 80px; }
  .ow-form-card { padding: 24px 20px; }
  .ow-form-grid { grid-template-columns: 1fr; }
  .ow-choice-row { grid-template-columns: 1fr 1fr; }
  .ow-form-title { font-size: 26px; }
  .ow-consult-h1 { font-size: 44px; }
  .ow-form-actions { flex-direction: column-reverse; align-items: stretch; gap: 14px; }
  .ow-form-actions .ow-btn { width: 100%; justify-content: center; }
  .ow-consult-trust > div { grid-template-columns: 1fr; gap: 2px; }
}
