/**
 * MailerLite Popup Style 3 - Kolorowy
 */

/* Overlay - tło przyciemniające */
#mlp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Kontener popupu */
#mlp-popup-container {
    position: relative;
    background: linear-gradient(135deg, #0472ff 0%, #2575fc 100%);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(37, 117, 252, 0.3);
    max-width: 520px;
    width: 90%;
    overflow: hidden;
    animation: mlpPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 162, 255, 0.1);
}

/* Przycisk zamknięcia */
#mlp-close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 26px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    z-index: 1000;
    line-height: 1;
    transition: all 0.3s;
}

#mlp-close-button:hover {
    color: #fff;
    transform: rotate(90deg);
}

/* Zawartość popupu */
#mlp-popup-content {
    padding: 40px;
    position: relative;
}

#mlp-popup-content::before {
    content: "";
    position: absolute;
    top: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

#mlp-popup-content::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -60px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

/* Style formularza MailerLite */
#mlp-popup-content .mailerlite-form {
    font-family: 'Montserrat', sans-serif;
    position: relative;
    z-index: 1;
}

#mlp-popup-content .mailerlite-form-title h3 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}

#mlp-popup-content .mailerlite-form-description p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.6;
}

#mlp-popup-content .mailerlite-form-field {
    margin-bottom: 25px;
}

#mlp-popup-content .mailerlite-form-field label {
    display: block;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}

#mlp-popup-content .mailerlite-form-field input {
    width: 100%;
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-size: 16px;
    color: #fff;
    transition: all 0.3s;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

#mlp-popup-content .mailerlite-form-field input:focus {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

#mlp-popup-content .mailerlite-form-field input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#mlp-popup-content .mailerlite-subscribe-button-container {
    text-align: center;
    margin-top: 15px;
}

#mlp-popup-content .mailerlite-subscribe-submit {
    background-color: #ff8c00;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
    text-transform: uppercase;
}

#mlp-popup-content .mailerlite-subscribe-submit:hover {
    background-color: #ff7800;
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(255, 140, 0, 0.5);
}

#mlp-popup-content .mailerlite-subscribe-submit:active {
    transform: translateY(-1px);
}

#mlp-popup-content .mailerlite-form-loader {
    display: none;
    text-align: center;
    padding: 10px;
    color: rgba(255, 255, 255, 0.8);
}

#mlp-popup-content .mailerlite-form-response {
    text-align: center;
    padding: 20px;
    margin-top: 15px;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.15);
}

#mlp-popup-content .mailerlite-form-response h4 {
    margin: 0;
    font-size: 18px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Animacja */
@keyframes mlpPop {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    70% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsywność */
@media (max-width: 600px) {
    #mlp-popup-container {
        width: 95%;
    }

    #mlp-popup-content {
        padding: 30px 20px;
    }

    #mlp-popup-content .mailerlite-form-title h3 {
        font-size: 22px;
    }

    #mlp-popup-content .mailerlite-form-description p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    #mlp-popup-content .mailerlite-subscribe-submit {
        padding: 14px 24px;
        font-size: 14px;
    }
}