/* ============================================================
   FORM SONUÇ MODALI
   ============================================================ */

.site-form-modal {
    --sfm-accent: #12A150;
    --sfm-accent-soft: rgba(18, 161, 80, 0.10);
    --sfm-accent-ring: rgba(18, 161, 80, 0.16);
}

.site-form-modal.is-error,
.site-form-modal:has(.site-form-modal__icon.is-error) {
    --sfm-accent: #E30613;
    --sfm-accent-soft: rgba(227, 6, 19, 0.09);
    --sfm-accent-ring: rgba(227, 6, 19, 0.15);
}

.site-form-modal .modal-dialog {
    max-width: 460px;
}

.site-form-modal.fade .modal-dialog {
    transform: translateY(28px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.3s ease;
    opacity: 0;
}

.site-form-modal.show .modal-dialog {
    transform: none;
    opacity: 1;
}

.site-form-modal__content {
    position: relative;
    border: none;
    border-radius: 22px;
    background: var(--rs-white, #fff);
    box-shadow: 0 2px 6px rgba(15, 20, 30, 0.04),
                0 32px 80px -24px rgba(15, 20, 30, 0.35);
    overflow: hidden;
    font-family: var(--rs-ff-body, "Space Grotesk", sans-serif);
}

/* üst aksan çizgisi */
.site-form-modal__content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
                transparent,
                var(--sfm-accent) 22%,
                var(--sfm-accent) 78%,
                transparent);
}

/* ikonun arkasındaki yumuşak ışık */
.site-form-modal__content::after {
    content: "";
    position: absolute;
    top: -140px;
    left: 50%;
    width: 340px;
    height: 340px;
    transform: translateX(-50%);
    background: radial-gradient(circle, var(--sfm-accent-soft) 0%, transparent 68%);
    pointer-events: none;
}

.site-form-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #9A9FA6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.25s ease, background 0.25s ease, transform 0.35s ease;
}

.site-form-modal__close:hover,
.site-form-modal__close:focus-visible {
    background: rgba(15, 20, 30, 0.05);
    color: var(--rs-black, #1F1F1F);
    transform: rotate(90deg);
    outline: none;
}

.site-form-modal__body {
    position: relative;
    z-index: 1;
    padding: 3rem 2.75rem 2.5rem;
    text-align: center;
}

.site-form-modal__icon {
    position: relative;
    width: 78px;
    height: 78px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    line-height: 1;
    color: var(--sfm-accent);
    background: var(--sfm-accent-soft);
    box-shadow: 0 0 0 8px var(--sfm-accent-soft);
}

.site-form-modal__icon::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid var(--sfm-accent-ring);
}

.site-form-modal.show .site-form-modal__icon {
    animation: sfmIconPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.site-form-modal.show .site-form-modal__icon i {
    animation: sfmIconPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.28s both;
}

@keyframes sfmIconPop {
    0%   { transform: scale(0.4); opacity: 0; }
    100% { transform: scale(1);   opacity: 1; }
}

.site-form-modal__title {
    margin: 0 0 0.65rem;
    font-family: var(--rs-ff-title, "Space Grotesk", sans-serif);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--rs-title-primary, #1F1F1F);
}

.site-form-modal__message {
    margin: 0 auto 2rem;
    max-width: 34ch;
    font-size: 16px;
    line-height: 1.65;
    color: var(--rs-text-primary, #616161);
}

.site-form-modal__btn.rs-btn {
    min-width: 190px;
    height: 54px;
    padding: 0 34px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    justify-content: center;
    background: var(--sfm-accent);
    color: var(--rs-white, #fff);
    box-shadow: 0 10px 24px -10px var(--sfm-accent);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.site-form-modal__btn.rs-btn:hover,
.site-form-modal__btn.rs-btn:focus-visible {
    color: var(--rs-white, #fff);
    transform: translateY(-2px);
    filter: brightness(0.94);
    box-shadow: 0 16px 30px -12px var(--sfm-accent);
    outline: none;
}

.site-form-modal__btn.rs-btn:active {
    transform: translateY(0);
}

.modal-backdrop.show {
    opacity: 0.55;
}

@media (max-width: 575.98px) {
    .site-form-modal .modal-dialog {
        max-width: none;
        margin: 1rem;
    }

    .site-form-modal__body {
        padding: 2.5rem 1.5rem 2rem;
    }

    .site-form-modal__icon {
        width: 68px;
        height: 68px;
        font-size: 31px;
        margin-bottom: 1.25rem;
    }

    .site-form-modal__title {
        font-size: 1.35rem;
    }

    .site-form-modal__message {
        font-size: 15px;
        margin-bottom: 1.75rem;
    }

    .site-form-modal__btn.rs-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-form-modal.fade .modal-dialog,
    .site-form-modal.show .site-form-modal__icon,
    .site-form-modal.show .site-form-modal__icon i,
    .site-form-modal__close,
    .site-form-modal__btn.rs-btn {
        transition: none;
        animation: none;
    }
}

/* ============================================================
   İK FORMU – SATIR İÇİ BAŞARI DURUMU
   ============================================================ */

#ibk-success {
    display: none;
    text-align: center;
    padding: 2rem 1rem;
}

#ibk-success.is-visible {
    display: block;
}

#ibk-form-body.is-hidden {
    display: none;
}

/* ============================================================
   KVKK AYDINLATMA METNİ MODALI
   Sakin, dokümansal bir dil: kırmızı yalnızca tek bir aksan
   olarak kullanılır, hiyerarşi tipografiyle kurulur.
   ============================================================ */

.kvkk-modal__dialog {
    max-width: 620px;
}

.kvkk-modal.fade .modal-dialog {
    transform: translateY(24px) scale(0.98);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    opacity: 0;
}

.kvkk-modal.show .modal-dialog {
    transform: none;
    opacity: 1;
}

.kvkk-modal__content {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    background: var(--rs-white, #fff);
    box-shadow: 0 1px 3px rgba(15, 20, 30, 0.05),
                0 30px 70px -28px rgba(15, 20, 30, 0.4);
    font-family: var(--rs-ff-body, "Space Grotesk", sans-serif);
    max-height: min(88vh, 880px);
}

/* --- başlık --- */

.kvkk-modal__header {
    flex: none;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2.25rem 2.5rem 1.5rem;
    border-bottom: 1px solid #EDEEF0;
}

.kvkk-modal__heading::before {
    content: "";
    display: block;
    width: 30px;
    height: 2px;
    margin-bottom: 1.1rem;
    background: #E30613;
}

.kvkk-modal__eyebrow {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9A9FA6;
}

.kvkk-modal__title {
    margin: 0;
    font-family: var(--rs-ff-title, "Space Grotesk", sans-serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--rs-title-primary, #1F1F1F);
}

.kvkk-modal__close {
    flex: none;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #B4B8BE;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.25s ease, background 0.25s ease;
}

.kvkk-modal__close:hover,
.kvkk-modal__close:focus-visible {
    background: #F4F5F6;
    color: var(--rs-black, #1F1F1F);
    outline: none;
}

/* --- gövde --- */

.kvkk-modal__body {
    padding: 2rem 2.5rem 2.25rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #DCDEE1 transparent;
}

.kvkk-modal__body:focus {
    outline: none;
}

.kvkk-modal__body::-webkit-scrollbar {
    width: 6px;
}

.kvkk-modal__body::-webkit-scrollbar-thumb {
    background: #DCDEE1;
    border-radius: 6px;
}

.kvkk-modal__body::-webkit-scrollbar-thumb:hover {
    background: #C2C6CB;
}

.kvkk-section + .kvkk-section {
    margin-top: 2.5rem;
}

/* bölüm numarası: rozet değil, tipografik bir işaret */
.kvkk-section__title {
    display: block;
    margin: 0 0 0.85rem;
    font-family: var(--rs-ff-title, "Space Grotesk", sans-serif);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--rs-title-primary, #1F1F1F);
}

.kvkk-section__no {
    display: inline;
    margin-right: 0.6rem;
    font-size: 0.8em;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.06em;
    color: #B4B8BE;
}

.kvkk-section__no::before {
    content: "0";
}

.kvkk-section__no::after {
    content: " ·";
}

.kvkk-section p {
    margin: 0 0 0.8rem;
    font-size: 14.5px;
    line-height: 1.82;
    color: #55595F;
}

.kvkk-section p:last-child {
    margin-bottom: 0;
}

.kvkk-section a {
    color: var(--rs-title-primary, #1F1F1F);
    text-decoration: none;
    border-bottom: 1px solid #D5D8DC;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.kvkk-section a:hover {
    color: #E30613;
    border-color: #E30613;
}

.kvkk-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.kvkk-list li {
    position: relative;
    padding-left: 1.15rem;
    margin-bottom: 0.5rem;
    font-size: 14.5px;
    line-height: 1.75;
    color: #55595F;
}

.kvkk-list li:last-child {
    margin-bottom: 0;
}

.kvkk-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #C9CDD2;
}

.kvkk-list li strong {
    font-weight: 600;
    color: var(--rs-title-primary, #1F1F1F);
}

.kvkk-list--rights {
    counter-reset: kvkkRight;
}

.kvkk-list--rights li {
    padding-left: 1.65rem;
}

.kvkk-list--rights li::before {
    counter-increment: kvkkRight;
    content: counter(kvkkRight, lower-alpha) ")";
    top: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    font-size: 13px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: #B4B8BE;
}

/* veri sorumlusu künyesi */
.kvkk-contact {
    margin: 1.15rem 0 0;
    padding: 1.15rem 1.35rem;
    list-style: none;
    border-radius: 12px;
    border: 1px solid #EDEEF0;
    background: #FCFCFD;
}

.kvkk-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 14px;
    line-height: 1.65;
    color: #55595F;
}

.kvkk-contact li + li {
    margin-top: 0.6rem;
}

.kvkk-contact li:first-child {
    font-weight: 600;
    color: var(--rs-title-primary, #1F1F1F);
}

.kvkk-contact i {
    flex: none;
    margin-top: 2px;
    font-size: 15px;
    color: #B4B8BE;
}

/* --- alt bar --- */

.kvkk-modal__footer {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 2.5rem;
    border-top: 1px solid #EDEEF0;
    background: var(--rs-white, #fff);
}

.kvkk-modal__updated {
    font-size: 12.5px;
    color: #B4B8BE;
}

.kvkk-modal__accept {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    height: 46px;
    padding: 0 24px;
    border: none;
    border-radius: 8px;
    background: var(--rs-black, #1F1F1F);
    color: var(--rs-white, #fff);
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease;
}

.kvkk-modal__accept i {
    font-size: 17px;
    line-height: 1;
    opacity: 0.65;
}

.kvkk-modal__accept:hover,
.kvkk-modal__accept:focus-visible {
    background: #E30613;
    outline: none;
}

.kvkk-modal__accept:hover i,
.kvkk-modal__accept:focus-visible i {
    opacity: 1;
}

/* --- onay kutusu içindeki tetikleyici link --- */

.kvkk-trigger {
    position: relative;
    z-index: 20;
    color: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 1px solid rgba(227, 6, 19, 0.4);
    transition: color 0.25s ease, border-color 0.25s ease;
}

.kvkk-trigger:hover,
.kvkk-trigger:focus-visible {
    color: #E30613;
    border-color: #E30613;
    outline: none;
}

@media (max-width: 767.98px) {
    .kvkk-modal .modal-dialog {
        margin: 0.75rem;
    }

    .kvkk-modal__content {
        max-height: calc(100vh - 1.5rem);
    }

    .kvkk-modal__header {
        padding: 1.75rem 1.4rem 1.25rem;
    }

    .kvkk-modal__heading::before {
        margin-bottom: 0.9rem;
    }

    .kvkk-modal__title {
        font-size: 1.25rem;
    }

    .kvkk-modal__body {
        padding: 1.6rem 1.4rem 1.75rem;
    }

    .kvkk-modal__footer {
        flex-direction: column-reverse;
        align-items: stretch;
        padding: 1.15rem 1.4rem;
        text-align: center;
    }

    .kvkk-modal__accept {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kvkk-modal.fade .modal-dialog,
    .kvkk-modal__close,
    .kvkk-modal__accept {
        transition: none;
    }
}
