/* ========================================
   Booking Create Page Styles
   ======================================== */

/* Google Places Autocomplete Styling */
.pac-container {
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-family: inherit;
    margin-top: 5px;
    z-index: 10000;
}

.pac-item {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.pac-item:hover {
    background-color: #f8f9fa;
}

.pac-item-selected {
    background-color: #e9ecef;
}

.pac-icon {
    margin-right: 10px;
}

.pac-item-query {
    font-weight: 600;
    color: #333;
}

#address_autocomplete {
    padding-left: 15px;
}

#delivery_map {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.customer-address-fields {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}

/* ========================================
   Booking Summary Card
   ======================================== */
.booking-summary-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: sticky;
    top: 20px;
}

.summary-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 18px 20px;
}

.summary-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.summary-body {
    padding: 20px;
}

.summary-car-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.summary-car-info .car-image {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.summary-car-info .car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.summary-car-info .car-details h5 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
}

.summary-car-info .car-year {
    color: #666;
    font-size: 13px;
}

.summary-divider {
    border-color: #eee;
    margin: 15px 0;
}

/* ========================================
   Price Breakdown
   ======================================== */
.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.price-item.base-price {
    background: #e8f4fd;
}

.price-item .price-label {
    color: #555;
    font-size: 14px;
}

.price-item .price-value {
    font-weight: 600;
    color: #1a1a2e;
}

.price-item.option-item {
    background: #f0f9f0;
    border-left: 3px solid #28a745;
}

.price-item.option-item .price-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-item.option-item .remove-option {
    color: #dc3545;
    cursor: pointer;
    font-size: 12px;
}

/* ========================================
   Summary Total
   ======================================== */
.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 8px;
    color: #fff;
}

.summary-total .total-label {
    font-size: 16px;
    font-weight: 500;
}

.summary-total .total-value {
    font-size: 24px;
    font-weight: 700;
}

.summary-total .total-value small {
    font-size: 14px;
    font-weight: 400;
    margin-left: 5px;
}

/* ========================================
   Additional Options Section
   ======================================== */
.additional-options-section {
    margin-top: 20px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
}

.option-card {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

/* .option-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(0, 158, 247, 0.15);
} */

.option-card.selected {
    border-color: #28a745;
    background: #f0f9f0;
}

/* ========================================
   Custom Checkbox Styling
   ======================================== */
.option-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    padding: 5px 0;
    user-select: none;
}

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

.option-checkbox-wrapper .checkmark {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: #fff;
}

.option-checkbox-wrapper .checkmark::after {
    content: '';
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease;
    margin-top: -2px;
}

.option-checkbox-wrapper input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-color: #28a745;
}

.option-checkbox-wrapper input[type="checkbox"]:checked + .checkmark::after {
    transform: rotate(45deg) scale(1);
}

.option-checkbox-wrapper:hover .checkmark {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
}

.option-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.option-name {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 14px;
}

.option-price {
    color: #28a745;
    font-weight: 700;
    font-size: 15px;
}

.option-price .daily-tag {
    color: #666;
    font-weight: 400;
    font-size: 12px;
}

.no-options-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
}

/* ========================================
   Delivery Place Selection
   ======================================== */
.delivery-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.delivery-option-item {
    display: flex;
    /* align-items: center; */
    gap: 10px;
    padding: 12px 30px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.form-check-input {
    margin-left: -1.5rem;
}
.delivery-option-item:hover {
    border-color: var(--secondary-color);
    background: #fff;
}

.delivery-option-item.active {
    border-color: var(--secondary-color);
    background: #eee;
}

.delivery-option-item input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--secondary-color);
}

.delivery-option-item label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
}

/* ========================================
   Form Enhancements
   ======================================== */
.booking-form-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.booking-form-section .section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.booking-form-section .section-title i {
    color: var(--secondary-color);
}

/* ========================================
   Terms and Submit Section
   ======================================== */
.terms-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.terms-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--secondary-color);
}

.terms-checkbox label {
    font-size: 14px;
    color: #555;
}

.terms-checkbox a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

.submit-booking-btn {
    margin-top: 20px;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 991px) {
    .booking-summary-card {
        position: relative;
        top: 0;
        margin-top: 30px;
    }
}

@media (max-width: 576px) {
    .summary-car-info {
        flex-direction: column;
        text-align: center;
    }

    .summary-total .total-value {
        font-size: 20px;
    }

    .delivery-options {
        flex-direction: column;
    }

    .delivery-option-item {
        width: 100%;
    }
}
