/* Arkaplan overlay */
.popupforms-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Modal kutu */
.popupforms-modal {
    background: #ffffff;
    max-width: 520px;
    width: 90%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    padding: 32px 28px 28px;
    position: relative;
    text-align: left;
    transform: translateY(-10px);
    opacity: 0;
}

/* Giriş animasyonu */
.popupforms-animate-in {
    animation: popupforms-bounce-in 0.5s ease-out forwards;
}

@keyframes popupforms-bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }
    60% {
        opacity: 1;
        transform: scale(1.03) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Kapatma butonu (üstte ve ortada) */
.popupforms-close {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #888;
}

.popupforms-close:hover {
    color: #333;
}

.popupforms-title {
    margin-top: 28px;
    margin-bottom: 16px;
    font-size: 22px;
    font-weight: 700;
    color: #222;
    text-align: center;
}

.popupforms-form {
    margin-bottom: 18px;
}

/* CF7 alanları ile uyumlu genel stiller (çok agresif olmadan) */
.popupforms-modal .wpcf7-form p {
    margin-bottom: 10px;
}

.popupforms-modal .wpcf7-form input[type="text"],
.popupforms-modal .wpcf7-form input[type="email"],
.popupforms-modal .wpcf7-form input[type="tel"],
.popupforms-modal .wpcf7-form textarea {
    width: 100%;
    box-sizing: border-box;
}

.popupforms-divider {
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 13px;
}

.popupforms-divider::before,
.popupforms-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ddd;
    margin: 0 10px;
}

.popupforms-divider-text {
    font-weight: 600;
    letter-spacing: 1px;
}

.popupforms-whatsapp-wrapper {
    margin-top: 6px;
    text-align: center;
}

.popupforms-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.popupforms-whatsapp-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
}

.popupforms-whatsapp-inline-icon {
    width: 20px;
    height: 20px;
    display: block;
}

/* Sağda sabit mail ikonu (sticky button) */
.popupforms-sticky-button {
    position: fixed !important;
    right: 24px !important;
    bottom: 24px !important;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
    font-size: 24px;
    cursor: pointer;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

/* WhatsApp sticky buton (mail ikonunun biraz üstünde) */
.popupforms-sticky-whatsapp {
    bottom: 100px !important;
    right: 24px !important;
}

.popupforms-sticky-whatsapp-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    display: block !important;
    object-fit: contain;
    flex-shrink: 0 !important;
}

.popupforms-sticky-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.popupforms-sticky-button .popupforms-sticky-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    display: block !important;
    object-fit: contain;
    flex-shrink: 0 !important;
}

@media (max-width: 480px) {
    .popupforms-modal {
        padding: 24px 18px 20px;
    }

    .popupforms-title {
        font-size: 18px;
    }
}

