/*
================================================================================
BOOKNOW.CSS - Streamline Dumpsters Ltd. Book Now Page Styles
================================================================================

PURPOSE:
Styles for the Book Now page including buy boxes (inherited from index.css)
and special guidelines section with responsive two-column layout.

FUNCTIONALITY:
- Special guidelines section with grey background
- Two-column responsive grid layout
- Custom list styling with teal checkmarks
- Mobile-first responsive design

ACCESSIBILITY:
- High contrast text on grey background
- Clear list styling and spacing
- Keyboard navigation support
- Screen reader friendly structure

BROWSER SUPPORT:
- Modern browsers (Chrome 70+, Firefox 65+, Safari 12+, Edge 79+)
- Graceful degradation for older browsers
================================================================================
*/

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

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

/* =============================================================================
   PROCESS TIMELINE SECTION - How Our Service Works
   ============================================================================= */

.process-timeline {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 5rem 0;
  position: relative;
}

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

.timeline-intro {
  text-align: center;
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.timeline-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
  position: relative;
}

.timeline-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-arrow {
  display: none;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-primary, #01B0BB);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(1, 176, 187, 0.3);
  transition: transform 0.3s ease;
}

.timeline-step:hover .step-number {
  transform: scale(1.1);
}

.step-content {
  text-align: center;
  background: white;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid transparent;
}

.step-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: rgba(1, 176, 187, 0.2);
}

.step-icon {
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.step-content:hover .step-icon {
  transform: scale(1.1);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.step-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-connector-arrow {
  display: none;
}

/* Tablet */
@media (max-width: 1024px) {
  .timeline-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
  }

  .step-connector-arrow {
    display: none;
  }
}

/* Mobile - 2 columns side by side */
@media (max-width: 768px) {
  .process-timeline {
    padding: 3rem 0;
  }

  .timeline-heading {
    font-size: 2rem;
  }

  .timeline-intro {
    font-size: 1.1rem;
    margin-bottom: 3rem;
  }

  .timeline-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }

  .step-arrow {
    width: 50px;
    height: 50px;
  }

  .step-arrow svg {
    width: 50px;
    height: 50px;
  }

  .step-content {
    padding: 1.5rem 1rem;
  }

  .step-title {
    font-size: 1rem;
  }

  .step-description {
    font-size: 0.85rem;
  }

  .step-icon svg {
    width: 60px;
    height: 60px;
  }

  .step-connector-arrow {
    display: none;
  }
}

/* =============================================================================
   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: wrap;
  align-items: stretch;
  flex: 1;
}

.buy-box {
  flex: 0 0 48%;
  min-width: 120px;
  background: var(--bg-primary);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 0;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: all var(--transition-fast);
}

.buy-box:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.buy-box h2 {
  font-size: var(--fz-h2);
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.buy-box p {
  max-width: 400px;
  margin: 0 auto 2rem auto;
  line-height: 1.5;
  flex-grow: 1;
}

.buy-box .btn {
  margin-top: auto;
  align-self: center;
  white-space: nowrap;
}

/* Service image styling */
.service-image {
  margin-bottom: 1.5rem;
}

.service-img {
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* Junk removal image sizing to align subtitles */

/* Service subtitle */
.service-subtitle {
  font-size: var(--fz-base);
  color: var(--color-primary);
  font-weight: 600;
  margin: 0 0 1.5rem 0;
}

/* Feature list styling */

/* Process list styling */

/* =============================================================================
   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;
}

.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;
}

.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;
  }

  .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%;
  }

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

  .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;
  }

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

  .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;
  }
}

/* =============================================================================
   SPECIAL GUIDELINES SECTION - CARD LAYOUT
   ============================================================================= */

/* Special Guidelines Section */
.special-guidelines {
  padding: 4rem 0;
  background: var(--color-section-bg, #f8fafc);
}

.special-guidelines h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--color-primary, #1f2937);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.special-guidelines > .container > p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Guidelines Container */
.guidelines-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Guidelines Cards */
.guidelines-card {
  background: white;
  border-radius: var(--radius, 12px);
  box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

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

/* Card Headers */
.card-header {
  padding: 1.5rem 2rem;
  text-align: center;
  position: relative;
}

.card-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Prohibited Items Card */
.prohibited-items-card {
  border-color: var(--border-color-light);
}

.prohibited-items-card .card-header {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius, 12px) var(--radius, 12px) 0 0;
}

/* Extra Fees Card */
.extra-fees-card {
  border-color: var(--border-color-light);
}

.extra-fees-card .card-header {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius, 12px) var(--radius, 12px) 0 0;
}

/* Other Notes Card */
.other-notes-card {
  border-color: var(--border-color-light);
}

.other-notes-card .card-header {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius, 12px) var(--radius, 12px) 0 0;
}

/* Card Content */
.card-content {
  padding: 1.5rem 2rem 2rem;
}

/* Guideline Items */
.guideline-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.guideline-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.guideline-item:hover {
  background: #f9fafb;
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: 6px;
}

/* Item Icons */
.item-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: bold;
}

.warning-icon {
  background: #fef3c7;
  color: var(--color-warning);
  border: 2px solid #fbbf24;
}

.info-icon {
  background: #dbeafe;
  color: var(--color-primary, #2563eb);
  border: 2px solid #93c5fd;
}

/* Item Content */
.item-content h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary, #1f2937);
}

.item-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.2;
}

/* Guidelines Footer */
.guidelines-footer {
  text-align: center;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto;
  padding-top: 1rem;
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

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

  .buy-box {
    padding: 2.25rem 2rem;
    min-width: 320px;
  }

  .buy-box h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .buy-box p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
  }

  .special-guidelines {
    padding: 4rem 2rem;
  }

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

  .card-content {
    padding: 1.5rem 2rem 2rem;
  }

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

  .card-header h3 {
    font-size: 1rem;
  }

  .guideline-item {
    gap: 0.75rem;
  }

  .item-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

/* Large Desktop */
@media (min-width: 1024px) {
  .special-guidelines {
    padding: 5rem 2rem;
  }

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

/* Small screen adjustments - maintain side-by-side layout */
@media (max-width: 480px) {

  .buy-box h2 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }

  .buy-box p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .buy-box .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }

  /* Service image mobile adjustments */
  .service-img {
    max-width: 240px;
  }

  .service-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  /* Feature list mobile adjustments */

  /* Process list mobile adjustments */

  .special-guidelines {
    padding: 3rem 0;
  }

  .special-guidelines h2 {
    font-size: 1.5rem;
  }

  .guidelines-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .guideline-item {
    padding: 0.75rem 0;
  }

  .item-content h4 {
    font-size: 0.9rem;
  }

  .item-content p {
    font-size: 0.85rem;
  }
}

/* =============================================================================
   REDUCED MOTION PREFERENCES
   ============================================================================= */

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

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

/* =============================================================================
   BOOKING MODAL STYLING - PHASE 2
   ============================================================================= */

/* Modal Overlay */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.modal:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

/* Modal Content Container */
.modal-content {
  background: var(--bg-primary);
  border: 3px solid var(--color-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  max-width: 600px;
  width: calc(100% - 40px); /* Ensure padding on mobile */
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95) translateY(-10px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal:not([hidden]) .modal-content {
  transform: scale(1) translateY(0);
}

/* Modal Header */
.modal-header {
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid var(--color-section-bg);
  text-align: center;
}

.modal-header h2 {
  margin: 0 0 0.5rem;
  font-size: var(--fz-h1);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

.modal-subtitle {
  margin: 0;
  color: var(--color-primary);
  font-size: var(--fz-base);
  font-weight: 600;
}

/* Close Button */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--color-section-bg);
  color: var(--color-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 300;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 1001;
}

.modal-close:hover {
  background: var(--color-error);
  color: var(--color-white);
  transform: scale(1.1);
}

.modal-close:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Form Container */
#dumpsterBookingForm {
  padding: 0 2rem 2rem;
}

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

.form-section legend {
  font-size: var(--fz-h3);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem;
  padding: 0;
  width: 100%;
}

/* Form Groups and Fields */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

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

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

.required {
  color: var(--color-error);
  margin-left: 2px;
}

/* Input Styling */
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-section-bg);
  border-radius: var(--radius-sm);
  font-size: var(--fz-base);
  line-height: 1.5;
  background: var(--color-white);
  color: var(--color-text);
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

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

.form-group input:invalid,
.form-group select:invalid {
  border-color: var(--color-primary);
}

.form-group input[type="date"] {
  cursor: pointer;
}

/* Checkbox Styling */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: #e0f7f8;
  border: 2px solid var(--color-primary);
  border-radius: 8px;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
  accent-color: #01b0bb;
  flex-shrink: 0;
}

.checkbox-group label {
  margin: 0;
  cursor: pointer;
  line-height: 1.5;
  font-weight: 500;
  color: var(--text-primary);
}

/* Help Text */
.field-help {
  font-size: var(--fz-sm);
  color: var(--text-secondary);
  margin-top: 0.25rem;
  line-height: 1.4;
}

/* Error Messages */
.field-error {
  color: var(--color-error);
  font-size: var(--fz-sm);
  font-weight: 600;
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: #fef2f2;
  border: 2px solid #ef4444;
  border-radius: var(--radius-sm);
  display: none;
  animation: slideInDown 0.3s ease;
}

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

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

/* Error State for Form Fields */
.form-group.has-error input,
.form-group.has-error select {
  border-color: #ef4444 !important;
  border-width: 2px;
  background-color: #fef2f2 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group.has-error label {
  color: #dc2626 !important;
  font-weight: 600;
}

.checkbox-group.has-error {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Availability Section */
.availability-section {
  margin: 1.5rem 0;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--color-section-bg);
  border: 1px solid var(--border-color-light);
}

/* Availability Status Messages */
.availability-status {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
  transition: all var(--transition-fast);
}

.availability-status.available {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.availability-status.limited {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.availability-status.unavailable {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.availability-status:empty {
  display: none;
}

/* Loading Indicator */
.loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color-light);
  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); }
}

.loading-indicator[hidden] {
  display: none;
}

/* =============================================================================
   PAYMENT SECTION - ENHANCED MODERN DESIGN
   ============================================================================= */

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

/* Checkout Progress Steps */

/* Two Column Payment Layout */

.payment-form-column {
  min-width: 0;
}

/* Payment Method Section */

/* Security Badge */
.security-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #e0f7f8;
  border: 1px solid #b3e5e8;
  border-radius: var(--radius-sm);
  color: #005f66;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Payment Card Wrapper */
.payment-card-wrapper {
  background: white;
  border: 2px solid var(--border-color-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Accepted Cards */
.accepted-cards {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.card-logos {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.card-logo {
  width: 48px;
  height: 32px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.card-logo:hover {
  opacity: 1;
}

/* Order Summary Card */
.order-summary-card {
  background: white;
  border: 3px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: 0 8px 16px -2px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 20px;
}

/* Service Item */

/* Rental Details */

/* Pricing Breakdown */

/* Summary Divider */

/* Summary Total */

/* Trust Badges */
.trust-badges {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 500;
}

.trust-badge svg {
  color: var(--color-success);
  flex-shrink: 0;
}

/* What Happens Next */

/* Responsive Payment Layout */
@media (max-width: 1024px) {

  .order-summary-card {
    position: static;
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {

  .payment-card-wrapper {
    padding: 1rem;
  }
}

@media (max-width: 480px) {

  .security-badge {
    font-size: 0.85rem;
    padding: 0.625rem 0.75rem;
  }

  .payment-card-wrapper {
    padding: 0.875rem;
  }

  .card-logos {
    gap: 0.5rem;
  }

  .card-logo {
    width: 42px;
    height: 28px;
  }
}


/* Payment Summary (from index.html) */
.payment-summary {
  background: #e0f7f8;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.payment-amount strong {
  display: block;
  font-size: var(--fz-h2);
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

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

/* Square Payment Container */
.card-container {
  border: 2px solid var(--color-section-bg);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
  background: var(--color-white);
  min-height: 60px;
  transition: border-color var(--transition-fast);
}

.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;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--color-section-bg);
}

/* Button Enhancements (extending existing button styles) */
.modal .btn {
  min-height: 48px;
  min-width: 44px; /* Minimum touch target */
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
  touch-action: manipulation; /* Prevents double-tap zoom */
}

.modal .btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(1, 176, 187, 0.3);
}

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

.modal .btn--secondary:hover {
  background: var(--color-section-bg);
  color: var(--color-text);
  border-color: #9ca3af;
}

.modal .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.modal .btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Button Loading State */
.modal .btn.loading {
  pointer-events: none;
}

.modal .btn.loading::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

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

.form-status.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  display: block;
}

.form-status.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  display: block;
}

.form-status.info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
  display: block;
}

/* =============================================================================
   MODAL RESPONSIVE DESIGN
   ============================================================================= */

/* Tablet and Mobile Base */
@media (max-width: 768px) {
  .modal {
    padding: 10px;
    align-items: flex-start;
    padding-top: 20px;
  }

  .modal-content {
    max-height: calc(100vh - 40px);
    width: calc(100% - 20px); /* Tighter mobile fit */
    margin: 0;
    border-radius: 12px;
  }

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

  .modal-header h2 {
    font-size: var(--fz-h2);
    line-height: 1.2;
  }

  .modal-subtitle {
    font-size: 0.95rem;
  }

  #dumpsterBookingForm {
    padding: 0 1.5rem 1.5rem;
  }

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

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

  .calendar-section {
    margin: 0 -0.5rem;
  }

  .booking-calendar {
    padding: 1rem;
  }

  .form-actions {
    position: sticky;
    bottom: 0;
    background: var(--color-white);
    margin: 1rem -1.5rem -1.5rem;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 2px solid var(--color-section-bg);
    box-shadow: var(--shadow-lg);
    z-index: 10;
  }

  .modal .btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .modal {
    padding: 5px;
  }

  .modal-content {
    width: calc(100% - 10px);
    border-radius: 8px;
  }

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

  .modal-header h2 {
    font-size: 1.25rem;
    line-height: 1.2;
  }

  .modal-subtitle {
    font-size: 0.85rem;
  }

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

  #dumpsterBookingForm {
    padding: 0 1rem 1rem;
  }

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

  .form-section legend {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

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

  .form-group label {
    font-size: 0.9rem;
  }

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

  .calendar-day {
    min-height: 36px;
    font-size: 0.85rem;
  }

  .selected-dates {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .form-actions {
    margin: 1rem -1rem -1rem;
    padding: 1rem;
  }

  .modal .btn {
    font-size: 0.95rem;
    padding: 0.875rem 1rem;
  }
}

/* =============================================================================
   MODAL ACCESSIBILITY AND MOTION PREFERENCES
   ============================================================================= */

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .modal,
  .modal-content,
  .modal .btn,
  .form-group input,
  .form-group select,
  .field-error,
  .spinner {
    transition: none;
    animation: none;
  }

  .modal:not([hidden]) .modal-content {
    transform: none;
  }

  .spinner {
    animation: none;
    border-top-color: transparent;
    border-color: var(--color-primary);
  }
}

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

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

  .modal .btn {
    border-width: 3px;
  }

  .modal-close {
    border: 2px solid var(--color-text);
  }
}

/* Dark Mode Support (if needed for future enhancement) */
@media (prefers-color-scheme: dark) {
  .modal-content {
    background: var(--bg-primary);
    color: var(--color-text);
  }

  .modal-header {
    border-bottom-color: #374151;
  }

  .form-group input,
  .form-group select {
    background: var(--bg-primary);
    border: 2px solid var(--color-primary);
    color: var(--color-text);
  }

  .form-group label {
    color: #e5e7eb;
  }

  .field-help {
    color: #9ca3af;
  }

  .availability-section {
    background: #374151;
    border-color: #4b5563;
  }

  .payment-summary {
    background: #e0f7f8;
    border-color: var(--color-primary);
  }

  .checkbox-group {
    background: #e0f7f8;
    border-color: var(--color-primary);
  }

  .checkbox-group label {
    color: #1f2937 !important;
  }

  .checkbox-group input[type="checkbox"] {
    opacity: 1;
    visibility: visible;
  }
}

/* =============================================================================
   HIGH CONTRAST MODE SUPPORT
   ============================================================================= */

@media (prefers-contrast: high) {
  .special-guidelines {
    border: 2px solid currentColor;
  }
}

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

/* Calendar Component Styling */
.booking-calendar {
  border: 2px solid var(--border-color-light);
  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);
  margin: 0;
}

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

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

.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: var(--color-primary);
  font-size: 0.875rem;
  background: #e0f7f8;
}

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

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid var(--border-color-light);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all 0.2s ease;
  position: relative;
  min-height: 48px;
}

.calendar-day:hover:not(.disabled):not(.fully-booked) {
  background: #e0f7f8;
  transform: scale(1.05);
}

.calendar-day.selected-start {
  background: var(--color-primary);
  color: white;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(1, 176, 187, 0.3);
}

.calendar-day.selected-end {
  background: var(--color-primary);
  color: white;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(1, 176, 187, 0.3);
}

.calendar-day.in-range {
  background: #b3e5e8;
  color: #005f66;
  font-weight: 600;
}

.calendar-day.fully-booked {
  background: #fee2e2;
  color: #991b1b;
  cursor: not-allowed;
  font-weight: 600;
  position: relative;
  border: 1px solid #fca5a5;
}

.calendar-day.fully-booked::after {
  content: '';
  position: absolute;
  width: 140%;
  height: 1px;
  background: var(--color-error);
  top: 50%;
  left: -20%;
  transform: translateY(-50%) rotate(-45deg);
}

.calendar-day.disabled {
  background: #f9fafb;
  color: #9ca3af;
  cursor: not-allowed;
}

.calendar-day.other-month {
  color: #d1d5db;
  background: #f9fafb;
  cursor: pointer;
  opacity: 0.6;
}

.calendar-day.other-month:hover:not(.disabled):not(.fully-booked) {
  background: #e5e7eb;
  transform: scale(1.05);
}

.calendar-day.today {
  border: 2px solid var(--color-primary);
  font-weight: 700;
  box-shadow: 0 0 0 1px #01b0bb;
}

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

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

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

.selected-date span, .rental-duration span {
  color: #000000;
}

.calendar-instructions {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-align: center;
}

.fully-booked-indicator {
  color: var(--color-error);
  font-weight: 600;
}

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

  .calendar-header {
    margin-bottom: 1rem;
  }

  .calendar-month-year {
    font-size: 1.1rem;
  }

  .calendar-nav {
    padding: 0.4rem 0.6rem;
    font-size: 1.25rem;
  }

  .weekday {
    padding: 0.5rem 0.25rem;
    font-size: 0.75rem;
  }

  .calendar-day {
    min-height: 44px; /* Better touch target */
    font-size: 0.875rem;
  }

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

  .calendar-instructions {
    font-size: 0.85rem;
    padding: 0 0.25rem;
  }
}

/* Extra small screens - prevent calendar from being too narrow */
@media (max-width: 400px) {
  .booking-calendar {
    padding: 0.75rem;
    /* Prevent calendar from shrinking below minimum readable width */
    min-width: 300px;
    overflow-x: auto;
  }

  .calendar-grid,
  .calendar-weekdays {
    /* Ensure dates remain visible on right side */
    min-width: 280px;
  }

  .calendar-day {
    min-height: 40px;
    font-size: 0.8rem;
    padding: 0.25rem;
  }

  .weekday {
    padding: 0.4rem 0.15rem;
    font-size: 0.7rem;
  }

  .calendar-month-year {
    font-size: 1rem;
  }

  .calendar-nav {
    padding: 0.3rem 0.5rem;
    font-size: 1.1rem;
  }
}

/* =============================================================================
   SPECIAL GUIDELINES ANIMATIONS AND ADDITIONAL FEATURES
   ============================================================================= */

/* Animation for cards appearing */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.guidelines-card {
  animation: slideUp 0.5s ease-out;
}

.guidelines-card:nth-child(2) {
  animation-delay: 0.1s;
}

.guidelines-card:nth-child(3) {
  animation-delay: 0.2s;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .guidelines-card {
    border-width: 3px;
  }

  .card-header {
    border-width: 4px;
  }

  .item-icon {
    border-width: 3px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .guidelines-card {
    background: #374151;
    color: #f9fafb;
  }

  .item-content h4 {
    color: #f9fafb;
  }

  .item-content p {
    color: #d1d5db;
  }

  .guideline-item:hover {
    background: #4b5563;
  }
}

/* Additional responsive styles for cards */
@media (max-width: 768px) {
  .special-guidelines {
    padding: 3rem 0;
  }

  .guidelines-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card-content {
    padding: 1rem 1.5rem 1.5rem;
  }

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

  .card-header h3 {
    font-size: 1rem;
  }

  .guideline-item {
    gap: 0.75rem;
  }

  .item-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

/* Reduced motion preferences for cards */
@media (prefers-reduced-motion: reduce) {
  .guidelines-card {
    animation: none;
    transition: none;
  }

  .guidelines-card:hover {
    transform: none;
  }

  .guideline-item {
    transition: none;
  }
}