/* ==========================================================================
   Floating buttons + "Get a Quote" popup (floating-buttons.php)
   Included on every page. All styling lives here (no inline / in-page styles).
   ========================================================================== */

.icon-bar {
  position: fixed !important;
  left: 20px !important;
  bottom: 20px !important;
  top: auto !important;
  right: auto !important;
  transform: none !important;
  z-index: 999999 !important;
}
.icon-bar a,
.icon-bar button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 10px;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}
.icon-bar a:hover,
.icon-bar button:hover {
  transform: scale(1.08);
  color: #fff;
}
.icon-bar .whatsapp { background: #25D366; }
.icon-bar .call     { background: #0d6efd; }

/* Get a Quote button */
.icon-bar .quote-btn {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  animation: quotePulse 2s ease-in-out infinite;
}
.icon-bar .quote-btn:hover {
  animation: none;
  transform: scale(1.08);
}
@keyframes quotePulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,107,53,0.6); }
  50%  { box-shadow: 0 0 0 14px rgba(255,107,53,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,107,53,0); }
}

/* Tooltip */
.quote-tooltip {
  position: absolute;
  left: 62px;
  top: 50%;
  transform: translateY(-50%);
  background: #222;
  color: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  pointer-events: none;
  animation: tooltipBounce 1.5s ease-in-out infinite;
}
.quote-tooltip::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 6px 6px 0;
  border-style: solid;
  border-color: transparent #222 transparent transparent;
}
@keyframes tooltipBounce {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50%      { transform: translateY(-50%) translateX(6px); }
}

/* Quote Modal Overlay */
.quote-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.quote-modal-overlay.active {
  display: flex;
}
.quote-modal-box {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  position: relative;
  animation: modalSlideUp 0.3s ease-out;
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.quote-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #333;
  line-height: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.quote-modal-close:hover {
  background: #f0f0f0;
}
.quote-modal-box h3 {
  margin: 0 0 4px;
  font-size: 22px;
  color: #333;
}
.quote-modal-box .modal-subtitle {
  margin: 0 0 20px;
  color: #666;
  font-size: 14px;
}
.quote-modal-box .form-group {
  margin-bottom: 16px;
}
.quote-modal-box .input_title {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #333;
}
.quote-modal-box .form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.quote-modal-box .form-control:focus {
  border-color: #ff6b35;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}
.quote-modal-box select.form-control {
  padding: 10px 14px;
  appearance: auto;
}
.quote-modal-box textarea.form-control {
  min-height: 80px;
  resize: vertical;
}
.dz_quote_form_alert {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid #f5c6c6;
  border-radius: 8px;
  background: #fdecec;
  color: #b42318;
  font-size: 13px;
}
.dz_quote_form_alert--success {
  border-color: #bfe8d0;
  background: #e8f7ee;
  color: #177245;
}
.dz_quote_form_alert[hidden] {
  display: none;
}

/* ----- Honeypot: off-screen for bots, invisible to people --------------- */
.dz_quote_trap {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ----- CAPTCHA ---------------------------------------------------------- */
.dz_quote_captcha_row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.dz_quote_captcha_img_wrap {
  border: 1px solid #dde2ea;
  border-radius: 8px;
  overflow: hidden;
  background: #f4f6f9;
  line-height: 0;
  flex: 0 0 auto;
}
.dz_quote_captcha_img_wrap img {
  display: block;
  width: 160px;
  height: 52px;
}
.dz_quote_captcha_refresh {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid #dde2ea;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  color: #55606e;
  font-size: 16px;
  transition: background 0.2s, color 0.2s;
}
.dz_quote_captcha_refresh:hover,
.dz_quote_captcha_refresh:focus-visible {
  background: #f0f3f8;
  color: #3b5bdb;
}
.quote-modal-box .dz_quote_captcha_input {
  flex: 1 1 150px;
  width: auto;
  min-width: 140px;
  max-width: 220px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ----- Per-field validation feedback ------------------------------------ */
.dz_quote_field .dz_field_error {
  display: none;
  margin-top: 6px;
  color: #c62828;
  font-size: 12.5px;
  line-height: 1.35;
}
.dz_quote_field.has-error .dz_field_error {
  display: block;
}
.dz_quote_field.has-error .form-control {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}
.dz_quote_field.has-error .dz_quote_captcha_img_wrap {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}
.dz_quote_hint {
  display: block;
  margin-top: 5px;
  color: #8a94a6;
  font-size: 12px;
  line-height: 1.35;
}
.quote-modal-box button[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (max-width: 767px) {
  .quote-modal-overlay {
    padding: 14px;
  }
  .quote-modal-box {
    padding: 20px 16px;
    border-radius: 14px;
    max-width: 440px;
    max-height: 82vh;
  }
  .quote-modal-box h3 {
    font-size: 19px;
  }
  .quote-modal-box .modal-subtitle {
    margin-bottom: 14px;
    font-size: 13px;
  }
  .quote-modal-box .form-group {
    margin-bottom: 10px;
  }
  .quote-modal-box .input_title {
    margin-bottom: 4px;
    font-size: 13px;
  }
  .quote-modal-box .form-control {
    padding: 9px 12px;
  }
  .quote-modal-box textarea.form-control {
    min-height: 60px;
  }
  .quote-modal-box .row {
    --bs-gutter-x: 12px;
  }
  .quote-modal-box .dz_quote_captcha_input {
    max-width: 100%;
  }
}
