/**
 * Styles du formulaire Kredietzeker
 * Couleur principale: #0097B2
 * Police: Epilogue
 * PRIORITÉ MAXIMALE avec !important partout
 */

/* RESET TOTAL - Force les bordures noires sur TOUS les champs */
.kredietzeker-form-container input[type="text"],
.kredietzeker-form-container input[type="number"],
.kredietzeker-form-container input[type="email"],
.kredietzeker-form-container input[type="tel"],
.kredietzeker-form-container select,
.kredietzeker-form-container textarea,
.kredietzeker-form input,
.kredietzeker-form select,
.kredietzeker-form textarea,
.kz-input,
.kz-select,
.kz-textarea {
    border: 3px solid #000000 !important;
    border-radius: 6px !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    font-family: 'Epilogue', Arial, sans-serif !important;
    background-color: #fff !important;
    box-sizing: border-box !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
}

/* Focus */
.kredietzeker-form-container input[type="text"]:focus,
.kredietzeker-form-container input[type="number"]:focus,
.kredietzeker-form-container input[type="email"]:focus,
.kredietzeker-form-container input[type="tel"]:focus,
.kredietzeker-form-container select:focus,
.kredietzeker-form-container textarea:focus,
.kredietzeker-form input:focus,
.kredietzeker-form select:focus,
.kredietzeker-form textarea:focus,
.kz-input:focus,
.kz-select:focus,
.kz-textarea:focus {
    outline: none !important;
    border-color: #0097B2 !important;
    box-shadow: 0 0 0 4px rgba(0, 151, 178, 0.15) !important;
    background-color: #f0fafc !important;
}

/* Container principal */
.kredietzeker-form-container {
    font-family: 'Epilogue', Arial, sans-serif;
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.kredietzeker-form {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

/* Sections */
.kz-section {
    margin-bottom: 40px;
}

.kz-section-title {
    color: #0097B2;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid #0097B2;
}

/* Grille */
.kz-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.kz-col-12,
.kz-col-6,
.kz-col-4 {
    padding: 0 10px;
    margin-bottom: 20px;
}

.kz-col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.kz-col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.kz-col-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

/* Labels */
.kz-label {
    display: block !important;
    color: #333 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
}

.kz-required {
    color: #d32f2f !important;
}

/* Placeholders */
.kz-input::placeholder,
.kz-textarea::placeholder,
.kredietzeker-form input::placeholder,
.kredietzeker-form textarea::placeholder {
    color: #999 !important;
}

.kz-textarea,
.kredietzeker-form textarea {
    resize: vertical !important;
    min-height: 100px !important;
}

/* Résultats du calcul */
.kz-resultats {
    background: linear-gradient(135deg, #e6f7fb 0%, #cceef5 100%);
    border: 3px solid #0097B2;
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
}

.kz-resultats-title {
    color: #0097B2;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.kz-resultats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.kz-resultat-item {
    background: #fff;
    padding: 18px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #0097B2;
}

.kz-resultat-label {
    display: block;
    color: #666;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 600;
}

.kz-resultat-value {
    display: block;
    color: #0097B2;
    font-size: 24px;
    font-weight: 700;
}

.kz-resultat-value.kz-cout {
    color: #d32f2f;
}

/* Bouton de soumission */
.kz-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #0097B2 0%, #007a8f 100%);
    color: #ffffff;
    font-family: 'Epilogue', Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    padding: 18px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kz-submit-btn:hover {
    background: linear-gradient(135deg, #007a8f 0%, #006270 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 151, 178, 0.4);
}

.kz-submit-btn:active {
    transform: translateY(0);
}

.kz-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Spinner de chargement */
.kz-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: kz-spin 0.8s linear infinite;
}

@keyframes kz-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Messages */
.kz-message {
    padding: 18px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;
}

.kz-message.success {
    background-color: #d4edda;
    border: 2px solid #0097B2;
    color: #155724;
}

.kz-message.error {
    background-color: #f8d7da;
    border: 2px solid #d32f2f;
    color: #721c24;
}

/* Responsive */
@media (max-width: 992px) {
    .kredietzeker-form {
        padding: 30px 25px;
    }
    
    .kz-col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .kredietzeker-form-container {
        margin: 20px auto;
        padding: 15px;
    }
    
    .kredietzeker-form {
        padding: 25px 20px;
    }
    
    .kz-col-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .kz-section-title {
        font-size: 20px;
    }
    
    .kz-resultats-grid {
        grid-template-columns: 1fr;
    }
    
    .kz-submit-btn {
        font-size: 16px;
        padding: 16px 24px;
    }
}

@media (max-width: 480px) {
    .kredietzeker-form-container {
        padding: 10px;
        margin: 10px auto;
    }
    
    .kredietzeker-form {
        padding: 20px 15px;
    }
    
    .kz-section-title {
        font-size: 18px;
    }
    
    .kz-input,
    .kz-select,
    .kz-textarea {
        padding: 12px 14px !important;
        font-size: 14px !important;
    }
    
    .kz-resultat-value {
        font-size: 20px;
    }
}