/**
 * Kurumsal Form Mesajlari Stilleri
 * Makro Life - Professional Form Feedback
 */

/* ========================================
   SUCCESS MESSAGE - Basari Mesaji
   ======================================== */
.ml-message-success {
    position: relative;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: none;
    border-left: 5px solid #28a745;
    border-radius: 12px;
    padding: 30px 35px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(40, 167, 69, 0.15);
    animation: slideInSuccess 0.5s ease-out;
}

.ml-message-success::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='80' cy='20' r='40' fill='%2328a74510'/%3E%3Ccircle cx='90' cy='80' r='30' fill='%2328a74508'/%3E%3C/svg%3E") no-repeat right center;
    background-size: contain;
    pointer-events: none;
}

.ml-message-success .ml-message-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    animation: bounceIn 0.6s ease-out 0.2s both;
}

.ml-message-success .ml-message-icon i {
    font-size: 32px;
    color: #fff;
}

.ml-message-success .ml-message-title {
    font-size: 24px;
    font-weight: 700;
    color: #155724;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.ml-message-success .ml-message-text {
    font-size: 16px;
    color: #155724;
    margin-bottom: 0;
    line-height: 1.6;
    opacity: 0.9;
}

.ml-message-success .ml-message-subtext {
    font-size: 14px;
    color: #155724;
    opacity: 0.7;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(21, 87, 36, 0.15);
}

/* ========================================
   ERROR MESSAGE - Hata Mesaji
   ======================================== */
.ml-message-error {
    position: relative;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: none;
    border-left: 5px solid #dc3545;
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: 0 10px 40px rgba(220, 53, 69, 0.12);
    animation: shakeError 0.5s ease-out;
}

.ml-message-error::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='80' cy='50' r='50' fill='%23dc354508'/%3E%3C/svg%3E") no-repeat right center;
    background-size: contain;
    pointer-events: none;
}

.ml-message-error .ml-message-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-radius: 50%;
    margin-right: 20px;
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.25);
    flex-shrink: 0;
}

.ml-message-error .ml-message-icon i {
    font-size: 22px;
    color: #fff;
}

.ml-message-error .ml-message-content {
    display: flex;
    align-items: center;
}

.ml-message-error .ml-message-title {
    font-size: 18px;
    font-weight: 700;
    color: #721c24;
    margin-bottom: 5px;
}

.ml-message-error .ml-message-text {
    font-size: 15px;
    color: #721c24;
    margin-bottom: 0;
    opacity: 0.9;
}

/* ========================================
   INFO MESSAGE - Bilgi Mesaji
   ======================================== */
.ml-message-info {
    position: relative;
    background: linear-gradient(135deg, #cce5ff 0%, #b8daff 100%);
    border: none;
    border-left: 5px solid #007bff;
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: 0 10px 40px rgba(0, 123, 255, 0.12);
}

.ml-message-info .ml-message-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 50%;
    margin-right: 20px;
    flex-shrink: 0;
}

.ml-message-info .ml-message-icon i {
    font-size: 22px;
    color: #fff;
}

.ml-message-info .ml-message-title {
    font-size: 18px;
    font-weight: 700;
    color: #004085;
    margin-bottom: 5px;
}

.ml-message-info .ml-message-text {
    font-size: 15px;
    color: #004085;
    margin-bottom: 0;
    opacity: 0.9;
}

/* ========================================
   WARNING MESSAGE - Uyari Mesaji
   ======================================== */
.ml-message-warning {
    position: relative;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border: none;
    border-left: 5px solid #ffc107;
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: 0 10px 40px rgba(255, 193, 7, 0.15);
}

.ml-message-warning .ml-message-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    border-radius: 50%;
    margin-right: 20px;
    flex-shrink: 0;
}

.ml-message-warning .ml-message-icon i {
    font-size: 22px;
    color: #fff;
}

.ml-message-warning .ml-message-title {
    font-size: 18px;
    font-weight: 700;
    color: #856404;
    margin-bottom: 5px;
}

.ml-message-warning .ml-message-text {
    font-size: 15px;
    color: #856404;
    margin-bottom: 0;
    opacity: 0.9;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes slideInSuccess {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.1);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shakeError {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .ml-message-success,
    .ml-message-error,
    .ml-message-info,
    .ml-message-warning {
        padding: 20px 25px;
    }

    .ml-message-success .ml-message-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 15px;
    }

    .ml-message-success .ml-message-icon i {
        font-size: 26px;
    }

    .ml-message-success .ml-message-title {
        font-size: 20px;
    }

    .ml-message-error .ml-message-content,
    .ml-message-info .ml-message-content,
    .ml-message-warning .ml-message-content {
        flex-direction: column;
        text-align: center;
    }

    .ml-message-error .ml-message-icon,
    .ml-message-info .ml-message-icon,
    .ml-message-warning .ml-message-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* ========================================
   CAPTCHA STYLES
   ======================================== */
.ml-captcha-box {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 12px 25px;
    border-radius: 10px;
    border: 2px solid #dee2e6;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 10px;
    font-family: 'Courier New', monospace;
    color: #333;
    user-select: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.ml-captcha-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.03) 2px,
        rgba(0,0,0,0.03) 4px
    );
    pointer-events: none;
}

.ml-captcha-input {
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
}
