/**
 * 폼별 안내 모달 (게이트 모달 + 커스텀 안내 모달) — assets/js/form-modals.js 마크업.
 *
 * 디자인은 테마에서 쓰던 .siff-notice-modal (커밋 64a749ba 에서 제거, 하드코딩 모달)을
 * 그대로 계승한다 — 브랜드 변수(--brand-1 등)는 테마 :root 에서 상속받는다.
 */

.ep-gf-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.ep-gf-modal-overlay:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ep-gf-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.ep-gf-modal-dialog {
    --modal-padding: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(520px, calc(100% - 32px));
    max-height: calc(100vh - 48px);
    margin: 0;
    border-radius: 0;
    background: #fff;
    overflow: hidden auto;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.ep-gf-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px var(--modal-padding);
    border-bottom: 1px solid var(--gray-2, #ddd);
}

.ep-gf-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-1, #222);
}

.ep-gf-modal-body {
    padding: 60px var(--modal-padding);
}

.ep-gf-modal-body,
.ep-gf-modal-body * {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-1, #222);
    text-align: center;
}

.ep-gf-modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 16px var(--modal-padding);
    border-top: 1px solid var(--gray-2, #ddd);
}

.ep-gf-modal-confirm {
    appearance: none;
    border: none;
    border-radius: 0;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.3s ease;
    background: var(--brand-1, #7a14ff) !important;
    color: #fff;
}

.ep-gf-modal-confirm:hover {
    opacity: 0.6;
    transition: opacity 0.3s ease;
    background: var(--brand-1, #7a14ff) !important;
    color: #fff;
}

body.ep-gf-modal-open {
    overflow: hidden;
}

/* 확인 후 비활성화된 폼(커스텀 block 모달) */
.ep-gf-form-blocked {
    opacity: 0.5;
    pointer-events: none;
}

@media (max-width: 767px) {
    .ep-gf-modal-dialog {
        --modal-padding: var(--cntr, 16px);
        width: calc(100% - 32px);
        max-height: calc(100vh - 32px);
    }

    .ep-gf-modal-footer .ep-gf-modal-confirm {
        flex: 1;
    }
}
