/* Santos & Portela — Diagnóstico Estratégico */
.dg { --navy: #071A33; --navy2: #050F20; --gold: #B07A3C; --goldl: #C9975E; font-family: "Montserrat", system-ui, sans-serif; }
.dg--modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; }
.dg--modal[hidden] { display: none; }
.dg__backdrop { position: absolute; inset: 0; background: rgba(3,10,22,.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .35s; }
.dg__card { position: relative; overflow: hidden auto; width: min(640px, 100%); max-height: calc(100svh - 32px); padding: clamp(30px, 4.5vw, 52px); border-radius: 16px; color: #fff;
  background: radial-gradient(600px 360px at 100% 0%, rgba(201,151,94,.16), transparent 60%), linear-gradient(160deg, #0B2140, #040B18 80%);
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.8), inset 0 0 0 1px rgba(201,151,94,.28); }
.dg--modal .dg__card { opacity: 0; transform: translateY(20px) scale(.98); transition: opacity .4s cubic-bezier(.2,.7,.2,1), transform .5s cubic-bezier(.2,.7,.2,1); }
.dg--modal.is-open .dg__backdrop { opacity: 1; }
.dg--modal.is-open .dg__card { opacity: 1; transform: none; }
.dg__arc { display: none; position: absolute; right: -40px; bottom: -40px; width: 180px; fill: rgba(201,151,94,.07); pointer-events: none; transform: rotate(90deg); }
.dg__x { position: absolute; z-index: 2; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.04); color: #fff; cursor: pointer; display: grid; place-items: center; transition: transform .35s, background .3s; }
.dg__x:hover { transform: rotate(90deg); background: var(--gold); }
.dg__x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.dg__step { display: none; position: relative; }
.dg__step.is-on { display: block; animation: dgIn .5s cubic-bezier(.2,.7,.2,1); }
@keyframes dgIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.dg__kicker { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--goldl); }
.dg__title { margin: 14px 0 0; font-family: "Cinzel", Georgia, serif; font-weight: 700; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.15; text-transform: uppercase; letter-spacing: .01em; }
.dg__title--sm { text-transform: none; font-size: clamp(22px, 2.8vw, 30px); }
.dg__text { margin: 14px 0 0; font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.72); }
.dg__text a { color: var(--goldl); font-weight: 600; }
.dg__stats { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(201,151,94,.28); border-radius: 10px; overflow: hidden; }
.dg__stats li { padding: 16px 14px; background: rgba(6,20,42,.95); }
.dg__stats b { display: block; font-family: "League Spartan", "Montserrat", sans-serif; font-weight: 700; font-size: clamp(22px, 2.8vw, 28px); line-height: 1; color: #fff; }
.dg__stats span { display: block; margin-top: 8px; font-size: 11.5px; line-height: 1.4; color: rgba(255,255,255,.6); }
.dg__price { margin-top: 18px; padding: 16px 18px; border-radius: 10px; background: rgba(201,151,94,.1); border-left: 3px solid var(--goldl); }
.dg__price span { font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--goldl); }
.dg__price p { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: #fff; }
.dg__price strong { color: var(--goldl); }
.dg__ask { margin: 26px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #fff; }
.dg__choices { display: grid; gap: 10px; margin-top: 12px; }
.dg__choice { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: center; text-align: left; width: 100%; padding: 15px 18px; border-radius: 10px; cursor: pointer; font: inherit; color: rgba(255,255,255,.78); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); transition: transform .3s, background .3s, border-color .3s; }
.dg__choice b { font-family: "League Spartan", "Montserrat", sans-serif; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.dg__choice span { font-size: 13.5px; line-height: 1.45; }
.dg__choice:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.35); }
.dg__choice--yes { background: linear-gradient(135deg, #C9975E, #A8743A); border-color: transparent; color: rgba(255,255,255,.95); }
.dg__choice--yes:hover { background: linear-gradient(135deg, #D6A66E, #B07A3C); box-shadow: 0 16px 34px -14px rgba(201,151,94,.7); }
.dg__form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-top: 22px; }
.dg__f { display: grid; gap: 6px; grid-column: 1 / -1; }
.dg__f:nth-of-type(2), .dg__f:nth-of-type(3) { grid-column: auto; }
.dg__f span { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.dg__f em { font-style: normal; text-transform: none; letter-spacing: 0; color: rgba(255,255,255,.45); }
.dg__f input, .dg__f select { width: 100%; padding: 13px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.96); font: 500 15px "Montserrat", system-ui, sans-serif; color: var(--navy); appearance: none; }
.dg__f select { background-image: linear-gradient(45deg, transparent 50%, #071A33 50%), linear-gradient(135deg, #071A33 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.dg__f input:focus, .dg__f select:focus { outline: none; box-shadow: 0 0 0 3px rgba(201,151,94,.5); }
.dg__f.is-bad input, .dg__f.is-bad select { box-shadow: 0 0 0 2px #E5484D; }
.dg__hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.dg__err { grid-column: 1 / -1; margin: 0; font-size: 13px; color: #FF9B9B; }
.dg__submit { grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 6px; padding: 16px 22px; border: 0; border-radius: 8px; cursor: pointer; text-decoration: none;
  font: 700 13.5px "Montserrat", system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, #C9975E, #A8743A); transition: transform .3s, box-shadow .3s; }
.dg__submit:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(201,151,94,.7); }
.dg__submit svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.dg__back { grid-column: 1 / -1; justify-self: center; margin-top: 4px; padding: 8px 12px; background: none; border: 0; cursor: pointer; font: 600 12.5px "Montserrat", sans-serif; letter-spacing: .08em; color: rgba(255,255,255,.6); text-decoration: underline; text-underline-offset: 4px; }
.dg__back:hover { color: #fff; }
.dg__back--solo { display: block; margin: 24px auto 0; }
.dg__lgpd { grid-column: 1 / -1; margin: 2px 0 0; text-align: center; font-size: 11.5px; color: rgba(255,255,255,.45); }
.dg__ok { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 18px; border-radius: 50%; background: linear-gradient(135deg, #C9975E, #A8743A); box-shadow: 0 0 0 8px rgba(201,151,94,.15); }
.dg__ok svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dg__step[data-step="3"] .dg__submit { margin-top: 26px; }
.dg__phone { margin: 12px 0 0; text-align: center; font-size: 14px; font-weight: 600; color: var(--goldl); letter-spacing: .04em; }
.dg__step[data-step="4"] { text-align: center; padding: 20px 0; }
@media (max-width: 560px) {
  .dg__stats { grid-template-columns: 1fr; }
  .dg__form { grid-template-columns: 1fr; }
  .dg__f:nth-of-type(2), .dg__f:nth-of-type(3) { grid-column: 1 / -1; }
  .dg__choice { grid-template-columns: 1fr; gap: 4px; }
  .dg--modal { padding: 0; align-items: end; }
  .dg--modal .dg__card { max-height: 96svh; border-radius: 16px 16px 0 0; }
}
/* versão incorporada (/contato) */
.dg--inline .dg__card { max-height: none; overflow: hidden; margin: 0 auto; }

/* ---------- tema claro (página /contato) ---------- */
.dg--light .dg__card { color: #071A33; background: #FFFFFF; box-shadow: 0 1px 2px rgba(7,26,51,.05), 0 50px 100px -50px rgba(7,26,51,.45), inset 0 0 0 1px #ECE6DC; }
.dg--light .dg__kicker { color: var(--gold); }
.dg--light .dg__text { color: #4A5568; }
.dg--light .dg__text a { color: var(--gold); }
.dg--light .dg__stats { background: #ECE6DC; }
.dg--light .dg__stats li { background: #FBF9F5; }
.dg--light .dg__stats b { color: #071A33; }
.dg--light .dg__stats span { color: #5A6578; }
.dg--light .dg__price { background: #FBF5EA; }
.dg--light .dg__price span { color: var(--gold); }
.dg--light .dg__price p { color: #071A33; }
.dg--light .dg__price strong { color: var(--gold); }
.dg--light .dg__ask { color: #071A33; }
.dg--light .dg__choice { background: #FFFFFF; border-color: #E4DED3; color: #4A5568; }
.dg--light .dg__choice b { color: #071A33; }
.dg--light .dg__choice:hover { border-color: var(--goldl); }
.dg--light .dg__choice--yes { background: linear-gradient(135deg, #C9975E, #A8743A); border-color: transparent; color: rgba(255,255,255,.95); }
.dg--light .dg__choice--yes b { color: #fff; }
.dg--light .dg__f span { color: #5A6578; }
.dg--light .dg__f em { color: #8D9AAE; }
.dg--light .dg__f input, .dg--light .dg__f select { background: #FBF9F5; border-color: #E4DED3; }
.dg--light .dg__err { color: #B42318; }
.dg--light .dg__back { color: #5A6578; }
.dg--light .dg__back:hover { color: #071A33; }
.dg--light .dg__lgpd { color: #8D9AAE; }
.dg--light .dg__phone { color: var(--gold); }

/* UFs — seleção múltipla */
.dg__ufs { border: 0; margin: 0; padding: 0; min-width: 0; }
.dg__ufs legend { padding: 0; margin-bottom: 8px; }
.dg__ufgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dg__uf { padding: 9px 0; border-radius: 6px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); color: rgba(255,255,255,.85); font: 600 12.5px "Montserrat", sans-serif; letter-spacing: .04em; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.dg__uf:hover { transform: translateY(-1px); border-color: var(--goldl); }
.dg__uf[aria-pressed="true"] { background: linear-gradient(135deg, #C9975E, #A8743A); border-color: transparent; color: #fff; }
.dg__uf--all { grid-column: 1 / -1; padding: 11px 0; letter-spacing: .12em; text-transform: uppercase; font-size: 11.5px; }
.dg__ufs.is-bad .dg__ufgrid { box-shadow: 0 0 0 2px #E5484D; border-radius: 8px; }
.dg--light .dg__uf { background: #FBF9F5; border-color: #E4DED3; color: #071A33; }
.dg--light .dg__uf[aria-pressed="true"] { color: #fff; border-color: transparent; background: linear-gradient(135deg, #C9975E, #A8743A); }
@media (max-width: 560px) { .dg__ufgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* opções sem "Sim/Não" */
.dg__choice { grid-template-columns: 1fr; text-align: center; padding: 17px 20px; }
.dg__choice span { font-size: 14.5px; font-weight: 600; }
.dg__choice--yes span { color: #fff; }
/* página /contato: sem os números */
.dg--inline .dg__stats { display: none; }

/* texto único da tela 1 */
.dg__body { margin-top: 18px; padding-left: 18px; border-left: 2px solid var(--goldl); }
.dg__body p { margin: 0; font-size: 15.5px; line-height: 1.75; color: rgba(255,255,255,.78); }
.dg__body p + p { margin-top: 14px; }
.dg__body strong { color: #fff; font-weight: 700; }
.dg__body .dg__gold { color: var(--goldl); }
.dg--light .dg__body p { color: #3B4658; }
.dg--light .dg__body strong { color: #071A33; }
.dg--light .dg__body .dg__gold { color: var(--gold); }

/* sem rótulo acima dos títulos */
.dg__step > .dg__title:first-child { margin-top: 0; }

/* janela do site idêntica à página /contato aprovada */
.dg--light .dg__x { border-color: #E4DED3; background: #FBF9F5; color: #071A33; }
.dg--light .dg__x:hover { background: var(--gold); color: #fff; border-color: transparent; }
.dg--modal.dg--light .dg__backdrop { background: rgba(7,26,51,.55); }
.dg--modal.dg--light .dg__card { background-image: none; }
.dg--light .dg__ok svg { stroke: #fff; }
.dg--light .dg__title { color: #071A33; }
.dg--modal .dg__step > .dg__title:first-child { padding-right: 44px; }
