#questions {}

textarea {
    width: 90%;
    margin: auto;
    display: block;
}

form {
    display: inline-block;
    width: 80%;
    position: relative;
    padding: 1em 0 0;
    margin: 1em 0;
    opacity: 0.5;
    font-size: 15pt;
    flex-shrink: 0;
}

form:last-child {
    opacity: 1;
}

form .question-head {
    position: relative;
    padding: 0 50px 0;
}

form .open-question,
form .close-question {
    position: absolute;
    top: 0;
    background-size: contain;
    background-repeat: no-repeat;
    height: 100%;
    width: 2em;
}

form .open-question {
    left: 0;
    background-image: url("../imgs/open_bracket.svg");
}

form .close-question {
    right: 0;
    background-image: url("../imgs/close_bracket.svg");
    background-position: right;
}

form .topic {
    font-size: small;
    margin: 0;
}

form h1 {
    margin: 0.15em 0 0.5em;
}

form button[type=submit] {
    display: block;
    width: 8em;
    margin: 1em auto 0;
    font-size: 1em;
}

form .question-answer {
    width: 10em;
    margin: 0 auto;
}

label {
    margin-top: 1em;
    display: block;
}

input[type=radio] {
  position: absolute;
  opacity: 0;
}

input[type=radio] + .radio-label:before {
  content: "";
  background: var(--green);
  border-radius: 100%;
  border: 0;
  display: inline-block;
  width: 1.4em;
  height: 1.2em;
  position: relative;
  top: 0;
  margin-right: 0.5em;
  vertical-align: top;
  cursor: pointer;
  text-align: center;
  transition: all 250ms ease;
}

input[type=radio]:checked + .radio-label:before {
    content: "\2713";
}
input[type=radio]:focus + .radio-label:before {
  outline: none;
}
input[type=radio]:disabled + .radio-label:before {
  box-shadow: inset 0 0 0 4px #f4f4f4;
  border-color: #b4b4b4;
  background: #b4b4b4;
}
input[type=radio] + .radio-label:empty:before {
  margin-right: 0;
}

article {
    display: flex;
    flex-direction: column;
    height: 80%;
}

article > h1 {
    display: none;
}

article #wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

#questions {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    width: 500em;
    padding-bottom: 2em;
}

#questions form {
    display: none;
}

#questions form:last-child {
    display: block;
    width: 30em;
    margin: 0 auto;
    padding-bottom: 3em;
}

#progress {
    right: 10%;
    text-align: center;
    width: 80%;
    margin: 1em auto 0.5em;
    font-size: 12pt;
}

.progress-bar-container {
    position: relative;
    width: 100%;
    height: 1em;
    border-radius: 1em;
    background-color: var(--light-blue);
}

.progress-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 1em;
    border-radius: 1em;
    background-color: var(--green);
}

#filled-survey section#thanks {
    text-align: center;
    background-image: url('../imgs/be_the_change_badge.svg');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 300px 300px;
    padding-top: 250px;
}

#filled-survey section#thanks h1 {
    margin-top: 0;
}

#filled-survey section#thanks p {
    width: 17em;
    margin: 1em auto;
}

#filled-survey section#thanks button {
    color: var(--white);
    background-color: var(--green);
}

@media only screen and (max-width: 576px) {
    label {
        margin-right: 0;
    }

    #questions {
        width: 100%;
    }

    #questions form {
        display: none;
    }

    #questions form:last-child {
        display: block;
        margin: 2em auto 0;
        width: 95%;
        font-size: 12pt;
    }

    form .question-head {
        padding: 0 25px 0;
        font-size: 12pt;
        margin-bottom: 2em;
    }

    #questions form h1 {
        font-size: 12pt;
    }

    form .question-answer {
        width: 18em;
    }

    #questions form label {
        display: block;
        margin-top: 1em;
    }

    .question-footer {
        position: fixed;
        left: 0;
        bottom: 0;
        height: 8em;
        width: 100%;
        background-color: var(--blue);
    }

    #progress {
        width: 60%;
        right: 20%;
    }

    #filled-survey section#thanks p {
        width: auto;
    }

    footer {
        display: none;
    }
}
