/**
 * MailerLite Horizontal Form CSS
 */

/* Kontener formularza poziomego */
#mlp-horizontal-container {
    position: relative;
    background: linear-gradient(135deg, #0472ff 0%, #2575fc 100%);
    width: 100%;
    padding: 30px 0;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

/* Wewnętrzny kontener formularza z maksymalną szerokością */
.mlp-horizontal-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

/* Stylizacja tła */
#mlp-horizontal-container::before {
    content: "";
    position: absolute;
    top: -30px;
    right: 10%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

#mlp-horizontal-container::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 15%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

/* Sekcja tytułu i opisu */
.mlp-horizontal-text {
    flex: 1 1 300px;
    margin-right: 30px;
    margin-bottom: 15px;
}

.mlp-horizontal-text h3 {
    color: #fff;
    font-size: 24px;
    margin: 0 0 8px 0;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mlp-horizontal-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 0;
    line-height: 1.4;
}

/* Sekcja formularza */
.mlp-horizontal-form {
    flex: 1 1 500px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.mlp-horizontal-form .mailerlite-form {
    width: 100%;
}

.mlp-horizontal-form .mailerlite-form-inputs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 -10px;
}

.mlp-horizontal-form .mailerlite-form-field {
    flex: 1 1 250px;
    padding: 0 10px;
    margin-bottom: 15px;
    min-width: 0;
}

.mlp-horizontal-form .mailerlite-form-field label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mlp-horizontal-form .mailerlite-form-field input {
    width: 100%;
    padding: 14px 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-horizontal-form .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-horizontal-form .mailerlite-form-field input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.mlp-horizontal-form .mailerlite-subscribe-button-container {
    flex: 0 0 auto;
    padding: 0 10px;
    margin-bottom: 15px;
}

.mlp-horizontal-form .mailerlite-subscribe-submit {
    background-color: #ff8c00;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
    white-space: nowrap;
}

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

.mlp-horizontal-form .mailerlite-form-loader {
    display: none;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 0 15px;
}

.mlp-horizontal-form .mailerlite-form-response {
    flex: 0 0 100%;
    text-align: center;
    padding: 10px;
    margin-top: 5px;
    color: #fff;
}

.mlp-horizontal-form .mailerlite-form-response h4 {
    margin: 0;
    font-size: 16px;
}

.mlp-horizontal-form .mailerlite-form-title,
.mlp-horizontal-form .mailerlite-form-description {
    display: none; /* Ukrywamy tytuł i opis z shortcode, bo mamy własne */
}

/* Responsywność */
@media (max-width: 768px) {
    .mlp-horizontal-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .mlp-horizontal-text {
        margin-right: 0;
        text-align: center;
        margin-bottom: 20px;
    }

    .mlp-horizontal-form .mailerlite-form-inputs {
        flex-direction: column;
    }

    .mlp-horizontal-form .mailerlite-subscribe-button-container {
        width: 100%;
        text-align: center;
    }

    .mlp-horizontal-form .mailerlite-subscribe-submit {
        width: 100%;
    }
}
div#mlp-horizontal-container .mailerlite-form-inputs {
    flex-wrap: nowrap!important;
}

@media all and (max-width:960px){
    .mlp-horizontal-text {
        flex: 1 1 100px!important;
        margin-right: 30px;
        margin-bottom: 15px;
    }
    .mlp-horizontal-form {
        flex: 1 1 100px;
        justify-content: center;
    }
    .mlp-horizontal-form .mailerlite-form-field {
        flex: 1 1 10px!important;
        padding: 0 10px;
        margin-bottom: 15px;
        min-width: 0;
    }
}