/*
================================================================================
INDEX.CSS - Streamline Dumpsters Ltd. Homepage
================================================================================

PURPOSE:
Styles specific to the homepage (index.html) of Streamline Dumpsters Ltd.
This file contains layout and styling for homepage-specific components
and sections that showcase the company's services.

SCOPE:
- Hero section with background image and overlay
- Customer reviews section layout
- Service "buy boxes" styling and layout
- Homepage-specific responsive breakpoints
- Call-to-action button customizations

DEPENDENCIES:
- base.css (must be loaded first)
- Hero background image: assets/img/hero-bg.jpg

COMPONENTS STYLED:
- .hero: Main hero section with background image and overlay
- .reviews: Customer testimonial display section
- .buy-boxes: Service purchase options layout

RESPONSIVE DESIGN:
- Mobile-first approach building on base.css
- Tablet and desktop hero section enhancements
- Responsive overlay and text positioning

MAINTENANCE NOTES:
- Update hero background image path if needed
- Modify service box layouts for new offerings
- Test homepage performance on mobile devices
================================================================================
*/

/* ============================================================================
   HERO SECTION - Full-width background with overlay and content
   ============================================================================ */

.hero {
  position: relative;
  height: 42vh;
  min-height: 300px;
  background-image: url('../assets/img/PlainCityDumpster14yd.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-overlay {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  background: var(--hero-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
}


.hero-content {
  max-width: 100%;
  width: 100%;
  padding: 1.5rem 2rem;
  text-align: left;
  color: var(--color-white);
}

.hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: bold;
  margin-bottom: 1.75rem;
  line-height: 1.3;
  color: white;
  white-space: normal;
}

.hero-content p {
  font-size: clamp(0.8rem, 1.8vw, 1rem);
  font-weight: 600;
  margin-bottom: 0;
  line-height: 1.6;
  color: white;
}

.hero-cta {
  position: absolute;
  top: 40px;
  left: var(--container-pad);
  z-index: 10;
  padding: 0.35rem 0.75rem;
}

/* Mobile styles */
@media (max-width: 768px) {
  .hero-overlay {
    width: 50%;
  }

  .hero-content {
    padding: 1rem;
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 1.9rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    white-space: normal;
  }

  .hero-content p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

/* Very small mobile */
@media (max-width: 325px) {
  .hero-overlay {
    width: 100%;
  }

  .hero-content {
    padding: 0.75rem;
  }

  .hero-content h1 {
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: 1.25rem;
    white-space: normal;
  }

  .hero-content p {
    font-size: 0.8rem;
    line-height: 1.6;
  }
}

/* Desktop styles */
@media (min-width: 769px) {
  .hero {
    height: 60vh;
    min-height: 360px;
    justify-content: flex-end;
  }

  .hero-content {
    text-align: left;
    padding: 2rem 2.5rem;
    max-width: 100%;
    width: 100%;
    color: white;
  }

  .hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.75rem;
    color: white;
    line-height: 1.3;
    white-space: normal;
  }

  .hero-content p {
    font-size: 1rem;
    color: white;
    line-height: 1.6;
  }
}

/* Accessibility and motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-cta {
    transition: none;
  }

  .hero-cta:hover {
    transform: none;
  }
}

/* ============================================================================
   FEATURE CAROUSEL - Rotating marketing phrases
   ============================================================================ */

.feature-carousel {
  background: var(--color-white);
  padding: 2rem 0;
  text-align: center;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
  overflow: hidden;
}

.feature-carousel .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.feature-carousel h2 {
  font-size: var(--fz-h2);
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: 2rem;
}

.carousel-container {
  position: relative;
  height: 120px;
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: center;
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 5rem;
  width: max-content;
  animation: scroll-continuous 60s linear infinite;
}

.carousel-item {
  background: rgba(1, 176, 187, 0.75);
  color: #000000;
  padding: 1rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 200px;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  margin: 0;
  transition: transform 0.3s ease;
}

.carousel-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* Continuous scrolling animation */
@keyframes scroll-continuous {
  0% {
    transform: translateX(100vw);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Tablet styles */
@media (min-width: 768px) and (max-width: 1023px) {
  .feature-carousel {
    padding: 3rem 0;
  }

  .carousel-container {
    height: 130px;
  }

  .carousel-track {
    gap: 5.5rem;
  }

  .carousel-item {
    padding: 1.25rem 2.5rem;
    min-width: 220px;
    font-size: 1.375rem;
  }
}

/* Desktop styles */
@media (min-width: 1024px) {
  .feature-carousel {
    padding: 4rem 0;
  }

  .feature-carousel h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
  }

  .carousel-container {
    height: 140px;
  }

  .carousel-track {
    gap: 6rem;
  }

  .carousel-item {
    padding: 1.5rem 3rem;
    min-width: 250px;
    font-size: 1.5rem;
    border-radius: 12px;
  }
}

/* Mobile styles */
@media (max-width: 767px) {
  .feature-carousel {
    padding: 1.5rem 0;
  }

  .feature-carousel h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .carousel-container {
    height: 100px;
  }

  .carousel-track {
    gap: 4rem;
  }

  .carousel-item {
    padding: 0.75rem 1.5rem;
    min-width: 180px;
    font-size: 1.1rem;
    border-radius: 6px;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    animation: scroll-continuous 120s linear infinite;
  }

  .carousel-item:hover {
    transform: none;
  }
}

/* ============================================================================
   MAIN CONTENT LAYOUT - Ensure main fills available space
   ============================================================================ */

main.container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ============================================================================
   BUY BOXES SECTION - Dual card layout for services
   ============================================================================ */

.buy-boxes {
  background: var(--color-section-bg);
  padding: 3rem 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.buy-box-grid {
  display: flex;
  justify-content: space-between;
  gap: 4%;
  flex-wrap: nowrap;
  align-items: stretch;
  flex: 1;
}

.buy-box {
  flex: 0 0 48%;
  min-width: 0;
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 0;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  min-height: 500px;
}

.buy-box:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

/* Availability Badge */
.availability-badge {
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
  color: white;
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  text-align: center;
  padding: 0.5rem 1rem;
  border-radius: 16px 16px 0 0;
  margin: 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Enhanced heading styling - tighter spacing for better fit */
.buy-box h2 {
  font-size: 1.5rem;
  font-weight: var(--fw-extrabold);
  color: var(--color-text);
  margin: 1rem 1.5rem 0.75rem 1.5rem;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

/* Service subtitle - reduced spacing */
.buy-box .service-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: var(--fw-medium);
  margin: 0 1.5rem 1rem 1.5rem;
  line-height: 1.3;
}

/* Feature Highlights Section - tighter spacing */
.feature-highlights {
  margin: 0 1.5rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

.highlight-icon {
  font-size: 1.25rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-50);
  border-radius: 8px;
  flex-shrink: 0;
}

.highlight-text {
  font-size: 0.85rem;
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Divider line between highlight items */
.highlight-divider {
  background: linear-gradient(135deg, var(--color-primary-400), var(--color-accent-400));
  height: 1px;
  margin: 0.5rem 0;
  width: 100%;
  border: none;
}

/* Service Image - larger and better proportioned */
.buy-box .service-image {
  margin: 0 1.5rem;
  display: flex;
  justify-content: center;
  flex: 1;
  align-items: center;
}

.buy-box .service-img {
  max-width: 240px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Pricing Section - anchored to bottom */
.pricing-section {
  margin: auto 1.5rem 0 1.5rem;
  text-align: center;
}

.price-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: var(--fw-medium);
  margin-bottom: 0.25rem;
}

.price-amount {
  display: block;
  font-size: 2.25rem;
  font-weight: var(--fw-extrabold);
  color: var(--color-primary-600);
  line-height: 0.9;
  margin-bottom: 0.25rem;
}

.price-details {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-bottom: 1rem;
}

/* Full-width button */
.btn--full-width {
  margin: 0;
  border-radius: 0 0 16px 16px;
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}




/* Legacy styling removed - replaced with new highlight system */

/* Desktop styles */
@media (min-width: 768px) {
  .buy-boxes {
    padding: 4rem 0;
  }

  .buy-box {
    min-width: 0;
    min-height: 580px;
  }

  .buy-box h2 {
    font-size: 1.75rem;
    margin: 1.25rem 2rem 1rem 2rem;
  }

  .buy-box .service-subtitle {
    margin: 0 2rem 1.25rem 2rem;
    font-size: 1rem;
  }

  .feature-highlights {
    margin: 0 2rem 1.25rem 2rem;
  }

  .buy-box .service-image {
    margin: 0 2rem;
  }

  .buy-box .service-img {
    max-width: 280px;
  }

  .pricing-section {
    margin: auto 2rem 0 2rem;
  }

  .price-amount {
    font-size: 2.5rem;
  }
}

/* Small screen adjustments - maintain side-by-side layout */
@media (max-width: 480px) {
  .buy-box {
    min-width: 0;
    min-height: 450px;
  }

  .buy-box h2 {
    font-size: 1.25rem;
    margin: 0.75rem 1rem 0.5rem 1rem;
  }

  .buy-box .service-subtitle {
    font-size: 0.85rem;
    margin: 0 1rem 0.75rem 1rem;
  }

  .feature-highlights {
    margin: 0 1rem 0.75rem 1rem;
    gap: 0.4rem;
  }

  .highlight-item {
    gap: 0.5rem;
  }

  .highlight-icon {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }

  .highlight-text {
    font-size: 0.75rem;
  }

  .buy-box .service-image {
    margin: 0 1rem;
  }

  .buy-box .service-img {
    max-width: 180px;
  }

  .pricing-section {
    margin: auto 1rem 0 1rem;
  }

  .price-amount {
    font-size: 1.9rem;
  }

  .price-details {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }

  .btn--full-width {
    font-size: 0.9rem;
    padding: 0.875rem;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .buy-box {
    transition: none;
  }

  .buy-box:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
}

/* ============================================================================
   CHATBOT SECTION - The Fill-osopher integration
   ============================================================================ */

.chatbot {
  background: var(--color-section-bg);
  padding: 3rem 0;
}

.chatbot h2 {
  font-size: var(--fz-h2);
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  text-align: center;
}

.chatbot p {
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  text-align: center;
  line-height: 1.6;
}

.chatbot-container {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin: 0 auto;
  max-width: 800px;
  width: 100%;
}

#chatbase-bot {
  height: 700px;
  min-height: 700px;
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

#chatbase-bot iframe {
  border-radius: var(--radius-sm);
  display: block;
}

.chatbot-iframe {
  height: 100%;
  min-height: 700px;
}

/* Desktop styles */
@media (min-width: 768px) {
  .chatbot {
    padding: 4rem 0;
  }

  .chatbot h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }

  .chatbot p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
  }

  .chatbot-container {
    padding: 2rem;
  }
}

/* Mobile optimizations */
@media (max-width: 767px) {
  .chatbot {
    padding: 2rem 0;
  }

  .chatbot-container {
    margin: 0 1rem;
    padding: 1rem;
  }

  #chatbase-bot {
    height: 600px;
    min-height: 600px;
  }

  .chatbot-iframe {
    height: 100%;
    min-height: 600px;
  }

  .chatbot h2 {
    font-size: 1.75rem;
  }

  .chatbot p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
}

/* ============================================================================
   ABOUT US SECTION - Two-column layout with image and content
   ============================================================================ */

.about-us {
  background: var(--color-section-bg);
  padding: 3rem 0;
}

.about-us h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.about-image {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.about-content {
  padding: 1rem 0;
}

.about-content h3 {
  font-size: var(--fz-h2);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.about-content p {
  margin-bottom: 1.5rem;
}

/* Desktop styles */
@media (min-width: 768px) {
  .about-us {
    padding: 4rem 0;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }

  .about-content {
    padding: 0;
  }

  .about-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .about-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
  }
}

/* ============================================================================
   REVIEWS SECTION - Google Business Reviews Carousel
   ============================================================================ */

.reviews {
  background: #f8f9fa;
  padding: 3rem 0;
  overflow: visible;
}

.reviews h2 {
  color: #1f2937;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
}

.google-rating-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.reviews-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reviews-grid {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s ease-in-out;
  transform: translateX(0);
  padding: 0 1rem;
  justify-content: center;
  width: 100%;
}

.review-card {
  background: #ffffff;
  padding: 2rem 1.75rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  flex: 0 0 auto;
  min-width: 300px;
  max-width: 350px;
  text-align: left;
  display: flex;
  flex-direction: column;
  border: 1px solid #f0f0f0;
}

/* Desktop: Show all 3 reviews, no carousel */
@media (min-width: 768px) {
  .carousel-btn {
    display: none !important;
  }

  .carousel-dots {
    display: none !important;
  }

  .reviews-wrapper {
    overflow: visible;
  }

  .reviews-grid {
    justify-content: center;
    flex-wrap: nowrap;
    transform: none !important;
    gap: 1.5rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
  }

  .review-card {
    flex: 1 1 calc(33.333% - 1rem);
    min-width: 280px;
    max-width: 380px;
  }
}

/* Mobile: Show carousel, one at a time */
@media (max-width: 767px) {
  .reviews-wrapper {
    overflow: hidden;
  }

  .reviews-grid {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .review-card {
    width: calc(100vw - 3rem);
    min-width: calc(100vw - 3rem);
    max-width: calc(100vw - 3rem);
    flex-shrink: 0;
  }
}

.loading-placeholder {
  opacity: 0.7;
}

.review-rating {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 3px;
}

.star {
  color: #FBBC04;
  font-size: 1.1rem;
}

.review-text {
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: normal;
  color: #333;
  margin-bottom: 0.75rem;
  flex-grow: 1;
}

.review-link {
  display: inline-block;
  margin-top: 0;
  margin-bottom: 1rem;
  color: #1a73e8;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.review-link:hover {
  text-decoration: underline;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: none;
}

.author-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
}

.author-info {
  flex: 1;
}

.author-name {
  font-weight: 600;
  margin: 0;
  font-size: 0.9rem;
  color: #202124;
  margin-bottom: 2px;
}

.author-source {
  font-size: 0.8rem;
  color: #5f6368;
  margin: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover,
.carousel-btn:focus {
  background: rgba(255,255,255,1);
  outline: 3px solid var(--focus-ring);
}

.carousel-btn-left {
  left: 10px;
}

.carousel-btn-right {
  right: 10px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-dot.active {
  background: #1f2937;
}

.review-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: #01b0bb;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.review-link:hover {
  text-decoration: underline;
}

/* Desktop styles */
@media (min-width: 768px) {
  .reviews {
    padding: 4rem 0;
  }

  .reviews h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
  }

  .review-card {
    min-width: 350px;
    max-width: 400px;
    padding: 2.5rem;
  }

  .reviews-grid {
    gap: 3rem;
    padding: 0 2rem;
  }

  .carousel-btn {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }

  .carousel-btn-left {
    left: 20px;
  }

  .carousel-btn-right {
    right: 20px;
  }
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .review-card {
    min-width: 280px;
    max-width: 320px;
    padding: 1.5rem;
  }

  .reviews-grid {
    gap: 1.5rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .carousel-btn-left {
    left: 5px;
  }

  .carousel-btn-right {
    right: 5px;
  }
}

/* ============================================================================
   BOOKING MODAL - Styled to match website theme
   ============================================================================ */

/* Modal Overlay and Backdrop */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  animation: modalFadeIn 0.3s ease-out forwards;
}

.modal[hidden] {
  display: none;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Modal Content Container */
.modal-content {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Modal Header */
.modal-header {
  padding: 2rem 2rem 1rem 2rem;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(135deg, var(--color-primary) 0%, rgba(1, 176, 187, 0.9) 100%);
  color: var(--color-white);
  border-radius: var(--radius) var(--radius) 0 0;
}

.modal-header h2 {
  margin: 0 0 0.5rem 0;
  font-size: var(--fz-h2);
  font-weight: bold;
  color: var(--color-white);
}

.modal-subtitle {
  margin: 0;
  font-size: var(--fz-base);
  opacity: 0.95;
  font-weight: 500;
}

/* Close Button */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  font-weight: bold;
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
}

.modal-close:hover,
.modal-close:focus {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* Form Structure */
.form-section {
  border: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.form-section legend {
  font-size: var(--fz-lg);
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: 1rem;
  padding: 0;
  border: none;
  display: block;
  width: 100%;
}

#dumpsterBookingForm {
  padding: 2rem;
}

/* Form Layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  font-size: var(--fz-sm);
}

.required {
  color: #e74c3c;
  font-weight: bold;
}

/* Form Controls */
.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--fz-base);
  background: var(--color-white);
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(1, 176, 187, 0.1);
}

.form-group input:invalid:not(:focus):not(:placeholder-shown),
.form-group select:invalid:not(:focus) {
  border-color: #e74c3c;
  background-color: rgba(231, 76, 60, 0.05);
}

.form-group input:valid:not(:focus):not([value=""]),
.form-group select:valid:not(:focus):not([value=""]) {
  border-color: #27ae60;
  background-color: rgba(39, 174, 96, 0.05);
}

/* Field Help and Error States */
.field-help {
  font-size: var(--fz-xs);
  color: #666;
  margin-top: 0.25rem;
  font-style: italic;
}

.field-error {
  font-size: var(--fz-xs);
  color: #e74c3c;
  margin-top: 0.25rem;
  font-weight: 500;
  display: none;
}

.field-error:not(:empty) {
  display: block;
}

.form-group.has-error input,
.form-group.has-error select {
  border-color: #e74c3c;
  background-color: rgba(231, 76, 60, 0.05);
}

.form-group.has-error .field-error {
  display: block;
}

/* Checkbox Styling */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.checkbox-group label {
  margin: 0;
  font-weight: normal;
  line-height: 1.4;
  flex: 1;
}

.checkbox-group a {
  color: var(--color-primary);
  text-decoration: underline;
}

.checkbox-group a:hover {
  text-decoration: none;
}

/* Availability Status */
.availability-section {
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--color-section-bg);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--color-primary);
}

.availability-status {
  font-size: var(--fz-sm);
  font-weight: 500;
  margin: 0;
}

.availability-status.available {
  color: #27ae60;
}

.availability-status.unavailable {
  color: #e74c3c;
}

.availability-status.checking {
  color: #f39c12;
}

/* Loading Indicator */
.loading-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fz-sm);
  color: #666;
  margin-top: 1rem;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Form Status Messages */
.form-status {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: var(--fz-sm);
  font-weight: 500;
  display: none;
}

.form-status.success {
  background: rgba(39, 174, 96, 0.1);
  color: #27ae60;
  border: 1px solid rgba(39, 174, 96, 0.3);
  display: block;
}

.form-status.error {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
  display: block;
}

.form-status.info {
  background: rgba(52, 152, 219, 0.1);
  color: #3498db;
  border: 1px solid rgba(52, 152, 219, 0.3);
  display: block;
}

/* Payment Section */
.payment-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--color-border);
}

.payment-summary {
  background: var(--color-section-bg);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  text-align: center;
}

.payment-amount {
  font-size: var(--fz-lg);
  color: var(--color-text);
}

.payment-amount strong {
  color: var(--color-primary);
  font-size: 1.5rem;
}

.payment-amount small {
  display: block;
  margin-top: 0.5rem;
  color: #666;
  font-size: var(--fz-sm);
}

/* Square Payment Form Container */
.card-container {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  min-height: 56px;
  position: relative;
}

.card-container:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(1, 176, 187, 0.1);
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.form-actions .btn {
  flex: 1;
  justify-content: center;
  min-height: 48px;
  font-weight: 600;
}

/* Enhanced Button Styling for Modal */
.modal .btn--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, rgba(1, 176, 187, 0.9) 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(1, 176, 187, 0.3);
  transition: all var(--transition-fast);
}

.modal .btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(1, 176, 187, 0.4);
}

.modal .btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(1, 176, 187, 0.3);
}

.modal .btn--secondary {
  background: transparent;
  border: 2px solid var(--color-border);
  color: var(--color-text);
}

.modal .btn--secondary:hover {
  background: var(--color-section-bg);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.modal .btn--block {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 767px) {
  .modal {
    padding: 0.5rem;
    align-items: flex-start;
    padding-top: 2rem;
  }

  .modal-content {
    max-height: calc(100vh - 4rem);
    width: 100%;
    margin: 0;
  }

  .modal-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
  }

  .modal-header h2 {
    font-size: var(--fz-h3);
    margin-right: 2rem;
  }

  .modal-subtitle {
    font-size: var(--fz-sm);
  }

  .modal-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  #dumpsterBookingForm {
    padding: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-group {
    margin-bottom: 1.25rem;
  }

  .form-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .availability-section {
    padding: 0.75rem;
    margin: 1rem 0;
  }

  .payment-summary {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .modal {
    padding: 0.25rem;
    padding-top: 1rem;
  }

  .modal-content {
    max-height: calc(100vh - 2rem);
  }

  .modal-header {
    padding: 1rem;
  }

  #dumpsterBookingForm {
    padding: 1rem;
  }

  .form-group input,
  .form-group select {
    padding: 0.625rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
  .modal,
  .modal-content {
    animation: none;
  }

  .modal-close:hover {
    transform: none;
  }

  .modal .btn--primary:hover {
    transform: none;
  }

  .spinner {
    animation: none;
  }
}

/* Focus Management */
.modal input:focus,
.modal select:focus,
.modal button:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .modal {
    background: rgba(0, 0, 0, 0.9);
  }

  .modal-content {
    border: 3px solid var(--color-text);
  }

  .form-group input,
  .form-group select {
    border-width: 3px;
  }
}

/* =============================================================================
   CALENDAR COMPONENT STYLING
   ============================================================================= */

/* Calendar Component Styling */
.booking-calendar {
  border: 2px solid #e5e7eb;
  border-radius: var(--radius, 12px);
  padding: 1.5rem;
  background: white;
  margin: 1rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

.calendar-month-year {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary, #1f2937);
  margin: 0;
}

.calendar-nav {
  background: none;
  border: 2px solid #e5e7eb;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 50%;
  transition: all 0.2s ease;
  color: var(--color-primary, #3b82f6);
  font-weight: bold;
}

.calendar-nav:hover {
  background: var(--color-primary, #3b82f6);
  color: white;
  border-color: var(--color-primary, #3b82f6);
}

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

.weekday {
  padding: 0.75rem 0.5rem;
  text-align: center;
  font-weight: 600;
  color: #6b7280;
  font-size: 0.875rem;
  background: #f9fafb;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.calendar-day.selected-start {
  background: var(--color-primary, #3b82f6);
  color: white;
  font-weight: 700;
}

.calendar-day.selected-end {
  background: var(--color-primary, #3b82f6);
  color: white;
  font-weight: 700;
}

.selected-dates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  margin-top: 1rem;
  border: 1px solid #e2e8f0;
}

.selected-date, .rental-duration {
  text-align: center;
}

.selected-date strong, .rental-duration strong {
  display: block;
  color: #374151;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.calendar-instructions {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-align: center;
}

.fully-booked-indicator {
  color: #dc2626;
  font-weight: 600;
}

/* Responsive Calendar */
@media (max-width: 640px) {
  .booking-calendar {
    padding: 1rem;
  }

  .selected-dates {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    text-align: left;
  }
}

/* Hide feature highlights on small screens */
@media (max-width: 449px) {
  .feature-highlights {
    display: none;
    margin: 0;
    padding: 0;
  }

  .buy-box .service-img {
    padding-bottom: 1.5rem;
  }
}

/* =============================================================================
   SERVICE AREA PREVIEW SECTION WITH CAROUSEL
   ============================================================================= */

/* Carousel Wrapper */
.gallery-carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* Carousel Container */
.gallery-carousel {
  overflow: hidden;
  border-radius: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Carousel Track */
.gallery-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

/* Gallery Items */
.gallery-item {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  background: #ffffff;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  border: 1px solid rgba(1, 176, 187, 0.1);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  box-shadow: 0 15px 50px rgba(1, 176, 187, 0.25);
  transform: scale(1.02);
  border-color: rgba(1, 176, 187, 0.3);
}

.gallery-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: #f8f9fa;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.03);
}

.gallery-caption {
  padding: 1.5rem;
  text-align: center;
  font-weight: 700;
  color: var(--color-primary);
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  font-size: 1.1rem;
  border-top: 2px solid rgba(1, 176, 187, 0.2);
  letter-spacing: 0.3px;
}

/* Navigation Arrows - Hidden */
.gallery-nav {
  display: none;
}

/* Carousel Dots */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.gallery-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.gallery-dot:hover {
  background: #9ca3af;
  transform: scale(1.2);
}

.gallery-dot.active {
  background: var(--color-primary);
  width: 32px;
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {

  .gallery-carousel-wrapper {
    padding: 0 1rem;
  }

  .gallery-img {
    max-width: 100%;
  }

  .gallery-caption {
    padding: 1rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {

  .gallery-carousel-wrapper {
    padding: 0 0.5rem;
  }

  .gallery-img {
    max-width: 100%;
  }

  .gallery-caption {
    font-size: 0.9rem;
  }
}

/* =============================================================================
   FINAL CTA SECTION - Cohesive with site design
   ============================================================================= */

.final-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn--cta-primary {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  min-width: 240px;
  background: linear-gradient(135deg, var(--color-primary) 0%, rgba(1, 176, 187, 0.9) 100%);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(1, 176, 187, 0.3);
}

.btn--cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(1, 176, 187, 0.4);
}

.btn--cta-secondary {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  border: 2px solid var(--color-primary);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  min-width: 240px;
  background: transparent;
  color: var(--color-primary);
}

.btn--cta-secondary:hover {
  transform: translateY(-2px);
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(1, 176, 187, 0.3);
}

/* Responsive */
@media (max-width: 768px) {

  .final-cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .btn--cta-primary,
  .btn--cta-secondary {
    width: 100%;
    max-width: 320px;
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {

  .btn--cta-primary,
  .btn--cta-secondary {
    min-width: auto;
    font-size: 0.95rem;
  }
}

/* =============================================================================
   BEFORE & AFTER SECTION - Visual Social Proof
   ============================================================================= */

.before-after-section {
  padding: 5rem 0;
  background: white;
}

.before-after-heading {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.before-after-intro {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.before-after-grid {
  display: flex;
  gap: 4%;
  margin-bottom: 3rem;
  justify-content: space-between;
}

.before-after-card {
  flex: 0 0 48%;
  background: var(--bg-primary);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.before-after-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.before-after-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.before-after-card:hover .before-after-img {
  transform: scale(1.05);
}

.image-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.before-label {
  background: #dc2626;
  color: white;
}

.after-label {
  background: #16a34a;
  color: white;
}

.before-after-card .card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  padding: 1.5rem 1.5rem 0.75rem;
  margin: 0;
  line-height: 1.3;
}

.before-after-card .card-description {
  font-size: 1rem;
  color: var(--text-secondary);
  padding: 0 1.5rem 1.5rem;
  margin: 0;
  line-height: 1.6;
}

.before-after-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--color-section-bg);
  border-radius: 12px;
  border-left: 4px solid;
  border-image: linear-gradient(180deg, #01b0bb 0%, #ff6b35 100%) 1;
}

.before-after-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.before-after-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.before-after-content p:last-child {
  margin-bottom: 0;
}

.before-after-content strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
  .before-after-section {
    padding: 4rem 0;
  }

  .before-after-heading {
    font-size: 2rem;
  }

  .before-after-intro {
    font-size: 1.1rem;
  }

  .before-after-card .card-title {
    font-size: 1.3rem;
  }

  .before-after-content h3 {
    font-size: 1.5rem;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .before-after-section {
    padding: 3rem 0;
  }

  .before-after-heading {
    font-size: 1.75rem;
  }

  .before-after-intro {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .before-after-grid {
    flex-direction: column;
    gap: 2rem;
  }

  .before-after-card {
    flex: 0 0 100%;
  }

  .before-after-card .card-title {
    font-size: 1.25rem;
    padding: 1.25rem 1.25rem 0.5rem;
  }

  .before-after-card .card-description {
    font-size: 0.95rem;
    padding: 0 1.25rem 1.25rem;
  }

  .before-after-content {
    padding: 1.5rem;
  }

  .before-after-content h3 {
    font-size: 1.3rem;
  }

  .before-after-content p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .before-after-heading {
    font-size: 1.5rem;
  }

  .before-after-intro {
    font-size: 0.95rem;
  }

  .image-label {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }

  .before-after-card .card-title {
    font-size: 1.1rem;
    padding: 1rem 1rem 0.5rem;
  }

  .before-after-card .card-description {
    font-size: 0.9rem;
    padding: 0 1rem 1rem;
  }

  .before-after-content {
    padding: 1.25rem;
  }

  .before-after-content h3 {
    font-size: 1.15rem;
  }

  .before-after-content p {
    font-size: 0.9rem;
  }
}
