* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    min-height: 100vh;
    background-color: var(--Light-blue);
    justify-content: center;
    align-items: center;
}

:root {
    --Marine-blue: hsl(213, 96%, 18%);
    --Purplish-blue: hsl(243, 100%, 62%);
    --Pastel-blue: hsl(228, 100%, 84%);
    --Light-blue: hsl(206, 94%, 87%);
    --Strawberry-red: hsl(354, 84%, 57%);
    /*Neutral*/
    --Cool-gray: hsl(231, 11%, 63%);
    --Light-gray: hsl(229, 24%, 87%);
    --Magnolia: hsl(217, 100%, 97%);
    --Alabaster: hsl(231, 100%, 99%);
    --White: hsl(0, 0%, 100%);
}

@font-face {
    font-family: Head;
    src: url('Ubuntu-Bold.ttf');
}

@font-face {
    font-family: Regular;
    src: url('Ubuntu-Regular.ttf');
}

@font-face {
    font-family: semiBold;
    src: url('Ubuntu-Medium.ttf');
}

.card {
    display: flex;
    height: 508px;
    width: 820px;
    background-color: var(--White);
    padding: 5px;
    border-radius: 10px;
    gap: 100px;
}

.first-card {
    background-image: url('bg-sidebar-desktop.svg');
    background-repeat: no-repeat;
    width: 236.4px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    padding-left: 30px;
    padding-top: 20px;
}

.step-1, .step-2, .step-3, .step-4 {
    display: flex;
    margin-bottom: 30px;
    cursor: pointer; 
    gap: 10px;
}

button {
    background-color: transparent;
    border: 1px solid var(--Alabaster);
    padding: 8px 13px;
    border-radius: 50px;
    cursor: pointer;
}

.step {
    font: 0.8rem Regular;
    color: var(--Cool-gray);
}

.description {
    font: 0.8rem semiBold;
    color: var(--White);
    margin-top: 5px;
}

.step-1 button {
    background-color: var(--Light-blue);
    border: 1px solid var(--Light-blue);
}

.second-card {
    padding-top: 50px;
    color: var(--Marine-blue);
}

form h2 {
    font: 1.5rem Head;
}

form .expression{
    font: 0.8rem semiBold;
    padding-block: 10px;
    opacity: 0.4;
}

form .label {
    font: 0.8rem semiBold;
    margin-block: 15px 5px;
}

form {
    position: relative;
    height: 100%;
}

form .each-input input{
    line-height: 1.5rem;
    height: 40px;
    width: 100%;
    border-radius: 5px;
    border: 1px solid var(--Marine-blue);
    outline: none;
    font: 0.9rem Regular;
    padding: 5px;
}

form .each-input input:hover {
    cursor: pointer;
}

form .each-input input:focus {
    cursor: text;
}

form .button{
    width: 100%;
    position: absolute;
    top: 80%;
    left: 100%;
}

form .button button{
    background-color: var(--Marine-blue);
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font: 0.9rem semiBold;
    color: var(--White);
    padding: 8px 16px;
}

.validate {
    display: flex;
    justify-content: space-between;
}

.empty {
    margin-block: 15px 5px;
    color: var(--Strawberry-red);
    font: 0.7rem Head;
    display: none;
}

#phoneNumber.active{
    border: 1px solid var(--Strawberry-red);
}

@media (max-width: 814px) {
    .card{
        gap: 80px;
        width: 100%;
        height: 100vh;
    }

    .first-card{
        background-size: cover;
    }
}

@media (max-width: 814px) {
    .card{
        flex-direction: column;
        gap: 0;
        background-color: transparent;
        padding: 0;
        max-height: 100vh;
    }

    .first-card{
        width: 100%;
        background-image: url('bg-sidebar-mobile.svg');
        flex-direction: row;
        justify-content: center;
        gap: 40px;
        min-height: 40vh;
    }

    .each-step{
        display: none;
    }

    .step-1 button, .step-2 button, .step-3 button, .step-4 button{
        width: 35px;
        height: 34px;
    }

    .second-card{
        position: absolute;
        background-color: white;
        padding: 30px 20px;
        border-radius: 10px;
        top: 130px;
        left: 25%;
        right: 25%;
    }

    form .button{
        left: 70%;
        top: 115%;
    }
}

@media (max-width: 560px) {
    .second-card{
        width: 90%;
        left: 0;
        right: 0;
        margin-inline: auto;
    }
}
