body {
    height: 100dvh;
}

#content {
    height: calc(100dvh - 62px);

    overflow: auto;

    padding: 1.25rem;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 100%;
}

.auth-card {
    display: unset;
}

.primary-btn {
    width: 100%;
}

.auth-card-content {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;

    width: 100%;
}

.wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;

    width: 100%;

    margin-top: 0.5rem;
}

.titles-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.titles-content h1,
h2 {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 600;
}

.titles-content h2 {
    font-weight: 400;

    margin-top: 0.375rem;
    margin-bottom: 1rem;
}

.welcome-text {
    text-align: center;

    color: #444b62;
}

#terms-and-policy-container p {
    color: #444b62;
    font-size: 0.875rem;
    line-height: 1.312rem;
}

#terms-and-policy-container p a {
    color: #4d77f3;
    font-size: 0.875rem;
    line-height: 1.312rem;
}

#have-an-account-container, #correct-platform {
    color: #444b62;
    font-size: 0.875rem;
}

#have-an-account-container a, #correct-platform a {
    color: #4d77f3;
    font-size: 0.875rem;
    font-weight: 500;
}

.auth-card-content + #personal-step h1 {
    font-size: 1rem;
    font-weight: 600;
    color: #4d77f3;
}

.auth-card-content + #personal-step form {
    margin-top: 2rem;
}

.gender-container {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.gender-container label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;

    flex: 1;

    padding: 0 0.625rem;

    position: relative;

    height: 2.75rem;

    border: 1.5px solid #d2d5e0;
    border-radius: 0.625rem;

    background-color: white;

    cursor: pointer;

    color: #8e96b1;
    font-size: 0.875rem;
    font-weight: 500;

    transition:
            color 0.3s ease,
            border-color 0.3s ease,
            background-color 0.3s ease,
            box-shadow 0.3s ease;
}

.gender-container label:has(input[type="radio"]:checked) {
    color: #4d77f3;

    border-color: #4d77f3;

    background-color: #f4f7ff;
}

.gender-container label svg path {
    transition:
            stroke 0.3s ease,
            fill 0.3s ease;
}

.gender-container label:has(input[type="radio"]:checked) svg[data-type="fill-icon"] path {
    fill: #4d77f3;
}

.gender-container label:has(input[type="radio"]:checked) svg[data-type="stroke-icon"] path {
    stroke: #4d77f3;
}

.gender-container label:not(:has(input[type="radio"]:checked)):hover {
    background-color: #f8f9fb;
}

.gender-container label:not(:has(input[type="radio"]:checked)):focus-within {
    outline: none;
    border-color: #4d77f3;

    box-shadow: 0px 0px 0px 4px rgba(235, 240, 254, 1);
}

.gender-container input[type="radio"] {
    all: unset;
    position: absolute;
    inset: 0;
    cursor: pointer;
}

#date-of-birth {
    display: flex;
    flex-direction: column;

    position: relative;
}

#date-of-birth #selects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

#how-did-you-know-content {
    position: relative;
}

#password-step h1 {
    color: #4d77f3;
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 600;
}

#location-step h1 {
    color: #4d77f3;
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 600;
}

#location-step #localization-inputs-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;

    width: 100%;

    margin-top: 0.5rem;
}

#location-step button {
    width: 100%;
}

.timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.625rem;

    width: 100%;
    height: 1.375rem;

    padding: 0.25rem;

    position: relative;

    margin-bottom: 2rem;
}

.timeline-step {
    width: 0.875rem;
    height: 0.875rem;

    border: 1.5px solid #d2d5e0;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0);

    z-index: 2;

    cursor: pointer;

    transition: all 0.3s ease;
}

.timeline-separator {
    flex: 1;

    height: 2px;

    background-color: #d2d5e0;

    border-radius: 100px;

    transition: background-color 0.3s ease;
}

.timeline-separator.complete {
    background-color: #4d77f3;
}

.timeline-separator:last-of-type {
    display: none;
}

.timeline-step.current {
    border-color: #4d77f3;
    background: #ebf0fe;
}

.timeline-step.complete {
    background: #4d77f3;

    border: 4px solid #d7e1fc;

    box-sizing: content-box;
}

.timeline-step.complete:hover {
    transform: scale(1.2);
}

.timeline-step.focus {
    transform: scale(1.2);
}

.step {
    display: none;
}

.step.active {
    display: flex;
}

.hidden {
    display: none;
}

#personal-step h1,
#location-step h1,
#acculturation-step h1,
#additionalQuestions-step h1 {
    color: #4d77f3;
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 600;

    text-align: center;
}

.custom-input-wrapper {
    position: relative;
}

#phone-number-field {
    display: flex;
    align-items: center;

    width: 100%;
    height: 2.75rem;

    border: 1px solid #d2d5e0;
    border-radius: 0.625rem;

    overflow: hidden;

    transition:
            border-color 0.3s ease,
            box-shadow 0.3s ease;
}

#phone-number-field #country-code {
    display: flex;
    align-items: center;
    flex-shrink: 0;

    height: 100%;
    padding: 0 0.875rem;

    border-right: 1px solid #d2d5e0;

    color: #636e8f;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
}

#phone-number-field input {
    width: 100%;
    height: 100%;
    border: none;

    padding: 0 0.875rem;

    color: #444b62;
    font-size: 0.875rem;
    line-height: 1.25rem;

    box-shadow: none;

    transition: background-color 0.3s ease;
}

#phone-number-field input::placeholder {
    color: #8e96b1;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

#phone-number-field input:focus {
    outline: none;
}

#phone-number-field input:hover {
    background-color: #F8F9FB;
}

#phone-number-field:focus-within {
    outline: none;
    border-color: #4d77f3;

    box-shadow: 0px 0px 0px 4px rgba(235, 240, 254, 1);
}

@media (max-width: 37.5rem) {
    #welcome-step .titles-content h1,
    h2 {
        font-size: 1.25rem;
        line-height: 1.875rem;
    }

    #welcome-step .titles-content h2 {
        margin-top: 0;
    }

    #welcome-step .titles-content .welcome-text {
        display: flex;
        flex-direction: column;
    }

    #terms-error {
        bottom: -1.9rem;
    }

    #welcome-continue-btn {
        margin-top: 1rem;
    }

    #personal-step h1,
    #location-step h1,
    #acculturation-step h1,
    #additionalQuestions-step h1,
    #password-step h1 {
        text-align: center;
    }
}

.step-hidden {
    display: none;
}

@media(max-width: 395px) {
    #name-error {
        bottom: -1.85rem;
        line-height: 0.9rem;
    }
}