.container {
    font-family: "Public sans", "Roboto", "Poppins", sans-serif;
    text-align: center;
    width: 95%;
    max-width: 1050px;
    /* max-width: 750px; */
    margin: 60px auto 20px auto;
}

.head {
    display: inline-block;
    position: relative;
    font-size: 28px;
    font-weight: 500;
}
.head::after {
    position: absolute;
    content: "";
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    height: 4px;
    width: 90%;
    background: var(--gradient);
    border-radius: 3px;
}

.plans {
    margin: 50px 0px 20px 0px;
    display: grid;
    /* grid-template-columns: repeat(3, 1fr); */
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.plan {
    position: relative;
    border-radius: 7px;
    box-shadow: 0px 0px 10px #333;
    background: #f1f1f1;
    color: #000;
    text-align: left;
    padding-bottom: 30px;
    border-bottom: 8px solid #a1a6ab;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.header {
    padding: 20px 0px;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    background: #e7e6e5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.plan_icon_container {
    height: 36px;
    width: 36px;
}
.plan_icon_container img {
    width: 100%;
    height: 100%;
}
.plan_name {
    text-transform: capitalize;
    margin-left: 10px;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
}

.features {
    margin: 20px 0px;
    list-style: none;
}
.icon_container {
    height: 15px;
    width: 15px;
}
.feature {
    padding: 0px 35px;
    margin: 10px 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.feature_text {
    width: calc(100% - 30px);
    font-weight: 500;
    text-transform: capitalize;
    font-size: 16px;
    line-height: 1.4rem;
}

.pricing {
    /* margin-top: 50px; */
    text-align: center;
}
.prices {
    margin: 15px 0px;
}
.before {
    color: #555;
    text-decoration: line-through;
    font-size: 14px;
}
.now {
    /* margin: 4px 0px; */
    font-size: 18px;
    font-weight: 800;
}
.other {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0px;
    opacity: 0;
    pointer-events: none;
}
.other.display {
    opacity: 1;
    pointer-events: all;
}
.save {
    margin-right: 8px;
    background: var(--gradient);
    color: #fff;
    padding: 4px;
    border-radius: 4px;
    font-size: 12px;
}
.try_plan {
    position: relative;
    /* background: #fff; */
    /* box-shadow: 0px 0px 10px #cfcfcf; */
    background: var(--gradient);
    outline: none;
    border: none;
    padding: 15px 0px;
    /* color: #555; */
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    width: 80%;
    border-radius: 8px;
    /* border-bottom: 5px solid var(--celebrityschool-purple); */
    margin-top: 20px;
    cursor: pointer;
}

.plan.popular {
    position: relative;
    color: #fff;
    background: #0097c7;
    border-bottom: 8px solid #007ca3;
}
.popular_text {
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    position: absolute;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    background: #007ca3;
    width: 100%;
    top: -40px;
    left: 0px;
}
.popular_text p {
    position: relative;
}
.popular_text p::after {
    position: absolute;
    content: "";
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    width: 90%;
    background: #fff;
    border-radius: 3px;
}

.plan.popular .header {
    background: #007ca3;
}
.plan.popular .try_plan {
    /* background: #e58f2a;
    box-shadow: none;
    border-bottom: 5px solid #cd8026;
    color: #fff; */
}
.plan.popular .before {
    color: #fff;
    opacity: 0.8;
}
.month_text {
    font-weight: 700;
    font-size: 14px;
    text-transform: none;
}

.try_plan.enrolled {
    position: relative;
    cursor: not-allowed;
}
.try_plan.enrolled::after {
    position: absolute;
    content: "";
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.7);
}
.apply_now_btn {
    font-family: "Public sans", sans-serif;
    background-color: rgb(154, 50, 61);
    color: #fff;
    border: none;
    padding: 20px;
    margin: 20px 0px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 20%);
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}
.apply_now_btn:hover {
    opacity: 0.8;
}
.apply_now_button_head {
    font-size: 36px;
    margin-left: 10px;
    font-weight: 600;
}
.apply_now_start {
    display: flex;
    justify-content: center;
    align-items: center;
}
.month_price {
    font-size: 16px;
    font-weight: 600;
}

@media screen and (max-width: 1200px) {
    .apply_now_button_head {
        font-size: 28px;
    }
}

@media screen and (max-width: 770px) {
    .plans {
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 30px 0px 0px 0px;
    }
    .plan {
        margin: 10px 0px;
    }
    .plan.popular {
        margin-top: 45px;
    }
    .other {
        display: none;
    }
    .other.display {
        display: flex;
    }
    .try_plan {
        margin-top: 10px;
    }
    .container {
        margin: 20px auto;
    }
}

@media screen and (max-width: 550px) {
    .apply_now_button_head {
        font-size: 18px;
    }
}

@media screen and (max-width: 420px) {
    .popular_text {
        height: 50px;
        top: -40px;
        font-size: 14px;
    }
    .header {
        padding: 20px;
    }
    .plan_name {
        font-size: 20px;
    }
    .feature {
        padding: 0px 20px;
    }
    .feature_text {
        font-size: 14px;
        line-height: 1.4rem;
    }
    .before {
        font-size: 12px;
    }
    .now {
        font-size: 18px;
    }
    .try_plan {
        font-size: 16px;
    }
}
