/* Citricus Quote Popup v2 — formulário nativo em 3 passos */
.cqp-wrap, .cqp-wrap *, .cqp-overlay, .cqp-overlay * { box-sizing: border-box; }

:root {
  --cqp-dark: #0C1E3C;
  --cqp-main: #12BAC9;
  --cqp-hi: #3FE0EC;
  --cqp-ink: #15273B;
  --cqp-soft: #6B7B8C;
  --cqp-line: #DDE7F0;
  --cqp-bg: #F7FAFD;
}

/* ---------- popup ---------- */
.cqp-overlay {
  position: fixed; inset: 0; z-index: 2147483000;
  background: rgba(7, 16, 32, .72);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 36px 16px; overflow-y: auto;
  opacity: 0; transition: opacity .25s ease;
}
.cqp-overlay.is-open { opacity: 1; }
.cqp-overlay[hidden] { display: none; }

.cqp-modal {
  position: relative; width: 100%; max-width: 620px;
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 40px 90px rgba(5, 12, 26, .45);
  transform: translateY(14px); transition: transform .28s ease;
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
}
.cqp-overlay.is-open .cqp-modal { transform: none; }

.cqp-close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 20px; line-height: 1;
  transition: background .2s ease;
}
.cqp-close:hover { background: rgba(255, 255, 255, .3); }

.cqp-head {
  background: linear-gradient(140deg, var(--cqp-dark) 0%, #16305c 100%);
  padding: 30px 32px 26px; text-align: center; color: #fff;
}
.cqp-logo {
  display: inline-block; background: #fff; border-radius: 10px;
  padding: 9px 14px; margin-bottom: 14px;
}
.cqp-logo img { display: block; height: 30px; width: auto; }
.cqp-head h2 {
  margin: 0 0 7px; font-size: 1.38rem; line-height: 1.25; font-weight: 700; color: #fff;
  font-family: 'Outfit', 'Inter', sans-serif;
}
.cqp-head p { margin: 0; font-size: .92rem; line-height: 1.55; color: rgba(255, 255, 255, .78); }
.cqp-head p b, .cqp-head p strong { color: var(--cqp-hi); font-weight: 600; }

.cqp-body { padding: 26px 32px 30px; }

/* ---------- inline (shortcode) ---------- */
.cqp-ctx-inline {
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  color: var(--cqp-ink);
}

/* ---------- progresso ---------- */
.cqp-count {
  margin: 0 0 12px; font-size: 11px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--cqp-soft);
}
.cqp-count b { color: var(--cqp-main); }

.cqp-prog {
  display: flex; list-style: none; margin: 0 0 4px; padding: 0;
  align-items: flex-start; position: relative;
}
.cqp-prog::before {
  content: ""; position: absolute; top: 15px; left: 16.66%; right: 16.66%;
  height: 2px; background: #E5EBF2; z-index: 0;
}
.cqp-prog li {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 7px; position: relative; z-index: 1; margin: 0;
}
.cqp-prog li span {
  width: 31px; height: 31px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .84rem;
  border: 2px solid var(--cqp-line); color: #8a98a6; background: #fff;
  transition: all .25s ease;
}
.cqp-prog li.is-on span { border-color: var(--cqp-dark); background: var(--cqp-dark); color: #fff; }
.cqp-prog li.is-done span { border-color: var(--cqp-main); color: var(--cqp-main); background: #fff; }
.cqp-prog li em {
  font-style: normal; font-size: 11.5px; font-weight: 600;
  color: #9aa7b4; line-height: 1.2; text-align: center;
}
.cqp-prog li.is-on em { color: var(--cqp-ink); font-weight: 700; }
.cqp-prog li.is-done em { color: var(--cqp-main); }

.cqp-bar {
  height: 4px; border-radius: 4px; background: #E9EEF4;
  margin: 12px 0 24px; overflow: hidden;
}
.cqp-bar i {
  display: block; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--cqp-main), var(--cqp-hi));
  transition: width .35s ease;
}

/* ---------- campos ---------- */
.cqp-step { display: none; }
.cqp-step.is-on { display: block; animation: cqpIn .28s ease; }
@keyframes cqpIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.cqp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.cqp-f { grid-column: 1 / -1; min-width: 0; }
.cqp-f.cqp-half { grid-column: auto; }
.cqp-f[hidden] { display: none; }

.cqp-f label {
  display: block; margin: 0 0 6px;
  font-size: .82rem; font-weight: 700; color: var(--cqp-ink);
}
.cqp-f label small { font-weight: 500; color: var(--cqp-soft); font-size: .76rem; }
.cqp-req { color: #E04E4E; font-style: normal; }

.cqp-wrap input[type="text"],
.cqp-wrap input[type="email"],
.cqp-wrap input[type="tel"],
.cqp-wrap select,
.cqp-wrap textarea {
  width: 100%; padding: 13px 14px; font-size: .95rem; font-family: inherit;
  color: var(--cqp-ink); background: var(--cqp-bg);
  border: 1.5px solid var(--cqp-line); border-radius: 11px;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
  -webkit-appearance: none; appearance: none;
}
.cqp-wrap select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7B8C' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 16px;
  padding-right: 38px;
}
.cqp-wrap textarea { resize: vertical; min-height: 96px; }
.cqp-wrap input:focus, .cqp-wrap select:focus, .cqp-wrap textarea:focus {
  outline: 0; background: #fff; border-color: var(--cqp-main);
  box-shadow: 0 0 0 3px rgba(18, 186, 201, .14);
}
.cqp-wrap .cqp-bad { border-color: #E04E4E !important; background: rgba(224, 78, 78, .05) !important; }

.cqp-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cqp-check {
  display: flex !important; align-items: center; gap: 9px; margin: 0 !important;
  font-size: .84rem; font-weight: 600; color: var(--cqp-ink);
  border: 1.5px solid var(--cqp-line); background: var(--cqp-bg);
  border-radius: 11px; padding: 11px 12px; cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.cqp-check:hover { border-color: var(--cqp-main); }
.cqp-check input { width: auto !important; min-width: 16px; height: 16px; margin: 0; accent-color: var(--cqp-main); flex: none; }
.cqp-check input:checked + span { color: var(--cqp-main); }
.cqp-check:has(input:checked) { border-color: var(--cqp-main); background: rgba(18, 186, 201, .07); }
.cqp-checks.cqp-bad { border-radius: 12px; padding: 6px; border: 1.5px solid #E04E4E; background: rgba(224, 78, 78, .04); }

.cqp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cqp-err {
  background: rgba(224, 78, 78, .08); border: 1px solid rgba(224, 78, 78, .32);
  color: #C0392B; font-size: .86rem; font-weight: 600;
  border-radius: 10px; padding: 10px 14px; margin: 16px 0 0;
}
.cqp-err[hidden] { display: none; }

/* ---------- botões ---------- */
.cqp-nav { display: flex; gap: 12px; align-items: stretch; margin-top: 22px; }
.cqp-next, .cqp-send {
  flex: 1; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--cqp-main) 0%, var(--cqp-hi) 100%);
  color: #06272B; font-weight: 700; font-size: .98rem; font-family: inherit;
  padding: 15px 30px; border-radius: 999px;
  box-shadow: 0 8px 22px rgba(18, 186, 201, .3);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.cqp-next:hover, .cqp-send:hover { transform: translateY(-1px); box-shadow: 0 13px 28px rgba(18, 186, 201, .4); }
.cqp-send[disabled] { opacity: .6; cursor: progress; transform: none; }
.cqp-prev {
  flex: 0 0 auto; background: transparent; cursor: pointer;
  border: 1.5px solid var(--cqp-line); border-radius: 999px;
  padding: 14px 24px; font-weight: 600; font-size: .92rem;
  font-family: inherit; color: var(--cqp-soft);
  transition: border-color .2s ease, color .2s ease;
}
.cqp-prev:hover { border-color: var(--cqp-main); color: var(--cqp-main); }

/* ---------- sucesso ---------- */
.cqp-done { text-align: center; padding: 18px 4px 6px; }
.cqp-done[hidden] { display: none; }
.cqp-done-ico {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--cqp-main), var(--cqp-hi)); color: #06272B;
  animation: cqpPop .45s cubic-bezier(.2, 1.3, .5, 1);
}
.cqp-done-ico svg { width: 30px; height: 30px; }
@keyframes cqpPop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
.cqp-done h3 { margin: 0 0 8px; font-size: 1.3rem; font-weight: 700; color: var(--cqp-ink); font-family: 'Outfit', 'Inter', sans-serif; }
.cqp-done p { margin: 0 0 20px; color: var(--cqp-soft); font-size: .95rem; line-height: 1.6; }
.cqp-done-wa {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  background: #25D366; color: #04331a !important; font-weight: 700; font-size: .95rem;
  padding: 13px 26px; border-radius: 999px;
}

@media (max-width: 560px) {
  .cqp-overlay { padding: 14px 10px; }
  .cqp-head { padding: 24px 20px 20px; }
  .cqp-head h2 { font-size: 1.18rem; }
  .cqp-body { padding: 20px 18px 24px; }
  .cqp-grid { grid-template-columns: 1fr; }
  .cqp-f.cqp-half { grid-column: 1 / -1; }
  .cqp-checks { grid-template-columns: 1fr; }
  .cqp-prog li em { font-size: 10px; }
  .cqp-nav { flex-wrap: wrap; }
}

/* ---------- blindagem: temas/lightboxes antigos com reset de margem ---------- */
.cqp-wrap .cqp-count { margin: 0 0 12px; }
.cqp-wrap .cqp-prog { margin: 0 0 4px; padding: 0; }
.cqp-wrap .cqp-prog li { margin: 0; }
.cqp-wrap .cqp-bar { margin: 12px 0 24px; }
.cqp-wrap .cqp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.cqp-wrap .cqp-f { margin: 0; }
.cqp-wrap .cqp-f label { margin: 0 0 6px; display: block; }
.cqp-wrap .cqp-nav { display: flex; gap: 12px; align-items: stretch; margin: 22px 0 0; }
.cqp-wrap .cqp-nav .cqp-next,
.cqp-wrap .cqp-nav .cqp-send { flex: 1; width: auto; margin: 0; padding: 15px 30px; border-radius: 999px; }
.cqp-wrap .cqp-nav .cqp-prev { flex: 0 0 auto; width: auto; margin: 0; padding: 14px 24px; border-radius: 999px; }
.cqp-wrap .cqp-err { margin: 16px 0 0; }
.cqp-wrap .cqp-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cqp-wrap .cqp-check { margin: 0; }
.cqp-wrap .cqp-done h3 { margin: 0 0 8px; }
.cqp-wrap .cqp-done p { margin: 0 0 20px; }
@media (max-width: 560px) {
  .cqp-wrap .cqp-grid { grid-template-columns: 1fr; }
  .cqp-wrap .cqp-checks { grid-template-columns: 1fr; }
}
