/*
    Elmina Gold - Premium Form Alert UI
    Dosya: /httpdocs/assets/css/contact-alert.css
*/

.form-alert {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(181, 139, 74, 0.26);
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        0 18px 44px rgba(103, 78, 38, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.62);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(18px) scale(0.97);
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.38s ease,
        transform 0.38s cubic-bezier(.2,.9,.2,1),
        max-height 0.38s ease,
        margin-top 0.38s ease,
        visibility 0.38s ease;
}

.form-alert.show {
    opacity: 1;
    max-height: 180px;
    transform: translateY(0) scale(1);
    visibility: visible;
    pointer-events: auto;
}

.form-alert.success {
    border-color: rgba(95, 160, 110, 0.34);
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.92), rgba(255,255,255,0.48) 42%, transparent 70%),
        linear-gradient(135deg, rgba(255,255,255,0.78), rgba(238, 251, 241, 0.88));
}

.form-alert.error {
    border-color: rgba(201, 79, 79, 0.30);
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.92), rgba(255,255,255,0.48) 42%, transparent 70%),
        linear-gradient(135deg, rgba(255,255,255,0.78), rgba(255, 241, 241, 0.90));
}

.form-alert__icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
    transform: scale(0.86) rotate(-6deg);
    transition: transform 0.45s cubic-bezier(.2,.9,.2,1);
}

.form-alert.show .form-alert__icon {
    transform: scale(1) rotate(0deg);
    animation: elminaIconPop 0.65s cubic-bezier(.2,.9,.2,1);
}

.form-alert.success .form-alert__icon {
    background: linear-gradient(135deg, #7cc889, #3f9b60);
}

.form-alert.error .form-alert__icon {
    background: linear-gradient(135deg, #dc6b6b, #c94747);
}

.form-alert__content {
    flex: 1;
    min-width: 0;
}

.form-alert__title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    color: #2d2a26;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.form-alert__text {
    font-size: 15px;
    line-height: 1.5;
    color: #6d665d;
}

.form-alert__close {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border: none;
    border-radius: 13px;
    background: rgba(0, 0, 0, 0.055);
    color: #7f786f;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.form-alert__close:hover {
    background: rgba(0, 0, 0, 0.095);
    transform: scale(1.06);
}

.contact-submit-loading {
    position: relative;
    cursor: wait !important;
    opacity: 0.88;
}

@keyframes elminaIconPop {
    0% {
        transform: scale(0.72) rotate(-10deg);
    }

    55% {
        transform: scale(1.12) rotate(3deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

@media (max-width: 768px) {
    .form-alert {
        padding: 16px;
        gap: 12px;
        border-radius: 18px;
    }

    .form-alert__icon {
        width: 46px;
        height: 46px;
        min-width: 46px;
        border-radius: 15px;
    }

    .form-alert__title {
        font-size: 18px;
    }

    .form-alert__text {
        font-size: 14px;
    }

    .form-alert__close {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 20px;
    }
}
