/* ------------------------------------------------------------------
   lead-flow.css — self-contained styles for the in-page send panel and
   the "not delivered yet" card. Deliberately independent of Tailwind CDN
   so the panel still renders correctly offline / behind a slow CDN.
------------------------------------------------------------------ */

.hmf-panel {
  margin: 26px 0 10px;
  border: 1px solid #d8e0ee;
  border-radius: 20px;
  background: #fff;
  padding: 26px 26px 28px;
  box-shadow: 0 12px 36px rgba(15, 33, 66, .07);
}
.hmf-panel[hidden], .hmf-panel form[hidden], .hmf-sent[hidden] { display: none !important; }
.hmf-panel-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.hmf-panel h2 { margin: 0 0 8px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: #12233f; }
.hmf-panel-intro { margin: 0 0 18px; font-size: 13.5px; line-height: 1.65; color: #5b6a83; max-width: 62ch; }
.hmf-panel-close {
  border: 0; background: #f1f4f9; color: #5b6a83; cursor: pointer;
  width: 30px; height: 30px; border-radius: 50%; font-size: 17px; line-height: 1;
  flex: 0 0 auto;
}
.hmf-panel-close:hover { background: #e4e9f2; color: #12233f; }

.hmf-flow-details { margin: 0 0 18px; border: 1px solid #e2e8f2; border-radius: 12px; background: #f8fafc; }
.hmf-flow-details > summary {
  cursor: pointer; padding: 10px 14px; font-size: 12.5px; font-weight: 700;
  color: #334a6c; list-style: none; user-select: none;
}
.hmf-flow-details > summary::-webkit-details-marker { display: none; }
.hmf-flow-details > summary::before { content: '▸ '; color: #7b8aa3; }
.hmf-flow-details[open] > summary::before { content: '▾ '; }
/* One-line reminder inside the collapsed transcript, so the summary
   never looks like an empty box. */
.hmf-flow-snip {
  display: block; margin-top: 3px; font-size: 11.5px; font-weight: 500;
  color: #7b8ba3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hmf-flow-snip[hidden] { display: none; }

.hmf-flow-pre {
  margin: 0; padding: 0 14px 14px; max-height: 260px; overflow: auto;
  white-space: pre-wrap; word-break: break-word; font-size: 12px;
  line-height: 1.6; color: #40516b; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.hmf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 620px) { .hmf-grid { grid-template-columns: 1fr; } }
.hmf-field { display: flex; flex-direction: column; gap: 6px; }
.hmf-field > label, .hmf-label { font-size: 12.5px; font-weight: 700; color: #334a6c; }
.hmf-field input[type="text"], .hmf-field input[type="email"], .hmf-field input[type="tel"], .hmf-field select {
  width: 100%; box-sizing: border-box; padding: 11px 13px; font-size: 13.5px;
  border: 1px solid #cfd9e8; border-radius: 10px; background: #fff; color: #1a2b45;
  font-family: inherit;
}
.hmf-field input:focus, .hmf-field select:focus { outline: 2px solid #8fb0e8; outline-offset: 1px; }
.hmf-extra {
  display: block; width: 100%; box-sizing: border-box; margin-top: 7px;
  padding: 11px 13px; font-size: 13px; line-height: 1.6; font-family: inherit;
  border: 1px solid #cfd9e8; border-radius: 10px; background: #fff; color: #1a2b45;
  resize: vertical;
}
.hmf-extra:focus { outline: 2px solid #8fb0e8; outline-offset: 1px; }
.hmf-files { margin-top: 16px; }
.hmf-files input[type="file"] { display: block; margin-top: 8px; font-size: 12.5px; color: #40516b; max-width: 100%; }
.hmf-files-hint, .hmf-filelist { margin: 6px 0 0; font-size: 11.5px; line-height: 1.6; color: #7b8aa3; }
.hmf-filelist { color: #40516b; word-break: break-word; }
.hmf-consent { display: flex; align-items: flex-start; gap: 9px; margin-top: 18px; font-size: 11.5px; line-height: 1.65; color: #5b6a83; }
.hmf-consent input { margin-top: 3px; flex: 0 0 auto; width: 15px; height: 15px; }
.hmf-consent a { color: #1e4b8f; text-decoration: underline; }
.hmf-submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; }
.hmf-submit {
  border: 0; cursor: pointer; background: #1b3a72; color: #fff;
  font-size: 14px; font-weight: 700; padding: 13px 26px; border-radius: 11px;
  font-family: inherit;
}
.hmf-submit:hover { background: #142c58; }
.hmf-submit:disabled { opacity: .6; cursor: default; }
.hmf-submit-note { font-size: 11.5px; color: #7b8aa3; }
.hmf-status { margin: 14px 0 0; font-size: 13px; color: #b45309; }
.hmf-status:empty { display: none; }

.hmf-sent { text-align: center; padding: 24px 10px 10px; }
.hmf-sent[hidden] { display: none; }
.hmf-sent-icon {
  width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%;
  background: #e7f6ee; display: flex; align-items: center; justify-content: center;
}
.hmf-sent h3 { margin: 0 0 8px; font-size: 20px; font-weight: 800; color: #12233f; }
.hmf-sent p { margin: 0 auto 10px; max-width: 52ch; font-size: 13.5px; line-height: 1.7; color: #5b6a83; }
.hmf-sent-ref { font-size: 12px; color: #7b8aa3; }
.hmf-sent-ref code { font-weight: 700; color: #1b3a72; }
.hmf-sent-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.hmf-flow-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: 10px; border: 1px solid #cfd9e8;
  background: #fff; color: #1b3a72; font-size: 12.5px; font-weight: 700;
  text-decoration: none; cursor: pointer; font-family: inherit;
}
.hmf-flow-btn:hover { background: #f3f6fb; }
.hmf-flow-primary { background: #1b3a72; border-color: #1b3a72; color: #fff; }
.hmf-flow-primary:hover { background: #142c58; }
.hmf-again { border: 0; background: none; color: #7b8aa3; font-size: 12px; text-decoration: underline; cursor: pointer; font-family: inherit; }

/* The "not delivered" card replaces the old single-line amber error. */
.hmf-flow-note { margin: 14px 0 0; }
.hmf-flow-card {
  border: 1px solid #e6d9b8; background: #fffbf1; border-radius: 14px;
  padding: 16px 18px; text-align: left;
}
.hmf-flow-h { margin: 0 0 7px; font-size: 14px; font-weight: 800; color: #7a5a12; }
.hmf-flow-p { margin: 0 0 12px; font-size: 12.5px; line-height: 1.7; color: #6b5a3a; }
.hmf-flow-card .hmf-flow-details { background: #fff; border-color: #ecdfc2; }
.hmf-flow-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.hmf-flow-keep { margin: 12px 0 0; font-size: 11.5px; color: #8a7856; }
.hmf-prefill-hint { margin: 7px 0 0; font-size: 11.5px; line-height: 1.6; color: #1c6b52; }

/* Buttons that open the panel keep their original look. */
[data-flow-open] { cursor: pointer; font-family: inherit; }
