@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700,800');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #ddd;
}


img {
    width: 100%;
    height: auto;
}

a, a:hover {
    text-decoration: none;
}

label {
    display: block;
    font-weight: 600;
}

input:not(input[type="checkbox"]):not(input[type="radio"]):not(input[type="submit"]):not(input[type="file"]), select, textarea {
    width: 100%;
    background-color: #eaebed;
    border: 0;
    border-radius: 0.5rem;
    outline: none;
    padding: 0.5rem 0.75rem;
}

table {
    width: 100%;
}

table tr:not(:last-child) {
    border-bottom: 2px solid #fff;
}

table tr:nth-child(odd) {
    background: #5d99e2;
}

table tr:nth-child(even) {
    background: #a2d0fc;
}

table tr td {
    color: #fff;
    padding: 1rem;
}

.main {
    min-height: 100vh;
    position: relative;
    padding-top: 5rem;
    padding-bottom: 120px;
}

.index input[type="email"] {
    width: 50% !important;
    background-color: transparent !important;
    border-bottom: 1px solid #d2d2d2 !important;
    border-radius: 0 !important;
    padding: 0.5rem 0 !important;
}

.animated-border {
    width:50%;
    margin: 0 auto;
    display:block;
    position:relative;
}

.animated-border:before, .animated-border:after {
    content: "";
    width: 0;
    height: 2px;
    position: absolute;
    bottom: 1px;
    background-color: #5264ae;
    transition: all 0.2s ease;
}

.animated-border:before {
    left:50%;
}

.animated-border:after {
    right:50%; 
}

input:focus ~ .animated-border:before, input:focus ~ .animated-border:after {
    width: 50%;
}

.fieldset {
    margin-bottom: 1.5rem;
    position: relative;
    border: 2px solid #7497c9;
    padding: 0.75rem;
}

.fieldset .fieldset-label {
    margin-top: -1.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.fieldset .fieldset-label span {
    display: inline-block;
    background-color: #fff;
    color: #193b6e;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 0 1rem;
}

.buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.questionnaire .question-title {
    color: #5d99e2;
}

.questionnaire .question {
    font-weight: normal;
}

.questionnaire .other {
    display: none;
}

.questionnaire .sub-question-title {
    margin-top: 0.5rem;
    color: #5d99e2;
    font-weight: normal;
    text-decoration: underline;
}

.questionnaire .question .sub-question-wrapper {
    display: none;
}

.buttons * {
    width: 33%;
    display: inline-block;
    border: 0;
    border-radius: 0.5rem;
    outline: none;
    color: #fff;
    text-align: center;
    padding: 0.5rem 0.9rem;
}

.buttons .overlay {
    width: 100%;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    color: #fff;
    font-size: 1.5rem;
}

.qr-wrapper {
    width: 25%;
    margin: 0 auto 1rem;
}

.status-wrapper {
    width: 50%;
    margin: 0 auto 1.5rem;
    background-color: #c4f7c4;
    border-radius: 1rem;
    text-align: center;
    padding: 1.5rem 0;
}

.status-wrapper .status {
    margin: 0;
    color: #008202;
}

.buttons button[type="submit"] {
    position: relative;
    background-color: #5d99e2;
}

.buttons button[type="submit"]:disabled {
    background-color: #130101;
    opacity: 0.3;
}

.buttons a:first-child {
    background-color: #be1e2d;
}

.buttons a:last-child {
    background-color: #5d99e2;
}

.buttons a:hover {
    color: #fff;
}

.footer {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 0;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
}

.required:after {
    content: "*";
    margin-left: 0.15rem;
    color: #ff0000;
}

.required-before:before {
    content: "*";
    margin-right: 0.5rem;
    color: #ff0000;
}

#message {
    position: fixed;
    left: 0;
    bottom: 3rem;
    right: 0;
    z-index: 9999;
}

#message.hide {
    display: none;
}

#message .item {
    background-color: #9c0008;
    border-radius: 2rem;
    color: #fff;
    text-align: center;
    padding: 0.5rem 1rem;
}

.modal-body {
    height: 80vh;
}

@media screen and (max-width: 767px) {
    .index input[type="email"] {
        width: 100% !important;
    }

    input:focus ~ .animated-border:before, input:focus ~ .animated-border:after {
        width: 100%;
    }

    .buttons * {
        width: 100%;
    }

    .buttons a:first-child {
        margin-bottom: 1rem;
    }

    .qr-wrapper {
        width: 50%;
    }

    .status-wrapper {
        width: 75%;
    }
}