.dw-survey-app{
  --bg:#242424;--panel:#2c2c2c;--panel-2:#343434;--line:rgba(255,255,255,.09);--text:#fff;--muted:#b7b7b7;--muted-2:#858585;--brand:#d85a2a;--brand-2:#ef7a43;--ok:#44c17a;
  box-sizing:border-box;width:100%!important;max-width:none!important;height:var(--dw-app-height,calc(100svh - 120px));min-height:520px;margin-top:0!important;margin-bottom:0!important;font-family:Inter,Arial,Helvetica,sans-serif;color:var(--text);display:grid;grid-template-rows:auto 1fr;background:#f5f6f7;overflow:hidden;position:relative;isolation:isolate;
}
.dw-survey-app *{box-sizing:border-box}
.dw-survey-topbar{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:12px 24px;border-bottom:1px solid var(--line);min-height:64px}
.dw-survey-brand{display:flex;align-items:center;min-width:10px}
.dw-survey-brand-badge{width:10px;height:10px;border-radius:50%;background:var(--brand);box-shadow:0 0 0 5px rgba(216,90,42,.12);flex:0 0 auto}
.dw-survey-progress-area{display:flex;align-items:center;gap:10px;min-width:220px;max-width:300px;width:30%}
.dw-survey-progress-track{height:4px;flex:1;background:#414141;border-radius:999px;overflow:hidden}
.dw-survey-progress-fill{height:100%;width:12.5%;background:var(--brand);transition:width .28s ease}
.dw-survey-progress-label{font-size:11px;color:var(--muted);min-width:42px;text-align:right}
.dw-survey-stage{position:relative;padding:14px 20px;display:flex;align-items:center;justify-content:center;min-height:0;overflow:hidden}
.dw-survey-card{position:absolute;width:min(760px,calc(100% - 40px));max-height:calc(var(--dw-app-height,100svh) - 104px);background:#2d2d2d;border:1px solid rgba(255,255,255,.075);border-radius:18px;box-shadow:0 18px 52px rgba(0,0,0,.22);padding:24px 28px;display:flex;flex-direction:column;justify-content:center;opacity:0;pointer-events:none;transform:translateX(40px) scale(.99);transition:opacity .24s ease,transform .24s ease;overflow:auto;scrollbar-width:thin;scrollbar-color:#555 transparent}
.dw-survey-card::-webkit-scrollbar{width:5px}.dw-survey-card::-webkit-scrollbar-thumb{background:#555;border-radius:999px}
.dw-survey-card.active{opacity:1;pointer-events:auto;transform:translateX(0) scale(1)}
.dw-survey-card.left{transform:translateX(-40px) scale(.99)}
.dw-survey-kicker{color:var(--brand-2);text-transform:uppercase;letter-spacing:.13em;font-size:10px;font-weight:800;margin-bottom:8px}
.dw-survey-card h1{margin:0 0 12px!important;font-size:clamp(24px,2.6vw,36px)!important;line-height:1.08!important;letter-spacing:-.035em!important;max-width:760px!important;color:#fff!important;font-weight:750!important}
.dw-survey-sub{margin:0 0 14px!important;max-width:720px;font-size:14px!important;color:var(--muted)!important;line-height:1.5!important}
.dw-survey-sub-tight{margin-top:-4px!important}
.dw-survey-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:4px}
.dw-survey-field label{display:block;font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#c5c5c5;margin-bottom:7px}
.dw-survey-field input,.dw-survey-field textarea{width:100%!important;background:#373737!important;border:1px solid rgba(255,255,255,.10)!important;color:#fff!important;border-radius:12px!important;padding:11px 13px!important;font-size:14px!important;outline:none!important;box-shadow:none!important;min-height:42px}
.dw-survey-field input:focus,.dw-survey-field textarea:focus{border-color:var(--brand)!important}
.dw-survey-field textarea{min-height:110px;resize:vertical}
.dw-survey-options,.dw-survey-multiselect,.dw-survey-rating{display:grid;gap:7px}
.dw-survey-choice{width:100%;border:1px solid rgba(255,255,255,.10)!important;background:#373737!important;color:#fff!important;border-radius:12px!important;min-height:42px;padding:9px 12px;display:flex;align-items:center;gap:11px;font-size:14px!important;font-weight:650!important;text-align:left;cursor:pointer;transition:all .15s ease;box-shadow:none!important}
.dw-survey-choice:hover{border-color:rgba(216,90,42,.7)!important;background:#3b3b3b!important}
.dw-survey-icon{width:20px;height:20px;border-radius:6px;border:1.5px solid #8a8a8a;display:flex;align-items:center;justify-content:center;font-size:12px;color:transparent;flex:0 0 auto;transition:all .15s ease}
.dw-survey-multiselect .dw-survey-icon{border-radius:50%}
.dw-survey-choice.selected{background:rgba(216,90,42,.13)!important;border-color:var(--brand)!important}
.dw-survey-choice.selected .dw-survey-icon{background:var(--brand);border-color:var(--brand);color:#fff}
.dw-survey-hint{margin-top:6px;font-size:11px;color:var(--muted-2)}
.dw-survey-rating{grid-template-columns:repeat(5,minmax(0,1fr));margin-top:4px;gap:8px}
.dw-survey-rate{border:1px solid rgba(255,255,255,.10)!important;background:#373737!important;color:#fff!important;border-radius:12px!important;min-height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:12px!important;font-weight:650!important;cursor:pointer;transition:all .15s ease;box-shadow:none!important;padding:8px 5px!important}
.dw-survey-rate:hover{border-color:rgba(216,90,42,.7)!important;background:#3b3b3b!important}
.dw-survey-rate-number{font-size:22px;line-height:1;font-weight:800}
.dw-survey-rate.selected{background:rgba(216,90,42,.14)!important;border-color:var(--brand)!important}
.dw-survey-secondary-question{font-size:clamp(20px,2vw,28px)!important;margin-top:16px!important}
.dw-survey-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px}
.dw-survey-actions-center{justify-content:center}
.dw-survey-btn{border:0!important;border-radius:999px!important;padding:10px 17px!important;font-size:13px!important;font-weight:800!important;cursor:pointer;transition:all .15s ease;text-decoration:none!important;line-height:1.2!important;box-shadow:none!important;min-height:38px}
.dw-survey-btn:hover{transform:translateY(-1px)}
.dw-survey-btn-secondary{background:transparent!important;color:#cfcfcf!important;border:1px solid rgba(255,255,255,.14)!important}
.dw-survey-btn-secondary:hover{color:#fff!important;border-color:#666!important}
.dw-survey-btn-primary{background:var(--brand)!important;color:#fff!important}
.dw-survey-btn-primary:hover{filter:brightness(1.05)}
.dw-survey-btn[disabled]{opacity:.42;cursor:not-allowed;transform:none}
.dw-survey-error{margin-top:10px;padding:9px 11px;border:1px solid rgba(255,90,90,.32);background:rgba(255,90,90,.07);border-radius:10px;color:#ffb3b3;font-size:12px}
.dw-survey-thanks{align-items:center;text-align:center}.dw-survey-check{width:58px;height:58px;border-radius:50%;background:var(--ok);display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:800;margin:0 auto 15px;box-shadow:0 0 0 8px rgba(68,193,122,.10)}
.dw-survey-thanks h1{margin-left:auto!important;margin-right:auto!important;max-width:650px!important}.dw-survey-thanks .dw-survey-sub{margin-left:auto!important;margin-right:auto!important}
.dw-survey-card[data-step="5"]{padding-top:18px;padding-bottom:18px}.dw-survey-card[data-step="5"] .dw-survey-kicker{margin-bottom:6px}.dw-survey-card[data-step="5"] h1{font-size:clamp(22px,2.2vw,31px)!important;margin-bottom:7px!important}.dw-survey-card[data-step="5"] .dw-survey-sub{margin-bottom:8px!important}.dw-survey-card[data-step="5"] .dw-survey-multiselect{gap:5px}.dw-survey-card[data-step="5"] .dw-survey-choice{min-height:38px;padding:7px 10px}.dw-survey-card[data-step="5"] .dw-survey-actions{margin-top:9px}

/* Full-width appearance without forcing the shortcode beyond its WP container. */
html:has(.dw-survey-app),body:has(.dw-survey-app){overflow-x:hidden!important}
.dw-survey-app{contain:layout paint style}
.dw-survey-viewport-bg{position:absolute;left:0;right:0;width:auto;pointer-events:none;background:#f5f6f7;z-index:0}
body:has(.dw-survey-app){position:relative}

/* Kill spacing added by WPBakery/theme around the survey area. */
body:has(.dw-survey-app) .entry-content:has(.dw-survey-app),
body:has(.dw-survey-app) .page-content:has(.dw-survey-app),
body:has(.dw-survey-app) .content-area:has(.dw-survey-app),
body:has(.dw-survey-app) .site-main:has(.dw-survey-app),
body:has(.dw-survey-app) .vc_row:has(.dw-survey-app),
body:has(.dw-survey-app) .vc_column_container:has(.dw-survey-app),
body:has(.dw-survey-app) .vc_column-inner:has(.dw-survey-app),
body:has(.dw-survey-app) .wpb_wrapper:has(.dw-survey-app),
body:has(.dw-survey-app) .wpb_content_element:has(.dw-survey-app){margin-top:0!important;margin-bottom:0!important;padding-top:0!important;padding-bottom:0!important}
body:has(.dw-survey-app) .wpb_content_element:has(.dw-survey-app){margin-bottom:0!important}

/* Let the viewport-wide survey background show through WP/theme wrappers. */
body:has(.dw-survey-app) .entry-content:has(.dw-survey-app),
body:has(.dw-survey-app) .page-content:has(.dw-survey-app),
body:has(.dw-survey-app) .content-area:has(.dw-survey-app),
body:has(.dw-survey-app) .site-main:has(.dw-survey-app),
body:has(.dw-survey-app) .vc_row:has(.dw-survey-app),
body:has(.dw-survey-app) .vc_column_container:has(.dw-survey-app),
body:has(.dw-survey-app) .vc_column-inner:has(.dw-survey-app),
body:has(.dw-survey-app) .wpb_wrapper:has(.dw-survey-app),
body:has(.dw-survey-app) .wpb_content_element:has(.dw-survey-app){
  background:transparent!important;
}

@media(max-width:860px){
  .dw-survey-app{min-height:560px;height:var(--dw-app-height,calc(100svh - 90px))}
  .dw-survey-topbar{padding:10px 14px;gap:10px;min-height:58px}
  .dw-survey-progress-area{min-width:130px;width:42%;max-width:180px}.dw-survey-progress-label{font-size:10px;min-width:34px}
  .dw-survey-stage{padding:10px}
  .dw-survey-card{width:calc(100% - 20px);max-height:calc(var(--dw-app-height,100svh) - 94px);padding:20px 16px;border-radius:15px;justify-content:flex-start}
  .dw-survey-card h1{font-size:clamp(23px,7vw,32px)!important;margin-bottom:10px!important}
  .dw-survey-sub{font-size:13px!important;line-height:1.45!important;margin-bottom:12px!important}
  .dw-survey-grid-2{grid-template-columns:1fr;gap:9px}
  .dw-survey-choice{font-size:13px!important;min-height:40px;padding:8px 10px;border-radius:10px!important}
  .dw-survey-icon{width:18px;height:18px}
  .dw-survey-rating{gap:5px}.dw-survey-rate{min-height:58px;border-radius:10px!important;font-size:10px!important}.dw-survey-rate-number{font-size:20px}
  .dw-survey-actions{margin-top:12px}.dw-survey-btn{padding:9px 14px!important;font-size:12px!important}
  .dw-survey-card[data-step="5"]{padding:14px 14px}.dw-survey-card[data-step="5"] h1{font-size:22px!important}.dw-survey-card[data-step="5"] .dw-survey-choice{min-height:36px;padding:6px 9px}
}

@media(max-width:560px){
  .dw-survey-topbar{align-items:flex-start;flex-direction:column}
  .dw-survey-progress-area{width:100%;max-width:none;min-width:0}
  .dw-survey-app{min-height:620px}
  .dw-survey-card{max-height:calc(var(--dw-app-height,100svh) - 118px)}
  .dw-survey-rating{grid-template-columns:repeat(5,1fr)}
  .dw-survey-rate{min-height:54px;padding:6px 3px!important}
  .dw-survey-rate span:last-child{font-size:9px;line-height:1.1}
}

/* Survey page: remove any remaining theme spacing before the site footer. */
body:has(.dw-survey-app) main,
body:has(.dw-survey-app) #main,
body:has(.dw-survey-app) #content,
body:has(.dw-survey-app) .site-content,
body:has(.dw-survey-app) .content-wrapper,
body:has(.dw-survey-app) .main-content,
body:has(.dw-survey-app) .container:has(.dw-survey-app),
body:has(.dw-survey-app) .container-fluid:has(.dw-survey-app),
body:has(.dw-survey-app) .vc_row:has(.dw-survey-app),
body:has(.dw-survey-app) .vc_row-fluid:has(.dw-survey-app),
body:has(.dw-survey-app) .wpb_row:has(.dw-survey-app){
  padding-bottom:0!important;
  margin-bottom:0!important;
}
body:has(.dw-survey-app) footer,
body:has(.dw-survey-app) .site-footer,
body:has(.dw-survey-app) #footer{
  margin-top:0!important;
}


/* v3.3.7: hard mobile overflow guard. The survey must never widen the page. */
html.dw-survey-page,
body.dw-survey-page{
  width:100%!important;
  max-width:100%!important;
  overflow-x:hidden!important;
  overscroll-behavior-x:none;
}
@supports (overflow:clip){
  html.dw-survey-page,
  body.dw-survey-page{overflow-x:clip!important;}
}

.dw-survey-app,
.dw-survey-app .dw-survey-topbar,
.dw-survey-app .dw-survey-stage,
.dw-survey-app .dw-survey-card,
.dw-survey-app .dw-survey-grid-2,
.dw-survey-app .dw-survey-options,
.dw-survey-app .dw-survey-multiselect,
.dw-survey-app .dw-survey-rating,
.dw-survey-app .dw-survey-actions{
  min-width:0!important;
  max-width:100%!important;
}
.dw-survey-app{overflow-x:hidden!important;}
.dw-survey-stage{width:100%!important;overflow-x:hidden!important;}
.dw-survey-card{left:50%!important;right:auto!important;transform:translateX(calc(-50% + 40px)) scale(.99);}
.dw-survey-card.active{transform:translateX(-50%) scale(1)!important;}
.dw-survey-card.left{transform:translateX(calc(-50% - 40px)) scale(.99)!important;}
.dw-survey-choice,
.dw-survey-rate,
.dw-survey-btn,
.dw-survey-field,
.dw-survey-field input,
.dw-survey-field textarea{
  min-width:0!important;
  max-width:100%!important;
}
.dw-survey-choice,
.dw-survey-rate{overflow-wrap:anywhere;word-break:normal;}
.dw-survey-rating{grid-template-columns:repeat(5,minmax(0,1fr))!important;}
.dw-survey-rate span{min-width:0;max-width:100%;}

@media(max-width:560px){
  .dw-survey-app{width:100%!important;max-width:100%!important;}
  .dw-survey-topbar{width:100%!important;}
  .dw-survey-stage{padding-left:8px!important;padding-right:8px!important;}
  .dw-survey-card{
    width:calc(100% - 16px)!important;
    max-width:calc(100% - 16px)!important;
    padding-left:14px!important;
    padding-right:14px!important;
  }
  .dw-survey-rating{gap:4px!important;}
  .dw-survey-rate{padding:6px 2px!important;font-size:9px!important;}
  .dw-survey-rate-number{font-size:19px!important;}
  .dw-survey-actions{flex-wrap:wrap;}
}


/* v3.3.8 — SIMPLE CARD LAYOUT
   No fixed viewport height, no inner scrolling, no "window inside a window".
   The active survey card participates in normal document flow and the page itself scrolls. */
.dw-survey-app{
  height:auto!important;
  min-height:0!important;
  display:block!important;
  overflow:visible!important;
  contain:none!important;
  background:#f5f6f7!important;
  box-shadow:0 0 0 100vmax #f5f6f7;
  clip-path:inset(0 -100vmax);
}
.dw-survey-stage{
  display:block!important;
  position:relative!important;
  overflow:visible!important;
  min-height:0!important;
  padding:28px 20px 36px!important;
}
.dw-survey-card{
  position:static!important;
  left:auto!important;
  right:auto!important;
  width:min(760px,100%)!important;
  max-width:760px!important;
  max-height:none!important;
  height:auto!important;
  margin:0 auto!important;
  overflow:visible!important;
  display:none!important;
  opacity:1!important;
  pointer-events:auto!important;
  transform:none!important;
  transition:none!important;
  justify-content:flex-start!important;
}
.dw-survey-card.active{
  display:flex!important;
  transform:none!important;
}
.dw-survey-card.left{
  display:none!important;
  transform:none!important;
}
.dw-survey-viewport-bg{display:none!important;}

@media(max-width:860px){
  .dw-survey-app{height:auto!important;min-height:0!important;}
  .dw-survey-stage{padding:18px 12px 28px!important;overflow:visible!important;}
  .dw-survey-card{
    width:100%!important;
    max-width:760px!important;
    max-height:none!important;
    overflow:visible!important;
    padding:20px 16px!important;
  }
}

@media(max-width:560px){
  .dw-survey-topbar{padding:10px 12px!important;}
  .dw-survey-stage{padding:14px 10px 24px!important;}
  .dw-survey-card{
    width:100%!important;
    max-width:100%!important;
    max-height:none!important;
    overflow:visible!important;
    padding:18px 14px!important;
    border-radius:14px!important;
  }
  .dw-survey-rating{grid-template-columns:repeat(5,minmax(0,1fr))!important;}
}

/* v3.3.9 — WHITE PAGE + CARD CLOSER TO TOP */
.dw-survey-app{
  background:#ffffff!important;
  box-shadow:0 0 0 100vmax #ffffff!important;
}
.dw-survey-stage{
  padding-top:10px!important;
}
.dw-survey-topbar{
  background:#ffffff!important;
}

@media(max-width:860px){
  .dw-survey-stage{padding-top:8px!important;}
}

@media(max-width:560px){
  .dw-survey-stage{padding-top:6px!important;}
}
