/* =====================================================================
   Diagnóstico gratuito: popup com questionário em etapas (fundo bordô)
   ===================================================================== */
body.dg-lock { overflow: hidden; }

.dg-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(42, 22, 32, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility 0s linear .6s;
}
.dg-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .6s ease, visibility 0s; }

.dg-modal {
  position: relative;
  width: 100%;
  max-width: 660px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  background: var(--bordo);
  color: var(--white);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: translateY(18px) scale(.985);
  transition: transform .7s cubic-bezier(.16,.8,.3,1);
  overflow: hidden;
}
.dg-overlay.is-open .dg-modal { transform: none; }

.dg-close {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 3;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  transition: background .3s ease;
}
.dg-close:hover { background: rgba(255, 255, 255, 0.24); }
.dg-close svg { width: 18px; height: 18px; }

.dg-head { padding: 34px 44px 6px; }
.dg-tag {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 222, 89, 0.22);
  color: #FFE98A;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.dg-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 22px; }
.dg-progress span {
  height: 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  position: relative;
}
.dg-progress span::after {
  content: "";
  position: absolute; inset: 0;
  background: #FFE98A;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s cubic-bezier(.16,.8,.3,1);
}
.dg-progress span.is-done::after, .dg-progress span.is-current::after { transform: scaleX(1); }
.dg-title { margin: 0 0 8px; font-weight: 700; font-size: clamp(23px, 3vw, 29px); line-height: 1.25; color: var(--white); text-wrap: balance; }
.dg-sub { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.82); }

.dg-form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.dg-body { padding: 22px 44px 8px; overflow-y: auto; flex: 1; }
.dg-step { display: none; }
.dg-step.is-active { display: block; animation: dg-in .7s ease both; }
@keyframes dg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.dg-field { margin-bottom: 20px; }
.dg-label { display: block; margin-bottom: 9px; font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--white); }
.dg-label small { font-weight: 400; color: rgba(255, 255, 255, 0.7); }
.dg-hint { margin: 7px 0 0; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.7); }

.dg-input, .dg-select {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  transition: border-color .3s ease, background .3s ease;
}
.dg-input::placeholder { color: rgba(255, 255, 255, 0.5); }
.dg-input:focus, .dg-select:focus { border-color: #FFE98A; background: rgba(255, 255, 255, 0.13); }
.dg-select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  padding-right: 44px;
}
.dg-select option { color: #2a1620; background: #fff; }
.dg-input-wrap { position: relative; }
.dg-input-wrap .dg-at { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 16px; color: rgba(255, 255, 255, 0.7); pointer-events: none; }
.dg-input-wrap .dg-input { padding-left: 38px; }

.dg-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.dg-chip { position: relative; }
.dg-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.dg-chip span {
  display: inline-block;
  padding: 11px 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--white);
  cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .25s ease;
  user-select: none;
}
.dg-chip span:hover { border-color: rgba(255, 255, 255, 0.8); }
.dg-chip input:checked + span { background: var(--white); border-color: var(--white); color: var(--bordo); font-weight: 600; }
.dg-chip input:focus-visible + span { outline: 2px solid #FFE98A; outline-offset: 2px; }
.dg-chips.is-shake { animation: dg-shake .4s ease; }
@keyframes dg-shake { 0%,100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.dg-conditional { display: none; }
.dg-conditional.is-visible { display: block; animation: dg-in .6s ease both; }

.dg-check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.9); cursor: pointer; }
.dg-check input { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; accent-color: #FFE98A; cursor: pointer; }

.dg-confirm {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 4px 0 18px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  line-height: 1.5;
}
.dg-confirm strong { color: #FFE98A; white-space: nowrap; }
.dg-confirm button { flex-shrink: 0; padding: 0; border: 0; background: none; color: var(--white); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

.dg-error { display: none; margin: 7px 0 0; font-size: 12.5px; font-weight: 600; color: #FFB8C8; }
.dg-field.has-error .dg-error { display: block; }
.dg-field.has-error .dg-input, .dg-field.has-error .dg-select { border-color: #FFB8C8; }

.dg-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 44px 30px; }
.dg-note { font-size: 12.5px; color: rgba(255, 255, 255, 0.65); }
.dg-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.dg-back { padding: 0; border: 0; background: none; color: rgba(255, 255, 255, 0.85); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.dg-back:hover { color: var(--white); text-decoration: underline; }
.dg-next, .dg-send {
  padding: 15px 32px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--bordo);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease;
}
.dg-next:hover, .dg-send:hover { transform: translateY(-2px); background: var(--yellow-light); }
.dg-send[disabled] { opacity: .6; cursor: default; transform: none; }

/* tela final */
.dg-done { display: none; padding: 48px 44px 44px; text-align: center; }
.dg-done.is-active { display: block; animation: dg-in .8s ease both; }
.dg-done-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; background: rgba(255, 222, 89, 0.22); color: #FFE98A; }
.dg-done-icon svg { width: 34px; height: 34px; }
.dg-done h2 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 30px); font-weight: 700; color: var(--white); text-wrap: balance; }
.dg-done p { margin: 0 auto 24px; max-width: 460px; font-size: 16px; line-height: 1.7; color: rgba(255, 255, 255, 0.88); }
.dg-done .dg-send { display: inline-block; text-decoration: none; }
.dg-done-small { margin-top: 18px; font-size: 13px; color: rgba(255, 255, 255, 0.65); }

@media (max-width: 720px) {
  .dg-overlay { padding: 0; align-items: flex-end; }
  .dg-modal { max-width: none; max-height: 94vh; max-height: 94dvh; border-radius: 26px 26px 0 0; transform: translateY(40px); }
  .dg-head { padding: 28px 22px 4px; }
  .dg-body { padding: 18px 22px 6px; }
  .dg-foot { padding: 14px 22px 22px; }
  .dg-note { display: none; }
  .dg-actions { width: 100%; justify-content: space-between; }
  .dg-next, .dg-send { flex: 1; padding: 15px 20px; }
  .dg-close { top: 14px; right: 14px; }
  .dg-done { padding: 44px 22px 36px; }
  .dg-chip span { padding: 10px 15px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .dg-overlay, .dg-modal, .dg-step.is-active, .dg-progress span::after { transition: none; animation: none; }
}

/* =====================================================================
   Bloco do Diagnóstico gratuito para as páginas do site
   (cartão bordô dentro de uma seção creme, funciona entre qualquer seção)
   ===================================================================== */
.dgb-section { padding: 72px 0; }
.dgb-card {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 60px;
  background: var(--bordo);
  color: var(--white);
  border-radius: 32px;
  box-shadow: 0 24px 56px rgba(102, 38, 63, 0.26);
}
.dgb-tag {
  display: inline-block; margin: 0 0 16px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 222, 89, 0.22); color: #FFE98A;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.dgb-card h2 { margin: 0 0 14px; font-weight: 700; font-size: clamp(25px, 3vw, 36px); line-height: 1.25; color: var(--white); text-wrap: balance; }
.dgb-card p { margin: 0 0 26px; font-size: 17px; line-height: 1.7; color: rgba(255, 255, 255, 0.9); text-wrap: pretty; }
.dgb-card strong { color: var(--white); font-weight: 700; }
.dgb-btn {
  display: inline-block; padding: 15px 32px; border-radius: 999px; border: 1.5px solid var(--white);
  background: var(--white); color: var(--bordo); font-family: var(--font-body); font-size: 15px; font-weight: 700;
  transition: transform .25s ease, background .25s ease;
}
.dgb-btn:hover { transform: translateY(-2px); background: var(--yellow-light); }
.dgb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dgb-list li {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.9);
}
.dgb-list svg { width: 28px; height: 28px; flex-shrink: 0; color: #FFE98A; }
.dgb-list strong { display: block; margin-bottom: 2px; font-size: 15.5px; }

@media (max-width: 960px) {
  .dgb-card { grid-template-columns: 1fr; gap: 32px; padding: 44px 36px; }
}
@media (max-width: 720px) {
  .dgb-section { padding: 48px 0; }
  .dgb-card { padding: 34px 24px 32px; border-radius: 26px; }
  .dgb-btn { display: block; text-align: center; }
}

/* =====================================================================
   Página própria do Diagnóstico gratuito (diagnostico.html)
   ===================================================================== */
#heroBgDiagnostico { opacity: 0.30; inset: -32% -4%; background-position: 58% 18%; }
.dgp-hero-sub { font-size: clamp(18px, 2.1vw, 24px); line-height: 1.55; max-width: 540px; }
.dgp-hero-sub strong { font-weight: 800; }
.dgp-intro { padding-bottom: 40px; }
.dgp-cta { text-align: center; }
.dgp-small { margin: 18px 0 0; font-size: 14.5px; color: var(--bordo-soft); }
.dgp-gets, .dgp-how, .dgp-faq { padding-top: 56px; padding-bottom: 56px; }
.dgp-h2 { margin: 0 0 40px; text-align: center; font-weight: 800; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.25; color: var(--bordo); }
.dgp-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dgp-card { padding: 30px 32px; background: var(--white); border-radius: 22px; box-shadow: 0 14px 36px rgba(102,38,63,.10); }
.dgp-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 16px; background: var(--yellow-light); color: var(--bordo); box-shadow: inset 0 0 0 2px rgba(255,222,89,.6); }
.dgp-icon svg { width: 26px; height: 26px; }
.dgp-card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; line-height: 1.35; color: var(--bordo); }
.dgp-card p { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--ink); }
.dgp-steps { list-style: none; margin: 0 auto; padding: 0; max-width: 1100px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dgp-step { position: relative; padding: 30px 28px; background: var(--white); border-radius: 22px; box-shadow: 0 14px 36px rgba(102,38,63,.10); }
.dgp-num { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 50%; background: var(--bordo); color: var(--white); font-weight: 700; font-size: 18px; }
.dgp-step h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; color: var(--bordo); }
.dgp-step p { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--ink); }
.dgp-faq-wrap { max-width: 820px; }
.dgp-q { margin-bottom: 14px; background: var(--white); border-radius: 18px; box-shadow: 0 10px 28px rgba(102,38,63,.08); overflow: hidden; }
.dgp-q summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 26px; position: relative; font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--bordo); }
.dgp-q summary::-webkit-details-marker { display: none; }
.dgp-q summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; transition: transform .3s ease; }
.dgp-q[open] summary::after { content: "\2212"; }
.dgp-q p { margin: 0; padding: 0 26px 22px; font-size: 16px; line-height: 1.75; color: var(--ink); }
@media (max-width: 960px) {
  .dgp-steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .dgp-grid { grid-template-columns: 1fr; }
  .dgp-card, .dgp-step { padding: 26px 24px; }
  .dgp-gets, .dgp-how, .dgp-faq { padding-top: 40px; padding-bottom: 40px; }
  .dgp-h2 { margin-bottom: 28px; }
  .dgp-q summary { font-size: 16px; padding: 18px 50px 18px 20px; }
  .dgp-q p { padding: 0 20px 20px; }
}

/* ---------- E-book de noivas (reaproveita o popup do diagnóstico) ---------- */
.dg-progress--2 { grid-template-columns: repeat(2, 1fr); }
.dg-date { color-scheme: dark; appearance: none; -webkit-appearance: none; min-height: 52px; }
.dg-date:disabled { opacity: .45; }
.dg-check-inline { margin: 12px 0 0; font-size: 14px; }
.dg-done .dg-done-follow { margin: 24px auto 0; font-size: 14.5px; }
.dg-link { color: #FFE98A; font-weight: 600; text-decoration: underline; }
.dg-link:hover { color: var(--white); }
