/* General Styling */
body {
    background-color: #f9f9f9;
}

.badge {
    display: inline-block;
    padding: 0.6em 0.8em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #FFF;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.welcome-screen {
    background: #11DFFD;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);                    
}

.welcome-screen h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.welcome-screen p {
    font-size: 1rem;
    margin: 0;
}

.search-form {
    background: white;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-top: 20px;
}

.categories-menu {
    display: flex;
    overflow: auto;                     
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
    padding: 10px 15px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.empty-categories-message {
    font-size: 1rem;
    color: #6c757d;
    padding: 15px;
}

.empty-categories-message strong {
    color: #343a40;
}                

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding-left: 1rem;
    padding-right: 1rem;                   
}

.category-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 5px;
}

.category-item span {
    font-size: 0.85rem;
    color: #5a5a5a;
}

.category-item:hover {
    transform: scale(1.1);
}

.model-card {
    display: flex;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding-top: 15px;
    background-color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.model-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.model-details {
    flex: 1;
}

.model-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #343a40;
}

.model-category,
.model-availability {
    font-size: 0.9rem;
    margin-bottom: 3px;
    color: #6c757d;
}

.model-description {
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: #495057;
}

.model-card:hover {
    transform: translateY(-3px);
}

.model-card h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.model-card p {
    margin: 0;
}

.loading-spinner {
    font-size: 1rem;
    color: #5a67d8;
}

.model-image img {
    width: 99%;
    height: auto;
    object-fit: scale-down;
}

.time-picker {
    position: relative;
}

.time-picker-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
}

.form-control:disabled, .form-control.o_wysiwyg_loader, .form-control[readonly] {
    color: #000000;
    background-color: #ffffff;
    opacity: 1;
}                

.form-control[readonly]::placeholder {
    color: #000000; /* Sets the placeholder text color to black */
    opacity: 1;   /* Ensures the placeholder is fully opaque */
}

.time-picker-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
    margin-top: 5px;
    min-width: 250px;
}

.time-group {
    margin-bottom: 10px;
}

.time-group-label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.time-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.time-option {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #f9f9f9;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
    width: 45%;
}

.time-option:hover {
    background: #11DFFD;
    color: #fff;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Modal Content */
.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

/* Close Button */
.close-modal-btn {
    background: #11DFFD;
    border: none;
    padding: 10px 20px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    color: white;
}

.close-modal-btn:hover {
    background: #0bb7dc;
}

.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    cursor: pointer;
    padding: 0.375rem 1rem;
}
.input-group-text svg {
    width: 18px;
    height: 18px;
    fill: #6c757d;
}
.input-group-text:hover svg {
    fill: #007bff;
}

.model-price {
    font-size: 1.15rem; /* Make the price noticeable */
    font-weight: bold;
    color: #000000; /* Use a primary color to highlight */
    margin-top: 8px;
}

.model-price-selected {
    font-size: 1.15rem; /* Make the price noticeable */
    font-weight: bold;
    color: #11DFFD; /* Use a primary color to highlight */
    margin-top: 8px;
}


.price-label {
    background-color: #FFD500; /* Yellow background */
    color: #000; /* Black text */
    font-size: 0.9rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}                

.separator-with-notch {
    position: relative;
    border-top: 1px solid #ddd;
    padding: 16px 20px;
    overflow: hidden;
    border-bottom-left-radius: 8px; /* Top-left radius */
    border-bottom-right-radius: 8px; /* Top-right radius */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.separator-with-notch::after {
    content: '';
    position: absolute;
    top: -1px; /* Align with the border */
    left: 50%;
    transform: translateX(-50%);
    width: 20px; /* Width of the notch */
    height: 10px; /* Height of the notch */
    background-color: #f9f9f9; /* Same as the background color */
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}



/* Style for the switch container */
.form-switch {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

/* Style for the toggle switch */
.form-check-input {
    width: 60px !important;
    height: 30px !important;
    cursor: pointer;
}

/* Customize checked state */
.form-check-input:checked {
    background-color: #11DFFD;
    border-color: #11DFFD;
}

/* Improve label spacing */
.form-check-label {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    padding-left: 1.5rem;
}



/* Styling for the Booking Section */
.booking-screen {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Section Titles */
.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

/* Subtitle Styling */
.subtitle {
    text-align: center;
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Transmission Selection Styling */
.transmission-option {
    padding: 20px;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s, border 0.2s;
    cursor: pointer;
    background-color: #fff;
    text-align: center;
}

.transmission-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Highlight selected transmission */
.transmission-option.selected {
    border: 2px solid #11DFFD !important;
    box-shadow: 0 0 8px rgba(17, 223, 253, 0.6);
}

/* Highlight selected transmission */
.booking-card-selected-car {
    border: 2px solid #11DFFD !important;
    box-shadow: 0 0 8px rgba(17, 223, 253, 0.6);
}

/* Extra Options Styling */
.extra-options-container {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

/* Extra Option */
.extra-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
}


/* Left side with icon & description */
.option-details {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Icons for Extra Options */
.option-icon {
    width: 50px;
}

/* Description */
.option-description {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Switch Positioning */
.form-switch {
    margin: 0;
    min-width: 60px !important;
}


.transmission-screen {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.transmission-option {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.transmission-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.transmission-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.transmission-option img {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
}

.transmission-option h4 {
    font-weight: bold;
    margin-bottom: 5px;
}

.transmission-option p {
    font-size: 0.9rem;
    color: #555;
}





.booking-selected-car .model-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    background-color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.booking-selected-car .model-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.booking-selected-car .model-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #343a40;
}

.booking-selected-car .model-characteristics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.booking-selected-car .badge {
    padding: 0.4em 0.6em;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 5px;
}



.insurance-option {
    cursor: pointer;
    transition: all 0.3s ease;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures proper spacing */    
}

.insurance-option:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
}

.insurance-option.selected {
    background-color: rgba(17, 223, 253, 0.2);
    border: 2px solid #11DFFD !important;
    box-shadow: 0 0 8px rgba(17, 223, 253, 0.6);
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
}


.dropdown-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between items */
    margin-bottom: 10px; /* Optional spacing between rows */
}

.dropdown-container label {
    font-weight: bold;
    margin-right: 5px; /* Space between label and dropdown */
}


.explore-options {
    background: #f8f9fa; /* Light gray background */
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease-in-out;
}

.explore-options:hover {
    background: #eef1f5;
    transform: scale(1.02);
}

.explore-options .btn {
    transition: all 0.3s ease-in-out;
}

.quantity-selector {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem;
}

.form-check-input[type="checkbox"] {
    border-radius: 1rem;
}

@media (max-width: 768px) {
    .model-image img {
        width: 99%;
        height: auto;
        object-fit: scale-down;
    }

    .categories-menu {
        display: flex;
        overflow: auto;
        justify-content: flex-start; /* Align items to the start */
        gap: 15px;
        margin: 15px 0;
        padding: 10px 20px; /* Add padding to ensure items aren't clipped */
    }      
    
    .extra-options-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .extra-option {
        width: 100%; /* Full width */
        max-width: 500px; /* Optional: Set a max width for readability */
        text-align: center; /* Center text */
        padding: 15px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column; /* Stack elements inside */
        align-items: center; /* Center the content */
    }

    .option-details,
    .quantity-selector,
    .form-switch {
        width: 100%; /* Make each child a full-width row */
        display: flex;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        justify-content: center; /* Center content */
        flex-wrap: wrap; /* Allow items to wrap if necessary */
        padding-left: 0rem !important;
        padding-right: 0rem !important;
        margin: 0px !important;
        
    }

    .form-check-label {
        margin-left: 0px !important;
    }

    .option-details svg {
        margin-bottom: 10px; /* Add some space below the icon */
    } 

    .final-check {
        padding: 0px !important;
        margin: 0px !important;
    }

    .final-label {
        width: 100%; /* Make each child a full-width row */
        display: flow;
        padding: 0.5rem;
    }
}        
