@font-face {
    font-family: "SailecBold";
    src: url("/fonts/sailec-bold.otf");
}

@font-face {
    font-family: "SailecRegular";
    src: url("/fonts/sailec-regular.otf");
}

@font-face {
    font-family: "SailecRegularItalic";
    src: url("/fonts/sailec-regular-italic.otf");
}

@font-face {
    font-family: "SailecMedium";
    src: url("/fonts/sailec-medium.otf");
}

@font-face {
    font-family: "FairProsper";
    src: url("/fonts/fair-prosper.ttf");
}

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

body {
    background-color: #fff;
}


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

a, a:hover {
    color: #000;
    text-decoration: none;
}

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: #fff;
    border: 0;
    border-radius: 2rem;
    outline: none;
    padding: 0.75rem 1.5rem;
}

b {
    font-family: "SailecBold", sans-serif;
}

.main {
    max-width: 575px;
    min-height: 100vh;
    margin: 0 auto;
    position: relative;
}

body:not(.index) .main {
    padding-bottom: 4rem;
}

.main::before {
    content: "";
    width: 100%;
    height: 50vh;
    display: block;
    position: absolute;
    bottom: 0;
    background-color: #fdcf33;
    border-bottom-left-radius: 50% 15%;
    border-bottom-right-radius: 50% 15%;
    transform: rotate(180deg);
}

.index .main::after {
    content: "";
    width: 100%;
    height: auto;
    position: absolute;
    left: 0;
    bottom: 0;
    background-image: url(/images/peacock.png);
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: top;
    aspect-ratio: 1920 / 1050;
    pointer-events: none;
}

.fieldset {
    width: 90%;
    min-height: 100vh;
    margin: 0 auto;
    margin-top: -70px;
    position: relative;
    background-color: #fff3cf;
    mask: radial-gradient(35px at 40px 40px,#0000 98%,#000) -40px -40px;
    padding: 3.5rem 1.5rem;
}

.fieldset::before {
    content: "";
    position: absolute;
    background-color: #c38228;
    mask: radial-gradient(40px at 40px 40px, #0000 calc(98% - 5px), #000 calc(100% - 5px) 98%, #0000) -40px -40px,
    linear-gradient(90deg, #000 10px, #0000 0) -5px 50% / 100% calc(100% - 80px + 5px) repeat-x,
    linear-gradient(#000 10px, #0000 0) 50% -5px / calc(100% - 80px + 5px) 100% repeat-y;
    inset: 0;
}

.index .fieldset::after {
    content: "";
    width: 100%;
    height: auto;
    position: absolute;
    left: 0;
    bottom: 0;
    background-image: url("/images/city.png");
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: top;
    aspect-ratio: 1920 / 1150;
}

.index .fieldset {
    padding-bottom: 15rem;
}

form {
    position: relative;
    z-index: 1;
}

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

.buttons * {
    display: inline-block;
    border-radius: 0.5rem;
    font-weight: 700;
    padding: 1rem 1.25rem;
}

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

.buttons a {
    background-color: #fff;
    color: #000;
}

.buttons button[type="submit"] {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    padding: 0.5rem 2.5rem;
}

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

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

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

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

.w-65 {
    width: 65%;
}

.w-80 {
    width: 80%;
}

.fieldset-label {
    position: relative;
    font-family: "SailecBold", sans-serif;
    text-align: center;
    letter-spacing: 5px;
}

.fieldset-label span {
    position: relative;
    background-color: #fff3cf;
    font-family: "SailecMedium", sans-serif;
    padding: 0 1rem;
    z-index: 1;
}

.fieldset-label::after {
    content: "";
    width: 100%;
    position: absolute;
    top: 50%;
    left: 0;
    height: 2px;
    background-color: #000;
    transform: translateY(-50%);
}

.label {
    position: relative;
    font-family: "SailecBold", sans-serif;
    text-align: center;
}

.form-check-label {
    font-family: "SailecBold", sans-serif;
    font-size: 1.25rem;
}

.form-check-input[type="radio"] {
    position: relative;
    top: 2px;
    transform: scale(1.3);
}

.flower-wrapper {
    position: relative;
    z-index: 1;
}

.message {
    margin-top: -2rem;
    position: relative;
    text-align: center;
    padding: 3rem;
}

.message::before {
    content: "";
    position: absolute;
    background-color: #000;
    mask: radial-gradient(40px at 40px 40px, #0000 calc(98% - 5px), #000 calc(100% - 5px) 98%, #0000) -40px -40px,
    linear-gradient(90deg, #000 10px, #0000 0) -5px 50% / 100% calc(100% - 80px + 5px) repeat-x,
    linear-gradient(#000 10px, #0000 0) 50% -5px / calc(100% - 80px + 5px) 100% repeat-y;
    inset: 0;
    pointer-events: none;
}

.medium {
    font-family: "SailecMedium", sans-serif;
}

@media screen and (max-width: 767px) {
    .message {
        margin-top: -1.25rem;
    }

    .qr-wrapper {
        width: 50%;
    }
}