/**
 * Newsletter Block
 * ----------------------------------------------------------------------------
 */

.block--newsletter {
    padding: $spacing--xxlarge 0;
}

.block__newsletter {
    padding: $spacing--large 0;
}

.block__newsletter-input {
    margin-top: $spacing--large;
}

.newsletter {

    .block__title {
        font-size: rem-calc(50);
        font-family: $font-montserrat;
        font-weight: 900;
        line-height: 1;
        text-transform: uppercase;

        @include breakpoint(medium) {
            font-size: rem-calc(65);
        }

        @include breakpoint(large) {
            font-size: rem-calc(80);
        }
    }
    .newsletter__visual {
        position: relative;
    }
    .newsletter__visual-inner {
        position: relative;
        width: 100%;
        height: 100%;
    }
    .newsletter__image {
        position: absolute;
        width: 100%;
        height: 100%;
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
    }

    .newsletter__form {

        form {
            @extend .form--submit-next-to-input;

            input {
                height: 50px;
                padding: 10px 15px !important;
                border: 3px solid $black !important;
                background: $white;
            }

            input[type="text"] {
                font-size: rem-calc(16);
                @include placeholder {
                    color: $dark-gray;
                    font-size: rem-calc(16);
                }
            }

            input[type="submit"] {
                background: $black;
                color: $white;
            }

            label {
                display: none;
            }
        }
    }
}

@include breakpoint(medium) {
    .block__newsletter {
        padding: $spacing--xlarge 0;
        padding-right: 30px;
        position: relative;
        z-index: 10;
    }
    .newsletter {
        .newsletter__content {
            padding-right: 0;
        }
        .newsletter__visual {
            padding-left: 0;
        }
        .block__title,
        .block__subtitle {
            margin-bottom: 30px;
        }
        .newsletter__form {
            width: calc(100% + 60px);
            form {
                input {
                    margin-bottom: 0;
                }
            }
        }
    }
}
