/* ── Buton grubu — alt alta, tam genişlik ──────────────────────────────── */
.nm-modal-trigger-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 6px 0;
}

/* ── Tetikleyici buton ───────────────────────────────────────────────── */
.nm-modal-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    margin: 6px 0;
    background: linear-gradient(135deg, #f9f9f9 0%, #f2f2f2 100%);
    border: 1.5px solid #e8e8e8;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s ease;
    font-size: 0.95em;
    font-weight: 500;
    font-family: var(--clb-text-font-family, inherit);
    color: #1a2a52;
    letter-spacing: 0.01em;
}

.nm-modal-trigger:hover {
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    border-color: #d0d0d0;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.nm-modal-trigger-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    opacity: 0.65;
}

.nm-modal-trigger-icon svg {
    width: 100%;
    height: 100%;
}

.nm-modal-trigger-text {
    flex: 1;
}

.nm-modal-trigger-arrow {
    display: flex;
    align-items: center;
    width: 16px;
    height: 16px;
    opacity: 0.4;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nm-modal-trigger-arrow svg {
    width: 100%;
    height: 100%;
}

.nm-modal-trigger:hover .nm-modal-trigger-arrow {
    transform: translateX(3px);
    opacity: 0.7;
}

/* ── Overlay ─────────────────────────────────────────────────────────── */
.nm-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    pointer-events: none;
    transition:
        background 0.35s ease,
        backdrop-filter 0.35s ease;
}

.nm-modal-overlay.is-open {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: all;
}

/* ── Modal paneli ────────────────────────────────────────────────────── */
.nm-modal-panel {
    width: 100%;
    max-width: 580px;
    max-height: 85vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 24px 24px 0 0;
    padding: 32px 28px 40px;
    transform: translateY(40px);
    opacity: 0;
    transition:
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.3s ease;
    overscroll-behavior: contain;
}

.nm-modal-overlay.is-open .nm-modal-panel {
    transform: translateY(0);
    opacity: 1;
}

/* Masaüstünde ortada ve yuvarlak köşeler */
@media (min-width: 640px) {
    .nm-modal-overlay {
        align-items: center;
    }

    .nm-modal-panel {
        border-radius: 20px;
        padding: 40px 44px 44px;
        transform: translateY(24px);
    }
}

/* ── Modal başlık ────────────────────────────────────────────────────── */
.nm-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.nm-modal-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #f4f4f4;
    border-radius: 10px;
}

.nm-modal-header-icon svg {
    width: 20px;
    height: 20px;
}

.nm-modal-title {
    flex: 1;
    font-size: 1.15em;
    font-weight: 600;
    font-family: var(--clb-title-font-family, inherit);
    margin: 0;
    line-height: 1.3;
}

.nm-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #f4f4f4;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
    color: inherit;
}

.nm-modal-close:hover {
    background: #e8e8e8;
}

.nm-modal-close svg {
    width: 16px;
    height: 16px;
}

/* ── Modal içerik ────────────────────────────────────────────────────── */
.nm-modal-body {
    font-size: 0.95em;
    line-height: 1.75;
    color: #444;
    font-family: var(--clb-text-font-family, inherit);
}

.nm-modal-body ul,
.nm-modal-body ol {
    padding-left: 1.2em;
    margin: 12px 0;
}

.nm-modal-body li {
    margin-bottom: 8px;
}

.nm-modal-body li::marker {
    color: #aaa;
}

.nm-modal-body p {
    margin-bottom: 12px;
}

.nm-modal-body strong {
    color: #222;
    font-weight: 600;
}

/* ── Vimeo video wrap ───────────────────────────────────────────────── */
.nm-modal-video-wrap {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
}

.nm-modal-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ── CF7 form alanı ─────────────────────────────────────────────────── */
.nm-modal-form {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.nm-modal-form .wpcf7-form p {
    margin-bottom: 12px;
}

.nm-modal-form .wpcf7-form input[type="text"],
.nm-modal-form .wpcf7-form input[type="email"],
.nm-modal-form .wpcf7-form input[type="tel"],
.nm-modal-form .wpcf7-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e8e8e8;
    border-radius: 8px;
    font-size: 0.9em;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #fafafa;
}

.nm-modal-form .wpcf7-form input:focus,
.nm-modal-form .wpcf7-form textarea:focus {
    outline: none;
    border-color: #aaa;
    background: #fff;
}

.nm-modal-form .wpcf7-form textarea {
    min-height: 100px;
    resize: vertical;
}

.nm-modal-form .wpcf7-form input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #1a2a52;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.02em;
}

.nm-modal-form .wpcf7-form input[type="submit"]:hover {
    background: #0f1a38;
}

/* ── Body scroll kilidi ──────────────────────────────────────────────── */
body.nm-modal-open {
    overflow: hidden;
}
