
    /* ----------  Design tokens ---------- */
    :root {
      --accent: #005dbf;
      --bg: #fff;
      --text: #111;
    }

    /* ----------  Global styles ---------- */
    *, *::before, *::after { box-sizing: border-box; }
    html, body {
      height: 100%;
      margin: 0;
      font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      background: var(--bg);
      color: var(--text);
      -webkit-font-smoothing: antialiased;
      overflow: hidden;
    }

    /* ----------  Map ---------- */
    #map {
      position: absolute;
      inset: 0;
      width: 100vw;
      /* 100vh on iOS Safari is the height *without* the collapsing toolbar, so
         the map always ran taller than the visible viewport and the bottom edge
         sat under the browser chrome. dvh tracks the real viewport; the vh line
         stays first as the fallback for browsers without dvh support. */
      height: 100vh;
      height: 100dvh;
      overflow: hidden;
    }

    /* Mobile optimization */
    html, body {
      margin: 0;
      padding: 0;
      width: 100%;
      height: 100%;
      overflow: hidden;
      position: fixed;
      /* iOS-specific optimizations */
      -webkit-touch-callout: none;
      -webkit-user-select: none;
      -khtml-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
    }

    @media (max-width: 768px) {
      .search-container {
        width: calc(100% - 20px) !important;
        max-width: none !important;
      }

    .search {
        padding: 6px 10px !important;
        min-height: 44px !important;
      }

      .mapboxgl-ctrl-geocoder {
        min-width: 0 !important;
      }

      .mapboxgl-ctrl-geocoder--input {
        height: 32px !important;
        padding: 8px 30px 8px 8px !important;
        font-size: 14px !important;
        min-height: 24px !important;
      }

      .rides {
        gap: 6px !important;
        padding: 10px !important;
      }

      .ride {
        min-width: 100px !important;
        padding: 8px 6px !important;
      }

      .ride img {
        width: 45px !important;
        height: 32px !important;
      }

      .modal {
        width: 90% !important;
        max-width: none !important;
        margin: 10px !important;
        max-height: 85vh !important;
      }

      .modal-content {
        padding: 12px 16px 16px !important;
        max-height: calc(85vh - 140px) !important; /* Account for header, footer, and progress */
        overflow-y: auto !important;
      }
      
      .modal-header {
        padding: 12px 16px 8px !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 200 !important;
      }
      
      .modal-progress {
        position: sticky !important;
        top: 0 !important;
        z-index: 150 !important;
      }
      
      .form-completion-status {
        position: sticky !important;
        top: 0 !important;
        z-index: 125 !important;
      }
      
      .modal-footer {
        padding: 10px 16px 12px !important;
        gap: 8px !important;
        position: sticky !important;
        bottom: 0 !important;
        z-index: 200 !important;
      }
      
      .modal-footer button {
        padding: 10px 14px !important;
        font-size: 14px !important;
        min-height: 44px !important;
      }

      /* Keep left+transform centering from the base rule — setting `right`
         here too stretched the pill between both edges and dragged it
         off-center, wrapping the text */
      .distance-info-floating {
        left: 50% !important;
        right: auto !important;
        width: max-content !important;
        max-width: calc(100% - 20px) !important;
        font-size: 13px !important;
        min-width: 0 !important;
      }
      
      /* Mobile-optimized progress indicator */
      .modal-progress {
        padding: 12px 16px 8px !important;
      }
      
      .step-number {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
      }
      
      .step-label {
        font-size: 11px !important;
      }
      
      /* Mobile-optimized form elements */
      .reason-option, .truck-option {
        padding: 10px 12px !important;
        gap: 10px !important;
      }
      
      /* Collapsed until selected — see the base rule further down, which wins
         the cascade for the shared properties. Mobile only adjusts sizing. */
      .reason-continue-btn,
      .truck-continue-btn {
        font-size: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-left: auto !important;
      }
      
      .truck-continue-btn:hover, .reason-continue-btn:hover {
        background: #148a50;
        transform: translateY(-1px);
      }
      
      .truck-continue-btn:active, .reason-continue-btn:active {
        transform: translateY(0);
      }
      
      .truck-continue-btn i.fa-arrow-right, .reason-continue-btn i.fa-arrow-right {
        font-size: 10px;
        margin-left: 2px;
        color: white !important;
      }
      
      .truck-option.selected .truck-continue-btn,
      .reason-option.selected .reason-continue-btn {
        opacity: 1;
        visibility: visible;
      }
      
      .reason-option > i {
        font-size: 16px !important;
        width: 36px !important;
        height: 36px !important;
      }
      
      .truck-option img {
        width: 60px !important;
        height: 45px !important;
      }
      
      .truck-info {
        gap: 6px !important;
      }
      
      .truck-info-top {
        gap: 8px !important;
        justify-content: space-between !important;
      }
      
      .truck-text h4 {
        font-size: 16px !important;
      }
      
      .truck-text p {
        font-size: 12px !important;
      }
      
      /* Mobile-optimized reason option layout */
      .reason-content {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
      }
      
      .reason-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin-bottom: 4px !important;
      }
      
      .reason-header h4 {
        margin: 0 !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #333 !important;
      }
      
      .reason-option p {
        width: 100% !important;
        font-size: 12px !important;
      }
      

      
      .inline-location-btn {
        padding: 4px 8px !important;
        font-size: 11px !important;
        right: 30px !important; /* Positioned to left of clear button on mobile with more space */
      }
      
      .search.focused .mapboxgl-ctrl-geocoder--input:placeholder-shown {
        padding-right: 150px !important; /* Space for both buttons on mobile */
      }
      
      .clear-btn {
        right: 4px !important;
        width: 24px !important;
        height: 24px !important;
        font-size: 12px !important;
      }
    }

    /* ----------  Resume Booking Banner ---------- */
    .resume-banner {
      position: absolute;
      top: 60px;
      left: 50%;
      transform: translateX(-50%);
      background: #005dbf;
      color: white;
      padding: 12px 20px;
      border-radius: 25px;
      box-shadow: 0 4px 12px rgba(0, 93, 191, 0.3);
      z-index: 15;
      animation: slideDown 0.5s ease;
      max-width: 90%;
    }
    
    @keyframes slideDown {
      from { transform: translateX(-50%) translateY(-20px); opacity: 0; }
      to { transform: translateX(-50%) translateY(0); opacity: 1; }
    }
    
    .resume-content {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 14px;
      font-weight: 500;
      line-height: 1.4;
    }
    
    .resume-content i {
      margin-right: 4px;
      font-size: 16px;
    }
    
    .resume-btn, .start-new-btn {
      background: rgba(255, 255, 255, 0.2);
      border: 1px solid rgba(255, 255, 255, 0.3);
      color: white;
      padding: 6px 16px;
      border-radius: 15px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
      margin: 0 4px;
    }
    
    .resume-btn:hover, .start-new-btn:hover {
      background: rgba(255, 255, 255, 0.3);
      transform: translateY(-1px);
    }
    
    .start-new-btn {
      background: rgba(255, 255, 255, 0.1);
    }
    
    .payment-return-banner {
      position: absolute;
      top: 120px;
      left: 50%;
      transform: translateX(-50%);
      background: #ff6b35;
      color: white;
      padding: 12px 20px;
      border-radius: 25px;
      box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
      z-index: 14;
      animation: slideDown 0.5s ease;
      max-width: 90%;
    }
    
    .payment-return-content {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      font-weight: 500;
    }
    
    .continue-booking-btn {
      background: rgba(255, 255, 255, 0.2);
      border: 1px solid rgba(255, 255, 255, 0.3);
      color: white;
      padding: 4px 12px;
      border-radius: 15px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    
    .continue-booking-btn:hover {
      background: rgba(255, 255, 255, 0.3);
      transform: translateY(-1px);
    }

    /* ----------  Floating search bars ---------- */
              .search-container {
      position: absolute;
        top: 5px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
        flex-direction: column;
        gap: 3px;
      width: 90%;
      z-index: 10;
      padding-bottom: 35px; /* Add space for validation messages */
    }
      
      .search {
        display: flex;
        align-items: center;
        padding: 8px 12px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,.08);
        border: 1px solid #e5e7eb;
        transition: all 0.2s ease;
        position: relative;
        min-height: 48px;
      }
      
      .pickup-search {
        border-left: 3px solid #005dbf;
        z-index: 2;
      }
      
      .destination-search {
        border-left: 3px solid #ff6b35;
        z-index: 1;
        position: relative;
      }
      
      /* Ensure pickup suggestions are always on top */
      #pickupGeocoder .mapboxgl-ctrl-geocoder--suggestions {
        z-index: 1500 !important;
      }
      
      #destinationGeocoder .mapboxgl-ctrl-geocoder--suggestions {
        z-index: 1400 !important;
      }
      
      .search:focus-within {
        border-color: #005dbf;
        box-shadow: 0 2px 8px rgba(0, 93, 191, 0.12);
      }
      
      .destination-search:focus-within {
        border-color: #ff6b35;
        box-shadow: 0 2px 8px rgba(255, 107, 53, 0.12);
      }
      
      /* Validation states */
      .search.valid {
        border-color: #1aa260;
        box-shadow: 0 2px 8px rgba(26, 162, 96, 0.12);
      }
      
      .search.invalid {
        border-color: #ef4444;
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.12);
      }
      
    .validation-message {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      transform: none;
      background: #fef2f2;
      color: #dc2626;
      font-size: 11px;
      padding: 6px 10px;
      border-radius: 6px;
      border: 1px solid #fecaca;
      z-index: 999; /* Lower than Mapbox suggestions */
      pointer-events: none; /* Don't interfere with clicks */
      white-space: normal;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin-top: 4px;
      text-align: center;
	  max-width:200px;
    }
      
      .search > i {
        font-size: 16px;
        color: #9ca3af;
        transition: color 0.2s ease;
        margin-right: 8px;
      }
      
      .location-btn i {
        margin-right: 0;
      }
      
      .pickup-search:focus-within > i {
        color: #005dbf;
      }
      
      .destination-search:focus-within > i {
        color: #ff6b35;
      }
    
    /* Custom styling for Mapbox geocoder */
    #pickupGeocoder,
    #destinationGeocoder {
      flex: 1;
      position: relative;
    }
    
    .mapboxgl-ctrl-geocoder {
      width: 100% !important;
      max-width: none !important;
      font-size: 13px !important;
    }
    
    .mapboxgl-ctrl-geocoder--input {
      border: none !important;
      outline: none !important;
      font-size: 14px !important;
      padding: 10px 30px 10px 8px !important;
      border-radius: inherit !important;
      background: transparent !important;
      box-shadow: none !important;
      min-height: 28px !important;
    }
    
    .mapboxgl-ctrl-geocoder--input::placeholder {
      color: #999 !important;
    }
    
    .mapboxgl-ctrl-geocoder--suggestions {
      border-radius: 8px !important;
      box-shadow: 0 4px 12px rgba(0,0,0,.15) !important;
      margin-top: 1px !important;
      z-index: 1300 !important;
      position: relative !important;
    }
    
    .mapboxgl-ctrl-geocoder--suggestion {
      padding: 2px 4px !important;
      font-size: 14px !important;
      position: relative !important;
      z-index: inherit !important;
    }
    
    .mapboxgl-ctrl-geocoder--suggestion:hover {
      background-color: #f5f5f5 !important;
    }
    
    /* Clear button positioning inside geocoder */
    .clear-btn {
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: #9ca3af;
      padding: 5px;
      border-radius: 50%;
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 20px;
      height: 20px;
      font-size: 10px;
      z-index: 15; /* Higher z-index than inline location button */
    }

    .clear-btn:hover {
      background-color: #f3f4f6;
      color: #6b7280;
    }

    .clear-btn:active {
      transform: translateY(-50%) scale(0.95);
    }
    
    @keyframes spin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    /* ----------  Progress Indicator ---------- */
    .modal-progress {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 24px 8px;
      margin-bottom: 0px;
      position: sticky; /* Make progress sticky */
      top: 0; /* Stick to top (below header) */
      z-index: 150; /* Ensure progress is above content but below header */
      background: #f8f9fa; /* Ensure progress has solid background */
      flex-shrink: 0; /* Prevent progress from shrinking */
    }
    
    .modal-progress::before {
      content: '';
      position: absolute;
      /* Align with the vertical center of the step circles:
         12px padding-top + half of the 28px circle */
      top: 26px;
      left: 30px;
      right: 30px;
      height: 2px;
      background: #e5e7eb;
      z-index: 1;
    }
    
    .progress-step {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 5px;
      position: relative;
      z-index: 2;
    }
    
    .step-number {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: #e5e7eb;
      color: #6b7280;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      font-size: 13px;
      transition: all 0.3s ease;
    }
    
    .step-label {
      font-size: 12px;
      color: #6b7280;
      font-weight: 500;
      text-align: center;
      transition: color 0.3s ease;
    }
    
    .progress-step.active .step-number {
      background: #005dbf;
      color: white;
      box-shadow: 0 2px 8px rgba(0, 93, 191, 0.3);
    }
    
    .progress-step.active .step-label {
      color: #005dbf;
      font-weight: 600;
    }
    
    .progress-step.completed .step-number {
      background: #1aa260;
      color: white;
    }
    
    .progress-step.completed .step-label {
      color: #1aa260;
    }
    
    /* Form Completion Status */
    .form-completion-status {
      padding: 0 24px 4px;
      flex-shrink: 0; /* Prevent status from shrinking */
      background: #fff; /* Ensure status has solid background */
      position: sticky; /* Make status sticky */
      top: 0; /* Stick to top (below progress) */
      z-index: 125; /* Ensure status is above content but below progress */
      border-bottom: 1px solid #f0f0f0; /* Add subtle border to separate from content */
    }
    
    .completion-status {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 500;
    }
    
    .completion-status.complete {
      background: #f0fdf4;
      color: #166534;
      border: 1px solid #bbf7d0;
    }
    
    .completion-status.incomplete {
      background: #fef2f2;
      color: #dc2626;
      border: 1px solid #fecaca;
    }
    
    .completion-status i {
      font-size: 14px;
    }

    /* ----------  Modal styles ---------- */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      backdrop-filter: blur(4px);
      pointer-events: none;
    }

    .modal-overlay.active {
      pointer-events: auto;
    }

    .modal {
      background: #fff;
      border-radius: 16px;
      width: 90%;
      max-width: 500px;
      max-height: 80vh;
      overflow: hidden;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
      animation: modalSlideIn 0.3s ease;
      display: flex;
      flex-direction: column;
      justify-content: space-between; /* Ensure proper spacing between elements */
      position: relative; /* Ensure proper positioning context */
    }

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

    .modal-header {
      padding: 16px 20px 12px;
      border-bottom: 1px solid #eee;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-shrink: 0; /* Prevent header from shrinking */
      background: #fff; /* Ensure header has solid background */
      position: sticky; /* Make header sticky */
      top: 0; /* Stick to top */
      z-index: 200; /* Ensure header is above content */
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Add subtle shadow to separate from content */
    }

    .modal-header h3 {
      margin: 0;
      font-size: 18px;
      font-weight: 600;
      color: #333;
    }

    .modal-close {
      background: none;
      border: none;
      font-size: 24px;
      color: #999;
      cursor: pointer;
      padding: 0;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
    }

    .modal-close:hover {
      background: #f5f5f5;
      color: #666;
    }

    .modal-content {
      padding: 20px;
      max-height: calc(80vh - 200px); /* Account for header, progress, and footer */
      overflow-y: auto;
      flex: 1;
      scrollbar-width: thin;
      scrollbar-color: #c1c1c1 #f1f1f1;
      position: relative; /* Ensure proper positioning context */
      z-index: 50; /* Ensure content is below sticky elements */
      margin-top: 0; /* Remove any top margin that could cause overlap */
      padding-bottom: 16px; /* Footer is a flex sibling, not an overlay — no oversized clearance needed */
      /* Ensure content area takes available space and scrolls properly */
      min-height: 0; /* Allow content to shrink */
      display: flex;
      flex-direction: column;
    }
    
    /* Custom scrollbar styling for webkit browsers */
    .modal-content::-webkit-scrollbar {
      width: 8px;
    }
    
    .modal-content::-webkit-scrollbar-track {
      background: #f1f1f1;
      border-radius: 4px;
    }
    
    .modal-content::-webkit-scrollbar-thumb {
      background: #c1c1c1;
      border-radius: 4px;
    }
    
    .modal-content::-webkit-scrollbar-thumb:hover {
      background: #a8a8a8;
    }
    
    /* Ensure content has proper spacing for scrolling */
    .modal-content > *:last-child {
      margin-bottom: 8px;
    }

    /* Ensure content doesn't overlap with sticky elements */
    .modal-content {
      padding-top: 8px; /* Add top padding to prevent header overlap */
      padding-bottom: 16px;
    }
    
    /* Ensure proper spacing for sticky elements */
    .modal-step {
      position: relative;
      z-index: 100;
    }
    
    /* Improve scrolling on touch devices */
    .modal-content {
      -webkit-overflow-scrolling: touch;
      overscroll-behavior: contain;
      /* Ensure content is properly spaced from footer */
      min-height: 200px; /* Minimum height to prevent content from being too short */
    }
    
    /* Additional spacing for last elements in modal content */
    .modal-content .reason-options:last-child,
    .modal-content .truck-selection:last-child,
    .modal-content .estimate-summary:last-child,
    .modal-content .login-content:last-child {
      margin-bottom: 5px;
    }
    
    /* Scroll hint styling */
    .scroll-hint {
      position: absolute;
      bottom: 10px;
      right: 10px;
      background: rgba(0, 0, 0, 0.8);
      color: white;
      padding: 6px 10px;
      border-radius: 15px;
      font-size: 11px;
      pointer-events: none;
      z-index: 1001;
      animation: fadeInOut 2s ease-in-out infinite;
      backdrop-filter: blur(4px);
    }
    
    /* Visual indicator for scrollable content */
    .modal-content[style*="border-right"] {
      position: relative;
    }

    .modal-footer {
      padding: 12px 20px 16px;
      border-top: 1px solid #eee;
      display: flex;
      gap: 10px;
      justify-content: flex-end;
      flex-shrink: 0; /* Prevent footer from shrinking */
      background: #fff; /* Ensure footer has solid background */
      position: sticky; /* Make footer sticky */
      bottom: 0; /* Stick to bottom */
      z-index: 200; /* Ensure footer is above content */
      box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); /* Add subtle shadow to separate from content */
    }

    /* Reason options */
    .reason-options {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .reason-option {
      display: flex;
      align-items: center;
      padding: 10px 14px;
      border: 2px solid #eee;
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.2s;
      gap: 12px;
    }

    /* Leading icon sits in a tinted badge so it anchors the row instead of
       floating in whitespace. Child combinator: must not hit the arrow icon
       inside the continue button. */
    .reason-option > i {
      font-size: 18px;
      width: 40px;
      height: 40px;
      flex-shrink: 0;
      border-radius: 10px;
      background: #eef4fb;
      color: #005dbf;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .reason-option.selected > i {
      background: #d4efe2;
      color: #148a50;
    }

    .reason-option:hover {
      border-color: #1aa260;
      background: #f8fff9;
    }

    .reason-option.selected {
      border-color: #1aa260;
      background: #e0f5ec;
    }

    .reason-option h4 {
      margin: 0 0 4px 0;
      font-size: 16px;
      font-weight: 600;
      color: #333;
    }

    .reason-option p {
      margin: 0;
      font-size: 14px;
      color: #666;
      width: 100%;
    }
    
    .reason-content {
      flex: 1;
      display: flex;
      flex-direction: column;
    }
    
    .reason-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 4px;
    }
    
    .reason-header h4 {
      margin: 0;
      font-size: 16px;
      font-weight: 600;
      color: #333;
    }
    
    .truck-continue-btn, .reason-continue-btn {
      background: #1aa260;
      color: white;
      border: none;
      border-radius: 8px;
      /* Collapsed until the card is selected — an invisible button must not
         reserve vertical space in every card */
      padding: 0;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      opacity: 0;
      visibility: hidden;
      white-space: nowrap;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-left: auto;
      margin-top: 0;
      height: 0;
      min-height: 0;
      overflow: hidden;
      min-width: 120px;
    }

    .truck-option.selected .truck-continue-btn,
    .reason-option.selected .reason-continue-btn {
      opacity: 1;
      visibility: visible;
      height: 36px;
      padding: 8px 12px;
      margin-top: 8px;
    }
    
    .truck-continue-btn:hover, .reason-continue-btn:hover {
      background: #148a50;
      transform: translateY(-1px);
    }
    
    .truck-continue-btn:active, .reason-continue-btn:active {
      transform: translateY(0);
    }
    
    .truck-continue-btn i.fa-arrow-right, .reason-continue-btn i.fa-arrow-right {
      font-size: 12px;
      margin-left: 3px;
      color: white !important;
    }
    
    /* Validation states for reason options */
    .reason-options.valid {
      border-color: #1aa260;
    }
    
    .reason-options.invalid {
      border-color: #ef4444;
      animation: shake 0.5s ease-in-out;
    }
    
    @keyframes shake {
      0%, 100% { transform: translateX(0); }
      25% { transform: translateX(-5px); }
      75% { transform: translateX(5px); }
    }
    
    @keyframes fadeInOut {
      0%, 100% { opacity: 0.7; }
      50% { opacity: 1; }
    }

    /* Form styles */
    .form-group {
      margin-bottom: 20px;
    }

    .form-group label {
      display: block;
      margin-bottom: 8px;
      font-weight: 500;
      color: #333;
    }

    .form-input {
      width: 100%;
      padding: 12px 16px;
      border: 2px solid #eee;
      border-radius: 8px;
      font-size: 14px;
      transition: border-color 0.2s;
      box-sizing: border-box;
    }

    .form-input:focus {
      outline: none;
      border-color: #1aa260;
    }

    .form-input:invalid {
      border-color: #ff6b35;
    }

    textarea.form-input {
      resize: vertical;
      min-height: 80px;
    }

    /* Button styles */
    .btn-primary, .btn-secondary {
      padding: 12px 24px;
      border: none;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
    }

    .btn-primary {
      background: #005dbf;
      color: white;
    }

    .btn-primary:hover:not(:disabled) {
      background: #169c5a;
      transform: translateY(-1px);
    }

    .btn-primary:disabled {
      background: #ccc;
      cursor: not-allowed;
      transform: none;
    }

    .btn-secondary {
      background: #f5f5f5;
      color: #666;
    }

    .btn-secondary:hover {
      background: #eee;
    }
    
    /* Cooldown state styling */
    .btn-secondary.cooldown {
      background: #f59e0b;
      color: white;
      cursor: not-allowed;
    }
    
    .btn-secondary.cooldown i {
      animation: pulse 1s infinite;
    }

    /* Estimate styles */
    .estimate-summary {
      background: #f8f9fa;
      border-radius: 12px;
      padding-top: 8px;
      padding-bottom: 8px;
      padding-left: 20px;
      padding-right: 20px;
      margin-bottom: 5px;
    }

    .estimate-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 0;
      border-bottom: 1px solid #eee;
    }

    .estimate-item:last-child {
      border-bottom: none;
    }

    .estimate-item.total {
      font-weight: 600;
      font-size: 16px;
      color: #1aa260;
      border-top: 2px solid #005dbf;
      padding-top: 12px;
      margin-top: 8px;
    }

    .estimate-note {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      padding: 12px;
      margin-top: 12px;
      margin-bottom: 60px; /* Increase bottom margin to prevent footer overlap */
      background: #fff3cd;
      border-radius: 8px;
      border-left: 4px solid #ffc107;
      position: relative; /* Ensure proper positioning context */
      z-index: 50; /* Ensure it's above background but below footer */
    }

    .estimate-note i {
      color: #856404;
      margin-top: 2px;
    }

    .estimate-note p {
      margin: 0;
      font-size: 14px;
      color: #856404;
    }
    
    /* Notes Section Styling */
    .notes-section {
      margin-top: 4px;
      margin-bottom: 4px;
      padding: 16px;
      background: #f8f9fa;
      border-radius: 8px;
      border: 1px solid #e9ecef;
    }
    
    .notes-section h4 {
      margin: 0 0 12px 0;
      font-size: 14px;
      font-weight: 600;
      color: #333;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    .notes-textarea {
      width: 100%;
      min-height: 80px;
      padding: 12px;
      border: 1px solid #ddd;
      border-radius: 6px;
      font-size: 14px;
      font-family: inherit;
      resize: vertical;
      transition: border-color 0.3s ease;
    }
    
    .notes-textarea:focus {
      outline: none;
      border-color: #2563EB;
      box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
    }
    
    .notes-char-count {
      margin-top: 6px;
      font-size: 12px;
      color: #666;
      text-align: right;
    }
    
    .notes-char-count.warning {
      color: #ff6b35;
    }
    
    /* Coupon Section Styling */
    .coupon-section {
      margin-top: 6px;
      margin-bottom: 6px; /* Add bottom margin to prevent footer overlap */
      padding: 16px;
      background: #f8f9fa;
      border-radius: 8px;
      border: 1px solid #e9ecef;
    }
    
    /* Mini Map Section Styling */
    .mini-map-section {
      margin-top: 6px;
      margin-bottom: 6px;
      padding: 16px;
      background: #f8f9fa;
      border-radius: 8px;
      border: 1px solid #e9ecef;
    }
    
    .mini-map-section h4 {
      margin: 0 0 12px 0;
      font-size: 14px;
      font-weight: 600;
      color: #333;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    .mini-map-container {
      width: 100%;
      height: 350px;
      border-radius: 6px;
      overflow: hidden;
      border: 1px solid #e9ecef;
      background: #e9ecef;
      position: relative;
    }
    
    .mini-map-placeholder {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 100%;
      color: #6c757d;
      text-align: center;
      padding: 20px;
    }
    
    .mini-map-placeholder i {
      font-size: 24px;
      margin-bottom: 8px;
      opacity: 0.6;
    }
    
    .mini-map-placeholder p {
      margin: 0;
      font-size: 13px;
      line-height: 1.4;
    }
    
    .coupon-section h4 {
      margin: 0 0 12px 0;
      font-size: 14px;
      font-weight: 600;
      color: #333;
    }
    
    .coupon-input-group {
      display: flex;
      gap: 8px;
      align-items: center;
    }
    
    .coupon-input {
      flex: 1;
      padding: 8px 12px;
      border: 1px solid #ddd;
      border-radius: 6px;
      font-size: 13px;
      outline: none;
      transition: border-color 0.2s;
    }
    
    .coupon-input:focus {
      border-color: #1aa260;
    }
    
    .btn-coupon-apply {
      padding: 8px 16px;
      background: #005dbf;
      color: white;
      border: none;
      border-radius: 6px;
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      transition: background-color 0.2s;
    }
    
    .btn-coupon-apply:hover {
      background: #159a56;
    }
    
    .btn-coupon-remove {
      padding: 8px 16px;
      background: #6c757d;
      color: white;
      border: none;
      border-radius: 6px;
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      transition: background-color 0.2s;
    }
    
    .btn-coupon-remove:hover {
      background: #5a6268;
    }
    
    .coupon-status {
      margin-top: 8px;
      padding: 8px 12px;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 500;
    }
    
    .coupon-status.success {
      background: #d4edda;
      color: #155724;
      border: 1px solid #c3e6cb;
    }
    
    .coupon-status.error {
      background: #f8d7da;
      color: #721c24;
      border: 1px solid #f5c6cb;
    }
    
    .coupon-status.hidden {
      display: none;
    }

    /* Requirements Alert Styling */
    .requirements-alert-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10000;
      animation: fadeIn 0.3s ease-out;
    }

    .requirements-alert {
      background: white;
      border-radius: 12px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
      max-width: 400px;
      width: 90%;
      animation: slideIn 0.3s ease-out;
    }

    .alert-header {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 20px 24px 16px;
      border-bottom: 1px solid #eee;
    }

    .alert-header i {
      color: #ff6b35;
      font-size: 20px;
    }

    .alert-header h3 {
      margin: 0;
      font-size: 18px;
      font-weight: 600;
      color: #333;
    }

    .alert-content {
      padding: 20px 24px;
    }

    .alert-content p {
      margin: 0;
      font-size: 14px;
      line-height: 1.5;
      color: #666;
      white-space: pre-line;
    }

    .alert-footer {
      padding: 16px 24px 20px;
      text-align: right;
      border-top: 1px solid #eee;
    }

    .alert-footer button {
      padding: 8px 20px;
      background: #005dbf;
      color: white;
      border: none;
      border-radius: 6px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: background-color 0.2s;
    }

    .alert-footer button:hover {
      background: #159a56;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

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

    /* Custom positioning for Mapbox geolocate button */
    .mapboxgl-ctrl-geolocate {
      position: absolute !important;
      top: 95px !important;
      right: 10px !important;
      left: auto !important;
      bottom: auto !important;
    }

    /* Estimate details styling */
    .estimate-details {
      background: #f8f9fa;
      border-radius: 8px;
      padding: 16px;
      margin: 4px 0;
      border-left: 4px solid #005dbf;
    }

    .detail-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 4px 0;
      font-size: 14px;
    }

    .detail-row:first-child {
      padding-top: 0;
    }

    .detail-row:last-child {
      padding-bottom: 0;
    }

    .detail-row span:first-child {
      color: #666;
      font-weight: 500;
    }

    .detail-row span:last-child {
      color: #333;
      font-weight: 600;
    }

    .condition-fee {
      border-top: 1px solid #eee;
      padding-top: 12px;
      margin-top: 8px;
    }
    
    .discount-item {
      color: #28a745;
      font-weight: 600;
    }

    /* Confirmation styles */
    .confirmation-message {
      text-align: center;
      padding: 20px 0;
    }

    .confirmation-message i {
      font-size: 48px;
      color: #1aa260;
      margin-bottom: 16px;
    }

    .confirmation-message h4 {
      margin: 0 0 8px 0;
      font-size: 20px;
      color: #333;
    }

    .confirmation-message p {
      margin: 0 0 24px 0;
      color: #666;
    }

    /* Scoped to the confirmation summary box — bare `.truck-info` also matches
       the step-2 truck cards and gave each one a second padded panel inside */
    .confirmation-message .truck-info {
      background: #f8f9fa;
      border-radius: 12px;
      padding: 16px;
      text-align: left;
    }

    .info-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 0;
      border-bottom: 1px solid #eee;
    }

    .info-item:last-child {
      border-bottom: none;
    }

    .info-item span:first-child {
      font-weight: 500;
      color: #666;
    }

    .info-item span:last-child {
      font-weight: 600;
      color: #333;
    }

    /* ----------  Login Gate Styles ---------- */
    .login-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.8);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2000;
      backdrop-filter: blur(8px);
    }

    .login-modal {
      background: #fff;
      border-radius: 16px;
      width: 90%;
      max-width: 400px;
      padding: 32px;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
      animation: modalSlideIn 0.3s ease;
    }

    .login-header {
      text-align: center;
      margin-bottom: 24px;
      position: relative;
      padding-top: 8px;
    }

    .login-header h2 {
      margin: 0 0 8px 0;
      font-size: 24px;
      font-weight: 600;
      color: #333;
      padding-left: 44px;
      padding-right: 44px;
    }

    .login-back-btn {
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: #666;
      font-size: 18px;
      cursor: pointer;
      padding: 8px;
      border-radius: 50%;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
    }

    .login-back-btn:hover {
      background: #f5f5f5;
      color: #333;
    }

    .login-back-btn:active {
      transform: translateY(-50%) scale(0.95);
    }

    .login-subtitle {
      margin: 0;
      font-size: 16px;
      color: #666;
    }

    .login-content {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .input-group {
      display: flex;
      gap: 12px;
      align-items: flex-start;
    }

    /* Side-by-side row, so the label is its own column rather than a caption
       stacked above the field: the block margin below it was what made it
       read as floating above the input. */
    .input-group .form-label {
      align-self: center;
      margin-bottom: 0;
    }

    .input-group .form-input {
      flex: 1;
      font-size: 16px;
      padding: 12px 16px;
    }

    .input-group .btn-primary {
      white-space: nowrap;
      padding: 12px 20px;
    }

    /* Below ~480px the label, field and button no longer fit on one line, so
       stack them and give the label its caption margin back. */
    @media (max-width: 480px) {
      .input-group {
        flex-direction: column;
        align-items: stretch;
      }

      .input-group .form-label {
        align-self: flex-start;
        margin-bottom: 6px;
      }

      .input-group .btn-primary {
        width: 100%;
      }
    }

    .consent-checkbox {
      margin-top: 16px;
    }

    .checkbox-label {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      cursor: pointer;
      font-size: 14px;
      color: #666;
      line-height: 1.4;
    }

    .checkbox-label input[type="checkbox"] {
      display: none;
    }

    .checkmark {
      width: 20px;
      height: 20px;
      border: 2px solid #ddd;
      border-radius: 4px;
      position: relative;
      flex-shrink: 0;
      margin-top: 2px;
    }

    .checkbox-label input[type="checkbox"]:checked + .checkmark {
      background: #005dbf;
      border-color: #1aa260;
    }

    .checkbox-label input[type="checkbox"]:checked + .checkmark::after {
      content: '✓';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      color: white;
      font-size: 12px;
      font-weight: bold;
    }

    .consent-text {
      flex: 1;
    }

    .otp-section {
      border-top: 1px solid #eee;
      padding-top: 20px;
      margin-top: 20px;
    }

    .otp-section.hidden {
      display: none;
    }

    .otp-instructions {
      font-size: 14px;
      color: #666;
      margin-bottom: 12px;
    }

    .otp-input-group {
      display: flex;
      gap: 12px;
      align-items: center;
    }

    .otp-input {
      flex: 1;
      text-align: center;
      font-size: 18px;
      font-family: monospace;
      letter-spacing: 2px;
    }

    .otp-status {
      display: block;
      margin-top: 8px;
      font-size: 14px;
      text-align: center;
    }

    .otp-status.success {
      color: #1aa260;
    }

    .otp-status.error {
      color: #ff6b35;
    }

    /* Toast notifications — bottom-left, raised well above the modal footer
       row so they never cover the Back / Continue buttons */
    .toast-host {
      position: fixed;
      bottom: calc(env(safe-area-inset-bottom, 0px) + 80px);
      left: 16px;
      max-width: calc(100vw - 32px);
      z-index: 3000;
      pointer-events: none;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
    }

    .toast {
      background: #333;
      color: white;
      padding: 12px 20px;
      border-radius: 8px;
      margin-bottom: 8px;
      font-size: 14px;
      opacity: 1;
      transition: opacity 0.3s;
      display: flex;
      align-items: center;
      gap: 8px;
      animation: slideInLeft 0.3s ease;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    @keyframes slideInLeft {
      from { transform: translateX(-16px); opacity: 0; }
      to { transform: translateX(0); opacity: 1; }
    }
    
    .toast-success {
      background: #1aa260;
      border-left: 4px solid #0d8f4a;
    }
    
    .toast-error {
      background: #ef4444;
      border-left: 4px solid #dc2626;
    }
    
    .toast-warning {
      background: #f59e0b;
      border-left: 4px solid #d97706;
    }
    
    .toast-info {
      background: #3b82f6;
      border-left: 4px solid #2563eb;
    }
    
    .toast i {
      font-size: 16px;
      flex-shrink: 0;
    }

    /* Traditional login styles */
    .login-divider {
      position: relative;
      text-align: center;
      margin: 6px 0;
    }

    .login-divider::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 0;
      right: 0;
      height: 1px;
      background: #eee;
    }

	.login-divider span {
	  background: #fff;  
	  padding: 0 16px;
	  color: #666;
	  font-size: 14px;
	  font-weight: bold;  
	  position: relative; 
	  z-index: 1; 
	}

    .traditional-login {
      margin-top: 6px;
    }

    .login-tabs {
      display: flex;
      border-bottom: 2px solid #eee;
      margin-bottom: 20px;
    }

    .tab-btn {
      flex: 1;
      padding: 12px;
      background: none;
      border: none;
      font-size: 14px;
      font-weight: 500;
      color: #666;
      cursor: pointer;
      transition: all 0.2s;
      border-bottom: 2px solid transparent;
    }

    .tab-btn.active {
      color: #1aa260;
      border-bottom-color: #1aa260;
    }

    .tab-btn:hover {
      color: #1aa260;
    }

    .login-form {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .login-form.hidden {
      display: none;
    }

    .login-form .form-group {
      margin: 0;
    }

    .login-form .form-input {
      width: 100%;
      font-size: 14px;
      padding: 12px 16px;
    }

    .login-status {
      font-size: 14px;
      text-align: center;
      min-height: 20px;
    }

    .login-status.error {
      color: #ff6b35;
    }

    .login-status.success {
      color: #1aa260;
    }

    /* Login section labels */
    .login-section-label {
      margin: 0 0 16px 0;
      font-size: 16px;
      font-weight: 600;
      color: #333;
      text-align: center;
    }

    /* Social login */
    .social-login-section { margin-bottom: 4px; }
    .social-buttons {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .social-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      width: 100%;
      padding: 11px 16px;
      border-radius: 8px;
      border: 1px solid #dadce0;
      background: #fff;
      color: #3c4043;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      text-decoration: none;
      line-height: 1.2;
      transition: background .15s, box-shadow .15s;
    }
    .social-btn:hover { background: #f7f8f8; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
    .social-btn:focus-visible { outline: 2px solid #0b63ce; outline-offset: 2px; }
    .social-btn svg { width: 18px; height: 18px; flex: 0 0 18px; }
    .social-btn-apple { background: #000; border-color: #000; color: #fff; }
    .social-btn-apple:hover { background: #1a1a1a; }
    .social-btn-facebook { background: #1877f2; border-color: #1877f2; color: #fff; }
    .social-btn-facebook:hover { background: #166fe0; }
    .social-divider {
      display: flex;
      align-items: center;
      text-align: center;
      color: #888;
      font-size: 13px;
      margin: 18px 0 14px;
    }
    .social-divider::before,
    .social-divider::after {
      content: "";
      flex: 1;
      border-bottom: 1px solid #e3e5e8;
    }
    .social-divider span { padding: 0 12px; }
    .login-hint {
      margin: 10px 0 0;
      font-size: 13px;
      color: #666;
      text-align: center;
    }
    .otp-actions {
      margin-top: 12px;
      text-align: center;
      font-size: 13px;
    }
    .otp-actions-sep { color: #bbb; margin: 0 8px; }
    .link-btn {
      background: none;
      border: 0;
      padding: 0;
      color: #0b63ce;
      font-size: 13px;
      font-family: inherit;
      text-decoration: underline;
      cursor: pointer;
    }
    .link-btn:hover { color: #084a9b; }
    .link-btn[disabled] {
      color: #999;
      text-decoration: none;
      cursor: default;
    }
    /* ---------- Accessibility primitives ---------- */

    /* Visible to screen readers, not on screen. Used where the surrounding
       heading already conveys the field's purpose visually. */
    .sr-only {
      position: absolute;
      width: 1px; height: 1px;
      padding: 0; margin: -1px;
      overflow: hidden;
      clip: rect(0 0 0 0);
      white-space: nowrap;
      border: 0;
    }

    /* Skip link - first tab stop, lets keyboard users jump past the header. */
    .skip-link {
      position: absolute;
      left: -9999px;
      top: 0;
      z-index: 10000;
      padding: 10px 16px;
      background: #0b63ce;
      color: #fff;
      border-radius: 0 0 8px 0;
      font-weight: 600;
    }
    .skip-link:focus { left: 0; }

    /* Keyboard focus must be visible everywhere. :focus-visible keeps the ring
       off mouse clicks, so this does not change the pointer experience. */
    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible,
    [tabindex]:focus-visible {
      outline: 3px solid #0b63ce;
      outline-offset: 2px;
      border-radius: 4px;
    }

    .form-label {
      display: block;
      font-size: 13px;
      font-weight: 600;
      color: #444;
      margin-bottom: 6px;
    }

    /* Persistent, field-adjacent validation. Toasts vanish after 3s and cannot
       be recalled; these stay until the problem is fixed. */
    .field-error {
      display: none;
      margin: 8px 0 0;
      font-size: 13px;
      color: #8a1c12;
      font-weight: 500;
    }
    .field-error.visible { display: block; }
    .form-input.has-error,
    .coupon-input.has-error {
      border-color: #d93025 !important;
      background: #fff8f7;
    }

    /* Respect the OS "reduce motion" setting. Vestibular disorders make large
       transitions genuinely unpleasant, and this is a stressful context. */
    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
      }
    }

    /* Already-signed-in state */
    .signed-in-panel {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
      padding: 16px;
      border: 1px solid #bde0c8;
      background: #f2faf5;
      border-radius: 10px;
    }
    .signed-in-panel.hidden { display: none; }
    .signed-in-check {
      flex: 0 0 32px;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: #14612f;
      color: #fff;
      font-size: 17px;
      line-height: 32px;
      text-align: center;
      font-weight: 700;
    }
    .signed-in-text { flex: 1 1 auto; min-width: 0; }
    .signed-in-title { font-weight: 600; color: #14612f; font-size: 15px; }
    .signed-in-who {
      font-size: 13px;
      color: #4a6b55;
      margin-top: 2px;
      overflow-wrap: anywhere;
    }
    .signed-in-switch {
      flex: 0 0 auto;
      font-size: 13px;
      color: #0b63ce;
      text-decoration: underline;
      cursor: pointer;
    }
    .login-banner {
      padding: 10px 12px;
      border-radius: 8px;
      font-size: 14px;
      margin-bottom: 14px;
      display: none;
    }
    .login-banner.error { background: #fdecea; color: #8a1c12; border: 1px solid #f5c6c0; }
    .login-banner.success { background: #e7f5ec; color: #14612f; border: 1px solid #bde0c8; }

    /* Location reminder styling */
    .location-reminder {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      padding: 12px;
      background: #fff3cd;
      border-radius: 8px;
      border-left: 4px solid #ffc107;
      margin-top: 16px;
    }

    .location-reminder i {
      color: #856404;
      margin-top: 2px;
    }

    .location-reminder p {
      margin: 0;
      font-size: 14px;
      color: #856404;
    }

    /* Truck selection styling */
    /* Guidance line above the truck cards: tells the user the safe default is
       already picked, so most people can just tap Continue */
    .truck-selection-hint {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      margin: 0 0 12px;
      padding: 10px 12px;
      border-radius: 10px;
      background: #eef4fb;
      color: #1f3b63;
      font-size: 13px;
      line-height: 1.4;
    }

    .truck-selection-hint i {
      color: #005dbf;
      margin-top: 2px;
      flex-shrink: 0;
    }

    .truck-selection {
      display: flex;
      flex-direction: column;
      gap: 12px; /* room for the badges that sit on the top edge of cards */
    }

    .truck-option {
      position: relative; /* anchor for .truck-badge */
      display: flex;
      align-items: center;
      padding: 10px 12px;
      border: 2px solid #eee;
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.2s;
      gap: 8px;
    }

    /* Recommended card reads as the default even before it's highlighted */
    .truck-option--recommended {
      border-color: #9ec2f0;
      background: #f7fbff;
    }

    /* Small pill on the top edge of a card: "Recommended" / "Lowest cost" */
    .truck-badge {
      position: absolute;
      top: -10px;
      left: 12px;
      padding: 2px 9px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 600;
      line-height: 16px;
      letter-spacing: 0.02em;
      color: #fff;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
      pointer-events: none;
    }

    .truck-badge--recommended {
      background: #005dbf;
    }

    .truck-badge--value {
      background: #1aa260;
    }

    .truck-option:hover {
      border-color: #1aa260;
      background: #f8fff9;
    }

    .truck-option.selected {
      border-color: #1aa260;
      background: #e0f5ec;
    }

    .truck-option img {
      width: 80px;
      height: 60px;
      object-fit: cover;
      border-radius: 8px;
    }

    .truck-info {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    /* The row that only holds the collapsed Continue button still costs two
       flex gaps while hidden — drop it from the flow until the card is
       selected (progressive enhancement; harmless where :has is unsupported) */
    .truck-option:not(.selected) .truck-details:has(> .truck-continue-btn) {
      display: none;
    }
    
    .truck-info-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    
    .truck-text {
      flex: 1;
    }
    


    .truck-text h4 {
      margin: 0 0 4px 0;
      font-size: 18px;
      font-weight: 600;
      color: #333;
    }

    .truck-text p {
      margin: 0 0 8px 0;
      font-size: 14px;
      color: #666;
    }

    .truck-details {
      display: flex;
      gap: 6px;
      align-items: center;
    }

    .truck-details .fare {
      font-weight: 600;
      color: #1aa260;
      font-size: 16px;
    }

    .truck-details .eta {
      background: #f3f4f6;
      padding: 4px 8px;
      border-radius: 4px;
      font-size: 12px;
      color: #666;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .truck-details .description {
      background: #f3f4f6;
      padding: 4px 8px;
      border-radius: 4px;
      font-size: 12px;
      color: #666;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    
    /* Validation states for truck selection */
    .truck-selection.valid {
      border-color: #1aa260;
    }
    
    .truck-selection.invalid {
      border-color: #ef4444;
      animation: shake 0.5s ease-in-out;
    }

    /* ----------  Bottom sheet ---------- */
    .sheet {
      position: absolute;
      inset-inline: 0;
      bottom: 0;
      max-height: 75%;
      background: #fff;
      border-radius: 16px 16px 0 0;
      box-shadow: 0 -2px 12px rgba(0,0,0,.15);
      transform: translateY(60%);
      transition: transform .3s ease;
      display: flex;
      flex-direction: column;
      z-index: 5;
    }
    .sheet.open { transform: translateY(0); }
    .sheet.closed { transform: translateY(85%); }
    
    .handle { 
      width: 40px; 
      height: 4px; 
      background: #ccc; 
      border-radius: 2px; 
      margin: 4px auto; 
      cursor: pointer;
      transition: background-color 0.2s ease;
      touch-action: none;
    }
    .handle:hover {
      background: #999;
    }
    
    /* Enhanced mobile touch interactions */
    .sheet {
      touch-action: pan-y;
      overscroll-behavior: contain;
    }
    
    /* Mobile-optimized button sizes */
    @media (max-width: 768px) {
      .sheet-buttons {
        padding: 0 8px 8px;
      }
      
      .back-btn, .start-over-btn, .confirm {
        padding: 12px 16px;
        font-size: 14px;
        min-height: 36px; /* Better touch target */
      }
      
      .quick-actions-toggle-compact {
        width: 30px !important;
        height: 30px !important;
        padding: 5px !important;
      }
      
      .quick-actions-menu-compact {
        right: 0 !important;
        left: auto !important;
        transform: none !important;
        min-width: 140px !important;
      }
      
      .handle {
        width: 50px;
        height: 6px;
        margin: 8px auto;
      }
    }

    /* ----------  Ride-type carousel ---------- */
    .rides { 
      display: flex; 
      gap: 8px; 
      overflow-x: auto; 
      padding: 12px 14px 16px; 
      scrollbar-width: none; /* Firefox */
      -ms-overflow-style: none; /* IE/Edge */
    }
    
    .rides::-webkit-scrollbar {
      display: none; /* Chrome/Safari */
    }
    
    .ride {
      min-width: 110px;
      background: #ffffff;
      border: 1.5px solid #e5e7eb;
      border-radius: 12px;
      padding: 10px 8px;
      text-align: center;
      flex-shrink: 0;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
      position: relative;
      overflow: hidden;
    }
    
    .ride::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: #005dbf;
      transform: translateX(-100%);
      transition: transform 0.3s ease;
    }
    
    .ride:hover::before,
    .ride.selected::before {
      transform: translateX(0);
    }
    
    .ride img { 
      width: 55px; 
      height: 38px;
      object-fit: contain;
      margin-bottom: 8px; 
      filter: grayscale(20%);
      transition: filter 0.3s ease;
    }
    
    .ride:hover img,
    .ride.selected img {
      filter: grayscale(0%);
    }
    
    .ride > div:nth-child(2) {
      font-size: 14px;
      font-weight: 600;
      color: #1f2937;
      margin-bottom: 3px;
    }
    
    .ride:hover,
    .ride.selected { 
      background: #f8fffe;
      border-color: #1aa260;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(26, 162, 96, 0.12);
    }
    
    .fare { 
      font-size: 11px; 
      color: #6b7280; 
      line-height: 1.2;
      font-weight: 500;
    }
    
    .ride.selected .fare {
      color: #1aa260;
    }

    /* ----------  Sheet buttons container ---------- */
    .sheet-buttons {
      display: flex;
      gap: 8px;
      margin: 6px 8px 8px;
      align-items: center;
      position: relative; /* For positioning the quick actions menu */
    }

    /* ----------  Back button ---------- */
    .back-btn {
      padding: 8px 12px;
      font-size: 12px;
      font-weight: 500;
      text-align: center;
      color: #6b7280;
      background: #f3f4f6;
      border: 1px solid #d1d5db;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      flex-shrink: 0;
    }

    .back-btn:hover {
      background: #e5e7eb;
      color: #374151;
      transform: translateY(-1px);
    }

    .back-btn:active {
      transform: translateY(0);
    }

    /* ----------  Start Over button ---------- */
    .start-over-btn {
      padding: 8px 12px;
      font-size: 12px;
      font-weight: 500;
      text-align: center;
      color: #dc2626;
      background: #fef2f2;
      border: 1px solid #fecaca;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .start-over-btn:hover {
      background: #fee2e2;
      color: #b91c1c;
      transform: translateY(-1px);
    }

    .start-over-btn:active {
      transform: translateY(0);
    }

    /* ----------  Confirm button ---------- */
    .confirm {
      margin: 0;
      padding: 8px 16px;
      font-size: 14px;
      font-weight: 600;
      text-align: center;
      color: #fff;
      background: #005dbf;
      border: none;
      border-radius: 8px;
      box-shadow: 0 2px 6px rgba(0,93,191,.25);
      cursor: pointer;
      position: relative;
      overflow: hidden;
      transition: all 0.2s ease;
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 16px;
    }

    .confirm::before {
      content: '';
      position: absolute;
      inset: 0;
      background: transparent;
      opacity: 0;
      transition: opacity 0.2s ease;
    }

    .confirm:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(26,162,96,.2);
    }

    .confirm:hover::before {
      opacity: 1;
    }
    
    .confirm:active {
      transform: translateY(0);
      box-shadow: 0 2px 4px rgba(26,162,96,.15);
    }

    .confirm.disabled {
      background: #e5e7eb;
      color: #9ca3af;
      cursor: not-allowed;
      box-shadow: none;
      transform: none;
    }
    
    .confirm.disabled:hover {
      transform: none;
      box-shadow: none;
    }
    
    /* ----------  Return to Progress Section ---------- */
    .return-to-progress {
      padding: 8px 20px;
      border-top: 1px solid #e5e7eb;
      margin-top: 0;
      background: #f8f9fa;
      border-radius: 0 0 12px 12px;
    }
    
    .progress-summary {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      color: #6b7280;
      justify-content: center;
    }
    
    .return-btn {
      background: #005dbf;
      color: white;
      border: none;
      padding: 3px 10px;
      border-radius: 12px;
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    
    .return-btn:hover {
      background: #004a99;
      transform: translateY(-1px);
    }
    
    /* Quick Actions Menu - Compact Layout */
    .quick-actions-toggle-compact {
      background: #f3f4f6;
      border: 1px solid #d1d5db;
      color: #6b7280;
      padding: 8px;
      border-radius: 50%;
      width: 36px;
      height: 36px;
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    
    .quick-actions-toggle-compact:hover {
      background: #e5e7eb;
      color: #374151;
      transform: none;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .quick-actions-toggle-compact:active {
      transform: scale(0.98);
    }
    
    .quick-actions-menu-compact {
      position: absolute;
      bottom: 100%;
      right: 0;
      background: white;
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      padding: 8px;
      margin-bottom: 8px;
      min-width: 150px;
      z-index: 1000;
    }
    
    .quick-action-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      width: 100%;
      padding: 8px 12px;
      border: none;
      background: none;
      color: #374151;
      font-size: 13px;
      cursor: pointer;
      border-radius: 4px;
      transition: background-color 0.2s ease;
    }
    
    .quick-action-btn:hover {
      background: #f3f4f6;
    }
    
    .quick-action-btn i {
      font-size: 12px;
      width: 16px;
      text-align: center;
    }
    
    /* Help Modal */
    .help-modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10000;
    }
    
    .help-modal {
      background: white;
      border-radius: 12px;
      width: 90%;
      max-width: 500px;
      max-height: 80vh;
      overflow: hidden;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }
    
    .help-modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px;
      border-bottom: 1px solid #e5e7eb;
    }
    
    .help-modal-header h3 {
      margin: 0;
      color: #374151;
    }
    
    .help-modal-close {
      background: none;
      border: none;
      font-size: 24px;
      color: #6b7280;
      cursor: pointer;
      padding: 0;
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 4px;
      transition: background-color 0.2s ease;
    }
    
    .help-modal-close:hover {
      background: #f3f4f6;
    }
    
    .help-modal-content {
      padding: 20px;
      overflow-y: auto;
      max-height: 60vh;
    }
    
    .help-content h3 {
      margin: 0 0 16px 0;
      color: #374151;
    }
    
    .help-content ul {
      margin: 0;
      padding-left: 20px;
    }
    
    .help-content li {
      margin-bottom: 8px;
      color: #6b7280;
      line-height: 1.5;
    }
    
    .help-content strong {
      color: #374151;
    }

    .confirm.disabled::before {
      display: none;
    }
    
    /* Distance info styling */
    .distance-info {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 6px 8px;
      margin: 4px 10px;
      background: #f8f9fa;
      border-radius: 8px;
      border-left: 4px solid #005dbf;
      font-size: 15px;
      font-weight: 500;
      color: #333;
    }
    
    .distance-info i {
      color: #1aa260;
      font-size: 16px;
    }

    /* Floating distance info styling */
    .distance-info-floating {
      position: absolute;
      top: 130px;
      left: 40%;
      transform: translateX(-50%);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 8px 16px;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      border-radius: 20px;
      border: 1px solid rgba(26, 162, 96, 0.2);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      font-size: 14px;
      font-weight: 500;
      color: #333;
      z-index: 5;
      transition: all 0.3s ease;
    }
    
    .distance-info-floating i {
      color: #1aa260;
      font-size: 14px;
    }
    
    .distance-info-floating:hover {
      background: rgba(255, 255, 255, 0.98);
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
      transform: translateX(-50%) translateY(-1px);
    }
    
    /* Distance continue button styling */
    .distance-continue-btn {
      background: #1aa260;
      color: white;
      border: none;
      border-radius: 16px;
      padding: 6px 10px;
      font-size: 12px;
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      min-width: 24px;
      height: 24px;
      margin-left: 8px;
      /* Never let the flex container squeeze the button into wrapping
         its label onto two lines */
      flex-shrink: 0;
      white-space: nowrap;
    }
    
    .distance-continue-btn:hover {
      background: #148a50;
      transform: scale(1.1);
    }
    
    .distance-continue-btn:active {
      transform: scale(0.95);
    }
    
    .distance-continue-btn i {
      font-size: 10px;
      color: white !important;
    }
    
    @keyframes flash { to { opacity: 0; } }

    /* Fun pulse animation */
    @keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
    .pulse { animation: pulse 1.5s infinite; }

    /* Hide the geocoder dropdown's "Powered by Mapbox" footer. Attribution
       stays compliant: results are displayed in conjunction with the Mapbox
       map, which carries its own attribution control. (The footer also
       rendered mispositioned inside the injected empty-state dropdown.) */
    .mapboxgl-ctrl-geocoder--powered-by {
      display: none !important;
    }

    /* Destination dropdown: non-interactive guidance row pinned to the top */
    .suggestions .suggestions-hint {
      padding: 10px 12px 8px;
      font-size: 14px;
      font-weight: 500;
      color: #4b5563;
      background: #fafbfc;
      border-bottom: 1px solid #f0f0f0;
      pointer-events: none;
      list-style: none;
    }

    /* Custom action rows: "I'll Decide Later..." / "Find Nearby Services" */
    li.decide-later-custom,
    li.find-services-custom {
      cursor: pointer;
      border-bottom: 1px solid #f0f0f0;
    }

    li.decide-later-custom > a,
    li.find-services-custom > a {
      display: block;
      text-decoration: none;
    }

    .custom-suggestion {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 4px 0;
    }

    .custom-suggestion-icon {
      width: 32px;
      height: 32px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      font-size: 14px;
    }

    li.decide-later-custom .custom-suggestion-icon {
      background: #fff3e0;
      color: #ff6b35;
    }

    li.find-services-custom .custom-suggestion-icon {
      background: #e6f6ee;
      color: #1aa260;
    }

    .custom-suggestion-text {
      display: flex;
      flex-direction: column;
      min-width: 0;
    }

    .custom-suggestion-title {
      font-size: 14px;
      font-weight: 600;
      color: #333;
    }

    .custom-suggestion-sub {
      font-size: 12px;
      color: #6b7280;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    li.decide-later-custom:hover,
    li.find-services-custom:hover {
      background-color: #f8fff9;
    }
    
    /* Hide default Mapbox geocoder icons */
    .mapboxgl-ctrl-geocoder--icon {
      display: none !important;
    }
    
    /* Services Search Modal */
    .services-modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 10000;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      box-sizing: border-box;
    }
    
    .services-modal.active {
      display: flex;
    }
    
    .services-modal-content {
      background: white;
      border-radius: 12px;
      max-width: 800px;
      /* Definite height so the map/results area gets all remaining space
         instead of leaving a dead band at the bottom of the modal */
      height: 90vh;
      height: 90dvh;
      max-height: 90vh;
      max-height: 90dvh;
      width: 100%;
      display: flex;
      flex-direction: column;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    .services-modal-header {
      padding: 20px 24px 16px;
      border-bottom: 1px solid #eee;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    
    .services-modal-header h3 {
      margin: 0;
      font-size: 20px;
      font-weight: 600;
      color: #333;
    }
    
    .services-modal-close {
      background: none;
      border: none;
      font-size: 24px;
      cursor: pointer;
      color: #666;
      padding: 0;
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      transition: all 0.2s;
    }
    
    .services-modal-close:hover {
      background: #f5f5f5;
      color: #333;
    }

    /* Header title sits next to the back button, close stays at the far right */
    .services-modal-header-left {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
    }

    /* Way out of the services search for people who only wanted to type an
       address — returns to the destination field instead of dead-ending */
    .services-modal-back {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: none;
      border: none;
      padding: 6px 10px;
      margin-left: -10px;
      border-radius: 8px;
      color: #1aa260;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: background 0.2s, color 0.2s;
    }

    .services-modal-back:hover {
      background: #f0f9f4;
      color: #148a50;
    }

    .services-modal-back:focus-visible {
      outline: 2px solid #1aa260;
      outline-offset: 2px;
    }

    /* Hint on the left, the address escape hatch on the right */
    .services-search-footnote {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      margin-top: 8px;
    }

    .services-search-hint {
      font-size: 12px;
      color: #666;
    }

    .services-address-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: none;
      border: none;
      padding: 4px 0;
      color: #1aa260;
      font-size: 13px;
      font-weight: 600;
      text-decoration: underline;
      text-underline-offset: 2px;
      cursor: pointer;
      transition: color 0.2s;
    }

    .services-address-link:hover {
      color: #148a50;
    }

    .services-address-link:focus-visible {
      outline: 2px solid #1aa260;
      outline-offset: 2px;
      border-radius: 4px;
    }
    
    .services-modal-body {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }
    
    .services-search-section {
      padding: 20px 24px;
      border-bottom: 1px solid #eee;
    }
    
    .services-search-controls {
      display: flex;
      gap: 12px;
      margin-bottom: 16px;
    }
    
    .services-location-input {
      flex: 1;
      padding: 10px 12px;
      border: 2px solid #ddd;
      border-radius: 8px;
      font-size: 14px;
      transition: border-color 0.2s;
    }
    
    .services-location-input:focus {
      outline: none;
      border-color: #1aa260;
    }
    
    .services-category-select {
      padding: 10px 12px;
      border: 2px solid #ddd;
      border-radius: 8px;
      font-size: 14px;
      background: white;
      cursor: pointer;
      transition: border-color 0.2s;
    }
    
    .services-category-select:focus {
      outline: none;
      border-color: #1aa260;
    }
    
    .services-search-btn {
      padding: 10px 20px;
      background: #1aa260;
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: background 0.2s;
    }
    
    .services-search-btn:hover {
      background: #148a50;
    }
    
    .services-search-btn:disabled {
      background: #ccc;
      cursor: not-allowed;
    }
    
    .services-location-btn {
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
      background: #1aa260;
      color: white;
      border: none;
      border-radius: 6px;
      padding: 8px 10px;
      cursor: pointer;
      font-size: 12px;
      transition: all 0.2s;
      z-index: 2;
    }
    
    .services-location-btn:hover {
      background: #148a50;
      transform: translateY(-50%);
    }
    
    .services-location-btn:active {
      transform: translateY(-50%) scale(0.95);
    }
    
    .services-location-btn.loading {
      background: #666;
      cursor: not-allowed;
    }
    
    .services-location-btn.loading i {
      animation: spin 1s linear infinite;
    }
    
    @keyframes spin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }
    
    .services-map-container {
      flex: 1;
      min-height: 0; /* Let flexbox size it; a fixed min pushed the modal taller than the viewport */
      position: relative;
    }
    
    .services-map {
      width: 100%;
      height: 100%;
      border-radius: 0 0 12px 12px;
    }
    
    .services-results-panel {
      position: absolute;
      top: 0;
      right: 0;
      width: 300px;
      height: 100%;
      background: white;
      border-left: 1px solid #eee;
      overflow-y: auto;
      z-index: 1;
    }
    
    .services-result-item {
      padding: 12px 16px;
      border-bottom: 1px solid #eee;
      cursor: pointer;
      transition: background 0.2s;
    }
    
    .services-result-item:hover {
      background: #f8f9fa;
    }
    
    .services-result-item.selected {
      background: #e8f5e8;
      border-left: 4px solid #1aa260;
    }
    
    .services-result-name {
      font-weight: 600;
      font-size: 14px;
      color: #333;
      margin-bottom: 4px;
    }
    
    .services-result-address {
      font-size: 12px;
      color: #666;
      margin-bottom: 4px;
    }
    
    .services-result-distance {
      font-size: 11px;
      color: #1aa260;
      font-weight: 500;
    }
    
    /* Mobile responsiveness for services modal */
    @media (max-width: 768px) {
      .services-modal {
        padding: 10px;
      }
      
      .services-modal-content {
        height: 95vh;
        height: 95dvh;
        max-height: 95vh;
        max-height: 95dvh;
      }

      .services-search-controls {
        flex-direction: column;
      }

      .services-search-footnote {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
      }

      .services-address-link {
        font-size: 14px;
      }

      .services-modal-header h3 {
        font-size: 17px;
      }

      /* Stack map (fixed height) above the results panel, which takes ALL
         remaining modal height instead of a fixed 200px strip */
      .services-map-container {
        display: flex;
        flex-direction: column;
        min-height: 0;
      }

      .services-map {
        flex: 0 0 200px;
        height: 200px;
        border-radius: 0;
      }

      .services-results-panel {
        position: relative;
        width: 100%;
        height: auto;
        flex: 1;
        min-height: 120px;
        border-left: none;
        border-top: 1px solid #eee;
        border-radius: 0 0 12px 12px;
      }
    }
    
    /* Location button styling */
    .location-btn {
      background: none;
      border: 1px solid #e5e7eb;
      color: #6b7280;
      padding: 6px;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.2s ease;
      margin-left: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
    }
    
    .location-btn:hover {
      background-color: #f3f4f6;
      border-color: #005dbf;
      color: #005dbf;
    }
    
    .location-btn:active {
      transform: scale(0.95);
    }
    
    .location-btn.loading {
      animation: spin 1s linear infinite;
      border-color: #005dbf;
      color: #005dbf;
    }
    
    /* Inline location button styling */
    .inline-location-btn {
      position: absolute;
      right: 45px; /* Positioned to the left of clear button with more space */
      top: 50%;
      transform: translateY(-50%);
      background: #f8f9fa;
      border: 1px solid #e5e7eb;
      color: #6b7280;
      padding: 6px 12px;
      border-radius: 16px;
      font-size: 12px;
      cursor: pointer;
      transition: all 0.2s;
      display: none;
      align-items: center;
      gap: 4px;
      z-index: 10;
      white-space: nowrap;
    }
    
    .inline-location-btn:hover {
      background: #005dbf;
      border-color: #005dbf;
      color: white;
      transform: translateY(-50%);
    }
    
    .inline-location-btn:active {
      transform: translateY(-50%) scale(0.98);
    }
    
    .inline-location-btn.loading {
      animation: spin 1s linear infinite;
      border-color: #005dbf;
      color: #005dbf;
    }
    
    /* Show inline button when input is focused and empty */
    .search-container .search.focused .inline-location-btn.show {
      display: flex;
    }
    
    /* Specific positioning and styling for the decide later button */
    #destinationDecideLaterBtn {
      right: 170px !important; /* Moved 30px further left */
      background: #fff3e0 !important;
      border-color: #f57c00 !important;
      color: #f57c00 !important;
    }
    
    #destinationDecideLaterBtn:hover {
      background: #f57c00 !important;
      border-color: #f57c00 !important;
      color: white !important;
      transform: translateY(-50%) !important;
    }
    
    /* Specific positioning for the destination use location button */
    #destinationInlineLocationBtn {
      right: 45px !important; /* Keep closer to the right */
    }
    
    /* Adjust input padding to make room for both clear and inline location buttons */
    .search.focused .mapboxgl-ctrl-geocoder--input:placeholder-shown {
      padding-right: 280px; /* Extra space for both buttons with new positioning */
    }
    
    /* When input has content, only need space for clear button */
    .search .mapboxgl-ctrl-geocoder--input:not(:placeholder-shown) {
      padding-right: 35px;
    }

    @keyframes spin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    /* ----------  iOS focus-zoom guard ----------
       Mobile Safari zooms the whole page in whenever a focused text control
       computes to less than 16px. Every entry field on this page was 13-14px
       (the two geocoders, the coupon box, driver notes, the services search),
       so tapping any of them zoomed the layout. Because html/body here are
       position:fixed with overflow:hidden there is nothing left to scroll or
       pan with once it happens - the sheet, the modal footer and the Continue
       buttons simply sit off-screen and the booking cannot be finished.

       The fix is to make the fields 16px on touch devices. Deliberately NOT
       maximum-scale=1 / user-scalable=no on the viewport tag: that kills
       pinch-zoom for everyone, and Safari ignores it anyway.
       assets/css/styles.css does the same thing for the rest of the site;
       the booking page never loads that file, which is why it was missed. */
    @media (pointer: coarse), (max-width: 768px) {
      html { -webkit-text-size-adjust: 100%; }

      input[type="text"],
      input[type="email"],
      input[type="tel"],
      input[type="url"],
      input[type="number"],
      input[type="search"],
      input[type="password"],
      textarea,
      select,
      .mapboxgl-ctrl-geocoder--input,
      .form-input,
      .login-form .form-input,
      textarea.form-input,
      .notes-textarea,
      .coupon-input,
      .services-location-input,
      .services-category-select {
        font-size: 16px !important;
      }

      /* The code box is intentionally larger than the 16px floor. */
      input.otp-input {
        font-size: 18px !important;
      }

      /* Room for the taller text. The winning box for this input is a 32px
         border-box (mobile block, top of file) with 10px of vertical padding
         (base rule, later in source order and also !important) - 12px of
         content, nowhere near the ~19px a 16px line occupies.

         Vertical padding is set as longhands on purpose: a `padding`
         shorthand here would land after - and so defeat - the padding-right
         rules that reserve space for the clear and "Use My Location" buttons,
         dropping them on top of the address text. */
      .mapboxgl-ctrl-geocoder--input {
        height: 40px !important;
        min-height: 40px !important;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
      }

      .search {
        min-height: 52px !important;
      }
    }
  