/* ========================================
   CAR RENTAL LOCATIONS SECTION
   ======================================== */

.booking-locations-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 5px;
    margin-top: 0px;
}

.locations-header {
    margin-bottom: 20px;
}

.locations-header h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.locations-header h3 i {
    color: #667eea;
}

.locations-header p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Desktop: Pick-up & Drop-off side-by-side (unchanged on mobile) */
@media (min-width: 769px) {
    .location-fields-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        width: 100%;
    }
}

/* Reduce bottom margin for Time fields form-row (Date row keeps 24px via service-details.css) */
.form-row:has(.time-select) {
    margin-bottom: 6px;
}


/* ========================================
   PRICE SUMMARY SECTION
   ======================================== */

.booking-price-summary {
    background: white;
    border: 2px solid #0066cc;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 25px;
    margin-bottom: 20px;
}

.price-summary-title {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    padding: 15px 20px;
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-summary-title i {
    color: white;
}

.price-section {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
}

.price-section:last-child {
    border-bottom: none;
    background: #f8f9fa;
}

.price-section-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
}

.price-row:first-child {
    padding-top: 0;
}

.price-row:last-child {
    padding-bottom: 0;
}

.price-label {
    color: #495057;
    font-size: 0.95rem;
    flex: 1;
}

.price-label small {
    display: block;
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 3px;
}

.price-value {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.05rem;
    text-align: right;
}

.price-value .currency-code {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.8;
    margin-left: 4px;
}

.subtotal-row {
    border-top: 1px solid #e9ecef;
    padding-top: 12px !important;
    margin-top: 5px;
}

.subtotal-row .price-label {
    font-weight: 600;
}

/* Location Fees Section */
.location-fees-section {
    background: #f8f9fa;
}

.pickup-fee-row .price-label,
.dropoff-fee-row .price-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.fee-highlight {
    color: #d39e00 !important;
}

.fee-location {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: normal;
}

.no-fees-message {
    justify-content: center;
    color: #6c757d;
    font-style: italic;
}

.no-fees-message .price-label {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.text-muted {
    color: #6c757d;
}

/* Total Row */
.price-total {
    padding: 15px 0 !important;
    border-top: 2px solid #0066cc !important;
}

.price-total .price-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
}

.price-total .price-value {
    font-size: 1.6rem;
    color: #0066cc;
    font-weight: 700;
}

/* Icons */
.price-row i {
    color: #0066cc;
    margin-right: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .locations-grid {
        grid-template-columns: 1fr;
    }

    .price-summary-title {
        font-size: 1.1rem;
        padding: 12px 15px;
    }

    .price-section {
        padding: 12px 15px;
    }

    .price-row {
        flex-direction: column;
        gap: 5px;
    }

    .price-value {
        text-align: left;
    }

    .price-total .price-label,
    .price-total .price-value {
        font-size: 1.3rem;
    }
}

/* Fix mobile appearance for date inputs */
input[type="date"].form-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: none;
}