@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

.pricing-sec {
    padding: 4rem 4rem;
    padding-top: 8rem;
    max-width: unset;
    margin-inline: unset;
    font-family: "DM Sans", sans-serif;
}

.pricing-top {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-title {
    font-size: 48px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 16px;
    font-family: inherit;
}

.pricing-msg {
    font-size: 1em;
    font-family: inherit;
}

.period-ctn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* The switch - the box around the slider */
.container {
    width: 51px;
    height: 31px;
    position: relative;
}

/* Hide default HTML checkbox */
.checkbox {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.switch {
    width: 100%;
    height: 100%;
    display: block;
    background-color: #E0EFFF;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease-out;
}

/* The slider */
.slider {
    width: 26px;
    height: 26px;
    position: absolute;
    left: calc(50% - 26px/2 - 10px);
    top: calc(50% - 26px/2);
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.15), 0px 3px 1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease-out;
    cursor: pointer;
}

.checkbox:checked+.switch {
    background-color: #0077FF;
}

.checkbox:checked+.switch .slider {
    left: calc(50% - 26px/2 + 10px);
    top: calc(50% - 26px/2);
}

/* Pricing Cards Layout */
.pricing-cards {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    flex-wrap: wrap;
}

.pricing-card {
    flex: 1 1 calc(33.333% - 1.5rem);
    max-width: 350px;
    min-width: 280px;
    background-color: white;
    border: 1px solid white;
    border-radius: 10px;
    box-shadow: 0px 10px 22px 0px #2D4D6C26;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: 0.6s ease-in-out;
    cursor: pointer;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #9bcaff4b, transparent);
    border-radius: 10px;
    transition: 0.3s ease-in-out;
}

@keyframes sweep {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.pricing-card:hover::before {
    animation: sweep 2s ease-in-out infinite;
}

.pricing-card:hover {
    border-color: #0077FF;
    border-style: dashed;
    transform: scale(2);
}

/* Card Header */
.card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-name {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    background-color: #E0EFFF;
    padding: 0.5rem 1rem;
    width: fit-content;
    margin-inline: auto;
    border-radius: 8px;
}

.price-section {
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: inherit;
}

.price-period {
    font-size: 0.9em;
    color: var(--gray-neutral);
}

/* Card Features */
.card-features {
    flex-grow: 1;
    margin-bottom: 2rem;
}

.feature-limit {
    font-size: 0.85em;
    color: var(--gray-neutral);
    margin-bottom: 1.2rem;
    line-height: 1.4;
}

.feature-with-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
    font-size: 0.85em;
    line-height: 1.4;
}

.check-icon {
    color: #22c55e;
    font-weight: bold;
    font-size: 1em;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card Button */
.card-btn {
    width: fit-content;
    margin-inline: auto;
}

/* Responsive Design */
/* Keep 3 cards side by side until 900px */
@media (max-width: 900px) and (min-width: 625px) {
    .pricing-sec {
        padding: 3rem 2rem;
        padding-top: 8rem;
    }

    .pricing-cards {
        gap: 1.5rem;
    }

    .pricing-card {
        flex: 1 1 calc(50% - 0.75rem);
        min-width: calc(50% - 0.75rem);
    }

    /* Center the third card */
    .price-card-three {
        flex: 1 1 calc(50% - 0.75rem);
        margin: 0 auto;
        max-width: calc(50% - 0.75rem);
    }
}

/* Mobile - All cards 100% width */
@media (max-width: 625px) {
    .pricing-sec {
        padding: 6rem 1rem;
        padding-top: 8rem;
    }

    .pricing-cards {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .pricing-card,
    .price-card-three {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 100%;
        margin: 0;
    }
}