/* Mariana — Triagem guiada da LIA — v1.0.0 (2026-10-31) */
:root {
  --mt-navy: #0f1730;
  --mt-navy-deep: #06060e;
  --mt-gold: #c8a24c;
  --mt-cream: #f3ead6;
  --mt-white: #fffdf8;
  --mt-text: #17243b;
  --mt-muted: #5d6473;
  --mt-error: #9b1c1c;
}

body.mt-open { overflow: hidden !important; }

.mt-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(6, 6, 14, .72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--mt-text);
}

.mt-overlay[hidden] { display: none !important; }

.mt-dialog {
  position: relative;
  width: min(100%, 650px);
  max-height: min(90vh, 780px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 26px 28px 22px;
  border: 1px solid rgba(200, 162, 76, .75);
  border-radius: 20px;
  background: var(--mt-cream);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .42);
}

.mt-close {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(15, 23, 48, .24);
  border-radius: 50%;
  background: transparent;
  color: var(--mt-navy);
  cursor: pointer;
  font: 28px/1 Arial, sans-serif;
}

.mt-close:hover { background: rgba(15, 23, 48, .07); }
.mt-close:focus-visible,
.mt-btn:focus-visible,
.mt-option:has(input:focus-visible),
.mt-field input:focus-visible,
.mt-field select:focus-visible,
.mt-check:has(input:focus-visible) {
  outline: 3px solid rgba(200, 162, 76, .72);
  outline-offset: 2px;
}

.mt-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--mt-navy);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.mt-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mt-gold);
  color: var(--mt-navy);
  font-family: Georgia, serif;
  font-size: 18px;
}

.mt-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 48, .12);
}

.mt-progress-bar {
  display: block;
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: var(--mt-gold);
  transition: width .2s ease;
}

.mt-step-label {
  margin: 13px 0 5px;
  color: #7a632d;
  font: 700 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mt-dialog h2 {
  margin: 0 0 8px;
  color: var(--mt-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 4vw, 32px);
  font-weight: 500;
  line-height: 1.15;
}

.mt-subtitle,
.mt-hint {
  margin: 0;
  color: var(--mt-muted);
  font-size: 14px;
  line-height: 1.55;
}

.mt-form { margin-top: 20px; }
.mt-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.mt-step[hidden] { display: none; }
.mt-step legend {
  padding: 0;
  color: var(--mt-navy);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.35;
}
.mt-hint { margin-top: 5px !important; font-size: 13px !important; }

.mt-options {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.mt-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 50px;
  padding: 11px 13px;
  border: 1.5px solid rgba(15, 23, 48, .18);
  border-radius: 12px;
  background: rgba(255, 253, 248, .78);
  color: var(--mt-navy);
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.mt-option:hover { border-color: rgba(200, 162, 76, .92); }
.mt-option:has(input:checked) {
  border-color: var(--mt-gold);
  background: #fff9e9;
  box-shadow: inset 0 0 0 1px var(--mt-gold);
}
.mt-option input { width: 19px; height: 19px; margin: 0; accent-color: var(--mt-gold); }

.mt-field { display: grid; gap: 6px; margin-top: 13px; }
.mt-field > span { color: var(--mt-navy); font-size: 13px; font-weight: 750; }
.mt-field input,
.mt-field select {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1.5px solid rgba(15, 23, 48, .25);
  border-radius: 10px;
  background: var(--mt-white);
  color: var(--mt-navy);
  font: 15px/1.35 inherit;
}

.mt-field-select { margin-top: 18px; }
.mt-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 17px;
  color: var(--mt-muted);
  font-size: 12.5px;
  line-height: 1.5;
}
.mt-check input { flex: 0 0 auto; width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--mt-gold); }
.mt-check a { color: var(--mt-navy); font-weight: 700; }

.mt-error {
  margin: 15px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(155, 28, 28, .36);
  border-radius: 9px;
  background: rgba(155, 28, 28, .08);
  color: var(--mt-error);
  font-size: 13px;
  line-height: 1.45;
}
.mt-error[hidden] { display: none; }

.mt-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 21px;
}
.mt-btn {
  min-height: 47px;
  padding: 11px 19px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font: 750 14px/1.2 inherit;
}
.mt-btn-primary { background: var(--mt-navy); color: var(--mt-cream); }
.mt-btn-primary:hover { background: #1a274d; }
.mt-btn-secondary { border-color: rgba(15, 23, 48, .28); background: transparent; color: var(--mt-navy); }
.mt-btn:disabled { cursor: wait; opacity: .58; }

.mt-privacy {
  margin: 17px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 48, .13);
  color: var(--mt-muted);
  font-size: 11.5px;
  line-height: 1.55;
}

/* Entrada discreta nas páginas de anúncio. */
.mt-entry {
  box-sizing: border-box;
  padding: 54px 28px;
  border-top: 1px solid rgba(200, 162, 76, .32);
  background: linear-gradient(180deg, rgba(15, 23, 48, .98), rgba(6, 6, 14, .98));
  color: var(--mt-cream);
  text-align: center;
}
.mt-entry-inner { max-width: 760px; margin: 0 auto; }
.mt-entry .mt-eyebrow {
  margin: 0 0 8px;
  color: var(--mt-gold);
  font: 750 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.mt-entry h2 {
  margin: 0 0 10px;
  color: var(--mt-cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 4vw, 38px);
  font-weight: 500;
}
.mt-entry p { margin: 0 auto 22px; color: #c4cadd; line-height: 1.65; }
.mt-entry .mt-btn { min-height: 50px; padding-inline: 24px; background: var(--mt-gold); color: var(--mt-navy); }
.mt-entry .mt-btn:hover { background: #d6b055; }

/* Cartão da página de chat. */
.mt-chat-entry {
  margin: 0 16px 14px;
  padding: 17px;
  border: 1.5px solid rgba(200, 162, 76, .68);
  border-radius: 14px;
  background: #fff9e9;
  color: var(--mt-navy);
}
.mt-chat-entry h2 { margin: 0 0 5px; font: 700 16px/1.3 inherit; }
.mt-chat-entry p { margin: 0 0 12px; color: var(--mt-muted); font-size: 13px; line-height: 1.5; }
.mt-chat-entry .mt-btn { width: 100%; background: var(--mt-navy); color: var(--mt-cream); }

@media (max-width: 560px) {
  .mt-overlay { padding: 0; place-items: end stretch; }
  .mt-dialog {
    width: 100%;
    max-height: 94vh;
    padding: 20px 17px calc(18px + env(safe-area-inset-bottom));
    border-width: 1px 0 0;
    border-radius: 20px 20px 0 0;
  }
  .mt-close { top: 10px; right: 10px; }
  .mt-dialog h2 { padding-right: 38px; font-size: 25px; }
  .mt-option { min-height: 48px; padding: 10px 11px; }
  .mt-actions { position: sticky; bottom: 0; padding-top: 5px; background: var(--mt-cream); }
  .mt-btn { flex: 1 1 0; }
}

/* ============================================================
   STEP 4 — "Antes de continuarmos" (v1.3.0, 2026-11-08)
   Tela de decisao apos a triagem: mostra a oferta com clareza
   (conversa inicial de 30 min SEM custo / sessao clinica de
   60 min a R$ 400) e separa os dois compromissos.
   ============================================================ */

.mt-step-offer { margin-top: 18px; }

.mt-offer-card {
  padding: 16px 17px;
  border: 1.5px solid rgba(15, 23, 48, .16);
  border-radius: 13px;
  background: rgba(255, 253, 248, .82);
}
.mt-offer-card + .mt-offer-card { margin-top: 11px; }
.mt-offer-card.is-primary {
  border-color: rgba(200, 162, 76, .78);
  background: linear-gradient(180deg, rgba(200, 162, 76, .11), rgba(200, 162, 76, .03));
}

.mt-offer-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.mt-offer-title {
  margin: 0;
  color: var(--mt-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}
.mt-offer-tag {
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: 999px;
  font: 700 9.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.mt-offer-tag.is-free {
  border: 1px solid rgba(63, 107, 58, .38);
  background: rgba(63, 107, 58, .09);
  color: #3f6b3a;
}
.mt-offer-tag.is-paid {
  border: 1px solid rgba(200, 162, 76, .58);
  background: rgba(200, 162, 76, .15);
  color: #8a6a12;
}
.mt-offer-price {
  margin: 9px 0 0;
  color: var(--mt-navy);
  font: 600 21px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: -.01em;
}
.mt-offer-price small {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--mt-muted);
  letter-spacing: .02em;
}
.mt-offer-list {
  margin: 10px 0 0;
  padding-left: 17px;
  color: var(--mt-muted);
  font-size: 13px;
  line-height: 1.62;
}
.mt-offer-list li { margin-top: 3px; }
.mt-offer-list li::marker { color: var(--mt-gold); }

.mt-offer-actions {
  display: grid;
  gap: 10px;
  margin-top: 17px;
}
.mt-offer-actions .mt-btn { width: 100%; }

.mt-offer-reassure {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 48, .1);
  color: var(--mt-muted);
  font-size: 13px;
  font-style: italic;
  line-height: 1.6;
}
.mt-offer-reassure b { color: #2b3550; font-style: normal; font-weight: 700; }

@media (max-width: 560px) {
  .mt-offer-price { font-size: 19px; }
  .mt-offer-card { padding: 14px 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .mt-progress-bar { transition: none; }
}
