/* ==========================================================================
   R&A Waste Clearance — site styles
   Loaded on every page after style.css (the original template stylesheet).
   Put every site-specific change here and leave style.css untouched, so the
   template can be compared or updated without losing our changes.

   1. Floating WhatsApp button (desktop)
   2. Enquiry forms
   3. Mobile contact bar (phones and tablets)
   ========================================================================== */


/* 1. Floating WhatsApp button (desktop)
   -------------------------------------------------------------------------- */
.whatsapp-bar {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 9999;
  display: flex;
  align-items: center;
  padding: 14px 22px;
  border-radius: 50px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.whatsapp-bar:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #20bf55, #01baef);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.whatsapp-bar:hover,
.whatsapp-bar:focus,
.whatsapp-bar:visited {
  color: #fff;
  text-decoration: none;
}

.whatsapp-icon {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.6));
}

.whatsapp-text {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  white-space: nowrap;
}


/* 2. Enquiry forms
   -------------------------------------------------------------------------- */

/* "Send by Email / Send by WhatsApp" choice (home and contact forms).
   The radio is hidden visually but stays keyboard-focusable. */
.radio-group {
  display: flex;
  gap: 1rem;
  margin-top: 10px;
}

.radio-option input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  opacity: 0;
}

.radio-option label {
  top: 8px;
  left: 3px;
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #ddd;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + label {
  border-color: #007bff;
  background-color: #007bff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
  color: #fff;
}

.radio-option input[type="radio"]:focus-visible + label {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}


/* 3. Mobile contact bar (phones and tablets)
   Shown below 992px, where the header phone number is hidden. It replaces the
   floating WhatsApp button on small screens so the two never overlap.
   -------------------------------------------------------------------------- */
.mobile-contact-bar {
  display: none;
}

@media (max-width: 991.98px) {
  .mobile-contact-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 998;
    display: flex;
    gap: 6px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
  }

  .mobile-contact-bar .mcb-btn {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border-radius: 8px;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
  }

  .mobile-contact-bar .mcb-btn:hover,
  .mobile-contact-bar .mcb-btn:focus,
  .mobile-contact-bar .mcb-btn:visited {
    color: #fff;
  }

  .mobile-contact-bar .mcb-btn i {
    font-size: 17px;
  }

  .mobile-contact-bar .mcb-call {
    background: var(--theme-color, #109c3d);
  }

  .mobile-contact-bar .mcb-whatsapp {
    background: #0f7a6c;
  }

  .mobile-contact-bar .mcb-quote {
    background: var(--title-color, #063a41);
  }

  /* keep the end of the page clear of the bar */
  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }

  .whatsapp-bar {
    display: none !important;
  }
}

@media (max-width: 359px) {
  .mobile-contact-bar .mcb-btn {
    gap: 5px;
    font-size: 13px;
  }
}
