/**
Errors style 
*/

.custom-mailerlite-error {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
}

.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background-color: #f8d7da;
    color: #721c24;
}

.error-content {
    text-align: center;
    border: 1px solid #f5c6cb;
    padding: 20px;
    border-radius: 8px;
    background-color: #f8d7da;
}

.error-content h1 {
    font-size: 2em;
    margin-bottom: 0.5em;
}

.error-content p {
    margin-bottom: 1em;
}

.error-content button {
    background-color: #721c24;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.error-content button:hover {
    background-color: #501217;
}

/**
Listado de grupos
*/
.list-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
}

.custom-mailerlite-container h1 {
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #fff;
}

.custom-mailerlite-container .group-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-mailerlite-container .group-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
}

.group-item:last-child {
    border-bottom: none;
}

.group-code {
    font-weight: bold;
    color: #666;
}

.group-name {
    color: #333;
}

/* Hover effect */
.group-item:hover {
    background-color: #f9f9f9;
}


/**
Estilos del formulario
*/

.custom-mailerlite-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
}

.header-custom-mailerlite {
    display: flex;
    align-items: center;
    width: 100%;
}
.text-custom-mailerlite {
    flex: 0 0 90%; /* Ocupa el 90% del espacio */
    padding-left: 10px; /* Espacio entre el icono y el texto */
}

.text-custom-mailerlite h1 {
    font-size: 20px;
    font-weight: 700;
}
.text-custom-mailerlite p {
    font-size: 20px;
    font-weight: 500;
}

.icon-header-custom-mailerlite {
    flex: 0 0 10%; /* Ocupa el 10% del espacio */
    text-align: center; /* Centra el icono dentro de su contenedor */
}
.icon-header-image {
    width: 60%;
}
.message-image {
    width: 25%;
    padding-top: 30px;
}

/* Sección General */
.custom-mailerlite-section {
    flex: 1 1 50%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
.custom-mailerlite-section.message {
    flex: 1 1 35%;
    padding: 2.5rem;
}
.custom-mailerlite-section.message > h2 {
    font-weight: 700;
    font-size: 20px;
    color: #666;
    padding-bottom: 20px;
    line-height: 1.3em;
    margin-top: 40px !important;
}
.custom-mailerlite-section.message > p {
    font-size: 20px;
    color: #666;
    font-weight: 500;
    line-height: 1.3em;
}
.row-col {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.form-group.col {
    flex: 1; 
    margin-right: 10px; 
}

.form-group.col:last-child {
    margin-right: 0; 
}

.custom-mailerlite-section.form-container {
    flex: 1 1 65%;
    padding: 50px 70px;
    font-size: 18px;
    line-height: 1.3em;
    background-color: #000f54;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}
.text-white {
    color: #fff;
}
.text-left {
    text-align: left;
}
.mailerlite-hidden{
    display: none;
}
#mi-formulario label.error{
    color: #fff;
}

@media (max-width: 768px) {
    .form-container {
        flex: 1 1 100%;
    }
    .icon-header-custom-mailerlite {
        display: none;
    }
    .text-custom-mailerlite {
        flex: 0 0 100%;
        padding-left: 0px;
    }
    .custom-mailerlite-section.form-container {
        flex: 1 1 100%;
        padding: 30px 30px;
        border-top-right-radius: 0px;
        border-bottom-left-radius: 15px;
    }
    .text-custom-mailerlite p {
        font-size: 15px;
    }
    .message-image {
        width: 20%;
        padding-top: 30px;
        margin-left: auto;
        margin-right: auto;
    }
    .custom-mailerlite-section.message {
        text-align: center;
        flex: 1 1 100%;
        padding: 30px;
    }

    .custom-mailerlite-section.message > p {
        font-size: 15px;
        text-align: justify;
    }
    .form-group.col {
        flex: 1 1 100%;
        margin-right: 0px;
    }
    .custom-mailerlite-container {
        margin: 0px;
    }
}

.custom-mailerlite-container h1 {
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.form-control-mailerlite {
    line-height: 1.7em;
    font-weight: 500;
    width: 100%;
    border: 1px solid #ddd !important;
    box-sizing: border-box;
    font-size: 16px;
    color: #666 !important;
    background-color: #FFFFFF !important;
    padding: 16px !important;
    font-family: inherit;
    border-radius: 15px;
}

textarea {
    resize: vertical;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #E09900;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #004c99;
}