﻿
/*
    this is an older version of the search widget
    digital added a lebel to the search that throws off the 
    bottom margin of the search widget.  these class allows 
    us to us what is already in place without making changes.
*/

.sf {
    padding: 0;
    display: block;
}

.sf-l {
    color: #091f2f;
    font-family: Montserrat,Arial,sans-serif;
    font-size: calc(30px + 45 * ((100vw - 480px) / 960));
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
}

@media screen and (min-width:1440px) {
    .sf-l {
        font-size: 75px;
    }
}

@media screen and (max-width:480px) {
    .sf-l {
        font-size: 30px;
    }
}

.sf--md .sf-l {
    font-size: calc(20px + 10 * ((100vw - 480px) / 960));
}

@media screen and (min-width:1440px) {
    .sf--md .sf-l {
        font-size: 30px;
    }
}

@media screen and (max-width:480px) {
    .sf--md .sf-l {
        font-size: 20px;
    }
}

.sf-i {
    position: relative;
}

    .sf-i-f, .sf-i .form-item {
        margin: 0;
    }

.sf-i-f {
    background-color: transparent;
    border: none;
    border-bottom: 7.111px solid #091f2f;
    border-bottom: .44444444444rem solid #091f2f;
    border-radius: 0;
    color: #d22d23;
    font-family: Lora,Georgia,serif;
    font-size: calc(30px + 45 * ((100vw - 480px) / 960));
    font-style: italic;
    height: auto;
    letter-spacing: -1px;
    line-height: 1.3;
    padding: 0 50px 0 0;
    width: 100%;
}

@media screen and (min-width:1440px) {
    .sf-i-f {
        font-size: 75px;
    }
}

@media screen and (max-width:480px) {
    .sf-i-f {
        font-size: 30px;
    }
}

.sf-i-f:focus {
    outline: none;
}

.sf-i-f::-webkit-input-placeholder {
    color: #fb4d42;
    opacity: .5;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
}

.sf-i-f:-ms-input-placeholder {
    color: #fb4d42;
    opacity: .5;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
}

.sf-i-f::placeholder {
    color: #fb4d42;
    opacity: .5;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
}

.sf-i-b {
    background: url(https://patterns.boston.gov/images/public/icons/search.svg) no-repeat 50%;
    background-size: contain;
    background-color: transparent !important;
    border: none;
    cursor: pointer;
    height: 25px;
    width: 25px;
    margin-top: -3px !important;
    padding: 0;
    position: absolute;
    right: 0;
    text-indent: -999em;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

@media screen and (min-width:768px) {
    .sf-i-b {
        height: 35px;
        width: 35px;
    }
}

@media screen and (min-width:980px) {
    .sf-i-b {
        height: 55px;
        width: 55px;
        margin-top: 0;
    }
}

.sf-i-b:hover {
    background-color: transparent;
}

.sf--sm .sf-i-f {
    font-size: 16px;
    letter-spacing: 0;
    border-bottom-width: 2px;
}

.sf--sm .sf-i-b {
    height: 18px;
    width: 18px;
    margin-top: -2px;
}

.sf--md .sf-i-f {
    font-size: calc(18px + 10 * ((100vw - 480px) / 960));
    border-bottom-width: 2px;
}

@media screen and (min-width:1440px) {
    .sf--md .sf-i-f {
        font-size: 28px;
    }
}

@media screen and (max-width:480px) {
    .sf--md .sf-i-f {
        font-size: 18px;
    }
}

@media screen and (min-width:768px) {
    .sf--md .sf-i-f {
        border-bottom-width: 3px;
    }
}

.sf--md .sf-i-b {
    height: 20px;
    width: 20px;
    margin-top: -2px;
}

@media screen and (min-width:768px) {
    .sf--md .sf-i-b {
        height: 26px;
        width: 26px;
        margin-top: -4px;
    }
}

.sf--y .sf-i-f {
    color: #091f2f;
}

.sf--y .sf-i-b {
    background-image: url(../images/public/icons/search-yellow.svg);
}

.b--b .sf-i-f {
    border-color: #fff;
}

    .b--b .sf-i-f::-webkit-input-placeholder {
        color: $grey-600;
    }

    .b--b .sf-i-f:-ms-input-placeholder {
        color: $grey-600;
    }

    .b--b .sf-i-f::placeholder {
        color: $grey-600;
    }
