:root {
    --primary-blue950: hsl(213, 96%, 18%);
    --primary-purple600: hsl(243, 100%, 62%);
    --primary-blue300: hsl(228, 100%, 84%);
    --primary-blue200: hsl(206, 94%, 87%);
    --primary-red500: hsl(354, 84%, 57%);

    --neutral-grey500: hsl(231, 11%, 63%);
    --neutral-purple200: hsl(229, 24%, 87%);
    --neutral-blue100: hsl(218, 100%, 97%);
    --neutral-blue50: hsl(231, 100%, 99%);
    --neutral-white: hsl(0, 100%, 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Ubuntu', sans-serif;
    background-color: var(--primary-blue200);
}

.container {
    width: 70%;
    height: 85vh;
    display: flex;
    padding: 1rem;
    background-color: var(--neutral-white);
    border-radius: 10px;
}

.sidebar {
    background-image: url(./assets/images/bg-sidebar-desktop.svg);
    background-size: cover;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    flex: 1;
    gap: 2.25rem;
    height: 100%;
}

.step1, .step2, .step3, .step4 {
    display: flex;
    width: 100%;
    gap: 0.5rem;
}

.step1-icon, .step2-icon, .step3-icon, .step4-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--neutral-white);
    color: var(--neutral-white);
}

.icon-colored {
    background-color: var(--primary-blue300);
    border: none;
    color: black;
}

.step1-text, .step2-text, .step3-text, .step4-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.step1-text  p, .step2-text p, .step3-text p, .step4-text p {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--primary-blue300);
}

.step1-text  h1, .step2-text h1, .step3-text h1, .step4-text h1 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--neutral-white);
}

form {
    flex: 4;
    padding: 3rem 4rem;
    position: relative;
}

.step1-form, .step2-form, .step3-form, .step4-form, .step5-form {
    visibility: hidden;
}

.step1-form {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.step2-form, .step3-form, .step4-form, .step5-form {
    width: 80%;
    height: 80%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    top: 10%;
    position: absolute;
    gap: 1rem;
}

.step1-form-title, .step2-form-title, .step3-form-title, .step4-form-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.step1-form-title h1, .step2-form-title h1, .step3-form-title h1, .step4-form-title h1 {
    font-size: 1.75rem;
    color: var(--primary-blue950);
}

.step1-form-title p, .step2-form-title p, .step3-form-title p, .step4-form-title p {
    font-size: 1rem;
    color: var(--neutral-grey500);
}

.section-nome, .section-email, .section-number {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.required {
    border: 1px solid var(--primary-red500) !important;
}

.required-1, .required-2, .required-3 {
    visibility: hidden;
    width: 100%;
    display: flex;
    justify-content: end;
    font-size: 0.75rem;
    position: absolute;
    bottom: 80%;
    color: var(--primary-red500);
}

.section1-form {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.section1-form label {
    font-size: 0.85rem;
    color: var(--primary-blue950);
}

.section1-form input {
    margin-bottom: 0.75rem;
    width: 100%;
    outline: none;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--neutral-grey500);
    border-radius: 5px;
    font-size: 0.75rem;
}

.section1-form input:focus {
    border-color: var(--primary-blue950);
}

.step1-form .index-page {
    justify-content: flex-end;
}

.step1-form .btn-next {
    width: 100px;
    height: 40px;
    border-radius: 5px;
    border: none;
    color: white;
    background-color: var(--primary-blue950);
}

.step2-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step2-form .plan-cards {
    width: 100%;
    flex: 3;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.plan-cards .plan1, .plan-cards .plan2, .plan-cards .plan3 {
    border: 1px solid var(--neutral-grey500);
    width: 100%;
    height: 100%;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.plan-cards .plan1:hover, .plan-cards .plan2:hover, .plan-cards .plan3:hover {
    border: 1px solid var(--primary-purple600);
}

.plan-cards .plan1 input[type="radio"], .plan-cards .plan2 input[type="radio"], .plan-cards .plan3 input[type="radio"] {
    display: none;
}

.plan1-text, .plan2-text, .plan3-text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: relative;
}

.plan-cards .plan1 img, .plan-cards .plan2 img, .plan-cards .plan3 img {
    width: 40px;
}

.plan-cards .plan1 h2, .plan-cards .plan2 h2, .plan-cards .plan3 h2 {
    font-size: 1rem;
    color: var(--primary-blue950);
}

.plan1 .plan1-text h3, .plan2 .plan2-text h3, .plan3 .plan3-text h3 {
    font-size: 0.75rem;
    color: var(--neutral-grey500);
    font-weight: 400;
}

.plan1 .plan1-text h4, .plan2 .plan2-text h4, .plan3 .plan3-text h4 {
    font-size: 0.75rem;
    color: var(--primary-blue950);
    font-weight: 400;
}

.monthly-yearly {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: var(--neutral-blue100);
    width: 100%;
}

.monthly-yearly p:first-of-type {
    color: var(--primary-blue950);
}

.monthly-yearly p:last-of-type {
    color: var(--neutral-grey500);
}

.switch-wrapper {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch-wrapper input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch {
    position: absolute;
    cursor: pointer;
    width: 100%;
    height: 100%;
    background-color: var(--primary-blue950);
    border-radius: 50px;
    top: 0;
    left: 0;
}

.switch:after {
    content: "";
    width: 12px;
    height: 12px;
    background-color: var(--neutral-white);   
    position: absolute;
    top: 4px;
    left: 4px;
    border-radius: 50%;
    transition: transform 0.3s linear;
}

.switch-wrapper input[type="checkbox"]:checked + .switch:after {
    transform: translateX(20px);
}

.index-page {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.index-page .back-btn {
    width: 100px;
    height: 40px;
    background-color: transparent;
    border: none;
    color: var(--neutral-grey500);
    font-weight: 600;
    cursor: pointer;
}

.index-page .back-btn:hover {
    color: var(--primary-blue950);
}

.index-page .btn-next, .index-page .btn-confirm {
    width: 100px;
    height: 40px;
    background-color: var(--primary-blue950);
    color: var(--neutral-white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.online-service, .larger-storage, .customizable {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--neutral-grey500);
    border-radius: 10px;
    padding: 0 1rem;
}

.online-service p, .larger-storage p, .customizable p {
    font-size: 0.75rem;
    color: var(--primary-purple600);
}

.group-service {
    display: flex;
    gap: 1rem;
}

.group-service .custom-checkbox {
    display: flex;
    gap: 0.75rem;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-checkbox .checkmark {
    width: 15px;
    height: 15px;
    border: 1px solid var(--neutral-grey500);
    border-radius: 2px;
    position: relative;
    top: 25%;
}

.custom-checkbox .checkmark::after {
    font-size: 0.55rem;
    content: "✔";
    color: white;
    position: relative;
    left: 20%;
    display: none;
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark::after {
    display: block;
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: var(--primary-purple600);
    border-color: var(--primary-purple600);
}

.custom-checkbox input[type="checkbox"]:checked 

.service-text, .storage-text, .customizable-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.service-text h2, .storage-text h2, .customizable-text h2 {
    font-size: 1rem;
    color: var(--primary-blue950);
}

.service-text h3, .storage-text h3, .customizable-text h3 {
    font-size: 0.75rem;
    color: var(--neutral-grey500);
    font-weight: 500;
}

.subscription {
    flex: 4;
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: var(--neutral-blue100);
    padding: 1.75rem;
}

.summary-plan {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--neutral-grey500);
    padding-bottom: 0.75rem;
}

.summary-plan div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.summary-plan div h2 {
    font-size: 1.125rem;
    color: var(--primary-blue950);
}

.summary-plan div button {
    width: 40%;
    background-color: transparent;
    border: 0;
    display: flex;
    text-decoration: underline;
    color: var(--neutral-grey500);
    font-size: 0.85rem;
    cursor: pointer;
}

.summary-addon {
    display: flex;
    justify-content: space-between;
    padding-top: 0.75rem;
}

.summary-addon p:first-of-type {
    color: var(--neutral-grey500);
    font-size: 0.85rem;
}

.summary-addon p:last-of-type {
    color: var(--primary-blue950);
    font-size: 0.85rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2.5rem;
}

.summary-total p:first-of-type {
    color: var(--neutral-grey500);
    font-size: 0.85rem;
}

.summary-total p:last-of-type {
    color: var(--primary-purple600);
    font-weight: bold;
    font-size: 1.25rem;
}

.step5-form {
    display: flex;
    width: 80%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.step5-form img {
    width: 15%;
}

.step5-form h1 {
    color: var(--primary-blue950);
}

.step5-form p {
    text-align: center;
    color: var(--neutral-grey500);
    width: 85%;
}

@media (max-width: 768px) {
    form {
        padding: 1.5rem 2.5rem;
    }

    .sidebar {
        border-radius: 10px;
    }

    .subscription {
        padding: 1.25rem;
    }

    .summary-plan div h2 {
        font-size: 0.9rem;
    }

    .summary-plan div button {
        font-size: 0.75rem;
    }

    .summary-plan strong {
        font-size: 0.85rem;
    }

    .summary-total p:first-of-type {
        font-size: 0.75rem;
    }

    .summary-total p:last-of-type {
        font-size: 1rem;
    }
}

@media (max-width: 500px) {
    body {
        display: flex;
        align-items: start;
    }

    .container {
        width: 100%;
        flex-direction: column;
        padding: 0;
        height: 60vh;
        background-color: transparent;
        align-items: center;
    }

    .sidebar {
        position: absolute;
        background-image: url(./assets/images/bg-sidebar-mobile.svg);
        z-index: -1;
        width: 100%;
        height: 15%;
        right: 0;
        top: 0;
        border-radius: 0;
        display: flex;
        flex-direction: row;
        gap: 0;
        justify-content: center;
        gap: 0.75rem;
    }

    .step1, .step2, .step3, .step4 {
        gap: 0;
        width: auto;
        height: 100%;
    }

    .step1-text, .step2-text, .step3-text, .step4-text {
        display: none;
    }

    form {
        width: 90%;
        background-color: var(--neutral-white);
        padding: 1.75rem 1.5rem;
        border-radius: 5px;
        margin-top: 25%;
    }

    .step1-form {
        width: 100%;
    }
    
    .step2-form, .step3-form, .step4-form, .step5-form {
        width: 80%;
    }

    .step1-form-title h1,
    .step2-form-title h1,
    .step3-form-title h1,
    .step4-form-title h1 {
        font-size: 1.5rem;
        color: var(--primary-blue950);
    }

    .step1-form-title p,
    .step2-form-title p,
    .step3-form-title p,
    .step4-form-title p {
        font-size: 0.75rem;
        color: var(--neutral-grey500);
    }

    .step1-form .index-page {
        position: fixed;
        background-color: var(--neutral-white);
        width: 100%;
        bottom: 0;
        right: 0;
        height: 8%;
        align-items: center;
        padding-right: 1rem;
    }

    .step2-form .index-page, .step3-form .index-page, .step4-form .index-page {
        position: fixed;
        bottom: 0;
        height: 8%;
        align-items: center;
        padding: 0 0.5rem;
        right: 0;
        background-color: var(--neutral-white);
        width: 100%;
    }

    .plan-cards {
        display: flex;
        flex-direction: column;
        height: 50%;
        gap: 0rem;
    }

    .plan-cards .plan1,
    .plan-cards .plan2,
    .plan-cards .plan3 {
        height: 32.5%;
        display: flex;
        justify-content: start;
        align-items: start;
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .plan-cards .plan1 img,
    .plan-cards .plan2 img,
    .plan-cards .plan3 img {
        width: 25px;
    }

    .plan-cards .plan1 h2,
    .plan-cards .plan2 h2,
    .plan-cards .plan3 h2 {
        font-size: 0.75rem;
    }

    .plan1 .plan1-text h3,
    .plan2 .plan2-text h3,
    .plan3 .plan3-text h3,
    .plan1 .plan1-text h4,
    .plan2 .plan2-text h4,
    .plan3 .plan3-text h4 {
        font-size: 0.55rem;
    }

    .monthly-yearly {
        font-size: 0.75rem;
    }

    .service-text h2, .storage-text h2, .customizable-text h2 {
        font-size: 0.75rem;
    }

    .service-text h3, .storage-text h3, .customizable-text h3 {
        font-size: 0.65rem;
    }

    .step5-form img {
        width: 25%;
    }

    .step5-form h1 {
        font-size: 1.5rem;
    }

    .step5-form p {
        width: 100%;
    }
}