/* Global Error Box */
.global-form-error {
    background-color: #fce4e4;
    color: #cc0000;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #fcc2c3;
    display: none; /* Hidden by default */
    font-size: 14px;
    font-weight: 500;
}

/* Input Fields - Error State */
.comment-form__input-box input.error,
.comment-form__input-box select.error,
.comment-form__input-box textarea.error {
    border: 1px solid #dc3545 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%23dc3545'%3E%3Cpath d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24V264c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1-64 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 40px; /* Make space for icon */
}

/* Input Fields - Valid State */
.comment-form__input-box input.valid,
.comment-form__input-box select.valid,
.comment-form__input-box textarea.valid {
    border: 1px solid #198754 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512' fill='%23198754'%3E%3Cpath d='M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 40px; /* Make space for icon */
}

/* Hide default error labels */
label.error {
    display: none !important;
}

/* Ensure placeholder color remains legible */
.comment-form__input-box input::placeholder,
.comment-form__input-box textarea::placeholder {
    color: #696e73;
}

/* Styles pour les messages de succès/erreur (Akasi Alerts) */
.akasi-alert-success, .akasi-alert-error {
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 20px;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    font-size: 15px;
    line-height: 1.5;
}

.akasi-alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.akasi-alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.akasi-alert-success i {
    color: #16a34a;
    font-size: 20px;
    margin-top: 2px;
}

.akasi-alert-error i {
    color: #dc2626;
    font-size: 20px;
    margin-top: 2px;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
