/* Quote Form Modal Styles */

.quote-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    overflow-y: auto;
}

.quote-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-content {
    background: #1a1a1a;
    border-radius: 20px;
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 2px solid #fdd100;
}

.quote-header {
    background: linear-gradient(135deg, #fdd100, #ffed4e);
    padding: 30px;
    text-align: center;
    border-radius: 18px 18px 0 0;
    position: relative;
}

.quote-header h2 {
    color: #000;
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}

.quote-header .service-type {
    color: #333;
    font-size: 16px;
    margin-top: 10px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.5);
}

.quote-body {
    padding: 40px;
}

.form-section {
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(253, 209, 0, 0.2);
}

.section-title {
    color: #fdd100;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #fdd100;
    margin-right: 15px;
    border-radius: 2px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input, 
.form-select, 
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* Amélioration de l'apparence des <select> pour le thème sombre */
.form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    padding-right: 44px; /* espace pour la flèche */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23fdd100' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
}

.form-select:hover {
    border-color: rgba(253, 209, 0, 0.35);
    background-color: rgba(255, 255, 255, 0.12);
}

.form-input:focus, 
.form-select:focus, 
.form-textarea:focus {
    outline: none;
    border-color: #fdd100;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 0 0 3px rgba(253, 209, 0, 0.18);
}

/* Style des options (meilleur contraste sur fond sombre) */
.form-select option {
    background-color: #1f1f1f;
    color: #fff;
}

/* Masquer la flèche par défaut sous IE/Edge Legacy */
.form-select::-ms-expand {
    display: none;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.checkbox-item:hover {
    background: rgba(253, 209, 0, 0.1);
    border-color: rgba(253, 209, 0, 0.3);
}

.checkbox-item input[type="checkbox"] {
    margin-right: 10px;
    accent-color: #fdd100;
}

.checkbox-item label {
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    margin: 0;
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.radio-item:hover {
    background: rgba(253, 209, 0, 0.1);
    border-color: rgba(253, 209, 0, 0.3);
}

.radio-item input[type="radio"] {
    margin-right: 10px;
    accent-color: #fdd100;
}

.radio-item label {
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    margin: 0;
}

.submit-btn {
    background: linear-gradient(135deg, #fdd100, #ffed4e);
    color: #000;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(253, 209, 0, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.loading {
    display: none;
    text-align: center;
    color: #fdd100;
    margin-top: 20px;
}

.success-message {
    display: none;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
}

.error-message {
    display: none;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .quote-content {
        width: 98%;
        margin: 10px;
    }
    
    .quote-body {
        padding: 20px;
    }
    
    .form-section {
        padding: 20px;
    }
}
