/* 
=====================================================
  GTT EV Rental — Mobile Specific Styling
  This file is loaded EXCLUSIVELY for small screens (max-width: 768px)
  to ensure high performance and zero layout shift.
=====================================================
*/

@media (max-width: 768px) {
  :root {
    --section-padding: 3rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  /* Navbar Alignment & Stability */
  .navbar {
    position: fixed;
    top: 0.5rem;
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    max-width: none;
    margin: 0;
    z-index: 9999;
    padding: 0;
    background: transparent;
    transform: none;
  }

  .navbar .container {
    position: relative;
    border-radius: 16px;
    padding: 0.4rem 0.5rem 0.4rem 0.85rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 16px rgba(0, 20, 60, 0.08),
                0 0 0 1px rgba(0, 82, 212, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Navbar Brand */
  .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-600);
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
    letter-spacing: -0.01em;
  }

  .navbar-brand .brand-logo {
    height: 28px;
    width: 28px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 6px;
    background: transparent;
    padding: 0;
    box-shadow: none;
    filter: none;
  }

  .navbar-brand small {
    font-weight: 400;
    font-size: 0.82em;
    opacity: 0.55;
  }

  /* ===== Hamburger Button ===== */
  .mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 40px;
    height: 40px;
    background: var(--primary-50, #eff4ff);
    border: none;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    z-index: 2100;
    -webkit-tap-highlight-color: transparent;
    box-shadow: inset 0 0 0 1px rgba(0, 82, 212, 0.05);
    transition: background 0.2s ease, transform 0.15s ease;
  }

  .mobile-toggle:focus-visible {
    outline: 2px solid rgba(0, 82, 212, 0.45);
    outline-offset: 2px;
  }

  .mobile-toggle:active {
    transform: scale(0.92);
    background: var(--primary-100, #dbeafe);
  }

  .mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--primary-600, #0052D4);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.77, 0, 0.18, 1),
                opacity 0.25s ease,
                width 0.25s ease;
    transform-origin: center;
  }

  .mobile-toggle span:nth-child(2) {
    width: 14px;
  }

  /* Hamburger → X animation */
  .mobile-toggle.active {
    background: var(--gray-100, #f1f5f9);
  }

  .mobile-toggle.active span {
    width: 18px;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4.5px);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4.5px);
  }

  /* ===== Dropdown Menu from Pill ===== */
  .navbar .nav-links {
    display: flex;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 280px;
    max-height: calc(100vh - 120px);
    background: rgba(255, 255, 255, 0.92);
    flex-direction: column;
    padding: 0.75rem 0 0.9rem;
    gap: 0;
    z-index: 2000;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 20px 48px rgba(0, 20, 60, 0.16), inset 0 1px 1px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.22s ease;
    will-change: transform;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .navbar .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Menu header area */
  .navbar .nav-links::before {
    content: 'เมนูหลัก';
    display: block;
    white-space: normal;
    line-height: 1.25;
    height: auto;
    flex-shrink: 0;
    padding: 0.35rem 1.4rem 0.8rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-400, #94a3b8);
    background: transparent;
    position: relative;
  }

  /* Menu links */
  .navbar .nav-links > a:not(.nav-cta) {
    color: var(--gray-800, #1e293b);
    display: flex;
    align-items: center;
    min-height: 58px;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.95rem 2.4rem 0.95rem 1.4rem;
    text-decoration: none;
    border-bottom: 1px solid var(--gray-100, #f1f5f9);
    transition: background 0.15s ease, padding-left 0.2s ease, color 0.2s ease;
    position: relative;
  }

  .navbar .nav-links > a:not(.nav-cta)::after {
    content: '›';
    position: absolute;
    right: 1.05rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(15, 23, 42, 0.3);
    font-size: 1.1rem;
    font-weight: 700;
    transition: transform 0.2s ease, color 0.2s ease;
  }

  .navbar .nav-links > a:not(.nav-cta):active {
    background: var(--gray-50, #f8fafc);
    padding-left: 1.6rem;
  }

  .navbar .nav-links > a:not(.nav-cta):active::after {
    transform: translateY(-50%) translateX(2px);
    color: var(--primary-600, #0052D4);
  }

  .navbar .nav-links > a.nav-link-active:not(.nav-cta) {
    color: var(--primary-600, #0052D4);
    font-weight: 700;
    background: rgba(0, 82, 212, 0.06);
    border-left: 3px solid var(--primary-600, #0052D4);
    box-shadow: inset 0 0 0 1px rgba(0, 82, 212, 0.05);
  }

  .navbar .nav-links > a.nav-link-active:not(.nav-cta)::after {
    color: var(--primary-600, #0052D4);
  }

  /* CTA Button in side menu */
  .navbar .nav-links > .nav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 52px;
    margin: 0.8rem 1rem calc(env(safe-area-inset-bottom, 0px) + 0.35rem);
    position: static;
    padding: 0.95rem 1.1rem;
    background: linear-gradient(135deg, var(--primary-600, #0052D4) 0%, var(--primary-500, #4364F7) 100%);
    color: #fff !important;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 6px 20px rgba(0, 82, 212, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    letter-spacing: 0.02em;
  }

  .navbar .nav-links > .nav-cta:active {
    transform: scale(0.96);
    box-shadow: 0 3px 10px rgba(0, 82, 212, 0.25);
  }

  /* Overlay for Menu */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.08);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

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

  /* Force Solid/Safe Navbar on Booking Page & Scrolled States */
  .page-booking .navbar .container,
  .navbar.scrolled .container {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border: 1px solid rgba(0, 82, 212, 0.1) !important;
    box-shadow: 0 4px 24px rgba(0, 15, 50, 0.08) !important;
  }

  .page-booking .navbar-brand,
  .navbar.scrolled .navbar-brand {
    color: var(--primary-600) !important;
  }

  .page-booking .brand-logo,
  .navbar.scrolled .brand-logo {
    filter: none !important;
  }

  /* =====================================================
     PREMIUM MOBILE BOOKING REDESIGN
     ===================================================== */
  .page-booking .booking-header {
    background: radial-gradient(circle at top right, rgba(67, 100, 247, 0.4), transparent),
                var(--gradient-primary);
    padding: 3.5rem 0 6rem;
    margin-top: -80px;
    padding-top: calc(5rem + 80px);
    border-radius: 0 0 40px 40px;
    box-shadow: 0 10px 30px rgba(0, 82, 212, 0.15);
  }

  .page-booking .booking-header h1 {
    font-size: 2rem;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
  }

  .page-booking .booking-container {
    margin-top: -4.5rem;
    padding: 0 1rem;
  }

  .page-booking .booking-form-card {
    padding: 2.25rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 25px 60px rgba(0, 30, 100, 0.12);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
  }

  .selected-car-info {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  }

  .selected-car-info.show {
    display: flex !important;
    opacity: 1;
    transform: translateY(0);
  }

  /* Step Badges */
  .step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--primary-600);
    color: white;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    margin-right: 8px;
    box-shadow: 0 4px 10px rgba(0, 82, 212, 0.3);
  }

  .form-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-900);
    margin: 2rem 0 1.25rem;
    display: flex;
    align-items: center;
  }

  .form-section-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-600);
    margin: -0.5rem 0 1.25rem 2.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  /* Premium Form Controls */
  .page-booking .form-control {
    height: 3.5rem;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: 16px;
    padding: 0 1.15rem;
    font-size: 1rem;
    color: var(--gray-800);
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    -webkit-appearance: none;
  }

  .page-booking select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234364f7' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.15rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
  }

  .page-booking .form-control:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(67, 100, 247, 0.12);
    background: var(--white);
  }

  .page-booking label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.6rem;
    display: block;
    padding-left: 0.25rem;
  }

  /* Selected Car Preview Card */
  .page-booking .selected-car-info {
    margin-top: 1rem;
    background: var(--gray-50);
    border: 1.5px solid var(--primary-100);
    padding: 1.25rem;
    border-radius: 20px;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .page-booking #selectedCarImg {
    width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.12));
    margin-bottom: 0.5rem;
  }

  .page-booking .selected-car-details h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
  }

  .page-booking .selected-car-details .price {
    font-size: 1.4rem;
    color: var(--primary-600);
    background: var(--white);
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--primary-50);
    margin-top: 0.5rem;
  }

  /* Dates & Flight Grid */
  .page-booking .form-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
  }

  /* If on tablets/large phones, keep side-by-side but balanced */
  @media (min-width: 480px) {
    .page-booking .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.75rem;
    }
  }

  .form-section-subtitle {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-700);
    margin: 1.5rem 0 1rem 0.25rem; /* Aligned with labels */
    display: flex;
    align-items: center;
    gap: 0.65rem;
  }

  /* QR Code Styling */
  .page-booking .payment-card {
    padding: 1.75rem 1rem;
    border-radius: 24px;
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
  }

  .page-booking .qr-wrapper {
    padding: 1.25rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 82, 212, 0.1);
  }

  .page-booking .qr-wrapper img {
    width: 180px;
  }

  .page-booking .payment-summary {
    text-align: left;
    margin-top: 1.5rem;
    background: var(--white);
  }

  /* Upload Wrapper */
  .page-booking .file-upload-wrapper {
    padding: 2rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
  }

  .page-booking .file-upload-icon {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
  }

  /* Submit Button Mobile */
  .page-booking .btn-blue {
    height: 4rem;
    font-size: 1.25rem;
    border-radius: 20px;
    margin-top: 2.5rem;
    background: var(--gradient-primary);
    box-shadow: 0 12px 30px rgba(0, 82, 212, 0.3);
  }

  /* Hero Section Overhaul (Premium App-Feel) */
  .hero {
    padding-top: 100px;
    padding-bottom: 3.5rem;
    min-height: auto;
    background: radial-gradient(ellipse at 50% 0%, rgba(67, 100, 247, 0.25) 0%, transparent 70%), var(--gradient-hero);
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: clamp(2.2rem, 9vw, 2.75rem);
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .hero-kicker {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
    display: inline-block;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero-notice {
    font-size: 0.82rem;
    padding: 0.85rem 1.1rem;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    text-align: center;
    border-radius: 16px;
    line-height: 1.5;
  }

  .hero-buttons {
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 0.5rem;
  }

  /* Global Mobile Button Enhancements */
  .btn {
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease !important;
    -webkit-tap-highlight-color: transparent;
  }

  .btn:active {
    transform: scale(0.96) !important;
  }

  .btn-blue {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25) !important;
  }

  .btn-lg {
    width: 100%;
    padding: 1rem;
    justify-content: center;
    border-radius: 16px !important;
    font-weight: 600;
    font-size: 1rem;
  }

  .hero-visual {
    order: -1;
    margin-bottom: 0.5rem;
    transform: none;
    position: relative;
    display: flex;
    justify-content: center;
    min-height: 240px;
    align-items: flex-end;
  }

  /* Enhancing the Car Presence */
  .hero-car-image {
    max-width: min(380px, 95vw);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
    transform: scale(1.02);
    /* Reduced slightly to prevent clipping */
    margin: 0 auto;
    display: block;
  }

  /* Premium Stats Cards */
  .hero-stats {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 0.5rem 1.5rem 1.5rem;
    margin-top: 3rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-mask-image: linear-gradient(to right, transparent, black 1.5rem, black calc(100% - 2rem), transparent);
    mask-image: linear-gradient(to right, transparent, black 1.5rem, black calc(100% - 2rem), transparent);
  }

  .hero-stats::-webkit-scrollbar {
    display: none;
  }

  .hero-stat {
    flex: 0 0 150px;
    scroll-snap-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    padding: 1.5rem 1rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  }

  .hero-stat .number {
    font-size: 1.85rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
  }

  .hero-stat .label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  /* Cars Grid */
  .cars-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: auto;
    padding: 0;
  }

  /* Premium Car Cards */
  .car-card {
    max-width: 100%;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    background: #fff;
    overflow: hidden;
  }

  .car-card-img {
    aspect-ratio: 16 / 10;
    width: 100%;
    background: var(--gray-50, #f8fafc);
    position: relative;
  }

  .car-card-img img {
    border-radius: 0;
  }

  .car-card-badge {
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.7rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    font-weight: 600;
  }

  .car-card-body {
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
  }

  .car-card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
    font-weight: 700;
    line-height: 1.3;
  }

  .car-card-specs {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
  }

  .spec-item {
    padding: 0.3rem 0.6rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  .car-card-footer {
    display: flex;
    align-items: stretch !important;
    flex-direction: column !important;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
    gap: 0.75rem;
  }

  .car-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-600);
    flex-shrink: 0;
    width: 100%;
    text-align: center;
  }

  .car-card-footer .btn {
    width: 100%;
    min-height: 48px;
    flex: 1;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    border-radius: 14px;
    font-weight: 600;
  }

  /* Feature Cards */
  .features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .feature-card {
    display: flex;
    text-align: left;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  }

  .feature-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    margin: 0;
    border-radius: 12px;
    background: var(--primary-50);
    color: var(--primary-600);
    font-size: 1.25rem;
  }

  .feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.15rem;
  }

  .feature-card p {
    font-size: 0.82rem;
    color: var(--gray-500);
    line-height: 1.4;
  }

  /* Section Headers */
  .section-header {
    margin-bottom: 2rem;
    padding: 0 0.25rem;
  }

  .section-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.85rem;
    background: var(--primary-50);
    color: var(--primary-600);
    border-radius: 8px;
    margin-bottom: 0.6rem;
    font-weight: 600;
  }

  .section-header h2 {
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    font-weight: 700;
  }

  /* Footer */
  .footer {
    padding: 4rem 1.5rem 2rem;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
  }

  .footer-col a {
    font-size: 1rem;
    padding: 0.5rem 0;
    display: block;
  }

  /* Booking Page Specifics */
  .booking-header {
    padding-top: 120px;
    padding-bottom: 40px;
    margin-top: 0;
  }

  .booking-header h1 {
    font-size: 1.75rem;
  }

  .booking-container {
    margin-top: -20px;
    padding: 0 1rem;
  }

  .booking-form-card {
    padding: 1.75rem 1.25rem;
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
  }

  .form-section-title {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
  }

  .selected-car-info {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  #selectedCarImg {
    width: 100px;
    height: auto;
  }

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

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

  .qr-wrapper img {
    width: 180px;
  }

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

  .summary-item {
    font-size: 0.9rem;
  }

  .summary-item .val {
    font-size: 1.1rem;
  }

  .btn-blue {
    padding: 1rem;
    font-size: 1.05rem;
  }
}

/* Admin Dashboard Refinements */
.page-admin .admin-header {
  background: var(--gradient-hero);
  padding: 1.25rem 0.75rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.admin-header .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.admin-header-brand {
  width: 100%;
  justify-content: space-between;
}

.admin-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.admin-actions .btn {
  width: 100%;
  justify-content: center;
  padding: 0.75rem;
  font-size: 0.85rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.stat-card {
  padding: 1.25rem 1rem;
  flex-direction: column;
  text-align: center;
  gap: 0.75rem;
}

.stat-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto;
}

.stat-info .stat-value {
  font-size: 1.5rem;
}

.stat-info .stat-label {
  font-size: 0.75rem;
}

.admin-toolbar {
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.admin-toolbar .btn {
  width: 100%;
  justify-content: center;
}

.admin-toolbar-spacer {
  margin-left: 0;
}

.search-box input {
  width: 100%;
}

/* Table Mobile Optimization */
.data-table-wrapper {
  margin: 0 -1.5rem;
  width: calc(100% + 3rem);
  padding: 0 1.5rem;
  border-radius: 0;
  -webkit-overflow-scrolling: touch;
}

.data-table th,
.data-table td {
  padding: 1rem 0.75rem;
  font-size: 0.85rem;
}

/* Global UI Components Polish */
.modal-overlay {
  padding: 1rem;
  align-items: flex-end;
  /* Mobile bottom sheet feel */
  background: rgba(0, 15, 50, 0.6);
}

.modal {
  width: 100%;
  max-width: 100%;
  margin-bottom: 0;
  border-radius: 24px 24px 0 0;
  animation: slideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.modal-wide {
  width: 100%;
}

/* Prevent iOS Zoom on Inputs */
input,
select,
textarea {
  font-size: 16px !important;
}

.toast {
  bottom: 2rem;
  left: 1rem;
  right: 1rem;
  width: auto;
  transform: none;
  text-align: center;
  border-radius: 16px;
}

/* Extreme Small Device Fixes (320px) */
@media (max-width: 350px) {
  .hero-text h1 {
    font-size: 1.75rem;
  }

  .hero-stats {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
  }

  .hero-stat {
    flex: 0 0 120px;
  }

  .admin-header-titles h1 {
    font-size: 1.1rem;
  }
}

/* Animations Logic Consistency */
@media (max-width: 768px) {
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}