/* =====================================================
   Zeon Popup – Frontend Styles
   ===================================================== */

/* ── Overlay ───────────────────────────────────────── */
#zeon-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
#zeon-popup-overlay.zeon-visible {
    display: flex;
    animation: zeon-fade 0.25s ease;
}
@keyframes zeon-fade { from { opacity: 0; } to { opacity: 1; } }

/* ── Modal ─────────────────────────────────────────── */
#zeon-popup-modal {
    position: relative;
    width: 100%;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0,0,0,0.3);
    animation: zeon-slide 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes zeon-slide {
    from { transform: translateY(48px) scale(0.94); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* ── Close ──────────────────────────────────────────── */
#zeon-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.25s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
#zeon-popup-close:hover {
    background: rgba(255,255,255,0.35);
    transform: rotate(90deg);
}

/* ── Header ─────────────────────────────────────────── */
#zeon-popup-header {
    padding: 40px 36px 32px;
    text-align: center;
    position: relative;
}
#zeon-popup-logo {
    max-height: 52px;
    max-width: 180px;
    margin-bottom: 14px;
    object-fit: contain;
}
#zeon-popup-logo-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 10px;
}
#zeon-popup-headline {
    margin: 0 0 12px;
    font-weight: 800;
    line-height: 1.25;
    font-family: Georgia, 'Times New Roman', serif;
}
#zeon-popup-subtext {
    margin: 0;
    opacity: 0.88;
    line-height: 1.6;
}

/* ── Body ───────────────────────────────────────────── */
#zeon-popup-body {
    padding: 28px 36px 20px;
    background: #fff;
}

/* ── Form ───────────────────────────────────────────── */
#zeon-popup-form-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#zeon-popup-email,
#zeon-popup-phone {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
#zeon-popup-email:focus,
#zeon-popup-phone:focus {
    border-color: #1A9FD4;
    box-shadow: 0 0 0 3px rgba(26,159,212,0.12);
}
#zeon-popup-email::placeholder,
#zeon-popup-phone::placeholder { color: #bbb; }

.zeon-gdpr-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    line-height: 1.5;
}
.zeon-gdpr-label input { margin-top: 3px; flex-shrink: 0; }

#zeon-popup-submit {
    width: 100%;
    padding: 14px 20px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    font-family: Arial, sans-serif;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: filter 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
#zeon-popup-submit:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(0,0,0,0.22);
}
#zeon-popup-submit:active { transform: translateY(0); }
#zeon-popup-submit:disabled { opacity: 0.6; cursor: wait; }

#zeon-popup-msg {
    margin: 0;
    font-size: 13px;
    min-height: 16px;
    font-family: Arial, sans-serif;
    text-align: center;
}
.zeon-msg-error   { color: #d0021b; }
.zeon-msg-success { color: #2e7d32; }

/* ── Success State ─────────────────────────────────── */
#zeon-popup-success { text-align: center; }
#zeon-popup-success[hidden] { display: none; }

.zeon-check-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    color: #fff;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    animation: zeon-pop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes zeon-pop { from { transform: scale(0); } to { transform: scale(1); } }

#zeon-popup-success-msg {
    font-size: 15px;
    color: #333;
    margin: 0 0 16px;
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

#zeon-popup-code-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #f8f8f8;
    border: 2px dashed;
    border-radius: 10px;
    padding: 14px 22px;
    margin-bottom: 14px;
}
#zeon-popup-code {
    font-family: 'Courier New', monospace;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 4px;
}
#zeon-popup-copy {
    border: none;
    color: #fff;
    border-radius: 6px;
    padding: 7px 13px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    font-family: Arial, sans-serif;
    transition: filter 0.2s;
}
#zeon-popup-copy:hover { filter: brightness(1.1); }
#zeon-popup-copy.copied { opacity: 0.75; }

.zeon-success-sub {
    font-size: 13px;
    color: #888;
    margin: 0;
    font-family: Arial, sans-serif;
}

/* ── Footer ─────────────────────────────────────────── */
#zeon-popup-footer {
    padding: 12px 36px 20px;
    text-align: center;
    background: #fff;
}
#zeon-popup-later {
    background: none;
    border: none;
    font-size: 12px;
    color: #aaa;
    cursor: pointer;
    text-decoration: underline;
    font-family: Arial, sans-serif;
    transition: color 0.2s;
}
#zeon-popup-later:hover { color: #666; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 560px) {
    #zeon-popup-header { padding: 30px 22px 24px; }
    #zeon-popup-body   { padding: 22px 22px 16px; }
    #zeon-popup-footer { padding: 10px 22px 18px; }
    #zeon-popup-headline { font-size: 20px !important; }
    #zeon-popup-code   { font-size: 20px; letter-spacing: 2px; }
    #zeon-popup-code-box { flex-direction: column; }
}
