@font-face {
    font-family: 'poppins-b';
    src: url('plugins/poppins/Poppins-Black.ttf') format('truetype');
}

@font-face {
    font-family: 'poppins-sb';
    src: url('plugins/Poppins/Poppins-SemiBold.ttf') format('truetype');
}

@font-face {
    font-family: 'poppins';
    src: url('plugins/Poppins/Poppins-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'poppins-l';
    src: url('plugins/Poppins/Poppins-Light.ttf') format('truetype');
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    font-family: 'poppins-l';
    letter-spacing: -.25px;
    user-select: none;
}

:root {
    --primary: rgb(255, 100, 100);
    --transparent: rgba(255, 100, 100, .3);
}

#page {
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header {
    position: fixed;
    display: flex;
    top: 0;
    left: 0;
    width: 100%;
    padding: 14px 32px 8px;
    background: rgb(255, 255, 255);
    border-bottom: 1px solid rgb(245, 245, 245);
    gap: 12px;
    z-index: 10;
}

#image-box {
    display: flex;
    gap: 12px;
}

header img:first-child {
    height: 32px;
    object-fit: cover;
}

header img:last-child {
    height: 38px;
    object-fit: cover;
}

header p {
    padding-top: 3px;
}

#container {
    position: relative;
    min-width: 50%;
    min-height: 350px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, .05);
    border-radius: 12px;
}

#container.index {
    display: flex;
    min-height: 0;
    padding: 16px 40px 44px 16px;
    gap: 28px;
}

#index-logo-set {
    margin-top: 12px;
    padding: 24px 34px;
    width: max-content;
    box-shadow: 5px 5px 15px var(--transparent);
    border-radius: 8px;
    font-size: 32px;
    color: var(--primary);
}

#container.index h1 {
    margin-bottom: 5px;
    font-size: 28px;
}

#container.index p {
    max-width: 500px;
    margin-bottom: 28px;
    text-align: justify;
    font-size: 14px;
}

.btn {
    display: flex;
    width: max-content;
    align-items: center;
    padding: 8px 28px 10px;
    background: var(--primary);
    border-radius: 5px;
    gap: 12px;
    text-decoration: none;
    transition: .05s;
    outline: none;
    border: none;
    font-size: 12px;
    color: rgb(255, 255, 255);
    cursor: pointer;
}

.btn:hover {
    transform: translateY(3px);
}

.link {
    color: var(--primary);
}

.fade-text {
    color: rgb(180, 180, 180);
}

.btn-off {
    background: rgb(225, 225, 225);
    color: rgb(40, 40, 40);
}

.btn-final {
    background: rgb(0, 180, 0);
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 16px;
    background: rgb(255, 255, 255);
    text-align: right;
    font-size: 10px;
}

#progress-bar {
    display: flex;
    margin-bottom: 16px;
    gap: 12px;
}

.checkpoint {
    display: flex;
    width: 48px;
    height: 45px;
    box-shadow: 3px 3px 15px rgba(0, 0, 0, .07);
    border-radius: 5px;
    justify-content: center;
    align-items: center;
    color: rgb(200, 200, 200);
}

.checkpoint.active {
    background: var(--primary);
    color: rgb(255, 255, 255);
}

.checkpoint.current {
    color: var(--primary);
    box-shadow: 3px 3px 15px var(--transparent);
}

.card {
    position: relative;
    display: none;
    padding: 16px 40px 44px 16px;
    max-width: 80vw;
}

.card.active {
    display: block;
}

.card-header {
    display: flex;
    padding-bottom: 16px;
    align-items: center;
    border-bottom: 1px solid rgb(225, 225, 225);
    font-size: 14px;
    gap: 14px;
}

.card-header i {
    font-size: 40px;
}

.card-header h1 {
    line-height: 24px;
    font-family: "Poppins-sb";
    font-size: 22px;
}

.card-body {
    position: relative;
    padding-top: 24px;
    padding-left: 45px;
}

.card-body .list {
    display: flex;
    margin-bottom: 8px;
    font-size: 14px;
    gap: 12px;
}

.list i {
    padding-top: 3px;
    color: rgb(0, 200, 0);
}

.navigation {
    display: flex;
    margin-top: 32px;
    width: max-content;
    margin-left: auto;
    gap: 5px;
}

.card-body {
    position: relative;
}

.card-body .row {
    position: relative;
    display: flex;
    margin-bottom: 14px;
    gap: 12px;
}

.input-group {
    position: relative;
    flex: 1;
}

.input-group input,
.input-group textarea {
    display: block;
    outline: none;
    border: none;
    width: 100%;
    padding: 5px 10px;
    background: rgb(245, 245, 245);
    font-size: 13px;
}

.input-group textarea {
    height: 100px;
}

input[type="text"] {
    min-width: 250px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
}

.required {
    color: rgb(255, 0, 0);
}

.option-container {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.option-box {
    position: relative;
    display: flex;
    flex: 1;
    padding: 5px 24px;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid rgb(200, 200, 200);
    font-size: 12px;
}

.option-box input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.input-advance {
    position: relative;
}

.input-advance p {
    position: absolute;
    display: flex;
    top: 0;
    left: 0;
    width: 40px;
    height: 30px;
    justify-content: center;
    align-items: center;
    background: rgb(180, 180, 180);
    font-size: 12px;
    color: rgb(255, 255, 255);
}

.input-advance input {
    padding-left: 48px;
}

input::placeholder {
    letter-spacing: 0;
    font-size: 12px;
    opacity: .6;
}

input[type=radio],
input[type=checkbox] {
    cursor: pointer;
}

.option-box.active {
    border: 1px solid var(--primary);
    color: var(--primary);
}

.error-box {
    position: fixed;
    display: none;
    top: 12px;
    right: 12px;
    padding: 12px 24px;
    align-items: center;
    background: rgb(255, 255, 255);
    box-shadow: 5px 5px 15px var(--transparent);
    font-size: 12px;
    color: var(--primary);
    gap: 12px;
    animation: shaking .5s linear infinite;
    z-index: 999;
}

.error-box.active {
    display: flex;
}

#layer {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, .3);
    z-index: 12;
}

#layer.active {
    display: flex;
}

#modal {
    padding: 32px;
    background: rgb(255, 255, 255);
    border-radius: 12px;
}

#modal i {
    display: block;
    margin: 0 auto 24px;
    padding: 24px 32px;
    width: max-content;
    box-shadow: 5px 5px 15px var(--transparent);
    border-radius: 8px;
    font-size: 24px;
    color: var(--primary);
}

#modal h1 {
    margin-bottom: 5px;
    text-align: center;
    font-size: 22px;
}

#modal p {
    margin-bottom: 24px;
    max-width: 300px;
    line-height: 24px;
    text-align: justify;
    font-size: 13px;
}

#modal .btn {
    width: 100%;
    justify-content: center;
}

#loading-layer {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, .8);
    z-index: 123;
    font-size: 48px;
    color: var(--primary);
}

#loading-layer.active {
    display: flex;
}

#loading-layer i {
    animation: loading .5s linear infinite;
}

@keyframes loading {
    to {
        transform: rotate(360deg);
    }
}

@keyframes shaking {

    0%,
    100% {
        transform: rotate(0);
    }

    25%,
    75% {
        transform: rotate(1deg);
    }

    35%,
    65% {
        transform: rotate(-1deg);
    }

    45%,
    55% {
        transform: rotate(1deg);
    }
}

.error-box i {
    font-size: 18px;
}

@media(max-width: 1200px) {
    .card {
        min-width: 90vw;
    }
}

@media(max-width: 800px) {
    #container.index {
        max-width: 90%;
    }

    #container.index h1 {
        font-size: 24px;
    }

    #container.index p {
        margin-bottom: 18px;
        font-size: 13px;
    }

    #container.index {
        padding: 16px 32px 32px 16px;
    }

    #index-logo-set {
        margin-top: 8px;
        padding: 24px 34px;
        border-radius: 8px;
        font-size: 24px;
        color: var(--primary);
    }

    .btn {
        font-size: 12px;
    }

    .card-header i {
        font-size: 32px;
    }

    .card-header h1 {
        line-height: 20px;
        font-size: 18px;
    }

    .card-header p {
        font-size: 12px;
    }

    .card-body .list {
        font-size: 12px;
    }

    #progress-bar {
        gap: 5px;
    }

    .checkpoint {
        width: 38px;
        height: 35px;
        font-size: 12px;
    }

    .card {
        padding: 16px 28px 32px 16px;
    }

    .card-body {
        padding-left: 0px !important;
    }

    .row {
        flex-wrap: wrap;
    }

    #page.form {
        top: 74px;
        justify-content: start;
    }
}

@media(max-width: 500px) {
    header {
        font-size: 14px;
    }

    #image-box {
        gap: 3px;
    }

    header img:first-child {
        height: 24px;
        object-fit: cover;
    }

    header img:last-child {
        height: 28px;
        object-fit: cover;
    }

    #container.index {
        flex-direction: column;
        gap: 40px;
    }

    #index-logo-set {
        margin: 0 auto;
        font-size: 32px;
    }

    #container.index h1 {
        margin-bottom: 12px;
        text-align: center;
        font-size: 22px;
    }

    #container.index p {
        margin-bottom: 28px;
        font-size: 12px;
    }

    .btn {
        width: 100%;
        padding-right: 16px;
        padding-left: 16px;
    }

    .card-header p {
        margin-top: 1px;
        line-height: 14px;
    }
}