/*
 * ============================================================
 * 10 — POPUP EMAIL/TEL  (.gi-popup-*)
 * Duomenų rinkimo popup (el. paštas arba telefono numeris).
 * Turinys valdomas per WordPress Admin → Popup nustatymai.
 * ============================================================
 */

/* Overlay */
.gi-popup-overlay {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(3, 8, 25, 0.70);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    animation: sgFadeInOverlay 0.5s ease;
}

@keyframes sgFadeInOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Popup laukas */
.gi-popup-content {
    position: relative;
    background: rgba(8, 18, 40, 0.55);
    border: 1px solid var(--sg-violet-border);
    border-radius: var(--sg-radius);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    box-shadow:
        0 0 30px rgba(37, 99, 235, 0.25),
        0 0 60px rgba(96, 165, 250, 0.10);
    padding: 40px 50px;
    color: #fff;
    text-align: center;
    max-width: 520px;
    width: 90%;
    animation: sgPopupFadeIn 0.4s ease forwards;
}

@keyframes sgPopupFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1);    }
}

/* Uždarymo mygtukas */
.gi-popup-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: #bfdbfe;
    font-size: 28px;
    cursor: pointer;
}

.gi-popup-close:hover {
    color: #fff;
    text-shadow: 0 0 8px #60a5fa;
}

/* Antraštė */
.gi-popup-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
    text-shadow: 0 0 8px rgba(37, 99, 235, 0.50);
}

/* Subtekstas */
.gi-popup-subtext {
    color: #bfdbfe;
    font-size: 15px;
    margin-bottom: 25px;
}

/* Input laukas */
#gi_popup_input {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(37, 99, 235, 0.40);
    background: rgba(15, 10, 25, 0.60);
    color: #fff;
    border-radius: 10px;
    outline: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

#gi_popup_input::placeholder { color: #bbb; }

#gi_popup_input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 8px rgba(96, 165, 250, 0.40);
}

#gi_popup_input.gi-error {
    border-color: #ff5e5e !important;
    box-shadow: 0 0 8px rgba(255, 80, 80, 0.40);
}

/* Klaidos pranešimas */
.gi-popup-error {
    color: #ff5e5e;
    font-size: 13px;
    text-align: left;
    margin-top: 4px;
    margin-bottom: 10px;
    min-height: 16px;
}

/* Privacy checkbox */
.gi-popup-privacy {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 10px 0 20px;
    font-size: 13px;
    text-align: left;
}

.gi-popup-privacy input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--sg-violet);
}

.gi-popup-privacy a {
    color: #bfdbfe;
    text-decoration: underline;
}

.gi-popup-privacy a:hover {
    color: #fff;
    text-shadow: 0 0 6px #60a5fa;
}

/* Submit mygtukas */
.gi-popup-submit {
    background: var(--sg-btn-play);
    border: none;
    color: #fff;
    padding: 15px 45px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    box-shadow: 0 0 18px rgba(37, 99, 235, 0.30);
    transition: all var(--sg-transition);
}

.gi-popup-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(96, 165, 250, 0.50);
}

/* Sėkmės pranešimas */
.gi-popup-success {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.6s ease;
    color: #3ee98a;
    font-weight: 600;
    font-size: 16px;
    margin-top: 20px;
    text-align: center;
    text-shadow: 0 0 8px rgba(60, 255, 140, 0.50);
    display: inline-block;
}

.gi-popup-success.gi-visible {
    opacity: 1;
    transform: translateY(0);
}
