/* Popup */

.survey {
    background-image:url(images/icn-popuptrigger-left-hover.svg);
    background-image:url(images/icn-popuptrigger-left.svg);
    background-position: left;
    background-repeat: no-repeat;
    background-size: cover;
    bottom: 4em;
    display: inline-block;
    color: #ffffff;
    cursor: pointer;
    font-family: 'merriweather', serif;
    font-size: 1.5em;
    font-style: italic;
    font-weight: 600;
    line-height: 1.2;
    max-width: 14em;
    padding: .75em .5em .75em 1.5em;
    position: fixed;
    right: 0;
    transition: all .15s ease-in-out;
    -webkit-backface-visibility: none;
    z-index: 4;
}

.survey:hover {
    background-image:url(images/icn-popuptrigger-left-hover.svg);
}

    .survey-int {
        align-items: center;
        display: flex;
    }

    .survey-int span.checkbox {
        height: 35px;
        width: 4.5em;
    }

#sgcboxWrapper #sgcboxContent,
#sgcboxWrapper #sgcboxLoadedContent {
    border-radius: 1em;
}

#sgcboxLoadedContent > div {
    align-items: center;
    display: flex;
    flex-direction: column;
}

#sgcboxWrapper #sgcboxLoadedContent {
    background-image:url( images/bg-popup.jpg );
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 6em 8em;
    text-align: center;
}

    #sgcboxLoadedContent h2 {
        background-color: rgba(0,0,0,.3);
        color: #ffffff;
        font-family: 'nimbus-sans-condensed', sans-serif;
        font-size: 5.8em;
        font-weight: 900;
        letter-spacing: 0.025em;
        line-height: 1;
        margin: .2em 0;
        padding: .2em 0;
        width: calc( 100% + 2.75em );
        text-transform: uppercase;
    }

    #sgcboxLoadedContent h3 {
        color: rgba(202,199,167,.85);
        display: inline-block;
        font-family: 'nimbus-sans-condensed', sans-serif;
        font-size: 4em;
        font-weight: 900;
        line-height: 1;
        padding: 0 .5em;
        text-transform: uppercase;
    }

    #sgcboxLoadedContent .wrap {
        align-items: center;
        display: flex;
        flex-direction: row;
        width: 100%;
    }

    #sgcboxLoadedContent .wrap .line {
        background-color: rgba(202,199,167,.25);
        height: 3px;
        flex: 1;
    }

    #sgcboxLoadedContent .checkbox,
    .survey-int .checkbox {
        background-image: url(images/icn-popup-survey.svg);
        background-repeat: no-repeat;
        background-position: left center;
        background-size: 30px;
        border-right: 1px solid #6c88b9;
        display: block;
        margin-right: 1em;
        height: 30px;
        width: 2.5em;
    }

    #sgcboxLoadedContent .checkbox {
        width: 3.25em;
    }

#sgcboxWrapper #sgcboxClose {
    background-color: rgba(202,199,167,.15);
    background-image: none;
    background-position: -50px 0;
    border-radius: 100%;
    font-size: inherit;
    height: 3.5em;
    right: 2em;
    top: 2em;
    width: 3.5em;
}

#sgcboxWrapper #sgcboxClose::before,
#sgcboxWrapper #sgcboxClose::after {
        background-color: #ffffff;
        content: '';
        display: block;
        height: 2.1em;
        left: 1.7em;
        position: absolute;
        top: .7em;
        width: 2px;
}

#sgcboxWrapper #sgcboxClose::before {
    -webkit-transform: rotate(45deg);
            transform: rotate(45deg);
}

#sgcboxWrapper #sgcboxClose::after {
    -webkit-transform: rotate(-45deg);
            transform: rotate(-45deg);
}

#sgcboxLoadedContent .button {
    align-items: center;
    background-color: #08669B;
    color: #ffffff;
    display: flex;
    font-family: 'merriweather', serif;
    font-size: 1.8em;
    font-style: italic;
    font-weight: 600;
    margin: 2.5em 0 0;
    overflow: visible;
    padding: .6em .75em;
    transition: all .15s ease-in-out;
}

    #sgcboxLoadedContent .button:hover {
        background-color: #005381;
    }

    #sgcboxLoadedContent .button::before,
    #sgcboxLoadedContent .button::after {
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        content: '';
        display: block;
        height: 100%;
        position: absolute;
        top: 0;
        width: .8em;
        transition: all .15s ease-in-out;
        -webkit-backface-visibility: none;
    }

    #sgcboxLoadedContent .button::before {
        background-image: url(images/icn-popup-left-hover.svg);
        background-image: url(images/icn-popup-left.svg);
        left: -.3em;
    }

    #sgcboxLoadedContent .button::after {
        background-image: url(images/icn-popup-right-hover.svg);
        background-image: url(images/icn-popup-right.svg);
        right: -.3em;
    }

    #sgcboxLoadedContent .button:hover::before {
        background-image: url(images/icn-popup-left-hover.svg);
    }

    #sgcboxLoadedContent .button:hover::after {
        background-image: url(images/icn-popup-right-hover.svg);
    }

#sgcolorbox {
    font-size: 7px;
}

@media screen and (min-width: 430px) {
    #sgcboxLoadedContent .button::before,
    #sgcboxLoadedContent .button::after {
        width: .4em;
    }
}

@media screen and (min-width: 600px) {
    #sgcolorbox {
        font-size: 9px;
    }

    #sgcboxLoadedContent .checkbox {
        width: 2.5em;
    }
}

@media screen and (min-width: 768px) {
    #sgcolorbox {
        font-size: 10px;
    }
}
