:root {
    --background: white;
    --text: black;
    --softGrey: rgb(231, 231, 231);
    --ultraSoftGrey: rgb(240, 240, 240);
    --reverse-text: white;
    --green: rgb(74, 199, 43);
    --light-text: rgb(121, 121, 121);
    --success: rgb(47, 158, 3);
    --error: rgb(187, 27, 27);
}

body {
    padding: 0;
    margin: 0;
    font-family: 'Roboto';
}

#step-form-container {
    max-width: 800px;
    height: max-content;
    background: var(--background);
    border-radius: 15px;
    padding: 15px;
    position: relative;
}

#form-submit-success, #form-submit-error {
    position: absolute;
    z-index: 10;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    opacity: 0;
}

#form-submit-success {
    background-color: var(--success);
    color: var(--background);
}

#form-submit-error {
    background-color: var(--error);
    color: var(--background);
}

#step-form.loading #step-form-content {
    display: none;
}

#step-form:not(.loading) #step-form-loading {
    display: none;
}

#steps-hints {
    display: flex;
    gap: 10px;
    height: 18px;
    width: 100%;
    margin-bottom: 10px;
}

.step-hint {
    position: relative;
    flex: auto;
    background: var(--softGrey);
    border-radius: 60px;
    overflow: hidden;
}

.fill-div {
    width: 0%;
    height: 100%;
    background: var(--text);
    position: absolute;
    left: 0;
    top: 0;
}

#step-back {
    cursor: pointer;
}

#step-count {
    border-radius: 60px;
    padding: 15px 25px;
    background: var(--softGrey);
    max-width: max-content;
    margin-top: 25px;
    font-weight: 600;
    color: var(--light-text);
}

#form-title {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 0;
}

#form-fields-container {
    overflow: hidden;
    width: 100%;
}

#form-fields {
    width: 100%;
    display: flex;
    margin-top: 15px;
    margin-bottom: 20px;
    margin-left: 0px;
    gap: 10px;
}

.form-field-step {
    width: calc(100% - 10px);
    min-width: calc(100% - 10px);
    max-width: calc(100% - 10px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-right: 10px;
}

.form-option {
    width: calc(100% + 10px);
    min-width: calc(100% + 10px);
    margin-right: 10px;
    height: 70px;
    border-radius: 10px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.form-btn {
    cursor: pointer;
    background-color: var(--softGrey);
}

.form-btn.selected {
    background-color: var(--text);
    color: var(--reverse-text);
}

.form-input {
    border: 1px solid var(--softGrey);
    background-color: var(--ultraSoftGrey);
    width: calc(100% - 54px);
}

.form-input:focus-visible {
    border: 2px solid var(--text);
    outline: none;
}

.label {
    margin-bottom: 4px;
}

#form-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

#form-email-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

@media screen and (max-width: 485px) {
    #form-bottom {
        flex-direction: column-reverse;
        align-items: center;
        gap: 40px;
    }

    #form-email-container {
        width: 100%;
        text-align: center;
        justify-content: center;
        opacity: 0.75;
    }

    a {
        text-decoration: none;
    }
}

#green-dot {
    width: 9px;
    aspect-ratio: 1;
    border-radius: 50px;
    background: var(--green);
}

#form-bottom a {
    text-underline-offset: 4px;
    color: var(--text);
    opacity: 0.85;
}

#form-main-btn {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 22px;
    background: var(--text);
    color: var(--reverse-text);
    padding: 15px 25px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .2s cubic-bezier(.83,.03,.26,.87);
}

#form-main-btn:hover {
    transform: scale(0.95);
}

#form-svg-container {
    display: flex;
    align-items: center;
}

.not-allowed {
    opacity: 0.6;
    cursor: not-allowed !important;
}

.loader {
    animation: spin 2.618s linear infinite;
    transform-origin: center center;
    max-width: max-content;
    max-height: max-content;
}

@keyframes spin {
    to {
        transform: rotate(365deg);
    }
}