/*

    yellow: ffff00
    lightgreen: ccffcc
    lightblue: 00ccff
    orange: ff9900
    violet: cc99ff
    red: ff0000

*/

html,body {
    padding:0;
    margin:0;
    min-height:100%;
}

body {
    background:#fff url(../img/body-bg.jpg) no-repeat right bottom;
    min-height:100%;
    position:relative;
    padding-bottom:200px;
}

body.test {
    background:#f0f0f0 url(../img/body-test-bg.jpg) no-repeat right bottom;
}

* {
    font-family:'Open Sans', sans-serif;
    font-weight:300;
    box-sizing:border-box;
}

strong {
    font-weight:600;
}

h1,h2,h3,h4,h5,h6 {
    font-weight:400;
}
h1 {
    font-size:1.875em;
    font-weight:normal;
    line-height:1.3em;
    padding-bottom:15px;
    margin:1em 0;
    color:#c30000;
    border-bottom:solid 1px #ddd;
}
h2 {
    font-size:1.125em;
    line-height:1.3em;
    color:#525575;
    margin-bottom:5px;
}
h3,h4,h5,h6 {
    font-size:0.8125em;
    line-height:1em;
}

p,ul,ol {
    font-size:0.8125em;
    line-height:2em;
}
p.right {
    text-align:right;
}

.row, header, footer {
    display:block;
    width:100%;
    text-align:center;
}

header {
    background-color:#f0f0f0;
}
body.test header {
    display:none;
}

a.logo {
    display:block;
    margin:20px 0;
}
a.logo img {
    width:100%;
}

.wrapper {
    margin:0 auto;
    max-width:800px;
    text-align:left;
}

.fl {
    float:left;
}

.fr {
    float:right;
}

.hidden {
    display:none;
}
.current {
    display:block;
}

.box {
    background-color:#ffffff;
    border-radius:10px;
}

.box h1 {
    font-size:1em;
    background-color:#c51524;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    color:#fff;
    text-align:left;
    padding:0.7em 1.3em;
    margin:0;
}

.box h1 {
    background-color:#c00222;
    color:#fff;
}
.box-gray h1 {
    background-color:#e2e2e2;
    color:#222;
}

.content {
    text-align:left;
}
.box .content {
    padding:1em;
}

.content p {
    margin:0;
    margin-bottom:1.5em;
}
.content a {
    color:#525575;
}
.content a.button {
    color:#fff;
}

.choose-language {
    text-align:center;
    margin:2em 0 0;
}
.choose-language a {
    display:inline-block;
    color:#000000;
    text-decoration:none;
    margin:0 1em;
}

.choose-language a img {
    display:block;
    width:130px;
}

.choose-language a span {
    display:block;
    margin-top:1.5em;
    font-weight:400;
    font-size:1.125em;
    color:#525575;
}

.form-row {
    margin-bottom:1em;
}

.form-label {
    display:inline-block;
    width:25%;
    float:left;
}

.form-label-block label {
    display: inline-block;
    padding: 0 0 1em 0;
}

.form-field {
    display:inline-block;
    width:75%;
    float:left;
}

label {
    font-weight:600;
    font-size:0.8125em;
}


.radiobutton {
    position:relative;
    margin-bottom:0.7em;
}

input,option,select,textarea {
    font-size:0.8125em;
}

input,select {
    height:3em;
}

input[type=text],input[type=email],input[type=number],textarea {
    border:solid 1px #ddd;
    border-radius:5px;
    padding:8px 15px;
}

input[type='number'] {
    -moz-appearance:textfield;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

textarea {
    min-width:60%;
    min-height:5em;
    max-width:90%;
}

input[type=text]:focus,input[type=number]:focus,input[type=email]:focus {
    border:solid 1px #262626;
    background-color:#f3f3f3;
}

input[type=checkbox]+label, input[type=radio]+label {
    position:relative;
    display:inline-block;
    padding-left:2.4em;
    padding-top:2px;
    margin-right: 1em;
    cursor: pointer;
}
input[type=checkbox]+label, input[type=radio]+label {
    padding-left: 3em;
}
input[type=checkbox], input[type=radio] {
    position: absolute;
    left: -9999px;
}
input[type=checkbox]+label:before {
    content: "";
    font-size:1.3em;
    border-radius: 6px;
    background-color: #fff;
    border: 1px solid #ddd;
    color: #666;
}
input[type=checkbox]:checked+label:before {
    content: "✓";
}

input[type=radio]:checked+label:before {
    box-shadow:inset 0 0 0 0.3em #f3f3f3, inset 0 0 0 1em #525575;
}
input[type=radio]+label:before {
    content: '';
    background-color:#f3f3f3;
    border-radius:50%;
    border:1px solid #c2c2c2;
    transition:box-shadow .3s ease;
}
input[type=checkbox]+label:after, input[type=checkbox]+label:before, input[type=radio]+label:after, input[type=radio]+label:before {
    position: absolute;
    top:0;
    left:0;
    width: 1.5em;
    height: 1.5em;
    text-align: center;
}
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border:solid 1px #bbb;
    border-radius:5px;
    padding:0.6em 80px 0.6em 1em;
    color:#444;
    min-width:200px;

    background-position: 100% 50%;
    background-repeat: no-repeat;
    background-image: url(../img/form-select.svg);    
}
.button {
    display:inline-block;
    margin-top:2em;
    background-color:#c00;
    border:none;
    padding:0.7em 2em;
    border-radius:5px;
    text-transform:uppercase;
    text-decoration:none;
    font-size:1em;
    cursor:pointer;
    color:#fff;
    box-shadow:0px 1px 1px 1px #ccc;
}
.button span {
    font-weight:400;
}
.button.disabled {
    background-color:#e2e2e2;
    cursor:not-allowed;
}
.button.fl span:before {
    content:'';
    display:inline-block;
    background-image:url(../img/icon-prev.svg);
    background-repeat:no-repeat;
    height:16px;
    width:16px;
    float:left;
    margin-top:4px;
    margin-right:8px;
}
.button.fr span:after {
    content:'';
    display:inline-block;
    background-image:url(../img/icon-next.svg);
    background-repeat:no-repeat;
    height:16px;
    width:16px;
    float:right;
    margin-top:4px;
    margin-left:8px;
}
.content .button.button-link {
    background-color:#fff;
    color:#000;
    text-transform:none;
    padding:0.7em 0;
    box-shadow:none;
}
.button.button-link.fl span:before {
    background-image:url(../img/icon-prev-black.svg);
}

.box h1 {
    display:table;
    width:100%;
    border-bottom:none;
}
h1 span.text {
    display:table-cell;
    width:100%;
    font-weight:600;
}
h1 span.counter {
    display:table-cell;
    font-weight:600;
    padding-left:2em;
}
.questions-counter {
    text-align:right;
    margin:1em 0 0.6em;
    font-size:0.6875em;
    color:#7d7d7d;
}
.box.section {
    margin-top:2em;
}
.questions {
    border-top:solid 1px #e5e5e5
}
.question {
    border-bottom:solid 1px #e5e5e5;
    display:table;
    width:100%;
}
.question p {
    display:table-cell;
    vertical-align:top;
    width:70%;
    margin:0;
    padding:0.6em 1em 1em 0;
    height:100%;
    border-right:solid 1px #e5e5e5;
}
.answers {
    display:table-cell;
    vertical-align:top;
    position:relative;
    width:30%;
    padding:0.6em 0 1em 1em;
    text-align:right;
}
.answer {
    display:inline-block;
}
.answer label:before {
    display:none;    
}
.answer input[type=radio]+label {
    margin:0;
    margin-left:0.7em;
    padding:0;
    width:32px;
    height:32px;
    line-height:1.7em;
    font-size:18px;
    text-align:center;
    border-radius:50%;
    box-shadow:0px 1px 1px 1px #ccc;
    background-color:#f5f5f5;
}
.box .answer input[type=radio]:checked+label {
    background-color:#c00;
    color:#fff;
}

.section-final a.fl {
    margin-top:2em;    
}
.error {
    color:#f00;
}
.content p.missing-fields {
    color:#f00;
    padding:1em 0 1em;
    margin:0;
    text-align:right;
    clear:both;
}

div.info {
    text-align:right;
}
a.info {
    display:inline-block;
    font-weight:600;
    margin:0.6em 0;
    text-decoration:none;
    padding:0;
    width:25px;
    height:25px;
    line-height:1.6em;
    font-size:15px;
    text-align:center;
    border-radius:50%;
    background-color:#e2e2e2;
    box-shadow:0px 1px 0px 1px #ccc;
}
a.quit {
    display:block;
    text-align:center;
    color:#000;
    margin:1em;
    font-size:0.8125em;
}

#overlay {
    position:absolute;
    top:0;
    left:0;
    bottom:0;
    right:0;
    width:100%;
    height:100%;
    background-color:rgba(255,255,255,0.5);
    z-index:1000;
}

#dialog {
    display:none;
    position:absolute;
    top:0;
    left:0;
    bottom:0;
    right:0;
    z-index:2000;
    max-width:500px;
    max-height:200px;
}
#dialog .box {
    box-shadow:1px 2px 4px 1px #ddd;
    position:relative;
}
#dialog .box h1 {
    padding:0.7em 2em 0.7em 1.3em;
    border-top-left-radius:10px;
    border-top-right-radius:10px;
}
a.close {
    position:absolute;
    top:1em;
    right:1em;
    display:block;
    width:15px;
    height:15px;
    color:#fff;
    text-decoration:none;
    background:transparent url(../img/close.svg) no-repeat center center;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

footer {
    position:absolute;
    bottom:0;
    left:0;
    right:0;
    height:130px;
    width:100%;
}
footer div.socialmedia {
    text-align:center;
    border-bottom:solid 1px #f0f0f0;
    padding-bottom:2em;
}
body.test footer {
    display:none;
}
div.socialmedia a {
    display:inline-block;
    border-radius:3px;
    color:#fff;
    padding:4px 10px 4px 30px;
    text-decoration:none;
    font-size:12px;
    font-weight:600;
}
div.socialmedia a.icon-facebook {
    background:#3d5a98 url(../img/icon-facebook.svg) no-repeat 5px 50%;
    background-size:20%;
}
div.socialmedia a.icon-twitter {
    background:#09b0ed url(../img/icon-twitter.svg) no-repeat 5px 50%;
    background-size:20%;
}
div.socialmedia a.icon-linkedin {
    background:#035a87 url(../img/icon-linkedin.svg) no-repeat 5px 50%;
    background-size:25%;
}



/* test has max width of 900px */
@media only screen and (max-width: 899px) {

    .box.section {
        margin-top:0;
    }
}

@media only screen and (max-width: 800px) {

    body {
        background:#fff url(../img/body-bg-small.jpg) no-repeat right bottom;
    }

    body.test {
        background:none;
    }
    
    body.test header {
        display:none;
    }
    
    .wrapper {
        margin:0 20px 20px;
    }
    .wrapper.box {
        margin:0;
    }
    
    .question {
        display:block;
    }
    
    .question p {
        display:block;
        width:100%;
        border-right:none;
    }
    
    .answers {
        display:block;
        text-align:right;
        width:100%;
        padding:0 0 1em 1em;
    }

    .box h1 {
        border-radius:0;
    }
    
    .form-label, .form-field {
        float:none;
        width:100%;
        display:block;
    }
    
    .form-label {
        margin-bottom:.5em;
    }
}

@media only screen and (max-width: 500px) {
    
    .form-field input, .form-field select , .form-field textarea {
        width:100%;
        max-width:100%;
    }

    .choose-language a {
        display:block;
        text-align:center;
    }

    .choose-language a span {
        margin-top:1em;
        margin-bottom:2em;
    }
    
    .choose-language a img {
        width:200px;
        display:block;
        margin:0 auto;
    }
    
    form#test .form-row .button {
        padding:0.7em 1em;
    }
    form#test .form-row .button.button-link {
        padding:0.7em 1em 0.7em 0;
    }
}