@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

@font-face {
    font-family: "Arial Bold", sans-serif;
    src: url("/fonts/arial-bold.ttf");
}

@font-face {
    font-family: "Arial Regular", sans-serif;
    src: url("/fonts/arial.ttf");
}

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

body {
    background-color: #ddd;
}


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

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

a {
    color: #e4002b;
    font-weight: 400;
}

a:hover {
    color: #a00e31;
}

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

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: #a00e31;
}

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

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 #ffa4a4 !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: #a00e31;
    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 #a00e31;
    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: #a00e31;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 0 1rem;
}

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

.questionnaire .question-title {
    color: #a00e31;
}

.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;
    font-weight: 700;
    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: #e4002b;
}

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

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

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

.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;
}

.invalid-feedback {
    color: #a00e31;
    font-weight: 700;
}

.visitor-name {
    color: #a00e31;
    font-weight: 700;
}

.heading {
    color: #a00e31;
}

.hint {
    font-size: 0.75rem;
    margin-top: 0.15rem;
    color: #6b7280;
}

@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%;
    }
}