/* ComparPlus Energy Comparator Styles */

#comparplus-form-container-fr {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.form-section {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-section h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.4em;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: #34495e;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group input:required:invalid {
    border-color: #e74c3c;
}

.form-group input:required:valid {
    border-color: #27ae60;
}

.checkbox-group {
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    font-size: 14px;
    color: #34495e;
}

.checkbox-group a {
    color: #3498db;
    text-decoration: none;
}

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

.form-submit {
    text-align: center;
    margin-top: 32px;
}

#submit-btn-fr {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

#submit-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

#submit-btn:active {
    transform: translateY(0);
}

#submit-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#form-loading-fr {
    color: #3498db;
    font-weight: 500;
    margin-top: 16px;
}

#form-messages-fr {
    margin-top: 20px;
    padding: 16px;
    border-radius: 6px;
    font-weight: 500;
    display: none;
}

#form-messages.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

#form-messages.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    #comparplus-form-container-fr {
        padding: 16px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-section {
        padding: 16px;
    }
    
    .form-section h3 {
        font-size: 1.2em;
    }
    
    #submit-btn-fr {
        width: 100%;
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .form-group input,
    .form-group select {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

