/* ── overlay ─────────────────────────────────────────────────────────── */
.ep-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.ep-overlay.ep-visible {
    opacity: 1;
}

.ep-overlay.ep-open {
    display: flex;
    opacity: 0;
}

.ep-overlay.ep-visible {
    opacity: 1;
}

/* ── modal ────────────────────────────────────────────────────────────── */
.ep-modal {
    background: linear-gradient(135deg, #0f4c35, #123c4a);
    border-radius: 16px;
    width: 100%;
    max-width: 720px;
    position: relative;
    overflow: hidden;
    transform: translateY(30px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.ep-overlay.ep-visible .ep-modal {
    transform: translateY(0);
}

/* ── close ────────────────────────────────────────────────────────────── */
.ep-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: background 0.15s;
}

.ep-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ── layout ───────────────────────────────────────────────────────────── */
.ep-body {
    display: flex;
    align-items: stretch;
    background: linear-gradient(180deg, #2A7041, #1C3442);

}

.ep-image {
    flex: 0 0 45%;
    background: url('/assets/images/exit-popup.png') center/cover no-repeat;
    border-radius: 12px;
    margin: 16px;
}

.ep-content {
    flex: 1;
    padding: 32px 24px 24px;
    /* overflow-y: auto; */
    /* max-height: 90vh; */
}

/* ── text ─────────────────────────────────────────────────────────────── */
.ep-eyebrow {
    color: #F4F4F4;
    font-size: 28px;
    letter-spacing: 0%;
    /* text-transform: uppercase; */
    margin: 0 0 6px;
    text-align: center;
    font-weight: 900;
}

.ep-heading {
    color: #fff;
    font-size: 25px;
    font-weight: 900;
    margin-bottom: 8px;
    text-align: center;
}

.ep-sub {
    color: #F4F4F4;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

/* ── form ─────────────────────────────────────────────────────────────── */
.ep-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.ep-input {
    flex: 1;
    width: 100%;
    padding: 9px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s;
    font-family: inherit;
}

.ep-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.ep-input:focus {
    border-color: rgba(255, 255, 255, 0.55);
}

.ep-select {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.ep-select option {
    background: #0f4c35;
    color: #fff;
}

.ep-textarea {
    display: block;
    resize: none;
    margin-bottom: 10px;
    height: 42px;
}

.ep-submit {
    width: 80%;
    padding: 10px;
    border-radius: 22px;
    background: #F4F4F4;
    border: none;
    color: #0a3525;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
    margin-bottom: 8px;
    font-family: inherit;
    display: block;
    margin: 0 auto;
}

.ep-submit:hover {
    background: #22c55e;
}

.ep-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── messages ─────────────────────────────────────────────────────────── */
.ep-msg {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 10px;
    display: none;
}

.ep-msg--error {
    background: rgba(220, 38, 38, 0.25);
    color: #fca5a5;
}

.ep-msg--success {
    background: rgba(74, 222, 128, 0.2);
    color: #86efac;
}

.ep-note {
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
    text-align: center;
    margin: 5px;
}

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 560px) {
    .ep-image {
        display: none;
    }

    .ep-row {
        flex-direction: column;
    }

    .ep-content {
        padding: 28px 18px 20px;
    }
}