/* Styles pour les formulaires */
input, #end_date, #start_date, #start_time, #end_time{
    padding: 10px;
    width: 100%;
    /*margin: 10px 0;*/
    font-size: 14px;
    font-family: inherit;
    line-height: 24px;
    color: #555;
    background-color: #fff;
    border: #11b60c30 solid 1px;
    border-radius: 7px;
    transition: border .2s ease;
}
#start_date, #end_date {
    padding: 8px 10px;
}

input:hover, #end_date:hover, #start_date:hover {
    border: #11b60c solid 1px;
}

input:focus, #end_date:focus, #start_date:focus {
    outline: none;
}

select, #return_agency, #start_location, #type_location {
    /*margin: 10px 0;*/
    padding: 10px;
    width: 100%;
    border: #11b60c30 solid 1px;
    border-radius: 7px;
    font-size: 14px;
    color: #2a2a2a;
    background-color: #fff;
    box-shadow: 0 2px 5px #00000015;
    outline: none;
}

select:hover, #return_agency:hover, #start_location:hover, #type_location:hover {
    border: #11b60c solid 1px;
}

button#maj {
    height: fit-content;
    margin-top: 7px;
}

.vehicle-booking-form-container {
    background-color: #fff;
    color: #000000;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: auto;
}

.form-row-perso {
    display: flex;
    flex-wrap: wrap;
}

.form-group-perso {
    margin-bottom: 10px;
    flex: 1;
}

.form-group-perso label {
    margin-bottom: 7px;
    display: block;
}

.half-width {
    width: 48%;
    margin-right: 2%;
}

.margintop {
    margin-top: 20px;
}

/* Styles pour la checkbox */
.checkbox-wrapper-19 {
    box-sizing: border-box;
    --background-color: #fff;
    --checkbox-height: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

@-moz-keyframes dothabottomcheck-19 {
    0% { height: 0; }
    100% { height: calc(var(--checkbox-height) / 2); }
}

@-webkit-keyframes dothabottomcheck-19 {
    0% { height: 0; }
    100% { height: calc(var(--checkbox-height) / 2); }
}

@keyframes dothabottomcheck-19 {
    0% { height: 0; }
    100% { height: calc(var(--checkbox-height) / 2); }
}

@keyframes dothatopcheck-19 {
    0% { height: 0; }
    50% { height: 0; }
    100% { height: calc(var(--checkbox-height) * 1.2); }
}

@-webkit-keyframes dothatopcheck-19 {
    0% { height: 0; }
    50% { height: 0; }
    100% { height: calc(var(--checkbox-height) * 1.2); }
}

@-moz-keyframes dothatopcheck-19 {
    0% { height: 0; }
    50% { height: 0; }
    100% { height: calc(var(--checkbox-height) * 1.2); }
}

.checkbox-wrapper-19 input[type=checkbox] {
    display: none;
}

.checkbox-wrapper-19 .check-box {
    height: var(--checkbox-height);
    width: var(--checkbox-height);
    min-width: var(--checkbox-height);
    background-color: transparent;
    border: calc(var(--checkbox-height) * .05) solid #11b60c60;
    border-radius: 5px;
    position: relative;
    display: inline-block;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -moz-transition: border-color ease 0.2s;
    -o-transition: border-color ease 0.2s;
    -webkit-transition: border-color ease 0.2s;
    transition: border-color ease 0.2s;
    cursor: pointer;
}

.checkbox-wrapper-19 .check-box::before,
.checkbox-wrapper-19 .check-box::after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    position: absolute;
    height: 0;
    width: calc(var(--checkbox-height) * .2);
    background-color: #11b60c;
    display: inline-block;
    -moz-transform-origin: left top;
    -ms-transform-origin: left top;
    -o-transform-origin: left top;
    -webkit-transform-origin: left top;
    transform-origin: left top;
    border-radius: 5px;
    content: " ";
    -webkit-transition: opacity ease 0.5s;
    -moz-transition: opacity ease 0.5s;
    transition: opacity ease 0.5s;
}

.checkbox-wrapper-19 .check-box::before {
    top: calc(var(--checkbox-height) * .72);
    left: calc(var(--checkbox-height) * .41);
    box-shadow: 0 0 0 calc(var(--checkbox-height) * .05) var(--background-color);
    -moz-transform: rotate(-135deg);
    -ms-transform: rotate(-135deg);
    -o-transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
    transform: rotate(-135deg);
}

.checkbox-wrapper-19 .check-box::after {
    top: calc(var(--checkbox-height) * .37);
    left: calc(var(--checkbox-height) * .05);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.checkbox-wrapper-19 input[type=checkbox]:checked + .check-box,
.checkbox-wrapper-19 .check-box.checked {
    border-color: #11b60c;
}

.checkbox-wrapper-19 input[type=checkbox]:checked + .check-box::after,
.checkbox-wrapper-19 .check-box.checked::after {
    height: calc(var(--checkbox-height) / 2);
    -moz-animation: dothabottomcheck-19 0.2s ease 0s forwards;
    -o-animation: dothabottomcheck-19 0.2s ease 0s forwards;
    -webkit-animation: dothabottomcheck-19 0.2s ease 0s forwards;
    animation: dothabottomcheck-19 0.2s ease 0s forwards;
}

.checkbox-wrapper-19 input[type=checkbox]:checked + .check-box::before,
.checkbox-wrapper-19 .check-box.checked::before {
    height: calc(var(--checkbox-height) * 1.2);
    -moz-animation: dothatopcheck-19 0.4s ease 0s forwards;
    -o-animation: dothatopcheck-19 0.4s ease 0s forwards;
    -webkit-animation: dothatopcheck-19 0.4s ease 0s forwards;
    animation: dothatopcheck-19 0.4s ease 0s forwards;
}

/* Styles pour les résultats de recherche */
.vehicle-search-results {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.search-criteria {
    background-color: #f8f8f8;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
}

.no-vehicles {
    background-color: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin: 30px 0;
}

.vehicle-card {
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    overflow: hidden;
    max-width: 1200px;
    margin: 20px auto;
}


.vehicle-image {
    flex: 0 0 300px;
    margin-right: 20px;
}

.vehicle-image img {
    max-width: 100%;
    height: auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.vehicle-title h1 {
    font-size: 28px;
    margin: 0 0 5px 0;
}

.vehicle-category {
    color: #666;
    margin: 0 0 20px 0;
}

.no-image {
    color: #888;
    text-align: center;
}

.price-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    padding-top: 15px;
}

.price-included {
    flex: 1;
    padding-right: 30px;
}

.price-included h2 {
    font-size: 18px;
    margin-top: 0;
    text-transform: uppercase;
}

.price-included ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.price-included li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 15px;
}

.price-included li img {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    margin-bottom: 0 !important;
}

.price-per-day {
    margin-bottom: 10px;
}

.price-per-day .price {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.price-per-day .unit {
    color: #666;
}

.price-breakdown {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.price-breakdown p {
    margin: 3px 0;
}

.total-price {
    font-size: 18px;
    margin: 15px 0;
    /*padding-top: 10px;*/
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-price .price {
    font-weight: bold;
    color: #2ecc71;
    font-size: 22px;
}

.payment-options {
    flex: 2;
    display: flex;
    border-left: 1px solid #E0E0E0;
}

.payment-option {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.payment-option h3 {
    font-size: 16px;
    font-weight: normal;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.price {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
}

.booking-form {
    margin-top: 20px;
}

.booking-form button {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.booking-form button:hover {
    background-color: #2980b9;
}

.reserve-button {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    padding: 8px 30px;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
}

.reserve-button.green {
    background-color: var(--primary-color);
    color: white;
}

.small-text {
    font-size: 14px;
    color: #666;
    margin-top: 15px;
}

.insurance-options {
    margin-top: 20px;
}

.vehicle-options {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f3f3f3;
}

.options-label {
    font-weight: bold;
    margin-right: 20px;
}

.options-list {
    display: flex;
    flex: 1;
    gap: 20px;
}

.option {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.option img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

#vehicle-options-display img {
    margin-bottom: 0 !important;
    width: 24px !important;
    height: 24px !important;
}

.checkimg {
    width: 24px !important;
    height: 24px !important;
}

.cancellation {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-size: 14px;
}

.cancellation img {
    width: 20px;
    height: 20px;
    margin-left: 8px;
}

.info-tooltip {
    position: relative;
    display: flex;
    margin-left: 5px;
}

.info-icon {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    background-color: #333;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    width: 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
}

.tooltip-content::after {
    content: "";
    position: absolute;
    bottom: -8px; /* Flèche en bas */
    right: 20px; /* Flèche à droite */
    border: 8px solid transparent;
    border-top-color: #333; /* Flèche pointant vers le bas */
}

.info-tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

.vehicle-details {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid #E0E0E0;
    gap: 20px;
    align-items: flex-start;
}

.vehicle-left {
    flex: 1;
    min-width: 250px;
}

.vehicle-image {
    flex: 0 0 300px;
    order: 2;
}

.vehicle-info {
    flex: 2;
    order: 3;
    min-width: 400px;
}

/* Modifications pour mobile - plus de hauteur et meilleure organisation */
@media (max-width: 768px) {
    .vehicle-details {
        flex-direction: column;
        gap: 15px;
    }

    .vehicle-left {
        order: 1;
        min-width: auto;
    }

    .vehicle-image {
        order: 2;
        flex: 1;
        max-width: 100%;
    }

    .vehicle-info {
        order: 3;
        min-width: auto;
        width: 100%;
    }

    /* Réorganisation du price-details en colonne */
    .price-details {
        flex-direction: column;
        margin: 0;
        padding-top: 0;
    }

    /* LE PRIX INCLUT en premier */
    .price-included {
        order: 1;
        padding-right: 0;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid #E0E0E0;
    }

    /* Boutons de paiement en second */
    .payment-options {
        order: 2;
        flex-direction: column;
        border-left: none;
        border-top: none;
        padding-top: 0;
        gap: 15px;
    }

    .payment-option {
        margin-bottom: 0;
        padding: 15px;
        border: 1px solid #E0E0E0;
        border-radius: 8px;
        background-color: #fafafa;
    }

    /* Options de véhicule en colonne */
    .vehicle-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }

    .options-label {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .options-list {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .option {
        padding: 8px 0;
        border-bottom: 1px solid #E0E0E0;
    }

    .option:last-child {
        border-bottom: none;
    }

    /* Annulation en bas */
    .cancellation {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #E0E0E0;
        width: 100%;
    }
}

/* Version mobile */
@media (max-width: 768px) {
    .info-tooltip:hover .tooltip-content {
        visibility: hidden;
        opacity: 0;
    }

    .info-tooltip.active .tooltip-content {
        visibility: visible;
        opacity: 1;
    }
}

/* Ajouts pour la responsivité mobile */
@media (max-width: 768px) {
    .form-row-perso {
        flex-direction: column;
    }

    .form-group-perso.half-width {
        width: 100%;
        margin-right: 0;
    }

    input, #end_date, #start_date,
    select, #return_agency, #start_location, #type_location {
        width: 100%;
        box-sizing: border-box;
    }

    .vehicle-booking-form-container {
        padding: 15px;
        max-width: 100%;
    }

    .search-criteria {
        padding: 15px;
    }

    .vehicle-details h3 {
        font-size: 18px;
    }

    .price-per-day .price {
        font-size: 20px;
    }

    .total-price .price {
        font-size: 20px;
    }

    .booking-form button {
        padding: 10px;
    }
}

/* Pour les très petits écrans */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .vehicle-image {
        height: 150px;
    }

    .vehicle-details {
        padding: 10px;
    }
}