/* Buttons */
.btn-accent { background-color: var(--bs-accent); color: var(--bs-white); border: 2px solid var(--bs-accent); font-weight: 600; padding: 12px 30px; text-transform: uppercase; letter-spacing: 1px; transition: transform 0.25s ease-out, background-color 0.25s ease-out, box-shadow 0.25s ease-out; }
.btn-accent:hover { background-color: var(--bs-white); color: var(--bs-accent); transform: translateY(-3px) scale(1.01) translateZ(0); }

/* Feature cards */
.feature-card { padding: 1.5rem; border-radius: 8px; background-color: var(--bs-white); box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.25s ease-out, box-shadow 0.25s ease-out; }
.feature-card:hover { transform: translateY(-3px) translateZ(0); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.feature-icon { font-size: 3rem; color: var(--bs-accent); transition: transform 0.25s ease-out, color 0.25s ease-out; }
.feature-card:hover .feature-icon { transform: scale(1.05) rotate(2deg) translateZ(0); color: var(--bs-dark); }

/* Testimonials (homepage) */
.testimonials-section { background-color: var(--bs-light); }
.testimonial-card { border: 0; background-color: var(--bs-white); border-left: 4px solid var(--bs-accent); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.testimonial-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.12) !important; }

/* Interactive Service Cards */
.service-card {
  position: relative;
  background: white;
  border-radius: 15px;
  padding: 2.5rem 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 1.5rem;
  will-change: transform, box-shadow;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02) translateZ(0);
  box-shadow: 0 20px 40px rgba(0, 123, 255, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--bs-accent), #0056b3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: transform 0.4s ease, background 0.4s ease;
  will-change: transform, background;
  transform: translateZ(0);
}

.service-icon i {
  font-size: 2rem;
  color: white;
  transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg) translateZ(0);
  background: linear-gradient(135deg, #0056b3, var(--bs-accent));
}

.service-card:hover .service-icon i {
  transform: scale(1.1);
}

.service-content h3 {
  color: var(--bs-dark);
  margin-bottom: 1rem;
  font-weight: 600;
  transition: color 0.3s ease;
  text-align: center;
}

.service-card:hover .service-content h3 {
  color: var(--bs-accent);
}

.service-content p {
  color: #6c757d;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  text-align: center;
}

.service-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.service-card:hover .service-details {
  max-height: 200px;
  opacity: 1;
}

.service-details ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.service-details ul li {
  padding: 0.25rem 0;
  color: #495057;
  position: relative;
  padding-left: 1.5rem;
}

.service-details ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--bs-accent);
  font-weight: bold;
}

.service-hover-effect {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.05), rgba(0, 86, 179, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: 15px;
}

.service-card:hover .service-hover-effect {
  opacity: 1;
}

/* Service Image Styles */
.service-img-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
  margin-bottom: 1.5rem;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-img {
  transform: scale(1.05) translateZ(0);
}

/* Adjust service card padding when image is present */
.service-card:has(.service-img-container) {
  padding: 0 0 2.5rem 0;
}

.service-card:has(.service-img-container) .service-icon {
  margin: -40px auto 1rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.service-card:has(.service-img-container) .service-content {
  padding: 0 2rem;
}

.service-card:has(.service-img-container) .service-details {
  padding: 0 2rem;
}

.btn-outline-accent {
  color: var(--bs-accent);
  border-color: var(--bs-accent);
  transition: all 0.3s ease;
}

.btn-outline-accent:hover {
  background-color: var(--bs-accent);
  color: white;
  transform: translateY(-2px);
}

/* Mobile-friendly interaction */
@media (max-width: 768px) {
  .service-card {
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
  }
  
  .service-icon i {
    font-size: 1.5rem;
  }
  
  /* Show details on mobile tap/focus */
  .service-card:focus .service-details,
  .service-card:active .service-details {
    max-height: 200px;
    opacity: 1;
  }
  
  .service-card:focus .service-icon,
  .service-card:active .service-icon {
    transform: scale(1.1) rotate(5deg) translateZ(0);
    background: linear-gradient(135deg, #0056b3, var(--bs-accent));
  }
  
  .service-card:focus .service-content h3,
  .service-card:active .service-content h3 {
    color: var(--bs-accent);
  }
  
  /* Ensure service cards are focusable on mobile */
  .service-card {
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }
  
  .service-card:focus {
    outline: 2px solid var(--bs-accent);
    outline-offset: 2px;
  }
}

/* Always show details on mobile to avoid hover issues */
@media (hover: none) {
  .service-details {
    max-height: none;
    opacity: 1;
    margin-top: 1rem;
  }
  
  .service-details ul {
    margin-bottom: 1rem;
  }
  
  .service-card:hover .service-details {
    max-height: none;
    opacity: 1;
  }
}

/* --- Floating Elements Stacking --- */

/* Z-Index Hierarchy:
  1060: Floating Bubble Overlay
  1055: Modals (Confirmation/Error)
  1040: Cookie Banner
  1030: Cookie Trigger Button
  1020: Back to Top Button
  1010: Floating Contact Trigger
*/

/* 1. Cookie Trigger Button */
#cookie-mini-btn {
  z-index: 1030;
  /* Positioning is handled by the library, we just need the z-index */
}

/* 2. Back to Top Button */
#backToTop.back-to-top { 
  position: fixed; 
  right: 2rem; 
  bottom: 2rem; /* Base position */
  background: linear-gradient(135deg, var(--bs-accent), #0056b3);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  border: none;
  box-shadow: 0 8px 25px rgba(0,123,255,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1020; /* Above contact trigger, below cookie trigger */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  user-select: none;
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  width: auto;
  height: auto;
  gap: 0.5rem;
}

#backToTop.back-to-top.with-cookie-button {
  bottom: 6.5rem; /* Move up to clear cookie button */
}

#backToTop.back-to-top i { 
  font-size: 1.2rem; 
  line-height: 1; 
}

#backToTop.back-to-top.show { 
  opacity: 1; 
  transform: scale(1); 
  pointer-events: auto; 
}

#backToTop.back-to-top:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(0,123,255,0.4);
}

/* 3. Floating Contact Trigger */
.floating-contact-trigger {
  position: fixed;
  bottom: 2rem; /* Base position */
  right: 2rem;
  background: linear-gradient(135deg, var(--bs-accent), #0056b3);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(0,123,255,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1010; /* Lowest priority floating button */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  user-select: none;
  border: none;
  outline: none;
  font-family: var(--font-primary);
  line-height: 1;
}

.floating-contact-trigger.with-back-to-top {
  bottom: 7.5rem; /* Desktop: move above back-to-top button */
}

.floating-contact-trigger.with-cookie-button {
  bottom: 6.5rem; /* Desktop: move above cookie button */
}

.floating-contact-trigger.with-back-to-top.with-cookie-button,
.floating-contact-trigger.with-back-to-top-and-cookie {
  bottom: 12rem; /* Desktop: move above both buttons */
}

/* --- Mobile Overrides for Floating Elements --- */
@media (max-width: 768px) { 
  #backToTop.back-to-top {
    right: 1rem;
    bottom: 1.5rem;
    padding: 0.8rem 1.2rem;
  }

  #backToTop.back-to-top.with-cookie-button {
    bottom: 5.5rem; /* Mobile: Adjust for cookie button */
  }

  .floating-contact-trigger {
    right: 1rem;
    bottom: 1.5rem;
    padding: 0.8rem 1.2rem;
  }

  .floating-contact-trigger.with-back-to-top {
    bottom: 6.5rem; /* Mobile: move above back-to-top */
  }

  .floating-contact-trigger.with-cookie-button {
    bottom: 5.5rem; /* Mobile: move above cookie button */
  }

    .floating-contact-trigger.with-back-to-top.with-cookie-button,
  .floating-contact-trigger.with-back-to-top-and-cookie {
    bottom: 10.5rem; /* Mobile: move above both */
  }
}

/* Cookie banner improvements */
#cookie-consent-banner {
  font-family: var(--font-primary);
}

#cookie-consent-banner .btn.btn-accent { 
  border: 2px solid var(--bs-accent); 
}

#cookie-mini-btn {
  font-family: var(--font-primary);
}

/* Mobile optimizations for cookie banner */
@media (max-width: 768px) {
  #cookie-consent-banner {
    animation: slideUpMobile 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  #cookie-consent-banner .d-flex.gap-2 {
    justify-content: stretch !important;
  }
  
  #cookie-consent-banner .btn {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  #cookie-mini-btn {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }
}

@keyframes slideUpMobile {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Skeleton Loading Styles */
@keyframes skeleton-loading {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-container {
  padding: 1rem;
}

.skeleton-card {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.skeleton-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

.skeleton-content {
  padding: 1rem;
}

.skeleton-title {
  height: 24px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 1rem;
  width: 80%;
}

.skeleton-line {
  height: 16px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.skeleton-line.short {
  width: 60%;
}

.skeleton-button {
  height: 40px;
  width: 120px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 6px;
  margin-top: 1rem;
}

.skeleton-button.large {
  width: 100%;
}

.skeleton-form-group {
  margin-bottom: 1rem;
}

.skeleton-label {
  height: 14px;
  width: 100px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.skeleton-input {
  height: 40px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 6px;
}

.skeleton-textarea {
  height: 80px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 6px;
}

.skeleton-testimonial {
  padding: 1rem;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background: #fff;
}

.skeleton-author {
  height: 14px;
  width: 80px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
  margin-top: 1rem;
}

.skeleton-image-placeholder {
  display: inline-block;
  vertical-align: top;
}

/* Custom Date Picker Styles */
.custom-date-picker-container {
  position: relative;
  display: block;
}

.custom-date-display {
  background: #fff;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 50px 12px 16px;
  font-size: 1rem;
  font-family: var(--font-primary);
  color: #495057;
  transition: all 0.3s ease;
  width: 100%;
  cursor: pointer;
  min-height: 48px;
}

.custom-date-display:focus {
  outline: none;
  border-color: var(--bs-accent);
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.custom-date-display:hover {
  border-color: #adb5bd;
}

.custom-date-picker-container .date-picker-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bs-accent);
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 1;
  transition: all 0.3s ease;
}

.custom-date-picker-container:hover .date-picker-icon {
  color: #157347;
  transform: translateY(-50%) scale(1.1);
}

/* Custom Calendar Popup */
.custom-calendar-popup {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid rgba(13, 191, 116, 0.18);
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(12, 39, 64, 0.15);
  z-index: 1000;
  margin-top: 10px;
  padding: 18px 22px;
  min-width: 280px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.calendar-nav-btn {
  background: none;
  border: none;
  color: var(--bs-accent);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.calendar-nav-btn:hover {
  background: rgba(25, 135, 84, 0.1);
  transform: scale(1.1);
}

.calendar-month-year {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1f2933;
}

.calendar-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.calendar-day-name {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6c757d;
  padding: 8px 4px;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day {
  background: none;
  border: none;
  padding: 10px 4px;
  text-align: center;
  cursor: pointer;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-day:hover:not(.disabled) {
  background: rgba(25, 135, 84, 0.1);
  transform: scale(1.05);
}

.calendar-day.other-month {
  color: #adb5bd;
}

.calendar-day.disabled {
  color: #dee2e6;
  cursor: not-allowed;
}

.calendar-day.available:not(.disabled):not(.selected) {
  background: rgba(13, 191, 116, 0.08);
  color: #0a3d2f;
  border: 1px solid transparent;
}

.calendar-day.available:not(.disabled):not(.selected):hover {
  border-color: rgba(13, 191, 116, 0.35);
}

.calendar-day.weekend {
  color: #c7ced6;
}

.calendar-day.today {
  background: rgba(25, 135, 84, 0.2);
  font-weight: 600;
  color: var(--bs-accent);
}

.calendar-day.selected {
  background: var(--bs-accent);
  color: #fff;
  font-weight: 600;
}

.calendar-day.selected:hover {
  background: #157347;
  transform: scale(1.05);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .custom-date-display {
    padding: 14px 50px 14px 16px;
    font-size: 16px; /* Prevents zoom on iOS */
    min-height: 52px;
  }
  
  .custom-date-picker-container .date-picker-icon {
    right: 18px;
    font-size: 1.4rem;
  }
  
  .custom-calendar-popup {
    left: -8px;
    right: -8px;
    padding: 20px;
    min-width: auto;
  }
  
  .calendar-day {
    min-height: 42px;
    font-size: 1rem;
  }
}

.floating-contact-trigger:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(0,123,255,0.4);
}

.floating-contact-trigger:focus-visible {
  outline: 3px solid rgba(255,255,255,0.85);
  outline-offset: 4px;
}

.floating-contact-trigger i {
  font-size: 1.2rem;
}

.floating-contact-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  z-index: 1090; /* Above sticky header (1080) */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 2rem;
  box-sizing: border-box;
}

.floating-contact-overlay.active {
  opacity: 1;
  visibility: visible;
}

.floating-contact-bubble {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  max-width: 600px;
  width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  transform: translate(100px, 100px) scale(0.8);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.3s ease-out;
}

.floating-contact-overlay.active .floating-contact-bubble {
  transform: translate(0, 0) scale(1);
  opacity: 1;
}

.bubble-header {
  background: linear-gradient(135deg, var(--bs-accent), #0056b3);
  color: white;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.bubble-header::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bubble-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.bubble-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  position: relative;
}

.bubble-close:hover {
  background: rgba(255,255,255,0.15);
  transform: scale(1.05);
}

.bubble-close:active {
  background: rgba(255,255,255,0.25);
  transform: scale(0.95);
}

.bubble-content {
  padding: 2rem;
  max-height: 70vh;
  overflow-y: auto;
}

.bubble-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(0,123,255,0.08) 0%, rgba(0,123,255,0.02) 100%);
}

.bubble-quick-actions .quick-actions-lead {
  margin: 0;
  font-weight: 600;
  color: var(--bs-accent);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.quick-actions-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.quick-actions-group .btn {
  flex: 1;
  min-width: 140px;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.quick-actions-group .quick-dismiss {
  flex: 0 0 auto;
  color: var(--bs-body-color);
  padding-left: 0;
  padding-right: 0;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.quick-actions-group .quick-dismiss:hover,
.quick-actions-group .quick-dismiss:focus-visible {
  color: var(--bs-accent);
  text-decoration: none;
}

.bubble-content::-webkit-scrollbar {
  width: 8px;
}

.bubble-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.bubble-content::-webkit-scrollbar-thumb {
  background: var(--bs-accent);
  border-radius: 4px;
}

.bubble-content::-webkit-scrollbar-thumb:hover {
  background: #157347;
}

.preferred-contact-selector {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(0.5rem, 1.5vw, 0.75rem);
  justify-content: space-between;
  align-items: center;
  margin: 1.5rem 0;
}

.contact-method-option {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
}

.contact-method-option input[type="radio"] {
  display: none;
}

.contact-method-label {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 0.85rem;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  min-height: 52px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.03);
}

.contact-method-label:hover {
  border-color: var(--bs-accent);
  box-shadow: 0 6px 18px rgba(0,123,255,0.15);
  transform: translateY(-2px);
}

.contact-method-option input[type="radio"]:checked + .contact-method-label {
  background: linear-gradient(135deg, var(--bs-accent), #0056b3);
  color: white;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,123,255,0.28);
}

.contact-method-label i {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--bs-accent);
  transition: color 0.3s ease, transform 0.3s ease;
}

.contact-method-option input[type="radio"]:checked + .contact-method-label i {
  color: white;
  transform: scale(1.05);
}

.contact-method-label span {
  font-size: clamp(0.8rem, 2.1vw, 0.94rem);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

/* Mobile optimizations for floating bubble */
@media (max-width: 768px) {
  .floating-contact-overlay {
    padding: clamp(0.5rem, 1vw, 1rem);
    padding-bottom: calc(clamp(0.5rem, 1vw, 1rem) + env(safe-area-inset-bottom));
    align-items: flex-end;
    justify-content: center;
    height: 100dvh; /* Use dynamic viewport height */
  }

  .floating-contact-trigger {
    bottom: 1rem;
    right: 1rem;
    padding: 0.65rem;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    justify-content: center;
  }

  .floating-contact-trigger i {
    font-size: 1.5rem;
  }

  .floating-contact-trigger span {
    display: none;
  }

  .bubble-quick-actions {
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
  }

  .quick-actions-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
  }

  .quick-actions-group .btn {
    min-width: 0;
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
  }

  .quick-actions-group .btn i {
    font-size: 1.15rem;
  }

  .quick-actions-group .quick-dismiss {
    width: auto;
    align-self: center;
    font-size: 0.85rem;
  }

  .quick-actions-group .quick-dismiss i {
    font-size: 1rem;
  }

  .floating-contact-bubble {
    width: 100%;
    max-width: 560px;
    max-height: calc(100dvh - clamp(1.5rem, 3vw, 2.5rem));
    border-radius: 22px 22px 0 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -12px 45px rgba(0,0,0,0.25);
    transform: translateY(40px);
  }

  .floating-contact-overlay.active .floating-contact-bubble {
    transform: translateY(0);
  }

  .bubble-header {
    padding: 1.25rem 1.5rem 1rem;
    border-radius: 22px 22px 0 0;
    flex-shrink: 0; /* Prevent header from shrinking */
  }

  .bubble-title {
    font-size: 1.35rem;
  }

  .bubble-close {
    width: 40px;
    height: 40px;
    padding: 0.35rem;
  }

  .bubble-content {
    padding: 1rem 1.35rem 1.75rem;
    overflow-y: auto; /* Allow content to scroll */
    flex-grow: 1; /* Allow content to fill available space */
    min-height: 0; /* Important for flex-grow in a scrollable context */
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom)); /* Add padding for home indicator */
  }

  .bubble-header::before {
    opacity: 1;
  }

  .floating-contact-bubble .form-label {
    font-size: 0.95rem;
  }

  .floating-contact-bubble .form-control {
    font-size: 0.95rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
  }
  
  .preferred-contact-selector {
    gap: 0.6rem;
    margin: 1.25rem 0;
  }

  .contact-method-label {
    padding: 0.82rem 0.75rem;
    gap: 0.55rem;
    min-height: 48px;
  }

  .contact-method-label i {
    font-size: clamp(1.1rem, 5vw, 1.35rem);
  }

  .contact-method-label span {
    font-size: clamp(0.78rem, 2.8vw, 0.9rem);
  }
}

@media (max-width: 480px) {
  .quick-actions-group {
    grid-template-columns: 1fr;
  }

  .preferred-contact-selector {
    gap: 0.45rem;
  }

  .contact-method-label {
    padding: 0.68rem 0.6rem;
    gap: 0.38rem;
    min-height: 46px;
  }

  .contact-method-label i {
    font-size: 1.18rem;
  }

  .contact-method-label span {
    font-size: 0.7rem;
  }
}

@media (max-width: 360px) {
  .preferred-contact-selector {
    gap: 0.35rem;
  }

  .contact-method-label {
    padding: 0.62rem 0.55rem;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-contact-trigger,
  .floating-contact-trigger:hover {
    transition: none;
    transform: none;
  }

  .floating-contact-bubble,
  .floating-contact-overlay {
    transition: none;
    transform: none !important;
  }
}

/* Modal styling - global */
.modal-backdrop {
  z-index: 1054; /* Below modal content, above other elements */
}

.modal-backdrop.show { 
  opacity: 0.55; 
  backdrop-filter: blur(2px);
}

.modal {
  z-index: 1055; /* Above backdrop */
}

#confirmationModal .modal-content,
#errorModal .modal-content {
  border-radius: 16px;
  border: 0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  overflow: hidden;
}

#confirmationModal .modal-header,
#errorModal .modal-header {
  background: linear-gradient(135deg, var(--bs-accent), #0056b3);
  color: #fff;
}

#confirmationModal .modal-title,
#errorModal .modal-title {
  font-weight: 700;
}

#confirmationModal .btn-close,
#errorModal .btn-close {
  filter: invert(1);
  opacity: 0.9;
}

#confirmationModal .btn-close:hover,
#errorModal .btn-close:hover {
  opacity: 1;
}

#confirmationModal .modal-body,
#errorModal .modal-body {
  padding: 1.25rem 1.5rem;
  line-height: 1.6;
}

#confirmationModal .modal-footer .btn-secondary,
#errorModal .modal-footer .btn-secondary {
  background-color: var(--bs-accent);
  border-color: var(--bs-accent);
  color: #fff;
  font-weight: 600;
}

#confirmationModal .modal-footer .btn-secondary:hover,
#errorModal .modal-footer .btn-secondary:hover {
  filter: brightness(0.95);
}

#confirmationModal .modal-footer .btn-secondary:focus,
#errorModal .modal-footer .btn-secondary:focus {
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

/* Performance opts */
.service-card, .feature-card, .btn-accent, .navbar-dark .nav-link, .language-toggle, .social-icon, .hero-overlay, .floating-contact-trigger, .floating-contact-bubble { will-change: transform; transform: translateZ(0); backface-visibility: hidden; }

/* Newsletter Signup Form */
.newsletter-signup {
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-signup h5 {
  color: var(--bs-light);
}

#newsletter-form .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

#newsletter-form .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

#newsletter-feedback.success {
  color: var(--bs-success);
}

#newsletter-feedback.error {
  color: var(--bs-danger);
}
