/* Styles CSS pour les formulaires de contact des annonces immobilières */

.contact-annonce-wrapper {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin: 0 0 40px 0;
}

.contact-annonce-header h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
}

.contact-description {
    color: #666;
    margin: 0 0 20px 0;
}

.contact-commercial-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.commercial-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.commercial-details {
    flex: 1;
}

.commercial-name {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.commercial-phone {
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.commercial-phone-container {
    margin: 8px 0;
}

.btn-show-phone {
    background: none;
    border: 1px solid #e7b22c;
    color: #e7b22c;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.btn-show-phone:hover {
    background: #F8B500;
    color: #fff;
}

.btn-show-phone svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-show-phone.phone-revealed {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-show-phone.phone-revealed svg {
    color: white;
}

.btn-show-phone .phone-display {
    color: inherit;
    font-weight: 500;
    cursor: pointer;
}

.commercial-label {
    margin: 0;
    font-size: 12px;
    color: #999;
}

.contact-form-container {
    background: white;
    padding: 25px;
    border-radius: 8px;
}

.contact-form-container label {
    display: block;
    margin-bottom: 15px;
    font-weight: 500;
    color: #333;
}

.contact-form-container input[type="text"],
.contact-form-container input[type="email"],
.contact-form-container input[type="tel"],
.contact-form-container textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 5px;
    transition: border-color 0.3s ease;
}

.contact-form-container input:focus,
.contact-form-container textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.contact-form-container textarea {
    min-height: 120px;
    resize: vertical;
}

/* Style des boutons radio pour correspondre aux toggle options */
.contact-form-container .wpcf7-radio {
    display: flex;
    gap: 12px;
    margin-top: 5px;
}

.contact-form-container .wpcf7-list-item {
    margin: 0;
}

.contact-form-container .wpcf7-list-item-label {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 140px;
    padding: 14px 24px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    font-weight: 600;
    color: #495057;
    text-align: center;
    user-select: none;
}

.contact-form-container .wpcf7-list-item-label:hover {
    background: #fff;
    border-color: #F8B500;
}

.contact-form-container .wpcf7-radio input[type="radio"] {
    position: absolute !important;
    opacity: 0;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none;
}

.contact-form-container .wpcf7-radio input[type="radio"]:checked + .wpcf7-list-item-label,
.contact-form-container .wpcf7-list-item-label.active {
    background: #F8B500;
    border-color: #F8B500;
    color: #fff;
}

.contact-form-container input[type="submit"] {
    background: #F8B500;
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom:20px;
}

.contact-form-container input[type="submit"]:hover {

}

.contact-reference {
    margin: 15px 0 0 0;
    font-size: 13px;
    color: #666;
    text-align: center;
}

.wpcf7-response-output {
    margin: 15px 0 0 0 !important;
    padding: 15px !important;
    border-radius: 6px !important;
}

.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
    background: #fff3cd !important;
    border: 1px solid #ffc107 !important;
    color: #856404 !important;
}

.wpcf7-mail-sent-ok {
    background: #d4edda !important;
    border: 1px solid #28a745 !important;
    color: #155724 !important;
}

.wpcf7-mail-sent-ng,
.wpcf7-aborted,
.wpcf7-spam-blocked {
    background: #f8d7da !important;
    border: 1px solid #dc3545 !important;
    color: #721c24 !important;
}

form.wpcf7-form label{
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-annonce-wrapper {
        padding: 20px;
    }
    
    .contact-commercial-info {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-form-container .wpcf7-radio {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-form-container .wpcf7-list-item-label {
        min-width: 100%;
        justify-content: center;
    }
}
