.chosen-constituency, .votelist-area
{
    button.change
    {
        float: right;
        margin-top: -5px;
        //background-color:@primary;
        //color:#FFF;
        //text-decoration: underline;
        background: none;
        color: @blue-font;
        text-decoration: none;
        text-transform: uppercase;

        &:before
        {
            margin-top: 0;
            margin-right:6px;
        }

        &:hover
        {
            text-decoration:underline;
        }
    }
}
.constituency, .notification-container
{
    &.hide
    {
        display: none;
    }

    .dr-form.find-constituency {

        &.dr-form label span,
        & form > label span {
            &.dr-error-msg{
                width: 300%;
            }
        }
    }

    .dr-form.find-constituency, .dr-form.notification-subscription-form
    {
        &:after
        {
            content: ".";
            visibility: hidden;
            display: block;
            height: 0;
            clear: both;
        }

        &.dr-form label span,
        & form > label span
        {
            position: relative;
            color: #000;
            font-family: "gibsonRegular","Arial",sans-serif;
            position: relative;
            margin: 0 0 5px;
            padding: 0;

            &.dr-error-msg
            {
                clear: both;
                color: #f00;
                float: left;
                line-height: 16px;
                font-family: "gibsonRegular","Arial",sans-serif;
                font-size: 14px;
                font-weight: normal;
                line-height: 16px;
                text-transform: none;
                /*width: 300%;*/
                display: none;
                margin: 5px 0 0;
            }
        }

        &.hide
        {
            display: none;
        }

        label
        {
            float: left;
            margin-right: 19px;
            margin-top: 0;

            &.disabled
            {
                input
                {
                    //color:#999;
                    //background-color: rgb(216, 216, 219);
                    //background-color: rgba(0, 0, 0, 0.1);
                    filter:Alpha(opacity=50);
                    opacity: 0.5;
                }
                
                span
                {
                }
            }

            &.dimmed
            {
                span
                {
                    //display: none;
                }
            }

            &.postnumber
            {
                width: 80px;
            }

            &.streetname
            {
                width: 240px;
            }

            &.streetnumber
            {
                width: 80px;
            }

            &.hasValue
            {
                span
                {
                    display: block;
                }
            }

            &.hasError
            {
                input
                {
                    border: 1px solid red;
                }

                span.dr-error-msg
                {
                    display: inline;
                }
            }

            span
            {
                //padding:0;
                cursor: default;
            }

            input
            {
                height: 40px;
            }
        }

        p.buttons
        {
            padding-top: 19px;

            button
            {
                margin: 0;
                //width: 80px;
                height: 40px;
                background-color: @blue-grey;

                &.disabled
                {
                    filter:Alpha(opacity=50);
                    opacity: 0.5;                    
                    cursor: default;
                }
            }

            &.question
            {
                button
                {
                    width: 257px;
                    height: 60px;
                    margin-top: -10px;
                    font-size: 24px;

                    &.disabled
                    {
                        background-color: rgba(139, 160, 166, 1);
                        color: #AFBEC2;
                        opacity: 0.5;
                    }
                }
            }
        }

        .your-constituency
        {
            font: 24px/26px G"gibsonSemiBold","Arial Black",sans-serif;
            text-align: center;
            margin-top: 20px;
        }


        &.question
        {
            label
            {
                &.postnumber
                {
                    width: 120px;
                }

                &.streetname
                {
                    width: 301px;
                }

                &.streetnumber
                {
                    width: 120px;
                }               

                input[disabled=""]
                {
                    background-color: rgb(207, 216, 218);
                    background-color: rgba(207, 216, 218, 1);
                }
            }
        }


        ul.autosuggest
        {
            position: absolute;
            z-index: 9999;
            background-color: #FFF;

            li
            {
                background-color: #FFF;
                border: 1px solid #B8B8B8;
                border-top: none;
                border-bottom: none;
                padding: 0 0 0 10px;
                height: 35px;
                line-height: 35px;

                &:first-child
                {
                }

                &:last-child
                {
                    border-bottom: 1px solid #B8B8B8;
                }

                &.selected
                {
                    background-color: #B8B8B8;
                }

                span
                {
                    display: inline-block;
                    font-family: "gibsonRegular","Arial",sans-serif;
                    padding: 0;
                    margin: 0;
                    line-height: inherit;
                    color: #000;
                    cursor: pointer;
                    text-transform: capitalize;

                    span
                    {
                        display: inline;
                        font-family: "gibsonSemiBold","Arial Black",sans-serif;
                        position: relative;
                    }
                }
            }
        }
    }

    .foundConstituency
    {
        border-top: 1px solid rgba(0, 0, 0, 0.2);
        border-bottom: 1px solid #000;
        display: block;
        height: 40px;
        font: 16px/40px "gibsonSemiBold","Arial Black",sans-serif;
        margin-top: 20px;
    }
}

.all-constituencies
{
    ol
    {
        margin-left: -10px;
        margin-right: -10px;

        &:after
        {
            content: ".";
            visibility: hidden;
            display: block;
            height: 0;
            clear: both;
        }
        li.item
        {
            float: left;
            width: 30%;
            margin: 0 10px;
            padding-bottom: 10px;
            padding-top: 10px;
            box-sizing: border-box;
            background-position: 0 bottom;

            &:first-child
            {
                background: url("/assets/img/_source/border.svg") repeat-x scroll 0 bottom transparent;
            }
            &.last {
                background: none;
            }
        }
    }
    h2 {
        border-top-width: 3px;
        font-size: 14px;
        line-height: 1;
        padding-bottom: 10px;
        padding-top: 10px;
    }
}

.constituency-container {
    .combine-layout:first-child {
        .span-8 {
            .section:first-child {
                h2:first-child {
                    font-size: 42px;
                    line-height: 44px;
                    border-bottom: none;
                    text-transform: none;
                    margin: -20px -20px 0;
                }
                p {
                    font-family: "gibsonRegular","Arial",sans-serif;
                    font-size: 18px;
                    line-height: 20px;
                }
            }
        }
    }
}

@media (max-width: 959px) {
    //.constituency-container
    //{
        .constituency, .notification-container
        {
            .dr-form.find-constituency, .dr-form.notification-subscription-form
            {
                label
                {
                    margin-bottom: 20px;
                    
                    &.email,
                    &.phonenumber,
                    &.postnumber,
                    &.streetname,
                    &.streetnumber
                    {
                        width: 100%;

                    }
                    .dr-error-msg {
                        /*width: 100% !important;*/
                    }
                }

                p
                {
                    &.buttons
                    {
                        button
                        {
                            width: 100%;
                        }
                    }

                    &.your-constituency
                    {

                    }
                }
            }
        }
        // .constituency
        .all-constituencies
        {
            .section
            {
                ol
                {
                    li
                    {
                        &.item
                        {
                            width: 100%;
                        }
                    }
                }
            }
        }
        //.all-constituencies
    //}
}

@media (max-width: 700px) {
}

@media (max-width: 480px) {
    .chosen-constituency button.change, .votelist-area button.change{
        float:none;
        display:block;
        margin-top:10px;
        margin-left:-10px;
    }
    .constituency-container {
        .combine-layout:first-child {
            .span-8 {
                .section:first-child {
                    h2:first-child {
                        font-size: 24px;
                        line-height: 26px;
                        margin: -10px -10px 10px;
                    }
                    p {
                        font-family: "gibsonRegular","Arial",sans-serif;
                        font-size: 14px;
                        line-height: 16px;
                    }
                }
            }
        }
    }
    .all-constituencies {
        ol {
            li.item {
                width: 43%;
            }
        }
    }
}

@media (max-width: 380px){
    
}