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

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

a:hover {
    color: #a00e31;
}

label {
    margin-bottom: 0.25rem;
    display: block;
    color: #000;
    font-size: 0.8rem;
    font-weight: 500;
}

input:not(input[type="checkbox"]):not(input[type="radio"]):not(input[type="submit"]):not(input[type="file"]), textarea {
    width: 100%;
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 0.5rem;
    outline: none;
    font-size: 0.6rem;
    padding: 0.5rem 0.75rem;
}

input[type="checkbox"] {
    margin-top: 4px;
}

select {
    width: 100%;
    background-color: #fff;
    border: 1px solid #000;
    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 {
    max-width: 575px;
    min-height: 100vh;
    margin: 0 auto;
    position: relative;
    background-image: url("/images/bg.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: 5rem;
    padding-bottom: 2rem;
}

.index {
    padding-left: 3rem;
    padding-right: 3rem;
}

.index .title {
    margin-bottom: 5rem;
}

.index .title h1 {
    margin: 0;
    color: #f3dceb;
    font-size: 2.5rem;
    font-weight: 400;
}

.index .subtitle {
    margin-bottom: 3rem;
}

.index .subtitle h5 {
    margin: 0;
    color: #f3dceb;
    font-size: 1.5rem;
    font-weight: 400;
}

.index .btn-cover {
    width: 100%;
    display: block;
    text-align: center;
}

.fieldset {
    margin-bottom: 1.5rem;
    position: relative;
    background-color: #fff;
    border-radius: 3rem;
    padding: 3rem 2.5rem;
}

.fieldset .title h5 {
    color: #000;
    font-size: 1rem;
    font-weight: 700;
}

.fieldset .title p {
    margin: 0;
    color: #7e77ba;
    font-size: 0.8rem;
    font-weight: 500;
}

.fieldset .fieldset-label {
    margin-bottom: 0.5rem;
    color: #000;
    font-size: 1rem;
    font-weight: 600;
}

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

.buttons * {
    width: 50%;
    text-align: center;
}

.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: 15%;
    margin: 0 auto 1.5rem;
}

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

.status-wrapper .status {
    margin: 0;
    color: #fff;
    font-size: 1.25rem;
}

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

.btn-cover, .btn-cover:hover {
    position: relative;
    background-color: #062f55;
    border: 0;
    border-radius: 1.5rem;
    outline: none;
    color: #f3dceb;
    font-size: 1.5rem;
    font-weight: 600;
    overflow: hidden;
    padding: 1rem;
}

::-webkit-input-placeholder {
    font-style: italic;
}

:-moz-placeholder {
    font-style: italic;  
}

::-moz-placeholder {
    font-style: italic;  
}

:-ms-input-placeholder {  
    font-style: italic; 
}

.visitor-name {
    font-style: italic;
}

.text-593d85 {
    color: #593d85;
}

.fw-semibold {
    font-weight: 600;
}

.fs-7 {
    font-size: 0.8rem;
}

.text-black {
    color: #000;
}

@media screen and (max-width: 767px) {
    .qr-wrapper {
        width: 35%;
    }
}