/**
 * CarAlliance Booking System - Public Styles
 * Modern, clean styling for the car rental search form
 */

/* === CSS VARIABLES === */
:root {
    --orange-accent: #FFB400;
    --blue-accent: #081F5C;
}

/* === GLOBAL STYLES === */
.caralliance-search-form-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: Poppins;
}

.search-form-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

/* === REQUIRED FIELD STYLING === */
.required-asterisk {
    color: #d63638;
    font-weight: bold;
    margin-left: 3px;
}

label.required::after {
    content: " *";
    color: #d63638;
    font-weight: bold;
}

/* === ERROR DISPLAY === */
.error-display {
    color: #d63638;
    padding: 12px 16px;
    border: 1px solid #d63638;
    background: #fcf0f1;
    margin: 15px 0;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
}

/* === FORM FIELD ERRORS === */
.error-field {
    border-color: #d63638 !important;
    background-color: #fcf0f1 !important;
    box-shadow: 0 0 0 3px rgba(214, 54, 56, 0.1) !important;
}

.error-field:focus {
    border-color: #d63638 !important;
    box-shadow: 0 0 0 3px rgba(214, 54, 56, 0.2) !important;
}

/* Animate error field highlighting */
.error-field {
    animation: error-shake 0.3s ease-in-out;
}

@keyframes error-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* Error message styling for date validation */
.field-error-message {
    color: #d63638;
    font-size: 12px;
    margin-top: 4px;
    padding: 4px 8px;
    background: #fcf0f1;
    border-radius: 4px;
    border: 1px solid #d63638;
    display: none;
}

.field-error-message.show {
    display: block;
}

/* === MODAL DIALOG SYSTEM === */
.caralliance-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.caralliance-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.caralliance-modal {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.8) translateY(-20px);
    transition: all 0.3s ease;
}

.caralliance-modal-overlay.show .caralliance-modal {
    transform: scale(1) translateY(0);
}

.caralliance-modal-header {
    padding: 20px 24px 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.caralliance-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.4;
}

.caralliance-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.caralliance-modal-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.caralliance-modal-body {
    padding: 20px 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.caralliance-modal-body p {
    margin: 0 0 16px 0;
    line-height: 1.6;
    color: #374151;
}

.caralliance-modal-body p:last-child {
    margin-bottom: 0;
}

.caralliance-modal-footer {
    padding: 16px 24px 20px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.caralliance-modal-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.caralliance-modal-btn-primary {
    background: var(--blue-accent);
    color: #ffffff;
}

.caralliance-modal-btn-primary:hover {
    background: var(--orange-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--orange-accent);
}

.caralliance-modal-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.caralliance-modal-btn-secondary:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.caralliance-modal-btn-success {
    background: #10b981;
    color: #ffffff;
}

.caralliance-modal-btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.caralliance-modal-btn-danger {
    background: #ef4444;
    color: #ffffff;
}

.caralliance-modal-btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.caralliance-modal-btn-warning {
    background: #f59e0b;
    color: #ffffff;
}

.caralliance-modal-btn-warning:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Modal Icons */
.caralliance-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin: 0 auto 16px auto;
    font-size: 24px;
    font-weight: bold;
}

.caralliance-modal-icon.success {
    background: #dcfce7;
    color: #16a34a;
}

.caralliance-modal-icon.error {
    background: #fef2f2;
    color: #dc2626;
}

.caralliance-modal-icon.warning {
    background: #fffbeb;
    color: #d97706;
}

.caralliance-modal-icon.info {
    background: #dbeafe;
    color: #2563eb;
}

/* Modal content alignment for different types */
.caralliance-modal-body.centered {
    text-align: center;
}

/* Responsive modal */
@media (max-width: 768px) {
    .caralliance-modal {
        width: 95%;
        margin: 0 auto;
    }
    
    .caralliance-modal-header,
    .caralliance-modal-body,
    .caralliance-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .caralliance-modal-footer {
        flex-direction: column-reverse;
    }
    
    .caralliance-modal-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .caralliance-modal {
        width: 98%;
        border-radius: 8px;
    }
    
    .caralliance-modal-header,
    .caralliance-modal-body,
    .caralliance-modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* === MAIN SEARCH FORM === */
.caralliance-search-form {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 32px;
    margin: 0 auto;
    border: 1px solid #e5e7eb;
    max-width: 1400px;
}

.search-form-row {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: nowrap;
    width: 100%;
    min-height: 90px;
}

.form-field {
    display: flex;
    align-items: start;
    min-height: 80px;
    flex-shrink: 0;
}

.form-field.pickup-location,
.form-field.dropoff-location {
    flex: 2.5;
    min-width: 200px;
    max-width: none;
}

.form-field.pickup-date,
.form-field.dropoff-date {
    flex: 1.2;
   /*  min-width: 110px; */
    max-width: 180px;
}

.form-field.pickup-time,
.form-field.dropoff-time {
    flex: 1.1;
   /*  min-width: 90px; */
   /*  max-width: 120px; */
}

.form-field.search-button {
    flex: 1.5;
    min-width: 140px;
}

.field-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Input with Icon Container */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .field-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #6b7280;
    z-index: 2;
    pointer-events: none;
    transition: color 0.2s ease;
}

/* Icon color changes when input is focused */
.input-with-icon:focus-within .field-icon {
    color: #3b82f6;
}

.field-content label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    line-height: 1.2;
}

.field-content input,
.field-content select {
    height: 48px;
    padding: 0 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    background: #fff;
    color: #1f2937;
    box-sizing: border-box;
    transition: all 0.2s;
    appearance: none;
    outline: none;
    display: block;
    width: 100%;
}

/* Inputs with icons need left padding */
.input-with-icon input,
.input-with-icon select {
    padding-left: 30px;
}

.field-content input:focus,
.field-content select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.field-content input:hover,
.field-content select:hover {
    border-color: #9ca3af;
}

.field-content input[type="date"],
.field-content input[type="time"] {
    height: 48px;
    padding: 0 6px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    background: #fff;
    color: #1f2937;
    box-sizing: border-box;
    transition: all 0.2s;
    outline: none;
    display: block;
    width: 100%;
}

/* Date/time inputs with icons need left padding */
.input-with-icon input[type="date"],
.input-with-icon input[type="time"] {
    padding-left: 32px;
}

/* === SEARCH BUTTON === */
.btn-search {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    width: 100%;
    height: 52px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 20px;
}

.btn-search:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    transform: translateY(-1px);
}

.btn-search:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1400px) {
    .caralliance-search-form {
        padding: 28px;
    }
    
    .search-form-row {
        gap: 14px;
    }
    
    .form-field.pickup-location,
    .form-field.dropoff-location {
        flex: 2.2;
        min-width: 180px;
    }
    
    .form-field.pickup-date,
    .form-field.dropoff-date {
        flex: 1.6;
      /*   min-width: 120px; */
    }
    
    .form-field.pickup-time,
    .form-field.dropoff-time {
        flex: 1;
        min-width: 90px;
    }
    
    .form-field.search-button {
        flex: 1.3;
        min-width: 120px;
    }
}

@media (max-width: 1200px) {
    .caralliance-search-form {
        background: #ffffff;
        padding: 28px 24px;
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    
    .search-form-row {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
        justify-content: stretch;
    }
    
    .form-field.pickup-location {
        order: 1;
        flex: none;
        width: 100%;
    }
    
    .form-field.pickup-date {
        order: 2;
        flex: none;
        width: 100%;
        max-width:100%;
    }
    
    .form-field.pickup-time {
        order: 3;
        flex: none;
        width: 100%;
    }
    
    /* Second row: dropoff location, date, time */
    .form-field.dropoff-location {
        order: 4;
        flex: none;
        width: 100%;
        margin-top: 20px;
    }
    
    .form-field.dropoff-date {
        order: 5;
        flex: none;
        width: 100%;
    }
    
    .form-field.dropoff-time {
        order: 6;
        flex: none;
        width: 100%;
    }
    
    .form-field.search-button {
        order: 7;
        flex: none;
        width: 100%;
        margin-top: 20px;
    }
    
    /* Car results tablet styling */
    .car-result {
        gap: 16px;
    }
    
    .car-image {
        width: 180px;
        height: 130px;
    }
    
    .car-content {
        padding: 16px;
    }
    
    .car-specs {
        gap: 16px;
        flex-wrap: wrap;
    }
    
    .car-actions {
        flex-direction: row;
        gap: 8px;
    }
    
    .btn {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .caralliance-search-form-container {
        padding: 15px;
    }
    
    .search-form-title {
        font-size: 22px;
    }
    
    .caralliance-search-form {
        background: #ffffff;
        padding: 24px 20px;
        border-radius: 16px;
    }
    
    .search-form-row {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .form-field {
        flex: none;
        width: 100%;
        min-width: auto;
        max-width: none;
    }
    
    .form-field.pickup-location,
    .form-field.dropoff-location,
    .form-field.pickup-date,
    .form-field.pickup-time,
    .form-field.dropoff-date,
    .form-field.dropoff-time,
    .form-field.search-button {
        flex: none;
        width: 100%;
    }
    
    .input-with-icon .field-icon {
        font-size: 14px;
        left: 10px;
    }
    
    .btn-search {
        padding: 16px 24px;
        font-size: 16px;
        width: 100%;
        margin-top:20px;
    }
    
    /* Car results mobile styling */
    .car-result {
        flex-direction: column;
        gap: 0;
    }
    
    .car-image {
        width: 100%;
        height: 180px;
        border-radius: 0;
    }
    
    .car-content {
        padding: 16px;
    }
    
    .car-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .car-price {
        text-align: left;
    }
    
    .car-specs {
        gap: 16px;
        margin: 12px 0;
    }
    
    .car-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 16px;
        margin-top: 5px;
    }
}

@media (min-width: 769px) {
    /* This rule is no longer needed since datetime-row was removed */
}

@media (max-width: 480px) {
    .caralliance-search-form {
        padding: 16px;
    }

    .field-content input,
    .field-content select {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .btn-search {
        padding: 16px 24px;
        font-size: 18px;
    }
}

/* === FORM VALIDATION STYLES === */
.field-content input:invalid {
    border-color: #ef4444;
}

.field-content input:valid {
    border-color: #10b981;
}

.field-content select:required:invalid {
    border-color: #ef4444;
}

/* === LOADING STATES === */
.field-content select:disabled,
.field-content input:disabled {
    background-color: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

.btn-search:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* === COUNTRY FILTER INFO === */
.country-filter-info {
    background: #dbeafe;
    border: 1px solid #93c5fd;
    color: #1e40af;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.country-filter-info::before {
    content: "ℹ️";
}

/* === LEGACY SUPPORT FOR SEARCH RESULTS === */
.caralliance-search-results {
    margin-top: 40px;
}

.search-results-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:15px;
}

/* Responsive grid layouts for search results */
@media (max-width: 1024px) {
    .search-results-container {
        grid-template-columns: repeat(2, 1fr); /* Tablet: 2 columns */
    }
}

@media (max-width: 768px) {
    .search-results-container {
        grid-template-columns: repeat(1, 1fr); /* Mobile: 1 column */
        padding: 15px;
        gap: 20px;
    }
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
    margin-bottom: 20px;
    padding: 0 20px;
    margin-bottom: 20px;
    
}

.results-count {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
}

.results-sort {
    display: flex;
    align-items: center;
    gap: 12px;
}

.results-sort label {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}

.results-sort select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #ffffff;
}

/* === NEW CAR CARD DESIGN === */
.car-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--orange-accent);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 0;
  overflow: hidden;
  min-height: 420px;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.4,0.2,0.2,1);
}
.car-card:hover {
  transform: scale(1.1);
background-color:#fff3d6;
}
.car-card-header {
  padding: 24px 24px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.car-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-accent);
}
.car-category {
  font-size: 14px;
  color: #6b7280;
}
.car-image-bg {
  background: var(--orange-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 115px;
}
.car-image {
  max-width: 95%;
  max-height: 170px;
  object-fit: contain;
}
.car-image-bg {
  transition: transform 0.25s cubic-bezier(0.4,0.2,0.2,1);
}
.car-image-bg:hover {
 transform:scale(1.1);
}

.car-features-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px 0 24px;
  font-size: 15px;
  color: #22223b;
  gap: 12px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 6px;
}
.car-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-top: 1px solid #f3f4f6;
  margin-top: 18px;
}
.car-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--orange-accent);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.price-currency, .price-period {
  font-size: 15px;
  color: #22223b;
  font-weight: 400;
}
.btn-prenota {
  background: var(--blue-accent);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-prenota:hover {
  background: var(--orange-accent);
}
/* Responsive adjustments */
@media (max-width: 900px) {
  .car-card-header, .car-image-bg, .car-features-row, .car-card-bottom {
    padding-left: 12px;
    padding-right: 12px;
  }
  .car-image-bg {
    margin-left: 12px;
    margin-right: 12px;
  }
}
@media (max-width: 600px) {
  .car-card {
    min-height: 320px;
  }
  .car-card-header, .car-image-bg, .car-features-row, .car-card-bottom {
    padding-left: 6px;
    padding-right: 6px;
  }
  .car-image-bg {
    height: 100px;
    margin-left: 6px;
    margin-right: 6px;
  }
  .car-features-row {
    flex-direction: row;
    gap: 0px;
    padding-top: 8px;
    margin-top:10px;
    padding-left:10px;
    padding-right:10px;
  }
  .car-card-bottom {
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .btn-prenota {
    width: 100%;
    padding: 12px 0;
    font-size: 15px;
  }
}
/* Remove old .car-result grid gap if needed */
.car-result { display: none !important; }

/* === CART PAGE STYLES === */
.caralliance-cart-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Poppins;
}

.cart-content {
    margin: 30px 0;
}

.cart-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cart-section h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

/* Cart car result styling */
.cart-car-result {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cart-car-result .car-image {
    flex-shrink: 0;
    width: 150px;
    height: 100px;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-car-result .car-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-car-result .car-content {
    flex: 1;
}

.cart-car-result .car-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.cart-car-result .car-info h4 {
    font-size: 18px;
    margin: 0 0 4px 0;
    border: none;
    padding: 0;
}

.cart-car-result .car-category {
    font-size: 14px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.cart-car-result .car-price {
    text-align: right;
}

.cart-car-result .car-price .amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--orange-accent);
}

.cart-car-result .car-price .currency {
    font-size: 14px;
    color: #6b7280;
}

.cart-car-result .booking-details {
    margin-top: 12px;
}

.cart-car-result .booking-details p {
    margin: 4px 0;
    font-size: 14px;
    color: #4b5563;
}

/* Cart services styling */
.cart-services-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.cart-service-item .service-info h5 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.cart-service-item .service-info p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.cart-service-item .service-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--orange-accent);
    flex-shrink: 0;
    margin-left: 16px;
}

.no-services {
    color: #6b7280;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Cart price breakdown */
.cart-price-breakdown {
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px;
}

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

.cart-price-breakdown .price-item:last-child {
    border-bottom: none;
}

.cart-price-breakdown .price-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 0 0;
    margin-top: 12px;
    border-top: 2px solid #e5e7eb;
    font-size: 18px;
}

.cart-price-breakdown .total-amount {
    color: var(--orange-accent);
}

/* Cart actions */
.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
    padding: 20px 0;
}

.cart-actions .btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 160px;
}

.cart-actions .btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.cart-actions .btn-secondary:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.cart-actions .btn-primary {
    background: var(--blue-accent);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.cart-actions .btn-primary:hover {
    background: var(--orange-accent);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

/* Responsive cart design */
@media (max-width: 768px) {
    .caralliance-cart-page {
        padding: 15px;
    }
    
    .cart-section {
        padding: 16px;
    }
    
    .cart-car-result {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .cart-car-result .car-image {
        width: 100%;
        height: 120px;
    }
    
    .cart-car-result .car-header {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .cart-car-result .car-price {
        text-align: center;
    }
    
    .cart-service-item {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .cart-service-item .service-price {
        margin-left: 0;
    }
    
    .cart-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .cart-actions .btn {
        width: 100%;
        min-width: auto;
    }
}

/* === CHECKOUT PAGE STYLES === */
.caralliance-checkout-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Poppins;
}

.checkout-section {
    background:linear-gradient(0deg, #f8fafc 0% 0%, #e9ebee 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 24px;
    margin-bottom: 24px;
    margin-top:24px;
    border: 1px solid #e5e7eb;
}

.form-section {
    margin-bottom: 32px;
}

.form-section h5 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

/* Alert styles */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid;
    line-height: 1.5;
}

.alert-info {
    background-color: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
}

.alert-info strong {
    color: #1e3a8a;
}

/* Additional Drivers Disabled Section */
.additional-drivers-disabled {
    background: #f8fafc;
    border: 1px solid #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.additional-drivers-disabled .alert {
    margin-bottom: 0;
}

.additional-drivers-disabled .btn-small {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    margin-top: 12px;
}

/* Button styles for checkout */
.btn-small {
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary.btn-small {
    background-color: #6b7280;
    color: #ffffff;
}

.btn-secondary.btn-small:hover {
    background-color: #4b5563;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    background: #ffffff;
    color: #1f2937;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Full width form row for single form groups */
.form-row-full {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .caralliance-checkout-page {
        padding: 0px;
    }
    
    .checkout-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .additional-drivers-disabled {
        padding: 20px;
        margin-top: 20px;
    }

    .additional-drivers-disabled .btn-small {
        white-space: normal;
        height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
        line-height: 1.4;
    }
}

/* === CHECKOUT SUMMARY STYLES === */
.checkout-summary-details {
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.summary-section {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.summary-section:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.summary-section h5 {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
    border: none;
    padding: 0;
}

.summary-car-info .car-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--blue-accent);
    margin-bottom: 4px;
}

.summary-car-info .car-category {
    font-size: 14px;
    color: #6b7280;
    background: #e5e7eb;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 12px;
}

.car-pricing .daily-rate {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}

.car-pricing .rate {
    font-size: 20px;
    font-weight: 700;
    color: var(--orange-accent);
}

.car-pricing .period {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.car-pricing .currency {
    font-size: 16px;
    color: #6b7280;
}

.car-pricing .tax-note {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
    margin-left: 8px;
}

.car-pricing .total-days {
    font-size: 14px;
    color: #374151;
    padding: 8px 12px;
    background-color: #e5e7eb;
    border-radius: 6px;
    border-left: 3px solid var(--orange-accent);
}

.booking-info p {
    margin: 6px 0;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.4;
}

.booking-info strong {
    color: #374151;
}

.services-summary .service-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 8px;
}

.services-summary .service-name {
    font-weight: 500;
    color: #374151;
}

.services-summary .service-price {
    font-weight: 600;
    color: var(--orange-accent);
}

.services-summary .no-services {
    color: #6b7280;
    font-style: italic;
    text-align: center;
    padding: 16px;
}

/* Enhanced Price Breakdown Styles */
.price-breakdown .price-details {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}

.price-breakdown .price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
    transition: all 0.2s ease;
    position: relative;
    opacity: 0;
    animation: slideInPrice 0.3s ease forwards;
}

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

.price-breakdown .price-item:nth-child(1) {
    animation-delay: 0.1s;
}

.price-breakdown .price-item:nth-child(2) {
    animation-delay: 0.2s;
}

.price-breakdown .price-total {
    animation-delay: 0.3s;
}

.price-breakdown .price-item:hover {
    background: #f8fafc;
}

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

.price-breakdown .price-item:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.price-breakdown .price-item:last-child:not(.price-total) {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.price-breakdown .item-label {
    font-size: 15px;
    font-weight: 500;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Add icons to specific price categories */
.price-breakdown .price-item:first-child .item-label::before {
    content: '🚗';
    font-size: 14px;
}

.price-breakdown .price-item:nth-child(2) .item-label::before {
    content: '⚙️';
    font-size: 14px;
}

.price-breakdown .item-amount {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 6px;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    letter-spacing: 0.5px;
}

.price-breakdown .price-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-top: 0;
    border-top: 2px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    position: relative;
}

.price-breakdown .price-total::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue-accent), var(--orange-accent));
}

.price-breakdown .total-label {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-breakdown .total-label::before {
    content: '💰';
    font-size: 16px;
}

.price-breakdown .total-amount {
    font-size: 20px;
    font-weight: 800;
    color: var(--orange-accent);
    background: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', 'Arial', sans-serif;
    letter-spacing: 0.5px;
    border: 2px solid var(--orange-accent);
}

/* Responsive checkout summary */
@media (max-width: 768px) {
    .checkout-summary-details {
        padding: 16px;
    }
    
    .summary-section {
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .car-pricing .daily-rate {
        flex-wrap: wrap;
        gap: 2px;
    }
    
    .car-pricing .rate {
        font-size: 18px;
    }
    
    .services-summary .service-summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        text-align: left;
    }
    
    .services-summary .service-price {
        align-self: flex-end;
    }
    
    /* Enhanced price breakdown responsive styles */
    .price-breakdown .price-item {
        padding: 14px 16px;
    }
    
    .price-breakdown .item-label {
        font-size: 14px;
    }
    
    .price-breakdown .item-amount {
        font-size: 14px;
        padding: 5px 10px;
    }
    
    .price-breakdown .price-total {
        flex-direction: row;
        gap: 12px;
        text-align: center;
        padding: 18px 16px;
    }
    
    .price-breakdown .total-label {
        font-size: 16px;
        justify-content: center;
    }
    
    .price-breakdown .total-amount {
        font-size: 18px;
        align-self: center;
    }
    
    /* Price row responsive styling */
    .price-row {
        padding: 12px 16px;
    }
    
    .price-row .price-description {
        font-size: 14px;
        gap: 8px;
    }
    
    .price-row .price-amount {
        font-size: 14px;
        padding: 4px 8px;
        min-width: 80px;
    }
    
    .price-row[data-type="car"] .price-description,
    .price-row[data-type="service"] .price-description,
    .price-row[data-type="insurance"] .price-description {
        padding-left: 24px;
    }
    
    .price-row[data-type="car"] .price-description::before,
    .price-row[data-type="service"] .price-description::before,
    .price-row[data-type="insurance"] .price-description::before {
        font-size: 14px;
        width: 18px;
    }
}

/* Ensure select2 matches height */
.select2-container .select2-selection--single {
  height: 48px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
}
.select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 48px !important;
  font-size: 16px !important;
  padding-left: 10px !important;
}
.select2-container .select2-selection--single .select2-selection__arrow {
  height: 48px !important;
}

/* Select2 with icons */
.input-with-icon .select2-container {
  width: 100% !important;
}

.input-with-icon .select2-container .select2-selection--single .select2-selection__rendered {
  padding-left: 0px !important;
}

.select2-selection__placeholder {
  padding-left: 32px !important;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .caralliance-search-form .field-content input,
  .caralliance-search-form .field-content select,
  .caralliance-search-form .field-content input[type="date"],
  .caralliance-search-form .field-content input[type="time"] {
    height: 44px;
    font-size: 18px;
    text-align:center;
  }
 
  /* Mobile select2 with icons */
  .input-with-icon .select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 0px !important;
    font-size: 18px!important;
  }
  
  /* Mobile inputs with icons */
  .input-with-icon input,
  .input-with-icon select,
  .input-with-icon input[type="date"],
  .input-with-icon input[type="time"] {
    padding-left: 32px;
  }
  .form-field.pickup-date, .form-field.dropoff-date {
    min-width: 90px;
    max-width: 100%;
  }
  .form-field.pickup-time, .form-field.dropoff-time {
    min-width: 70px;
    max-width: 100%;
  }
}

/* === Enhanced Services Selection Page Styles === */

/* Services Page Header */
.services-page-header {
  background:linear-gradient(135deg,#f8fafc  0%,#e9ebee  100%);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
  border: 1px solid #e2e8f0;
}

.page-header-content {
  text-align: center;
  margin-bottom: 24px;
}

.page-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  margin-top: 0;
}

.page-subtitle {
  font-size: 1.125rem;
  color: #64748b;
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Progress Indicator */
.progress-indicator {
  display: flex;
  justify-content: center;
}

.progress-steps {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.step:not(:last-child):after {
  content: '';
  position: absolute;
  top: 16px;
  left: calc(100% + 8px);
  width: 16px;
  height: 2px;
  background: #cbd5e1;
  z-index: 1;
}

.step.completed:not(:last-child):after,
.step.active:not(:last-child):after {
  background: var(--orange-accent);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  background: #f1f5f9;
  color: #64748b;
  border: 2px solid #cbd5e1;
  z-index: 2;
  position: relative;
}

.step.completed .step-number {
  background: var(--orange-accent);
  color: white;
  border-color: var(--orange-accent);
}

.step.active .step-number {
  background: white;
  color: var(--orange-accent);
  border-color: var(--orange-accent);
  box-shadow: 0 0 0 4px rgba(249, 134, 2, 0.1);
}

.step-label {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  text-align: center;
}

.step.completed .step-label,
.step.active .step-label {
  color: #1e293b;
}

/* Enhanced Car Summary Section */
.enhanced-car-summary-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 32px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

/* Enhanced Price Summary Section - matches car summary styling */
.price-summary-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 32px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.price-summary-section h4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    background: #fafbfc;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.price-summary-section .price-breakdown {
    padding: 24px;
}

.car-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    background: #fafbfc;
}

.car-summary-header h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.btn-change-car {
    background: white;
    border: 1px solid #d1d5db;
    color: #6b7280;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-change-car:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
}

.enhanced-car-display {
    padding: 24px;
}

/* Enhanced Car Summary Layout */
.enhanced-selected-car-summary {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.car-main-info {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.car-image-container {
  flex-shrink: 0;
  width: 160px;
  /* height: 120px; */
  background: #f8fafc;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.car-image-container .car-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.car-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-accent);
  background: var(--orange-accent);
}

.car-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.car-title-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.car-model {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-accent);
  margin: 0;
}

.car-category {
  font-size: 1rem;
  color: var(--blue-accent);
  font-weight: 500;
}

.car-features {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #475569;
  background: #f1f5f9;
  padding: 6px 12px;
  border-radius: 6px;
}

.feature-item i {
  color: var(--orange-accent);
  font-size: 12px;
}

.car-pricing-summary {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.price-section {
  text-align: right;
}

.daily-rate {
  display: flex;
  align-items: baseline;
  gap: 4px;
  justify-content: flex-end;
  margin-bottom: 4px;
}

.rate-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--orange-accent);
}

.rate-period {
  font-size: 14px;
  color: #64748b;
}

.total-pricing {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 4px;
}

.duration {
  font-size: 14px;
  color: #64748b;
}

.total-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
}

.tax-note {
  font-size: 12px;
  color: #9ca3af;
}

/* Rental Period Information */
.rental-info-section {
 /*  background: #f8fafc; */
  border-radius: 12px;
  padding: 20px;
}

.rental-period-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.period-item {
    background:var(--orange-accent);
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding: 15px;
      border-radius: 10px;
}

.period-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--blue-accent);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.period-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.period-datetime {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

.period-location {
  font-size: 14px;
  color: var(--blue-accent);
}

/* Responsive Design */
@media (max-width: 768px) {
  .services-page-header {
    padding: 24px 20px;
    margin-bottom: 24px;
  }
  
  .page-title {
    font-size: 1.875rem;
  }
  
  .page-subtitle {
    font-size: 1rem;
  }
  
  .progress-steps {
    gap: 12px;
  }
  
  .step-number {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  .step:not(:last-child):after {
    width: 12px;
    left: calc(100% + 6px);
    top: 14px;
  }
  
  .car-main-info {
    flex-direction: column;
    align-items: center;
    gap: 16px;
	text-align: center;
  }
  
  .car-image-container {
    max-width: 100%;
    height: 140px;
    width:100%;
  }
  
  .car-image-container .car-image {
    object-fit: contain;
  }
  
  .car-features {
    gap: 8px;
  }
  
  .feature-item {
    font-size: 12px;
    padding: 4px 8px;
  }
  
  .rental-period-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .car-pricing-summary {
    justify-content: center;
  }
  
  .price-section {
    text-align: center;
  }
  
  .daily-rate {
    justify-content: center;
  }
  
  .total-pricing {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .progress-steps {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .step-label {
    font-size: 10px;
  }
  
  .enhanced-car-display {
    padding: 16px;
  }
  
  .car-summary-header {
    padding: 20px 16px 12px 16px;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .car-summary-header h4 {
    text-align: center;
  }

  /* Price Summary responsive styling */
  .price-summary-section h4 {
    padding: 20px 16px 12px 16px;
    flex-direction: column;
    text-align: center;
  }

  .price-summary-section .price-breakdown {
    padding: 16px;
  }
}

/* === Services Grid for Additional Services Page === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin: 24px 0;
}
.service-card {
  background: #f8fafc;

  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 28px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  /* border: 2px solid transparent; */
    border: 1px solid #18608e2e;
  min-height: 160px;
}
.service-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
  transform: translateY(-2px) scale(1.02);
  border-color: var(--orange-accent);
}
.service-card.selected {
  border-color: var(--orange-accent);
  background: #fff4e6;
  min-height: 220px;
}
.service-card-content {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}
.service-icon {
  font-size: 2.2rem;
  margin-right: 12px;
  flex-shrink: 0;
  margin-top: 4px;
}
.service-info {
  flex: 1 1 auto;
}
.service-name {
  font-weight: 600;
  font-size: 1.15rem;
  color: #22223b;
  margin-bottom: 6px;
  line-height: 1.3;
}
.service-description {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 8px;
  line-height: 1.4;
}
.service-price {
  font-weight: 700;
  color: var(--orange-accent);
  font-size: 1.15rem;
  margin-left: auto;
  margin-top: 4px;
}

/* Quantity controls for services */
.service-quantity-section {
  display: none;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  padding: 16px 0 0 0;
  border-top: 1px solid #e5e7eb;
  width: 100%;
}

.service-card.selected .service-quantity-section {
  display: flex;
}

.quantity-controls-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.quantity-label {
  font-size: 0.9rem;
  color: #374151;
  font-weight: 600;
  flex-shrink: 0;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-btn {
  width: 32px;
  height: 32px;
  border: 2px solid #d1d5db;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: #374151;
  transition: all 0.2s ease;
}

.quantity-btn:hover {
  background: #fff4e6;
  border-color: var(--orange-accent);
  color: var(--orange-accent);
  transform: scale(1.05);
}

.quantity-btn:disabled {
  background: #f9fafb;
  border-color: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.quantity-input {
  width: 60px;
  height: 32px;
  text-align: center;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  padding: 0;
  font-size: 16px;
  font-weight: 600;
  background: #fff;
  color: #1f2937;
  line-height: 1;
}

.quantity-input:focus {
  outline: none;
  border-color: var(--orange-accent);
  box-shadow: 0 0 0 3px rgba(249, 134, 2, 0.1);
}

.quantity-limit {
  font-size: 0.8rem;
  color: #9ca3af;
  font-style: italic;
  flex-shrink: 0;
}

.service-total-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff4e6;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 4px;
}

.service-total-label {
  font-size: 0.9rem;
  color: #374151;
  font-weight: 600;
}

.service-total-price {
  font-size: 1.1rem;
  color: var(--orange-accent);
  font-weight: 700;
}

/* Backend service display */
.service-item .quantity-badge {
  background: var(--orange-accent);
  color: white;
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 0.75rem;
  margin-left: 4px;
}

.service-item .service-unit-price {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Cart service calculation */
.cart-service-item small {
  color: #6b7280;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .service-card {
    padding: 24px 18px 18px 18px;
    min-height: 140px;
  }
  
  .service-card.selected {
    min-height: 200px;
  }
  
  .service-icon {
    font-size: 2rem;
  }
  
  .service-name {
    font-size: 1.1rem;
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .service-card {
    padding: 20px 16px 16px 16px;
    min-height: 130px;
  }
  
  .service-card.selected {
    min-height: 190px;
  }
  
  .service-icon {
    font-size: 1.8rem;
  }
  
  .service-name {
    font-size: 1.05rem;
  }
  
  .service-description {
    font-size: 0.9rem;
  }
  
  .quantity-controls-row {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  
  .quantity-controls {
    justify-content: center;
  }
  
  .quantity-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .quantity-input {
    width: 70px;
    height: 36px;
    font-size: 18px;
  }
  
  .service-total-price-row {
    padding: 10px 14px;
    margin-top: 8px;
  }
  
  .service-total-label,
  .service-total-price {
    font-size: 1rem;
  }
} 
/* Enhanced Price Row Styling */
.price-row {
    line-height: 2rem;
    font-weight: 500;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

/* Alternating backgrounds */
.price-row:nth-child(even) {
    background: #ffffff;
}

.price-row:nth-child(odd) {
    background: #fafbfc;
}

.price-row:hover {
    background: #f0f9ff;
    transform: translateX(2px);
}

/* Price row layout */
.price-row .price-description {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #475569;
}

.price-row .price-amount {
    font-weight: 700;
    color: #1e293b;
    font-size: 15px;
    text-align: right;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 6px;
    min-width: 100px;
}

/* Icons for different price categories using Font Awesome 6 */
.price-row[data-type="car"] .price-description {
    position: relative;
    padding-left: 28px;
}

.price-row[data-type="car"] .price-description::before {
    font-family: "Font Awesome 6 Free", "fa-solid-900", "FontAwesome";
    font-weight: 900;
    font-style: normal;
    content: "\f1b9"; /* fa-car */
    color: var(--blue-accent) !important;
    font-size: 16px;
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    text-align: center;
    line-height: 1;
    display: inline-block;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.price-row[data-type="service"] .price-description {
    position: relative;
    padding-left: 28px;
}

.price-row[data-type="service"] .price-description::before {
    font-family: "Font Awesome 6 Free", "fa-solid-900", "FontAwesome";
    font-weight: 900;
    font-style: normal;
    content: "\f0fe"; /* fa-square-plus */
    color: var(--blue-accent) !important;
    font-size: 16px;
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    text-align: center;
    line-height: 1;
    display: inline-block;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.price-row[data-type="insurance"] .price-description {
    position: relative;
    padding-left: 28px;
}

.price-row[data-type="insurance"] .price-description::before {
    font-family: "Font Awesome 6 Free", "fa-solid-900", "FontAwesome";
    font-weight: 900;
    font-style: normal;
    content: "\e1e4"; /* fa-shield-heart */
    color: var(--blue-accent) !important;
    font-size: 16px;
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    text-align: center;
    line-height: 1;
    display: inline-block;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* === Enhanced Services Section Styling (Included Services & Insurance) === */

/* Style included services and insurance sections to match car summary and price summary */
.services-section.included-section,
.services-section.insurance-section,
.services-section.extras-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 32px;
    overflow: hidden;
    border: 1px solid #d9dde1;
}

/* Headers for services sections */
.services-section.insurance-section h4,
.services-section.extras-section h4,
.services-section.included-section h4
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    background: #fafbfc;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}



.services-section.insurance-section h4
 {
    
    background: var(--blue-accent)!important;
    color:#fff!important;
    
}


.services-section.extras-section h4
 {
   
  
    background: var(--blue-accent)!important;
    color:#fff!important;
   
}

.services-section.insurance-section {
display:none;
}
 


.services-section.included-section h4 {
  
    background: #050A155C!important;
    color:#fff!important;
   
}

/* Content areas for services sections */
.services-section .service-options {
    padding: 24px;
}

/* Included Services content styling */
.included-services-list {
    padding: 24px;
}

.included-service-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.included-icon {
    flex-shrink: 0;
    font-size: 16px;
    margin-top: 2px;
}

.included-service-info {
    flex: 1;
}

.included-service-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 15px;
    margin-bottom: 4px;
}

.included-service-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

/* Default message styling for services sections */
.services-section p {
    padding: 24px;
    margin: 0;
    color: #64748b;
    font-style: italic;
    text-align: center;
    background: #f8fafc;
}

/* Loading states */
.services-section .loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    color: #64748b;
    font-style: italic;
}

.services-section .loading::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid var(--orange-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

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

/* Error states */
.services-section .error {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    margin: 24px;
}

/* Responsive adjustments for services sections */
@media (max-width: 768px) {
    .services-section.included-section,
    .services-section.insurance-section,
    .services-section.extras-section,
    .included-services-section {
        margin-bottom: 24px;
        border-radius: 12px;
    }
    
    .services-section.insurance-section h4,
    .services-section.extras-section h4,
    .included-services-section h4 {
        padding: 20px 16px 12px 16px;
        font-size: 1.125rem;
    }
    
    .services-section .service-options,
    .included-services-list {
        padding: 16px;
    }
    
    .included-service-item {
        padding: 10px 0;
    }
    
    .included-service-name {
        font-size: 14px;
    }
    
    .included-service-desc {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .services-section.insurance-section h4,
    .services-section.extras-section h4,
    .included-services-section h4 {
        padding: 16px 12px 10px 12px;
        font-size: 1rem;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .services-section .service-options,
    .included-services-list {
        padding: 12px;
    }
}