﻿/*===== AITM MODAL (PREMIUM) ===== */
.aitm-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
}

    .aitm-modal.active {
        display: block;
    }

.aitm-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.6);
    backdrop-filter: blur(6px);
}

.aitm-modal-box {
    position: relative;
    max-width: 420px;
    margin: 10vh auto;
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    z-index: 2;
    animation: aitmModalIn .25s ease;
}

@keyframes aitmModalIn {
    from {
        transform: translateY(20px);
        opacity: 0
    }

    to {
        transform: none;
        opacity: 1
    }
}

.aitm-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    border: none;
    background: none;
    font-size: 26px;
    cursor: pointer;
    color: #64748b;
}

.aitm-modal-head h3 {
    margin: 0;
    font-size: 20px;
    color: #0f172a;
}

.aitm-modal-head p {
    margin: 6px 0 18px;
    font-size: 14px;
    color: #64748b;
}

.aitm-field {
    margin-bottom: 14px;
}

    .aitm-field label {
        display: block;
        font-size: 12px;
        color: #64748b;
        margin-bottom: 4px;
    }

    .aitm-field input,
    .aitm-field textarea {
        width: 100%;
        padding: 10px 12px;
        border-radius: 10px;
        border: 1px solid #e2e8f0;
        font-size: 14px;
    }

        .aitm-field input:focus,
        .aitm-field textarea:focus {
            outline: none;
            border-color: #22c55e;
            box-shadow: 0 0 0 2px rgba(34,197,94,.15);
        }









.success-toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background: #16a34a;
    color: #fff;
    padding: 18px 22px;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
    z-index: 99999;
    max-width: 320px;
    animation: toastIn .3s ease;
}

    .success-toast h2 {
        font-size: 16px;
        margin: 0 0 6px;
    }

    .success-toast p {
        font-size: 14px;
        margin: 0;
        opacity: .9;
    }

@keyframes toastIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: none;
        opacity: 1;
    }
}

.success-toast.hide {
    animation: toastOut .3s ease forwards;
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}



@media (max-width: 576px) {

    /* ===== MODAL ===== */
    .aitm-modal-box {
        max-width: 92%;
        margin: 6vh auto;
        padding: 20px;
        border-radius: 16px;
    }

    .aitm-modal-head h3 {
        font-size: 18px;
    }

    .aitm-modal-head p {
        font-size: 13px;
    }

    .aitm-modal-close {
        top: 10px;
        right: 12px;
        font-size: 22px;
    }

    .aitm-field {
        margin-bottom: 12px;
    }

        .aitm-field input,
        .aitm-field textarea {
            font-size: 16px; /* iOS zoom bug fix */
            padding: 12px;
            border-radius: 12px;
        }

    /* ===== TOAST ===== */
    .success-toast {
        top: auto;
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
        width: calc(100% - 32px);
        max-width: none;
        border-radius: 16px;
        text-align: center;
    }

        .success-toast h2 {
            font-size: 15px;
        }

        .success-toast p {
            font-size: 13px;
        }
}











.footer-form-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-form-info {
    font-size: 13px;
    color: #22c55e;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .25s ease;
}

    .footer-form-info.show {
        opacity: 1;
    }


@media (max-width: 576px) {
    .footer-form-row {
        flex-wrap: wrap;
    }
}
