/* ── EPP Deactivation Feedback Modal ──────────────────────────────────────── */

/* Overlay */
.eppro-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 20, 0.65);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 999990;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    padding: 20px;
}
.eppro-modal-overlay.is-visible { opacity: 1; }

/* Card */
.eppro-modal {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 520px;
    transform: translateY(16px) scale(0.98);
    transition: transform 0.28s cubic-bezier(0.34, 1.3, 0.64, 1), opacity 0.25s ease;
    opacity: 0;
    overflow: hidden;
}
.eppro-modal-overlay.is-visible .eppro-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Header */
.eppro-modal-header {
    padding: 24px 24px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.eppro-modal-header-text { flex: 1; }

.eppro-modal-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.eppro-modal-brand-icon {
    width: 32px;
    height: 32px;
    background: #7c3aed;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.eppro-modal-brand-icon svg { display: block; }
.eppro-modal-brand-name {
    font-size: 12px;
    font-weight: 600;
    color: #7c3aed;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.eppro-modal-title {
    font-size: 19px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
    line-height: 1.3;
}
.eppro-modal-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Close button */
.eppro-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #9ca3af;
    border-radius: 6px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s, background 0.15s;
    margin-top: -2px;
}
.eppro-modal-close:hover { color: #374151; background: #f3f4f6; }

/* Body */
.eppro-modal-body { padding: 20px 24px; }

/* Reason list */
.eppro-reason-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.eppro-reason-item {
    position: relative;
}

.eppro-reason-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    transition: border-color 0.15s, background 0.15s;
    user-select: none;
}
.eppro-reason-label:hover {
    border-color: #c4b5fd;
    background: #faf5ff;
}

/* Hide native radio */
.eppro-reason-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Custom radio dot */
.eppro-radio-dot {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s;
}
.eppro-radio-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7c3aed;
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.15s, transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.eppro-reason-radio:checked + .eppro-reason-label {
    border-color: #7c3aed;
    background: #faf5ff;
}
.eppro-reason-radio:checked + .eppro-reason-label .eppro-radio-dot {
    border-color: #7c3aed;
}
.eppro-reason-radio:checked + .eppro-reason-label .eppro-radio-dot::after {
    opacity: 1;
    transform: scale(1);
}

.eppro-reason-radio:focus-visible + .eppro-reason-label {
    outline: 2px solid #7c3aed;
    outline-offset: 1px;
}

/* "Other" textarea */
.eppro-other-details {
    margin-top: 8px;
    display: none;
}
.eppro-other-details.is-visible { display: block; }
.eppro-other-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.eppro-other-textarea:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

/* Footer */
.eppro-modal-footer {
    padding: 0 24px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.eppro-modal-footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Buttons */
.eppro-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
    line-height: 1.4;
}
.eppro-btn:disabled { opacity: 0.65; cursor: not-allowed; }

.eppro-btn--primary {
    background: #7c3aed;
    color: #fff;
}
.eppro-btn--primary:hover:not(:disabled) { background: #6d28d9; color: #fff; }

.eppro-btn--ghost {
    background: transparent;
    color: #6b7280;
    border: 1.5px solid #e5e7eb;
}
.eppro-btn--ghost:hover:not(:disabled) { background: #f9fafb; color: #374151; }

.eppro-btn--skip {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 4px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.eppro-btn--skip:hover { color: #6b7280; }

/* Spinner inside button */
.eppro-btn-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: eppro-spin 0.65s linear infinite;
    display: none;
}
.eppro-btn--primary.is-loading .eppro-btn-spinner { display: block; }
.eppro-btn--primary.is-loading .eppro-btn-label { opacity: 0.7; }

/* Thank-you screen */
.eppro-modal-thanks {
    display: none;
    padding: 32px 24px;
    text-align: center;
}
.eppro-modal-thanks.is-visible { display: block; }
.eppro-modal-thanks-icon {
    width: 52px;
    height: 52px;
    background: #ecfdf5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.eppro-modal-thanks-title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}
.eppro-modal-thanks-text {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

/* Divider */
.eppro-modal-divider {
    height: 1px;
    background: #f3f4f6;
    margin: 0 24px 4px;
}

/* Keyframes */
@keyframes eppro-spin {
    to { transform: rotate(360deg); }
}
