/* ===== M&A Prime — Cotação de Seguro (seção #cotacao) ===== */
#cotacao [hidden] { display: none !important; }
.qt-link-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.qt-perks { list-style: none; padding: 0; margin: 40px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 36px; }
.qt-perks li { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.qt-perks svg { width: 20px; height: 20px; fill: none; stroke: var(--lilac); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ----- Wizard ----- */
.qt-wizard { max-width: 900px; margin: 0 auto; }
.qt-link-back { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 500; letter-spacing: .06em; color: var(--muted); margin-bottom: 26px; }
.qt-link-back:hover { color: var(--gold-2); }

.qt-wizard__head { display: flex; align-items: center; gap: 22px; margin-bottom: 36px; }
.qt-wizard__icon {
  width: 72px; height: 72px; flex-shrink: 0; border-radius: 20px; display: grid; place-items: center;
  background: var(--grad-gold); box-shadow: 0 12px 30px rgba(200, 159, 137, .25);
}
.qt-wizard__icon svg { width: 34px; height: 34px; fill: none; stroke: #2a1d17; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.qt-wizard__group { font-size: .7rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--lilac-2); }
.qt-wizard__head h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 2px 0 4px; }
.qt-wizard__head p { margin: 0; font-size: .95rem; }

/* Resumo de benefícios (antes do formulário) */
.qt-intro { text-align: center; padding: 6px 0 4px; }
.qt-intro .eyebrow { justify-content: center; }
.qt-intro .eyebrow::after { content: ""; width: 34px; height: 1px; background: var(--lilac); }
.qt-intro__title { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 0 0 10px; }
.qt-intro__text { max-width: 620px; margin: 0 auto 30px; }
.qt-benefits { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.qt-benefit {
  width: calc((100% - 3 * 14px) / 4); min-height: 150px; padding: 22px 16px; border-radius: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(160deg, var(--lilac-3) 0%, #5E4466 100%);
  border: 1px solid rgba(210, 184, 211, .28); box-shadow: 0 14px 30px rgba(0, 0, 0, .3);
  color: var(--text); font-size: .92rem; font-weight: 600; line-height: 1.35;
  transition: transform .3s, border-color .3s;
}
.qt-benefit:hover { transform: translateY(-4px); border-color: var(--gold-2); }
.qt-benefits--3 .qt-benefit { width: calc((100% - 2 * 14px) / 3); }
.qt-benefit__icon svg { width: 40px; height: 40px; fill: none; stroke: #F5E0D3; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.qt-intro__note { max-width: 620px; margin: 22px auto 0; font-size: .78rem; color: #8a828a; }
.qt-intro__actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 28px; }
.qt-intro__actions span { font-size: .8rem; color: var(--muted); }

/* Stepper */
.stepper { position: relative; margin-bottom: 26px; }
.stepper__bar { position: absolute; left: 17px; right: 17px; top: 17px; height: 2px; background: rgba(244, 238, 236, .12); }
.stepper__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); transition: width .4s ease; }
.stepper__list { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; position: relative; }
.stepper__list li > * { display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: 0; padding: 0; font: inherit; color: inherit; }
.stepper__list button { cursor: pointer; }
.stepper__num {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-size: .82rem; font-weight: 600; color: var(--muted);
  background: var(--bg); border: 1.5px solid rgba(244, 238, 236, .2); transition: all .3s;
}
.stepper__label { font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); max-width: 100px; text-align: center; line-height: 1.3; }
.stepper li.done .stepper__num { background: var(--surface-2); border-color: var(--gold); color: var(--gold-2); }
.stepper li.done button:hover .stepper__num { background: var(--gold); color: #2a1d17; }
.stepper li.current .stepper__num { background: linear-gradient(140deg, var(--gold-2), var(--gold)); border-color: transparent; color: #2a1d17; box-shadow: 0 0 0 5px rgba(200, 159, 137, .18); }
.stepper li.current .stepper__label { color: var(--text); }
.stepper__mobile { display: none; margin: 0; font-size: .85rem; color: var(--muted); }
.stepper__mobile strong { color: var(--gold-2); }

/* Card + campos */
.qt-card {
  background: rgba(44, 42, 46, .85); border: 1px solid var(--line); border-radius: 22px; padding: 38px 40px;
  box-shadow: var(--shadow);
}
.qt-card__title { font-size: 1.9rem; margin: 0 0 26px; }
.qt-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 20px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field__label { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.field__label .req { color: var(--gold); margin-left: 3px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; color-scheme: dark;
  background: var(--bg); border: 1px solid rgba(244, 238, 236, .14); color: var(--text);
  font-family: var(--sans); font-size: .95rem; transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C89F89' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center/18px no-repeat; }
.field ::placeholder { color: #6f6870; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 159, 137, .18); }
.field__hint { margin-top: 7px; font-size: .78rem; color: #8a828a; }
.field__error { margin-top: 6px; font-size: .78rem; color: #e88a98; min-height: 0; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #e07a8a; }
.field.is-invalid .chip span { border-color: rgba(224, 122, 138, .6); }

/* Chips (escolha única / múltipla) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px;
  font-size: .88rem; color: var(--text); background: var(--bg); border: 1px solid rgba(244, 238, 236, .16);
  transition: all .2s; user-select: none;
}
.chip input[type="checkbox"] + span::before {
  content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid rgba(244, 238, 236, .35); transition: all .2s;
}
.chip:hover span { border-color: rgba(200, 159, 137, .6); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(200, 159, 137, .3); }
.chip input:checked + span { background: rgba(200, 159, 137, .14); border-color: var(--gold); color: var(--gold-2); }
.chip input[type="checkbox"]:checked + span::before {
  border-color: var(--gold); background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A1D17' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center/10px no-repeat;
}

/* Ações */
.qt-actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.qt-actions .btn { min-width: 160px; }

/* Revisão */
.review { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin-bottom: 14px; background: rgba(27, 26, 29, .5); }
.review header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.review h3 { font-size: 1.3rem; margin: 0; }
.review__edit { background: none; border: 0; cursor: pointer; font: 600 .72rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); padding: 6px 0; }
.review__edit:hover { text-decoration: underline; }
.review dl { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
.review dt { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #8a828a; }
.review dd { margin: 2px 0 0; font-size: .92rem; color: var(--text); word-break: break-word; }
.review dd.muted { color: #8a828a; font-style: italic; }
.qt-consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; font-size: .88rem; line-height: 1.5; color: var(--muted); cursor: pointer; }
.qt-consent input { margin-top: 3px; width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--gold); }
.qt-consent.is-invalid span { color: #e88a98; }

/* Envio */
.btn.is-loading { cursor: progress; opacity: .85; }
.btn.is-loading::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(42, 29, 23, .3); border-top-color: var(--ink); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn:disabled { pointer-events: none; }
.qt-send-error {
  margin-top: 20px; padding: 16px 18px; border-radius: 14px; font-size: .9rem; line-height: 1.55;
  color: var(--text); background: rgba(224, 122, 138, .1); border: 1px solid rgba(224, 122, 138, .45);
}
.qt-send-error strong { color: #f2a7b2; }
.qt-send-error__wa {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 18px; border-radius: 999px;
  background: #25d366; color: #fff; font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
}
.qt-send-error__wa:hover { filter: brightness(1.08); }
.qt-late { margin: 0 0 26px; text-align: left; }
.qt-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ----- Sucesso ----- */
.qt-success { padding: 10px 0; }
.qt-success__card { max-width: 620px; margin: 0 auto; text-align: center; padding: 54px 40px; }
.qt-success__icon {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 24px; display: grid; place-items: center;
  background: var(--grad-lilac); box-shadow: 0 0 0 10px rgba(166, 138, 174, .12);
  animation: pop .5s ease;
}
.qt-success__icon svg { width: 40px; height: 40px; fill: none; stroke: #2A1D17; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
.qt-success h2 { font-size: 2.4rem; }
.qt-protocol { display: inline-flex; flex-direction: column; gap: 4px; margin: 10px 0 30px; padding: 14px 28px; border-radius: 14px; border: 1px dashed rgba(200, 159, 137, .5); }
.qt-protocol span { font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.qt-protocol strong { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-2); letter-spacing: .06em; }
.qt-success__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }


/* ----- Responsivo ----- */
@media (max-width: 760px) {
  .stepper__list, .stepper__bar { display: none; }
  .stepper { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .stepper__mobile { display: block; }
  .stepper::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: var(--p, 0); background: linear-gradient(90deg, var(--gold), var(--lilac)); }
  .qt-fields, .review dl { grid-template-columns: 1fr; }
  .qt-benefits { gap: 10px; }
  .qt-benefit, .qt-benefits--3 .qt-benefit { width: calc((100% - 10px) / 2); min-height: 128px; padding: 18px 12px; font-size: .84rem; }
  .qt-benefit__icon svg { width: 34px; height: 34px; }
  .qt-card { padding: 26px 20px; border-radius: 18px; }
  .qt-card__title { font-size: 1.6rem; }
  .qt-wizard__head { gap: 16px; }
  .qt-wizard__icon { width: 58px; height: 58px; border-radius: 16px; }
  .qt-actions .btn { min-width: 0; flex: 1; padding-inline: 16px; }
}
