/* ==========================================================================
   FOOTER STYLES (CLEANED, OPTIMIZED, 2-COLUMN STEP 2 & MOBILE UX FIXES)
   ========================================================================== */

#footer-wrapper * { box-sizing: border-box; }

/* Footer belongs outside page-width containers and uses the available width. */
#footer-wrapper {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  box-sizing: border-box;
}
#footer-wrapper .footer-contact-section,
#footer-wrapper .site-footer {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.footer-contact-section.footer-quote-band .footer-container {
  width: min(100%, 1080px);
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}


/* --- 1. QUOTE BAND (HERO-STYLE FOOTER FORM) --- */
.footer-contact-section.footer-quote-band { padding: 74px 0; background: #247537; border-top: 0; color: #ffffff; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; }
.footer-quote-band .quote-band { max-width: 1080px; margin: 0 auto; text-align: center; }
.footer-quote-band .quote-title { margin: 0 0 10px 0; font-size: 48px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.footer-quote-band .quote-accent { font-weight: 600; }
.footer-quote-band .quote-subtitle { margin: 0 auto 28px auto; max-width: 820px; font-size: 18px; line-height: 1.55; color: rgba(255,255,255,0.9); }
.footer-quote-band .quote-form { display: block; width: 100%; }
.footer-quote-band .quote-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 220px; gap: 16px; align-items: end; width: 100%; margin: 0 auto; }
.footer-quote-band .quote-input, .footer-quote-band .quote-textarea { width: 100%; height: 56px; padding: 0 16px; border-radius: 8px; border: 1px solid rgba(15, 23, 42, 0.18); background: rgba(255,255,255,0.98); color: #0f172a; font-size: 16px; outline: none; transition: box-shadow 0.15s, border-color 0.15s; }
.footer-quote-band .quote-textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; }
.footer-quote-band .quote-input:focus, .footer-quote-band .quote-textarea:focus { border-color: rgba(255,255,255,0.6); box-shadow: 0 0 0 4px rgba(255,255,255,0.18); }
.footer-quote-band .quote-btn { height: 56px; border: 0; border-radius: 8px; background: #f97316; color: #0f172a; font-weight: 600; font-size: 16px; letter-spacing: 0.02em; cursor: pointer; box-shadow: 0 10px 24px rgba(0,0,0,0.18); transition: transform 0.12s, filter 0.12s; }
.footer-quote-band .quote-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.footer-quote-band .quote-btn:focus-visible, .dw-sticky-quote-bar .quote-btn:focus-visible { outline: 3px solid #0f172a; outline-offset: 3px; box-shadow: 0 0 0 6px #fff; }
.footer-quote-band .quote-meta { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.footer-quote-band .quote-secure { display: inline-flex; gap: 8px; align-items: center; color: rgba(255,255,255,0.92); font-weight: 600; }
.footer-quote-band .form-status { margin-top: 12px; min-height: 22px; font-size: 14px; color: rgba(255,255,255,0.95); text-align: center; }
.footer-quote-band .form-status.error { color: #fee2e2; }


/* Persistent field names remain visible after typing. */
.quote-form .quote-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; text-align: left; }
.quote-form .quote-field > label { display: block; color: #fff; font-size: 14px; line-height: 1.25; font-weight: 700; }
.quote-form .quote-field--message { flex: 1; }
.dw-sticky-quote-bar .quote-field { gap: 0; background: #fff; border-radius: 8px; }
.dw-sticky-quote-bar .quote-field > label { color: #334155; padding: 5px 16px 0; font-size: 12px; line-height: 14px; }
.dw-sticky-quote-bar .quote-field > .quote-input { border-radius: 0 0 8px 8px; border-top: 0; height: 35px !important; min-height: 35px !important; }
.dw-sticky-quote-bar .form-status.error { display: block !important; max-width: 1200px; margin: 8px auto 0; padding: 6px 10px; border-radius: 6px; background: #fff; color: #991b1b; font-size: 14px; }
.quote-form .dw-invalid { border-color: #b91c1c !important; box-shadow: 0 0 0 2px #b91c1c !important; }
.dw-upload:focus-within .dw-upload-box, .dw-modal-upload:focus-within .dw-upload-box { outline: 3px solid #2563eb; outline-offset: 3px; }

/* --- 2. CONTACT SECTION & FILE UPLOAD (STEP 2) --- */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; }
.contact-field-full { grid-column: span 2; }
.dw-invalid { border-color: #dc2626 !important; box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15) !important; }
.dw-file-input { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; opacity: 0 !important; }

.dw-step2-head { margin-top: 20px; text-align: center; }
.dw-step2-title { font-size: 24px; font-weight: 900; color: #fff; line-height: 1.2; }
.dw-step2-sub { margin-top: 8px; font-size: 15px; color: rgba(255,255,255,0.9); }
.dw-step2-layout { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.dw-step2-text-fields { display: flex; flex-direction: column; gap: 16px; }
.dw-step2-text-fields .quote-textarea { flex-grow: 1; min-height: 120px; }

.quote-upload, .dw-upload { display: flex; flex-direction: column; height: 100%; }
.dw-upload-box { flex-grow: 1; border: 2px dashed rgba(15, 23, 42, 0.28); border-radius: 12px; padding: 24px; background: rgba(255,255,255,0.98); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer; user-select: none; text-align: center; transition: all 0.2s; }
.dw-upload-box:hover { border-color: #f97316; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.dw-upload-left { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dw-upload-icon { font-size: 32px; line-height: 1; }
.dw-upload-text { font-weight: 600; color: #0f172a; font-size: 16px; }
.dw-upload-right { color: #64748b; font-weight: 600; font-size: 13px; }
.dw-preview { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
.dw-preview img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; border: 1px solid #e2e8f0; pointer-events: none; }
.dw-step2-actions { margin: 30px auto 0; display: grid; grid-template-columns: minmax(180px, 0.85fr) minmax(260px, 1.15fr); gap: 22px; align-items: stretch; justify-content: center; width: min(720px, 100%); }
.dw-step2-actions .quote-btn { width: 100%; height: 70px; min-height: 70px; padding: 0 28px; border-radius: 14px; font-size: 22px; font-weight: 750; letter-spacing: 0.01em; }
.footer-quote-band .quote-btn-ghost, .dw-sticky-quote-bar .quote-btn-ghost { background: transparent !important; border: 2px solid rgba(255,255,255,0.45) !important; color: #fff !important; box-shadow: none !important; transition: 0.2s; }
.footer-quote-band .quote-btn-ghost:hover, .dw-sticky-quote-bar .quote-btn-ghost:hover { background: rgba(0,0,0,0.12) !important; color: #fff !important; }

/* --- 3. DARK FOOTER SECTION --- */
.site-footer { background: #020617; color: #e5e7eb; padding: 60px 0 30px 0; border-top: 1px solid rgba(148,163,184,0.15); font-size: 14px; width: 100%; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: 1.45fr 1fr 1.25fr 1fr; gap: 34px; margin-bottom: 40px; box-sizing: border-box; }
.footer-title { font-size: 16px; font-weight: 600; margin: 0 0 20px 0; color: #f9fafb; text-transform: uppercase; }
.footer-list { list-style: none; padding: 0; margin: 0; line-height: 1.8; }
.footer-list a { color: #94a3b8; text-decoration: none; transition: 0.2s; display: inline-block; }
.footer-social { display: flex; gap: 16px; margin-top: 24px; }
.footer-social img { width: 28px; height: 28px; opacity: 0.8; }

/* --- 4. STICKY QUOTE BAR --- */
.dw-sticky-quote-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99998; background: rgba(47, 143, 69, 0.40) !important; backdrop-filter: blur(14px) !important; -webkit-backdrop-filter: blur(14px) !important; border-top: 1px solid rgba(255,255,255,0.12); padding: 8px 16px !important; box-shadow: 0 -10px 26px rgba(0,0,0,0.16) !important; transform: translateY(0); opacity: 1; transition: none; }
.dw-sticky-quote-bar[data-dock-ready="true"] { transition: transform 0.22s ease, opacity 0.22s ease; }
.dw-sticky-quote-bar[hidden] { display: none !important; }
.dw-sticky-quote-bar.is-hidden { transform: translateY(120%); opacity: 0; pointer-events: none; }
.dw-sticky-quote-bar .quote-row { max-width: 1200px; margin: 0 auto !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 220px; gap: 16px; align-items: end; }
.dw-sticky-quote-bar .quote-input, .dw-sticky-quote-bar .quote-btn { height: 42px !important; min-height: 42px !important; width: 100%; border-radius: 8px; font-size: 16px; }
.dw-sticky-quote-bar .quote-input { padding: 0 16px; border: 1px solid rgba(15, 23, 42, 0.18); background: rgba(255,255,255,0.98); color: #0f172a; outline: none; }
.dw-sticky-quote-bar .quote-btn { border: 0; background: #f97316; color: #0f172a; font-weight: 600; cursor: pointer; transition: transform 0.12s, filter 0.12s; }
.dw-sticky-quote-bar .dw-step[data-step="2"], .dw-sticky-quote-bar .dw-sticky-phone, .dw-sticky-quote-bar .form-status, .dw-sticky-quote-bar .quote-meta { display: none !important; }

/* --- 5. FLOATING BUTTONS (CALL & WHATSAPP) --- */
.floating-call-btn { position: fixed !important; z-index: 2147483647 !important; background: #22c55e !important; color: white !important; padding: 14px 28px !important; border-radius: 99px; display: flex !important; align-items: center; justify-content: center; gap: 10px; text-decoration: none !important; box-shadow: 0 10px 30px rgba(34, 197, 94, 0.5); animation: pulse-green-soft 2.2s infinite !important; transition: transform 0.2s, bottom 0.3s ease; box-sizing: border-box !important; max-width: calc(100vw - 32px) !important; }
.floating-call-btn span, .floating-call-btn span:last-child { font-size: 20px !important; font-weight: 600 !important; }
@keyframes pulse-green-soft { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.55); } 70% { box-shadow: 0 0 0 14px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

.wa-widget { position: fixed !important; z-index: 99999 !important; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; transition: bottom 0.3s ease; }
.wa-btn { width: 60px; height: 60px; background-color: #25D366; border-radius: 50%; box-shadow: 0 4px 12px rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: center; text-decoration: none; position: relative; }

/* Примусове знищення старих значків (шрифтів) з кешу для мобільних і десктопів */
.wa-btn::after, .wa-btn::before { display: none !important; content: none !important; }

.wa-icon { width: 32px; height: 32px; fill: white; }
.wa-badge { position: absolute; top: -3px; right: -3px; background-color: #ef4444; color: white; font-size: 13px; font-weight: 600; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transform: scale(0); opacity: 0; visibility: hidden; z-index: 10; border: 2px solid #ffffff; transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.wa-badge.show { transform: scale(1); opacity: 1; visibility: visible; }
.wa-popup { position: absolute; bottom: 75px; left: 0; width: 260px; background: white; padding: 16px; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.25), 0 5px 10px rgba(0,0,0,0.1); border: 1px solid #cbd5e1; opacity: 0; visibility: hidden; pointer-events: none; }
.wa-popup.show { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.wa-header { font-weight: 600; color: #0f172a; margin-bottom: 6px; font-size: 15px; display: block; }
.wa-text { font-size: 14px; color: #334155; line-height: 1.4; margin: 0; font-weight: 500; }
.wa-close { position: absolute; top: 8px; right: 8px; font-size: 14px; color: #94a3b8; cursor: pointer; padding: 4px; }


/* ==========================================================================
   MEDIA QUERIES (DESKTOP & MOBILE ADAPTATION)
   ========================================================================== */

/* --- DESKTOP POSITIONING --- */
@media (min-width: 1024px) {
  /* The quote bar is fixed and hides before the footer; do not resize the document when it toggles. */
  body { padding-bottom: 0 !important; }
  .floating-call-btn { bottom: 20px !important; right: 24px !important; }
  .wa-widget { bottom: 20px !important; left: 24px !important; }
  
  /* Підняття кнопок, коли з'являється липка панель */
  .dw-sticky-quote-bar:not(.is-hidden) + .floating-call-btn { bottom: calc(var(--dw-sticky-bar-space, 0px) + 20px) !important; }
  .dw-sticky-quote-bar:not(.is-hidden) ~ .wa-widget { bottom: calc(var(--dw-sticky-bar-space, 0px) + 20px) !important; }
}

/* --- TABLET / SMALL DESKTOP FIXES --- */
@media (max-width: 980px) {
  .footer-quote-band .quote-row { grid-template-columns: 1fr 1fr; }
  .footer-quote-band .quote-btn { grid-column: span 2; width: 100%; }
}

/* --- MOBILE LAYOUT & FLOATING BUTTONS OVERRIDES --- */
@media (max-width: 1023px) {
  .dw-sticky-quote-bar { display: none !important; }

  /* Reserve space for the single-row mobile contact dock at the end of every page. */
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important; }

  .footer-inner { display: flex !important; flex-wrap: wrap !important; gap: 30px 0 !important; }
  .footer-inner > .footer-col:first-child { width: 100% !important; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 24px; }
  .footer-inner > .footer-col:nth-child(n+2) { width: 50% !important; }
  .site-footer { padding-bottom: 92px !important; }

  .footer-social { justify-content: center !important; gap: 24px !important; margin-top: 28px !important; }
  .footer-social img { width: 38px !important; height: 38px !important; opacity: 1 !important; }

  /* Phone and WhatsApp share one compact row instead of covering two content rows. */
  .floating-call-btn {
    left: 12px !important;
    right: 76px !important;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 14px !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    border-radius: 999px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.34) !important;
    animation: none !important;
    transition: none !important;
  }
  .floating-call-btn span,
  .floating-call-btn span:last-child {
    min-width: 0 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    color: #ffffff !important;
  }
  .floating-call-btn span:first-child {
    flex: 0 0 auto !important;
    font-size: 20px !important;
    animation: none !important;
    transform: none !important;
  }

  .wa-widget {
    right: 12px !important;
    left: auto !important;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .wa-btn { box-shadow: 0 6px 18px rgba(15,23,42,0.24); }
  .wa-popup { display: none !important; }
}

@media (max-width: 359px) {
  .floating-call-btn { right: 70px !important; padding-inline: 10px !important; }
  .floating-call-btn span,
  .floating-call-btn span:last-child { font-size: 14.5px !important; }
}

@keyframes phone-vibrate {
  0%, 20%, 100% { transform: rotate(0deg); }
  4%, 12% { transform: rotate(-15deg) scale(1.1); }
  8%, 16% { transform: rotate(15deg) scale(1.1); }
}

/* --- MOBILE STEP 2 FORM LAYOUT --- */
@media (max-width: 768px) {
  .dw-step2-title { font-size: 20px; line-height: 1.3; }
  .dw-step2-sub { font-size: 14px; margin-top: 6px; margin-bottom: 10px; }
  .dw-step2-layout { display: flex; flex-direction: column; gap: 20px; margin-top: 16px; }
  .dw-step2-text-fields { gap: 12px; }
  .dw-step2-text-fields .quote-textarea { min-height: 90px; }
  
  .dw-upload-box { padding: 24px 16px; flex-direction: column; text-align: center; gap: 12px; }
  .dw-upload-left { flex-direction: column; gap: 8px; }
  .dw-upload-icon { font-size: 28px; }
  .dw-upload-text { font-size: 16px; }
  .dw-upload-right { font-size: 12px; line-height: 1.4; }

  .dw-step2-actions { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 24px; width: 100%; }
  .dw-step2-actions .quote-btn { width: 100%; min-height: 62px; height: 62px; margin: 0; font-size: 18px; }
  .dw-step2-actions .quote-btn[type="submit"] { order: 1; }
  .dw-step2-actions .quote-btn-ghost { order: 2; }
}

/* --- TINY MOBILE FIXES --- */
@media (max-width: 520px) {
  .footer-contact-section.footer-quote-band { padding-left: 0 !important; padding-right: 0 !important; }
  .footer-contact-section.footer-quote-band .footer-container { padding-left: 16px; padding-right: 16px; }
  .footer-quote-band .quote-title { font-size: 30px; }
  .footer-quote-band .quote-row { grid-template-columns: 1fr; width: 100%; max-width: 100%; }
  .footer-quote-band .quote-input,
  .footer-quote-band .quote-textarea,
  .footer-quote-band .quote-btn { width: 100%; max-width: 100%; box-sizing: border-box; }
  .footer-quote-band .quote-btn { grid-column: auto; }
}

/* --- GOOGLE BUSINESS PROFILE TRUST STRIP --- */
.quote-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin: 14px auto 22px;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
}
.quote-trust__rating {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.quote-trust__dot {
  color: #fff;
}
.quote-trust a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.quote-trust a:hover {
  text-decoration-thickness: 2px;
}
.quote-trust a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
  border-radius: 2px;
}
.footer-gbp-trust {
  margin-top: 14px;
}
.footer-gbp-trust a {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  color: #38bdf8;
  text-decoration: none;
  line-height: 1.35;
}
.footer-gbp-trust strong {
  color: #facc15;
  font-size: 14px;
}
.footer-gbp-trust span {
  color: #94a3b8;
  font-size: 12px;
}
.footer-gbp-trust a:hover strong,
.footer-gbp-trust a:hover span {
  text-decoration: underline;
}

@media (max-width: 520px) {
  .quote-trust {
    gap: 6px 8px;
    margin-top: 10px;
    margin-bottom: 18px;
    font-size: 13px;
  }
}


#dw-footer-form,
#dw-footer-form .dw-step,
#dw-footer-form .dw-quote-step,
#dw-footer-form .quote-row,
#dw-footer-form .dw-step2-layout,
#dw-footer-form .dw-step2-actions {
  scroll-margin-top: calc(var(--dw-header-offset-current, var(--dw-header-offset, 110px)) + 12px);
}


/* Footer quote handoff: one consolidated rule set for sticky -> footer form flow */
.dw-form-scroll-anchor {
  display: block;
  width: 100%;
  height: 1px;
  margin: 0;
  padding: 0;
  pointer-events: none;
  scroll-margin-top: calc(var(--dw-header-offset-current, var(--dw-header-offset, 110px)) + 8px);
}

#dw-footer-step2-anchor {
  margin-top: 4px;
}

#dw-footer-step2 {
  scroll-margin-top: calc(var(--dw-header-offset-current, var(--dw-header-offset, 110px)) + 34px);
}

#dw-footer-step2 .dw-step2-head {
  scroll-margin-top: calc(var(--dw-header-offset-current, var(--dw-header-offset, 110px)) + 34px);
}


html.dw-footer-quote-focus .dw-sticky-quote-bar {
  transform: translateY(120%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Quote CTAs should only hide the sticky quote bar. They must not resize the footer form area. */

.footer-quote-band .dw-step2-actions {
  width: min(920px, 100%);
  max-width: 920px;
  grid-template-columns: minmax(260px, 1fr) minmax(380px, 1.45fr);
  gap: 26px;
  margin-top: 34px;
}

.footer-quote-band .dw-step2-actions .quote-btn {
  width: 100%;
  min-height: 84px;
  height: 84px;
  border-radius: 16px;
  font-size: clamp(20px, 1.7vw, 25px);
  font-weight: 760;
}

.footer-quote-band .dw-step2-actions .quote-btn[type="submit"] {
  min-width: 380px;
}

@media (max-width: 760px) {
  .footer-quote-band .dw-step2-actions {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    gap: 14px;
  }

  .footer-quote-band .dw-step2-actions .quote-btn,
  .footer-quote-band .dw-step2-actions .quote-btn[type="submit"] {
    min-width: 0;
    width: 100%;
    min-height: 70px;
    height: 70px;
  }
}


.footer-quote-band #contact-form {
  scroll-margin-top: calc(var(--dw-header-offset-current, var(--dw-header-offset, 80px)) + 18px);
}
/* DoorWin WhatsApp filled green/white mark — 2026-07-25 */
.wa-widget {
  width: 60px !important;
  height: 60px !important;
}

.wa-widget .wa-popup,
.wa-widget .wa-badge {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.wa-widget .wa-btn {
  width: 60px !important;
  height: 60px !important;
  min-width: 60px !important;
  min-height: 60px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
  line-height: 0 !important;
  font-size: 0 !important;
  animation: none !important;
  transform: none !important;
  transition: transform .18s ease, filter .18s ease !important;
  -webkit-tap-highlight-color: transparent;
}

.wa-widget .wa-btn:hover,
.wa-widget .wa-btn:focus-visible {
  transform: translateY(-2px) scale(1.04) !important;
  filter: drop-shadow(0 8px 12px rgba(37, 211, 102, .30)) !important;
}

.wa-widget .wa-btn::before,
.wa-widget .wa-btn::after {
  display: none !important;
  content: none !important;
}

.wa-widget .wa-icon {
  width: 60px !important;
  height: 60px !important;
  display: block !important;
  flex: 0 0 60px !important;
  overflow: visible !important;
  filter: drop-shadow(0 6px 10px rgba(15, 23, 42, .20)) !important;
}

.wa-widget .wa-icon .wa-icon-bg {
  fill: #25D366 !important;
}

.wa-widget .wa-icon .wa-icon-glyph {
  fill: #ffffff !important;
}

@media (max-width: 1023px) {
  .wa-widget,
  .wa-widget .wa-btn {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
  }
  .wa-widget .wa-icon {
    width: 52px !important;
    height: 52px !important;
    flex-basis: 52px !important;
  }
}
/* End DoorWin WhatsApp filled green/white mark */

/* DoorWin multi-channel message widget - 2026-08-15 */
.wa-widget.contact-widget {
  width: 60px !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  overflow: visible !important;
  isolation: isolate;
}

.contact-widget__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.contact-widget__toggle {
  position: relative;
  z-index: 4;
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  background: linear-gradient(145deg, #2563eb 0%, #0f3f8f 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(15, 63, 143, .34), 0 2px 8px rgba(15, 23, 42, .18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.contact-widget__toggle:hover,
.contact-widget__toggle:focus-visible {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px rgba(15, 63, 143, .4), 0 3px 10px rgba(15, 23, 42, .2);
}

.contact-widget__toggle:focus-visible,
.contact-widget__action:focus-visible,
.contact-widget__desktop-whatsapp:focus-visible {
  outline: 3px solid rgba(59, 130, 246, .32) !important;
  outline-offset: 3px !important;
}

.contact-widget.is-open .contact-widget__toggle {
  background: linear-gradient(145deg, #172033 0%, #0f172a 100%);
}

.contact-widget__toggle-icon {
  width: 29px;
  height: 29px;
  display: block;
}

.contact-widget__toggle-icon--close { display: none; }
.contact-widget.is-open .contact-widget__toggle-icon--message { display: none; }
.contact-widget.is-open .contact-widget__toggle-icon--close { display: block; }

.contact-widget__actions[hidden] { display: none !important; }

.contact-widget__actions {
  position: absolute;
  left: 72px;
  bottom: 70px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-10px) scale(.97);
  transform-origin: left bottom;
  transition: opacity .18s ease, transform .18s ease, visibility .18s linear;
}

.contact-widget.is-open .contact-widget__actions {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.contact-widget__action {
  min-width: 136px;
  height: 48px;
  padding: 0 15px 0 9px;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 999px;
  background: rgba(255, 255, 255, .98);
  color: #0f172a !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .16);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  font-size: 15px;
  line-height: 1;
  font-weight: 750;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.contact-widget__action:hover {
  transform: translateX(3px);
  border-color: rgba(59, 130, 246, .3);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .2);
}

.contact-widget__action-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.contact-widget__action-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.contact-widget__action--whatsapp .contact-widget__action-icon { background: #25d366; }
.contact-widget__action--sms .contact-widget__action-icon { background: #2563eb; }
.contact-widget__action--email .contact-widget__action-icon { background: #f97316; }

.contact-widget__desktop-whatsapp {
  position: relative !important;
  z-index: 4 !important;
  order: 2;
}

.contact-widget__toggle { order: 1; }

@media (min-width: 1024px) {
  .contact-widget__action--whatsapp { display: none !important; }
  .contact-widget__desktop-whatsapp { display: inline-flex !important; }
}

@media (max-width: 1023px) {
  .wa-widget.contact-widget {
    width: 52px !important;
    height: 52px !important;
    display: block !important;
    gap: 0 !important;
  }

  .contact-widget__toggle {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    border-width: 1px;
    box-shadow: 0 7px 20px rgba(15, 63, 143, .36), 0 2px 8px rgba(15, 23, 42, .2);
  }

  .contact-widget__toggle-icon {
    width: 27px;
    height: 27px;
  }

  .contact-widget__desktop-whatsapp { display: none !important; }

  .contact-widget__actions {
    right: 0;
    left: auto;
    bottom: 64px;
    align-items: flex-end;
    gap: 8px;
    transform: translateY(10px) scale(.96);
    transform-origin: right bottom;
  }

  .contact-widget.is-open .contact-widget__actions {
    transform: translateY(0) scale(1);
  }

  .contact-widget__action {
    min-width: 148px;
    height: 48px;
    padding-right: 16px;
    background: rgba(255, 255, 255, .97);
  }

  .contact-widget__action:hover { transform: none; }
  .contact-widget__action--whatsapp { display: inline-flex !important; }
}

@media (prefers-reduced-motion: reduce) {
  .dw-sticky-quote-bar,
  .contact-widget__toggle,
  .contact-widget__actions,
  .contact-widget__action {
    transition: none !important;
  }
}
/* End DoorWin multi-channel message widget */

/* Specificity correction: the legacy .wa-widget .wa-btn rule must not show the desktop WhatsApp shortcut on mobile. */
@media (max-width: 1023px) {
  .wa-widget.contact-widget .contact-widget__desktop-whatsapp {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* The expanded mobile navigation has the viewport; the contact dock returns on close. */
@media (max-width: 768px) {
  html.nav-open .floating-call-btn,
  html.nav-open .wa-widget.contact-widget { visibility: hidden !important; pointer-events: none !important; }
}
body.modal-open .wa-widget.contact-widget { visibility: hidden !important; pointer-events: none !important; }
