/**
 * Kademe — Contact Form 7 Popup Mesajları
 * ----------------------------------------------------------
 * CF7'nin varsayılan inline mesajlarını gizler ve
 * tema stilinde ortalı bir popup gösterir.
 */

/* ── CF7 varsayılan response output'unu gizle ───────────── */
.wpcf7 form .wpcf7-response-output {
    display: none !important;
}

/* ── Popup overlay (backdrop) ──────────────────────────── */
.kd-cf7-popup {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 15, 20, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

.kd-cf7-popup.is-open {
    opacity: 1;
    visibility: visible;
}

/* ── Popup kutusu ──────────────────────────────────────── */
.kd-cf7-popup__box {
    position: relative;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    max-width: 460px;
    width: 100%;
    padding: 44px 36px 32px;
    text-align: center;
    transform: translateY(20px) scale(.96);
    transition: transform .3s cubic-bezier(.2, .9, .3, 1.2);
}

.kd-cf7-popup.is-open .kd-cf7-popup__box {
    transform: translateY(0) scale(1);
}

/* ── Kapat butonu ──────────────────────────────────────── */
.kd-cf7-popup__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7680;
    transition: background .15s, color .15s;
}

.kd-cf7-popup__close:hover {
    background: #f3f4f6;
    color: #111;
}

.kd-cf7-popup__close svg {
    width: 16px;
    height: 16px;
}

/* ── İkon dairesi ──────────────────────────────────────── */
.kd-cf7-popup__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.kd-cf7-popup__icon svg {
    width: 36px;
    height: 36px;
}

/* Duruma göre ikon rengi */
.kd-cf7-popup--success .kd-cf7-popup__icon { background: #22c55e; }
.kd-cf7-popup--error   .kd-cf7-popup__icon { background: #ee1d23; }
.kd-cf7-popup--warning .kd-cf7-popup__icon { background: #f59e0b; }

/* ── Metin ─────────────────────────────────────────────── */
.kd-cf7-popup__title {
    font-size: 22px;
    font-weight: 700;
    color: #1a2329;
    margin: 0 0 8px;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.kd-cf7-popup__message {
    font-size: 15px;
    color: #556069;
    line-height: 1.55;
    margin: 0 0 24px;
}

/* ── OK butonu ─────────────────────────────────────────── */
.kd-cf7-popup__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 48px;
    padding: 0 30px;
    border: none;
    border-radius: 30px;
    background: #ee1d23;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s, transform .1s;
}

.kd-cf7-popup__btn:hover {
    background: #c91219;
}

.kd-cf7-popup__btn:active {
    transform: scale(.97);
}

/* ── Mobil ─────────────────────────────────────────────── */
@media (max-width: 480px) {
    .kd-cf7-popup__box {
        padding: 36px 24px 26px;
        border-radius: 14px;
    }
    .kd-cf7-popup__title { font-size: 18px; }
    .kd-cf7-popup__message { font-size: 14px; }
    .kd-cf7-popup__icon { width: 60px; height: 60px; }
    .kd-cf7-popup__icon svg { width: 30px; height: 30px; }
}

/* ── Scroll lock ───────────────────────────────────────── */
body.kd-cf7-popup-open {
    overflow: hidden;
}
