.quote-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(255, 255, 255, 100) !important;
    z-index: 999999 !important;
    display: none;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    font-family: "Raleway", sans-serif;
}

.quote-modal.active {
    transform: translateY(0);
}

.quote-modal__content {
    max-width: 1140px;
    margin: 2rem auto;
    padding: 2rem;
    position: relative;
}

.quote-modal__close {
    position: fixed;
    right: 20px;
    top: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #b29450;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 4px;
    color: white;
    font-weight: 100;
    font-size: 42px;
    z-index: 1000000;
}

.quote-modal__close:hover {
    background: #96793c;
}

.quote-modal__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.quote-modal__summary {
    padding: 2rem;
}

.quote-modal__form {
    /* background: #f8f8f8; */
    padding: 2rem;
    border-radius: 8px;
}

/* Ordre par défaut sur desktop : récapitulatif à gauche, formulaire à droite */
.quote-modal__summary--responsive-second {
    order: 1;
}

.quote-modal__form--responsive-first {
    order: 2;
}

.quote-modal h2 {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    line-height: 1.1;
    color: #333;
    margin-bottom: 1.5rem;
}

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

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: "Raleway", sans-serif;
    font-weight: 400;
    font-size: 1.4rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    font-family: "Raleway", sans-serif;
    transition: border-color 0.3s;
    line-height: 30px !important;
}

.form-group input:focus {
    border-color: #b29450;
    outline: none;
}

.form-info {
    margin-top: 2.4rem;
    margin-bottom: 0.5rem;
    padding: 1rem;
    background: rgba(178, 148, 80, 0.1);
    border-radius: 4px;
    font-size: 1.4rem;
    line-height: 1.8rem;
    color: #666;
}

.submit-button,
.modify-button {
    text-align: center;
    width: 100%;
    padding: 1rem;
    background: #b29450;
    color: white;
    border: none;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    transition: background-color 0.3s;
}

.submit-button:hover,
.modify-button:hover {
    background: #96793c;
}

.quote-button-text {
    font-size: 16px;
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    color: #333;
    text-align: center;
    display: block;
    padding-top: 6px;
}

.price-row {
    font-family: "Raleway", sans-serif;
}

.price-row .price {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    color: #b29450;
}

.total-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(0,0,0,0.1);
}

.price-row.total {
    font-size: 1.2rem;
    font-weight: bold;
}

.options-list {
    background: white;
    border-radius: 6px;
    padding: 0.5rem;
}

.options-list .price-row {
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: 4px;
}

.options-list .price-row:nth-child(odd) {
    background: rgba(0,0,0,0.02);
}

.van-details {
    margin: 0.5rem 0 1rem 0;
    padding: 0.5rem 0;
    color: #666;
}

.places-info {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(178, 148, 80, 0.1);
    border-radius: 4px;
    font-size: 0.9rem;
    color: #b29450;
    font-family: "Montserrat", sans-serif;
}

@media (max-width: 768px) {
    .quote-modal__content {
        margin: 1rem;
        padding: 1rem;
    }

    .quote-modal__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Réorganiser l'ordre en mobile : formulaire d'abord, puis récapitulatif */
    .quote-modal__form--responsive-first {
        order: 1;
    }
    
    .quote-modal__summary--responsive-second {
        order: 2;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Alignement des checkboxes en responsive */
    .consent-checkboxes {
        margin: 15px 0;
    }
    
    .checkbox-group {
        gap: 10px;
        margin-bottom: 15px;
        align-items: flex-start;
    }
    
    .checkbox-group input[type="checkbox"] {
        margin-top: 1px;
        width: 18px;
        height: 18px;
    }
    
    .checkbox-group label {
        font-size: 13px;
        line-height: 1.3;
    }
}

.summary-section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

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

.summary-section h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.total-section .price-row.total {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
}

/* Style du récapitulatif */
.quote-summary__content {
    font-family: "Raleway", sans-serif;
}

.quote-summary__content h3 {
    color: #b29450;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    font-family: "Montserrat", sans-serif;
}

.van-details {
    color: #666;
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

.summary-section h3 {
    font-size: 2rem;
    color: #333;
    margin: 2rem 0 1rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1.4rem;
}

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

.price-row .price {
    font-weight: normal;
    color: #333;
}

/* Totaux */
.options-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    font-size: 1.4rem;
}

.base-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    font-style: italic;
    font-size: 1.6rem;
}

.total-section {
    margin-top: 2rem;
    border: 1px solid #333;
    padding: 1rem;
}

.total-section .price-row {
    border: none;
    font-size: 1.6rem;
    font-weight: bold;
}

/* Titres des sections */
.options-title {
    font-size: 1.8rem;
    color: #333 !important;
    margin: 2rem 0 1rem;
}

.quote-modal__watermark {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999998;
    opacity: 0.1;
    pointer-events: none;
    width: 200px;
}

.quote-modal__watermark img {
    width: 100%;
    height: auto;
}

/* Styles pour le loader */
.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Styles pour le message de succès */
.quote-success {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
}

.quote-success__content {
    text-align: center;
    padding: 40px;
    max-width: 500px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quote-success__icon {
    width: 60px;
    height: 60px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.quote-success h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
    font-family: "Montserrat", sans-serif;
}

.quote-success p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.quote-success__contact {
    font-weight: 500;
    color: #4CAF50 !important;
}

.close-success {
    margin-top: 30px;
    padding: 12px 30px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.close-success:hover {
    background: #8e7640;
}

@media (max-width: 768px) {
    .quote-success__content {
        padding: 30px 20px;
        margin: 20px;
    }

    .quote-success h2 {
        font-size: 20px;
    }

    .quote-success p {
        font-size: 14px;
    }
}

/* Style pour le bouton désactivé */
.submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.consent-checkboxes {
    margin: 20px 0;
    text-align: left;
    width: 100%;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    text-align: left;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.checkbox-group label {
    font-size: 14px;
    line-height: 1.4;
    color: #666;
    flex: 1;
    text-align: left;
    margin: 0;
}

.checkbox-group a {
    color: #173753;
    text-decoration: underline;
}

.checkbox-group a:hover {
    text-decoration: none;
} 