@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,100,200,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

:root{
    --Marine-blue: hsl(213, 96%, 18%);
    --Purplish-blue: hsl(243, 100%, 62%);
    --Step-blue: #a9e8f7;
    --Pastel-blue: hsl(228, 100%, 84%);
    --Light-blue: hsl(206, 60%, 90%);
    --Strawberry-red: hsl(354, 84%, 57%);
    --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%);
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Ubuntu",'Arial', sans-serif;
}

body{
    height: 100vh;
}

.principal__container{
    width: 100%;
    height: 100vh;
    background-color: var(--Light-blue);
}

.step__indicator{
    width: 100%;
    height: 170px;
    background-image: url(/assets/images/bg-sidebar-mobile.svg);
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: space-evenly;
    padding: 35px 85px;
}

.step__indicator__union{
    display: flex;
    flex-direction: row;   
    
}

.step__indicator__union__column{
    display: none;
    flex-direction: column;
    margin-left: 15px;
    margin-bottom: 5px;
}

.step__indicator__paragraph{
    color: var(--Light-gray);
    font-family:'Arial', sans-serif;
    font-weight: 100;
    padding-bottom: 3px;
    font-size: 12px;
}

.step__indicator__paragraph__name{
    color: white;
    font-weight: bold;
    font-size: 16px;
    font-family: 'Arial', sans-serif;
}

.step{
    width: 30px;
    height: 30px;
    background-color: var(--Purplish-blue);
    border: 1px solid white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--White);
}

.step.active{
    background-color: var(--Step-blue);
    color: var(--Marine-blue);
    border-color: var(--Step-blue);
}

.container__form{
    width: 355px;
    height: 430px;
    position: absolute;
    top: 98px;
    left: 50%;
    right: 50%;
    transform: translate(-50%);
    z-index: 1;
    border-radius: 10px;
    background-color: rgb(255, 255, 255);
    padding: 20px;
}

.form__flex{
    margin-bottom: 3px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.error__message{
    display: none;
    font-weight: bold;
    font-size: 13px;
    color: var(--Strawberry-red);
}

form{
    display: flex;
    flex-direction: column;
}

label{
    margin-bottom: 5px;
    font-weight: 400;
    color: var(--Marine-blue);
}

input{
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid rgb(184, 184, 184);
    border-radius: 5px;
    font-size: 1em;
}

.container__form__title {
    padding: 8px;
    margin-bottom: 3px; 
    margin-top: 5px;
    color: var(--Marine-blue);

}

.container__form__paragraph{
    padding: 6px;
    font-size: 18px;
    margin-bottom: 20px; 
    color: var(--Cool-gray);
}

.nextStep__step1{
    width: 96px;
    height: 40px;
    border-radius: 5px;
    border: none;
    margin-right: 20px;
    margin-top: 5px;
    color: var(--White);
    background-color: var(--Marine-blue);
    cursor: pointer;
    position: absolute;
    top: 470px;
    left: 260px;
    font-size: 16px;
}

/*--------Second Container Form-----*/

/* -----Second Section --Active----- */
.step2.second__section__active{
    height: 1px;
    display: flex;
    padding: 20px;
}

#step2.container__form{
    height: 520px;
}

.container__flex{
    display: flex;
    justify-content: space-around;
    height: 350px;
}

.container__form__second__section{
    display: flex; 
}

/* End of Second Section Active */
.plan-option{
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border: 1px solid var(--White);
    border-radius: 5px;
    padding: 10px;
    margin: 10px 0px 0px 0px;
    cursor: pointer;
    border: 1px solid var(--Cool-gray);
}

.plan-option.selected{
    border-color: var(--Purplish-blue);
}

.plan-option input{
    display: none;
}

.plan-option label{
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
}
.plan-name{
    color: var(--Marine-blue);
    font-weight: 700;
}

.plan-details{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    margin-left: 12px;
}

.plan-price{
    color: var(--Cool-gray);
}

.plan-price-yearly, .plan-promo-yearly{
    display: none;
}

.yearly .plan-price-monthly{
    display: none;
}

.yearly .plan-promo-yearly, .yearly .plan-price-yearly, .yearly .addon-promo{
    display: inline;
}

.addon-promo{
    display: none;
}

.yearly-addon .addon-price{
    display: none;
}

.yearly-addon .addon-promo{
    display: inline;
}

.billing-toggle{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px 15px 20px 10px;
    
}

.billing-toggle span{
    margin: 0 10px;
    font-weight: bold;
    color: #1f2b56;
}

.switch{
    position: relative;
    display: inline-block;
    width: 54px;
    height: 20px;
    top: 5px;
    
}

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

.slider{
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1f2b56;
    border-radius: 20px;
    transition: .4s;
}

.slider::before{
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: var(--White);
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider{
    background-color: var(--Marine-blue);
}

input:checked + .slider:before{
    transform: translateX(14px);
}

.nextStep__step2{
    width: 96px;
    height: 40px;
    border-radius: 5px;
    border: none;
    margin-right: 20px;
    margin-top: 5px;
    color: var(--White);
    background-color: var(--Marine-blue);
    cursor: pointer;
    position: absolute;
    top: 550px;
    left: 240px;
    font-size: 16px;
}

.go__back__step2{
    width: 50px;
    position: absolute;
    top: 570px;
    right: 290px;
    background-color: var(--Light-blue);
    color: var(--Cool-gray); 
    cursor: pointer;  
    border: none;
}

/* -----Third Section Form--------*/

.addon__option__square{
    width: 19px;
    height: 19px;
    margin-top: 12px;
}

.addon-option{
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    
}

.addon-option.selected{
    border-color: var(--Purplish-blue);
}

.addon-option input[type="checkbox"]{
    margin-right: 10px;
}

.addon-option .addon-details{
    display: flex;
    flex-direction: row;
}

.addon-option .addon-name{
    font-weight: bold;
}

.addon-option .addon-desc{
    font-size: 13px;
}

.addon-price{
    font-size: 14px;
    justify-content: flex-end;
    color: var(--Purplish-blue);
}
.addon-promo{
    font-size: 14px;
    justify-content: flex-end;
    color: var(--Purplish-blue);
}

.margin__right{
    margin-right: 35px;
}

.nextStep__step3{
    width: 96px;
    height: 40px;
    border-radius: 5px;
    border: none;
    margin-right: 20px;
    margin-top: 5px;
    color: var(--White);
    background-color: var(--Marine-blue);
    cursor: pointer;
    position: absolute;
    top: 500px;
    left: 240px;
    font-size: 16px;
}

.go__back__step3{
    width: 50px;
    position: absolute;
    border: none;
    background-color: var(--Light-blue);
    color: var(--Cool-gray); 
    top: 520px;
    right: 290px;
    cursor: pointer;
}

/* ------Fourth Section Form-------  */
.plan-summary{
    width: 320px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    
}

.info{
    display: flex;
    flex-direction: column;
}

.change-plan{
    background-color: var(--White);
    text-align: left;
    font-size: 16px;
    border: none;
    color: var(--Cool-gray);
    cursor: pointer;
    text-decoration: underline;
}

.plan-summary-color{
    color: var(--Marine-blue);

}

.color-gray{
    color: var(--Cool-gray);
    font-size: 15px;
    font-weight: 300;
}

.addon-summary{
    width: 320px;
    height: 6px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.total-summary{
    width: 320px;
    height: 70px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-top: 20px;
}
.color-purple{
    color: var(--Purplish-blue);
    font-weight: 700;
}

.go__back__step4{
    width: 50px;
    position: absolute; 
    border: none;
    background-color: var(--Light-blue);
    color: var(--Cool-gray); 
    top: 500px;
    right: 290px; 
    cursor: pointer;
}

.nextStep__step4{
    width: 96px;
    height: 40px;
    border-radius: 5px;
    border: none;
    margin-right: 20px;
    margin-top: 5px;
    color: var(--White);
    background-color: var(--Purplish-blue);
    cursor: pointer;
    position: absolute;
    top: 500px;
    left: 240px;
    font-size: 16px;
}

/*----------Fifth Section------------*/
.thank-you{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 1px;
}

.thank-you__img{
    width: 60px;
    height: 60px;
    margin-top: 50px;
}

.thank-you__paragraph{
    font-size: 16px;
    line-height: 20px;
    color: var(--Cool-gray);
}

.line-break{
    display: block;
}

/*-------bottom__section-------------*/

.bottom__section{
    width: 375px;
    height: 80px;
    padding: 15px;
    margin-top: 80px;
    display: flex;
    justify-content: flex-end;
}

/*---------------Media Queries--------------*/
@media screen and (min-width: 900px){

    /* Seccion numero 1*/
    body{
        background-color: var(--Light-blue);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .principal__container{
        width: 860px;
        height: 540px;
        border-radius: 10px;
        position: relative;
        background-color: var(--White);
    }
    .step__indicator{
        margin: 10px 10px;
        display: flex;
        flex-direction: column;
        justify-content:flex-start;
        align-items: flex-start;
        gap: 10px;
        background-image: url(/assets/images/bg-sidebar-desktop.svg);
        width: 248px;
        height: 518px;
        border-radius: 10px;
        padding: 40px 0px 0px 40px;
        background-repeat: no-repeat;
    }
    .container__form{
        z-index: 0;
        position: absolute;
        top: 20px;
        left: 280px;
        width: 540px;
        height: 400px;
    }
    /* Step 2 */
    #step2.container__form{
        height: 400px;
    }
    .go__back__step2{
        background-color: var(--White);
    }
    .container__flex{
        height: 250px;
    }
    .container__form__second__section{
        width: 848px;
        height: 200px;
        display: flex;
        flex-direction: row;
    }
    .container__form__second__section:last-child{
        flex-direction: column;
    }
    .container__form__paragraph{
        font-size: 17px;
    }
    .container__form__second__section__union{
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        margin-bottom: 30px;
        gap: 30px;
    }
    /* Step 3 */
    .go__back__step3{
        background-color: var(--White);
    }
    .billing-toggle{
        margin: 0px;
        height: 500px;
        background-color: var(--Light-blue);
        border-radius: 5px;
    }
    .step__indicator__union__column{
        display: flex;
    }
    .plan-option{
        width: 150px;
        height: 160px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
        padding: 0;
    }
    .plan-details{
        flex-direction: column;
        justify-content: space-evenly;
        align-items: flex-start;
        margin-bottom: 8px;
    }
    .plan-option label{
        flex-direction: column;
        align-items: flex-start;
    }
    .img__margin{
        margin: 10px 0px 0px 10px;
    }
    .nextStep__step1, .nextStep__step2, .nextStep__step3, .nextStep__step4{
        position: absolute;
        top: 445px;
        left: 400px;
        margin: 5px 0px 0px 15px;
    }
    .go__back__step2, .go__back__step3, .go__back__step4{
        position: absolute;
        top: 465px;
        left: 30px;
    }
    /*  Step 4   */


    /* Plan Summary */
    .go__back__step4{
        background-color: var(--White);
    }
    .plan-summary, .total-summary, .addon-summary{
        width: 500px;
        
    }
    /* Final Step */
    .thank-you{
        position: absolute;
        left: 80px;
        top: 60px;
        margin-right: 60px;
        
    }
    .thank-you__paragraph{
        font-size: 16px;
        line-height: 20px;
        color: var(--Cool-gray);
    }
    .line-break{
        display:inline
    }
}

@media (min-width: 900px){

    .principal__container{
        position: relative;
    }

    .container__form{
        top: 10%;
        left: 65%;
    }

    .nextStep__step1, .nextStep__step2, .nextStep__step3, .nextStep__step4{
        position: absolute;
        top: 99%;
    }

    .go__back__step2, .go__back__step3, .go__back__step4{
        position: absolute;
        top: 104%;
    }

}


.attribution { font-size: 11px; text-align: center; }
.attribution a { color: hsl(228, 45%, 44%); }