.preferences legend{
    color: #019EFB;
    font-family: Montserrat;
    font-size: 20px;
    font-style: normal;
    font-weight: 300;
    line-height: 30px;
    text-transform: uppercase;
    text-align: center;
    display: block;
}

.preferences span.title{
    color: #FFF;
    font-family: Montserrat;
    font-size: 20px;
    font-style: normal;
    font-weight: 300;
    line-height: 1.5;
}

.preferences button.wp-block-button__link {
    color: black;
    color: #000;
    text-align: center;
    font-family: Montserrat;
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
    width: fit-content;
    height: 40px;
    padding: 0px 20px;
}

.preferences input[type="email"] {
    color: white !important;
    padding: 12px 20px;
    margin: 8px 0;
    padding-right: 10%;
    box-sizing: border-box;
    outline: none;
}


.preferences input[type="email"]:focus {
    border: 2px solid white;
}

.preferences input[type="email"], .preferences select {
    border-radius: 34.553px;
    background: #1c2940;
    height: 35px;
    width: 50%;
    border: 2px solid #263761;
}

button.wp-block-button__link.unsuball {
    color: #019EFB;
    border: 1px solid rgba(67, 164, 254, 0.50);
    background: #000;
}

.topics-button{
    display: flex;
    justify-content: space-around;
    margin-top: 35px;
}

.preferences fieldset {
    border: 0;
    text-align: center;
}

.form-email {
    display: block;
    align-items: center;
    text-align: center;
}

.form-language {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-left: 50px;
    margin-top: -20px;
}

.form-topics {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.form-email p {
    margin: 0;
    white-space: normal;
}

.form-email input {
    width: 35%;
    min-width: 150px;
}
.form-language select {
    width: 15%;
    min-width: 100px;
    text-align: center;
    text-transform: capitalize;
}
.form-email button {
    flex-shrink: 0;
}
.form-topics [type="checkbox"] {
    transform: scale(1.5);
    margin: 10px;
}


@media (max-width: 600px) {
    .form-email {
        flex-direction: column;
        align-items: stretch;
    }
    .pref-bf {
        padding: 0px !important;
    }
    .topics-button {
        justify-content: center;
        margin-top: 50px;
        flex-direction: row;
        flex-wrap: wrap;
        column-gap: 0.5em;
    }
    .preferences .topics-button button.wp-block-button__link{
        margin-top: 15px;
    }
    .preferences span.title{
        font-size: 18px;
    }
    .form-topics{
        margin-left: 0px;
    }
}

.preferences {
    border-radius: 20px;
}

.pref-bf {
    background: radial-gradient(circle at left, rgba(114, 9, 52, 0.4), transparent 40%),
        radial-gradient(circle at right, rgba(114, 9, 52, 0.4), transparent 40%),
        linear-gradient(to bottom, #0a0a0f, #112240);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    min-width: fit-content;
}

.form-topics [type="checkbox"] {
    transform: scale(1.5);
    margin: 10px;
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(67, 164, 254, 0.50);
    background: rgba(0, 0, 0, 0.20);
    margin-bottom: 0px;
    border-radius: 5px;
}

.form-topics input[type="checkbox"]:checked {
    background-color: #019EFB;
}

.form-topics input[type="checkbox"]:checked::after {
    content: "✓";
    color: white;
    position: absolute;
    left: 1px;
    font-size: 20px;
    bottom: -8px;
    font-weight: bold;
}

h2.pref-title {
    text-align: center;
    font-family: Montserrat;
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.lang-description strong{
    text-transform: capitalize;
}

.preferences .success {
    margin: 2em auto;
    text-align: center;
    font-weight: bold;
    color: #22c65b;
}

.resubscribe a {
    color: #000;
    text-align: center;
    font-family: Montserrat;
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
}

.preferences p {
    line-height: 1;
}

p.description {
    margin-top: -2px;
}

.form-topics .checkbox {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 325px;
}

.recognition {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 600px) {
    .recognition {
        display: block;
    }
}

@media (max-width: 600px) {
    .preferences button.wp-block-button__link{
        font-size: 12px;
    }
}
@media (max-width: 469px) {
    .recognition button.wp-block-button__link{
        right: 0% !important;
    }
    .preferences input[type="email"] {
        width: 100%;
        margin-bottom: 5%;
    }
}

.recognition button.wp-block-button__link{
    right: 10%;
    box-sizing: border-box;
    padding: 0 12px;
    line-height: 1;
}
.preferences p.error{
    color: red;
    text-align: center
}

.preferences .inline-wrapper{
    align-items: center;
    text-align: center;
}

.pref-footer-width {
    max-width: none;
}

.form-topics .checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.form-topics [type="checkbox"] {
    transform: scale(1.5);
    width: 20px;
    height: 20px;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid rgba(67, 164, 254, 0.50);
    background: rgba(0, 0, 0, 0.20);
    border-radius: 5px;
}

.form-topics .title {
    white-space: nowrap;
    font-size: 16px;
}

.side-line::before,
.side-line::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(67, 164, 254, 0.5);
    max-width: 200px; 
}

.side-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}