/**
 * Newsletter Popup Modal Styles
 * Veyondtech Design System
 */

/* Overlay Container */
.vt-newsletter-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.vt-newsletter-modal-overlay.vt-modal-active {
    opacity: 1;
    visibility: visible;
}

/* Glassmorphism Backdrop */
.vt-newsletter-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 11, 11, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

/* Modal Card */
.vt-newsletter-modal-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 560px;
    background: linear-gradient(140deg, #3717a6 0%, #4e2bcd 55%, #6a3cf7 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-lg, 24px);
    padding: 44px 36px 36px;
    box-sizing: border-box;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 100px rgba(106, 60, 247, 0.35);
    overflow: hidden;
    text-align: center;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.vt-newsletter-modal-overlay.vt-modal-active .vt-newsletter-modal-card {
    transform: scale(1) translateY(0);
}

/* Decorative Background Glow and Shapes */
.vt-modal-bg-glow {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(162, 126, 255, 0.45) 0%, rgba(78, 43, 205, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.vt-modal-shape-left {
    position: absolute;
    bottom: -30px;
    left: -40px;
    width: 160px;
    opacity: 0.12;
    pointer-events: none;
    z-index: 1;
}

.vt-modal-shape-right {
    position: absolute;
    top: -20px;
    right: -30px;
    width: 140px;
    opacity: 0.12;
    pointer-events: none;
    z-index: 1;
}

/* Close Button */
.vt-newsletter-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.vt-newsletter-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.05);
}

.vt-newsletter-modal-close:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Content Container */
.vt-modal-content {
    position: relative;
    z-index: 2;
}

/* Sparkle Badge */
.vt-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-full, 50px);
    padding: 6px 16px;
    color: #ffffff;
    font-family: var(--font-body, "NunitoSans", sans-serif);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 14px;
}

.vt-modal-badge .vt-badge-icon {
    width: 14px;
    height: 14px;
    display: block;
}

/* Heading & Subtitle */
.vt-modal-title {
    font-family: var(--font-primary, "BC-Alphapipe-Bold", sans-serif);
    font-size: 32px;
    line-height: 1.25;
    color: #ffffff;
    margin: 0 0 12px;
    letter-spacing: 0.01em;
}

.vt-modal-desc {
    font-family: var(--font-body, "NunitoSans", sans-serif);
    font-size: 15px;
    line-height: 1.6;
    color: #ede7ff;
    margin: 0 auto 26px;
    max-width: 460px;
}

/* Form Wrapper */
.vt-modal-form-wrapper {
    width: 100%;
    margin: 0 auto;
}

.vt-modal-form {
    margin: 0;
    width: 100%;
}

/* Pill Input Group */
.vt-modal-input-group {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: var(--radius-full, 50px);
    padding: 6px 6px 6px 18px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: box-shadow var(--transition-base, 0.3s ease), transform var(--transition-base, 0.3s ease);
    width: 100%;
    box-sizing: border-box;
}

.vt-modal-input-group:focus-within {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.vt-modal-input-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 10px;
}

.vt-modal-mail-icon {
    color: #8c93a8;
    flex-shrink: 0;
}

.vt-modal-input-wrap input#vt_popup_email {
    width: 100%;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-family: var(--font-body, "NunitoSans", sans-serif);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-dark, #0b0b0b);
    padding: 10px 0;
    margin: 0;
    box-shadow: none !important;
}

.vt-modal-input-wrap input#vt_popup_email::placeholder {
    color: #8c93a8;
    font-weight: 400;
    opacity: 1;
}

.vt-modal-btn-wrap {
    flex-shrink: 0;
}

.vt-modal-btn-wrap input#vt_popup_submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #170060 0%, #7c51ff 100%);
    color: #ffffff;
    font-family: var(--font-body, "NunitoSans", sans-serif);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-full, 50px);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(78, 43, 205, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    line-height: 1.2;
}

.vt-modal-btn-wrap input#vt_popup_submit:hover {
    background: linear-gradient(135deg, #3d1cb5 0%, #5d2de0 100%);
    box-shadow: 0 6px 20px rgba(78, 43, 205, 0.6);
    transform: translateY(-1px);
}

.vt-modal-btn-wrap input#vt_popup_submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(78, 43, 205, 0.4);
}

/* Footer Anti-spam Note */
.vt-modal-footer-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-family: var(--font-body, "NunitoSans", sans-serif);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
}

.vt-modal-footer-note svg {
    color: rgba(255, 255, 255, 0.65);
    flex-shrink: 0;
}

/* Responsive Media Queries */
@media (max-width: 576px) {
    .vt-newsletter-modal-overlay {
        padding: 16px;
    }

    .vt-newsletter-modal-card {
        padding: 38px 20px 28px;
        border-radius: 20px;
    }

    .vt-modal-title {
        font-size: 25px;
        line-height: 1.3;
    }

    .vt-modal-desc {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .vt-modal-input-group {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        padding: 0;
        gap: 10px;
    }

    .vt-modal-input-group:focus-within {
        box-shadow: none;
        transform: none;
    }

    .vt-modal-input-wrap {
        width: 100%;
        background: #ffffff;
        border-radius: var(--radius-full, 50px);
        padding: 4px 16px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        box-sizing: border-box;
    }

    .vt-modal-input-wrap input#vt_popup_email {
        padding: 10px 0;
        font-size: 14px;
    }

    .vt-modal-btn-wrap {
        width: 100%;
    }

    .vt-modal-btn-wrap input#vt_popup_submit {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
    }
}
