[data-modal-open] {
    cursor: pointer;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 4vw, 48px);
    background: rgb(20 20 20 / 55%);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
    overflow-y: auto;
}

.modal.sertifika{
    background-color:#906668;
}
.modal.sertifika .modal__close{
    bottom: 100%;
}
.modal.guvence{
    background-color:#906668;
}

    .modal.is-open {
        opacity: 1;
        visibility: visible;
    }

body.modal-open {
    overflow: hidden;
}

/* ---- Diyalog ---- */

.modal__dialog {
    position: relative;
    width: min(983px, 100%);
    margin: auto;
    filter: drop-shadow(0 18px 40px rgb(0 0 0 / 18%));
    transform: translateY(16px) scale(0.98);
    transition: transform var(--transition-base);
}

.modal.is-open .modal__dialog {
    transform: translateY(0) scale(1);
}

/* ---- Dalgalı üst/alt kenar ---- */

.modal__wave {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: clamp(26px, 3.4vw, 50px);
    fill: var(--neutral-FFFFFF);
}

    .modal__wave--top {
        margin-bottom: -1px;
    }

    .modal__wave--bottom {
        margin-top: -1px;
        transform: scale(-1);
    }

/* ---- Gövde ---- */

.modal__body {
    position: relative;
    padding: clamp(28px, 4vw, 60px) clamp(28px, 5vw, 80px);
    background: var(--neutral-FFFFFF);
    overflow: hidden;
}

.guvence .modal__body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../../img/guvence-modal-bg.svg") center / cover no-repeat;
    transform: scaleX(-1);
    z-index: 0;
}

.guvence .modal__body > * {
    position: relative;
    z-index: 1;
}

/* ---- Kapat düğmesi (diyaloğun sağ üstünde) ---- */

.modal__close {
    position: absolute;
    right: clamp(30px, 3.5vw,60px);
    bottom: calc(100% - clamp(5px, .7vw,16px));
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--neutral-E0E0E0);
    border-radius: 3px;
    font-size: var(--df-text-fs-16);
    font-weight: var(--fw-regular);
    color: var(--neutral-E0E0E0);
    line-height: 1;
    z-index: 5;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

    .modal__close svg {
        width: 18px;
        height: 18px;
    }

    .modal__close:hover {
        background: var(--neutral-141414);
        border-color: var(--neutral-141414);
        color: var(--neutral-FFFFFF);
    }
