/* /modal/css/modal.css */
.celyx-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    
    /* Z-INDEX: Her şeyin üzerinde kalması için */
    z-index: 99999999 !important; 
    
    justify-content: center;
    align-items: center;
    padding: 20px;
    /* Dış overlay'de kaydırma çubuğunu engelledik */
    overflow: hidden; 
}

.celyx-modal-box {
    background: #fff;
    width: 100%;
    max-width: 550px;
    border-radius: 20px;
    position: relative;
    padding: 40px 25px 25px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    
    /* DÜZELTME: Çubuğu engellemek için scroll'u tamamen kapattık */
    max-height: 95vh; 
    overflow: hidden !important; 
    
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Modal aktif olduğunda */
.celyx-modal-overlay.active {
    display: flex;
}

.celyx-modal-overlay.active .celyx-modal-box {
    transform: scale(1);
}

/* Kapatma Butonu */
.celyx-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: #f1f1f1;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
}

.celyx-close-btn:hover { 
    background: #386f79; 
    color: #fff;
    transform: rotate(90deg);
}

/* CRM Formu Hedef Alanı */
#celyxFormTarget {
    width: 100%;
    /* İnce ayar: İçerideki iframe'in çubuk çıkarmasını engelle */
    overflow: hidden !important;
}

/* Loader */
.celyx-loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #386f79;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: celyx-spin 1s linear infinite;
    margin: 50px auto;
}

@keyframes celyx-spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

/* MOBİL AYARLAR */
@media (max-width: 480px) {
    .celyx-modal-box {
        padding: 35px 10px 10px; /* Mobilde iç boşluğu biraz daralttık */
        max-height: 98vh;
        width: 95%; /* Kenarlara çok yapışmasın */
    }
}