/* ============================================================
   NavoAsset consultation modal v2.1 (minimal)
   Load AFTER styles.min.css (or append to it). Scoped to .consult-v2.
   Same width and logo treatment as the login popup (.modal 400px, logo
   centered at max-height 40px); only the copy and the field order change.
   ============================================================ */
.modal-overlay .modal.consult-v2 {
  --cv2-teal: #0d9488;
  --cv2-teal-dark: #0b7f74;
  --cv2-line: #e2e8f0;
  --cv2-muted: #64748b;
  --cv2-err: #b91c1c;
  max-width: 420px;
  padding: 28px 26px 22px;
  border-radius: 20px;
}

/* header: logo as in the login popup, then one headline + one line */
.consult-v2 .cv2-header { margin-bottom: 18px; }
/* logo crop: logo.png (1600×573) carries transparent padding; the mark sits at
   x 326–1164, y 208–377 (838×169). Show the mark at 44px tall = scale 0.2604. */
.consult-v2 .cv2-logo { --mark-h: 44px; position: relative; width: calc(var(--mark-h) * 4.96); height: var(--mark-h); overflow: hidden; margin: 0 auto 14px; }
.consult-v2 .cv2-logo img { position: absolute; max-width: none; max-height: none; width: calc(var(--mark-h) * 9.47); height: auto; left: calc(var(--mark-h) * -1.93); top: calc(var(--mark-h) * -1.23); }
.consult-v2 .cv2-headline {
  margin: 0 0 6px;
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: #0f172a;
  text-wrap: balance;
}
.consult-v2 .cv2-sub { margin: 0; font-size: .85rem; color: var(--cv2-muted); line-height: 1.45; }

/* fields */
.consult-v2 .cv2-field { margin-bottom: 13px; }
.consult-v2 .cv2-field label { font-size: .8rem; color: #0f172a; margin-bottom: 5px; }
.consult-v2 .cv2-hint { color: #94a3b8; font-weight: 400; }
.consult-v2 .cv2-help { display: block; color: #94a3b8; font-size: .74rem; margin-top: 4px; }
.consult-v2 .cv2-error { display: none; color: var(--cv2-err); font-size: .76rem; margin-top: 4px; font-weight: 500; }
.consult-v2 .cv2-field.is-invalid .cv2-error { display: block; }
.consult-v2 .cv2-field.is-invalid .cv2-help { display: none; }
.consult-v2 .cv2-field.is-invalid .form-input { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .10); }
.consult-v2 .form-input { height: 46px; font-size: .95rem; }
.consult-v2 textarea.form-input { height: auto; }
.consult-v2 .cv2-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* collapsed details (these rules used to sit inline in the old modal markup) */
.consult-v2 details.cv2-more { margin: 0 0 12px; }
.consult-v2 details.cv2-more > summary { list-style: none; cursor: pointer; color: var(--cv2-teal); font-size: .84rem; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; padding: 4px 0; user-select: none; }
.consult-v2 details.cv2-more > summary::-webkit-details-marker { display: none; }
.consult-v2 details.cv2-more > summary::before { content: "+"; font-weight: 700; font-size: 1rem; line-height: 1; }
.consult-v2 details.cv2-more[open] > summary::before { content: "\2013"; }
.consult-v2 details.cv2-more > summary:focus-visible { outline: 3px solid rgba(13, 148, 136, .35); outline-offset: 2px; border-radius: 4px; }
.consult-v2 .cv2-more-body { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--cv2-line); }

/* submit */
.consult-v2 .cv2-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; font-size: .98rem; font-weight: 700; border-radius: 12px;
  background: var(--cv2-teal);
  box-shadow: 0 10px 24px -10px rgba(13, 148, 136, .75);
}
.consult-v2 .cv2-submit svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.consult-v2 .cv2-submit:hover { background: var(--cv2-teal-dark); }
.consult-v2 .cv2-submit:hover svg { transform: translateX(3px); }

/* talk-now line + fine print */
.consult-v2 .cv2-alt { margin: 12px 0 0; text-align: center; font-size: .82rem; color: var(--cv2-muted); }
.consult-v2 .cv2-alt a { color: var(--cv2-teal); font-weight: 600; text-decoration: none; }
.consult-v2 .cv2-alt a:hover { text-decoration: underline; }
.consult-v2 .cv2-alt span { margin: 0 4px; color: #cbd5e1; }
.consult-v2 .cv2-fine { margin: 8px 0 0; text-align: center; font-size: .72rem; color: #94a3b8; line-height: 1.4; }

/* success state: main.js adds .is-submitted and hides .form-group/.btn-submit already */
#consult-form.is-submitted .cv2-fine,
#consult-form.is-submitted .cv2-alt,
#consult-form.is-submitted .cv2-field { display: none; }

/* mobile / bottom sheet (main.js adds .auto-sheet at ≤640px on auto-open) */
@media (max-width: 640px) {
  .modal-overlay .modal.consult-v2 { padding: 22px 18px 18px; }
  .consult-v2 .cv2-headline { font-size: 1.15rem; }
  .consult-v2 .cv2-row { grid-template-columns: 1fr; }
  .modal-overlay.auto-sheet .modal.consult-v2 { border-radius: 18px 18px 0 0; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .consult-v2 .cv2-submit svg { transition: none; } }
