/* ===== Base tweaks ===== */
html {
  scroll-behavior: smooth;
}

body {
  padding-bottom: 0;
}

@media (max-width: 1023px) {
  body {
    padding-bottom: 72px; /* room for sticky mobile CTA */
  }
}

/* ===== Insurance logo carousel (infinite scroll) ===== */
.insurance-carousel-wrapper {
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.insurance-carousel {
  animation: scroll-carousel 30s linear infinite;
}

.insurance-carousel:hover {
  animation-play-state: paused;
}

@keyframes scroll-carousel {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== FAQ accordion ===== */
.faq-question[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
}

/* ===== Review card (Google-style) ===== */
.review-card {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 0.5rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-family: Arial, Roboto, sans-serif;
  box-shadow: 0 1px 2px 0 rgba(60,64,67,0.1), 0 1px 3px 1px rgba(60,64,67,0.08);
  transition: box-shadow 0.2s ease;
}

.review-card:hover {
  box-shadow: 0 1px 3px 0 rgba(60,64,67,0.15), 0 4px 8px 3px rgba(60,64,67,0.1);
}

.review-card .review-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.review-card .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #4285F4;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.review-card .reviewer-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: #202124;
  line-height: 1.2;
}

.review-card .review-date {
  font-size: 0.72rem;
  color: #70757a;
}

.review-card .stars {
  color: #FBBC04;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.review-card .google-badge {
  margin-left: auto;
}

.review-card .review-text {
  font-size: 0.85rem;
  color: #3c4043;
  line-height: 1.5;
}

/* ===== Before / After Slider ===== */
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 0.75rem;
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
  background: #eee;
}

.ba-slider-img-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ba-slider-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.ba-before {
  z-index: 1;
}

.ba-after {
  z-index: 2;
  width: 50%; /* controlled by JS (0-100%) */
}

.ba-after img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--ba-slider-width, 100%);
  max-width: none;
  object-fit: cover;
}

.ba-badge {
  position: absolute;
  top: 1rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: #FF6A1A;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  z-index: 3;
}

.ba-badge-before {
  left: 1rem;
}

.ba-badge-after {
  right: 1rem;
}

.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #fff;
  transform: translateX(-50%);
  z-index: 4;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
  cursor: ew-resize;
}

.ba-handle-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: #FF6A1A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* ===== Loading state for form button ===== */
.btn-loading {
  opacity: 0.7;
  pointer-events: none;
}
