@use "../abstracts" as vars;


.pricing-section {
    background: linear-gradient(0deg, #FFFFFF 0%, #EFF3FA 100%);

}

.pricing-card {
    position: relative;
    padding: vars.rem(25) vars.rem(34);
    border: 2px solid #0073E6;
    border-radius: vars.rem(15);
    background: #fff;
    transition: all 0.3s ease;
    margin-bottom: vars.rem(30);
    overflow: hidden;

    @media (max-width: 1399px) {
        padding: vars.rem(20) vars.rem(20);
    }

    &__bg {
        position: absolute;
        top: 0;
        right: 0;
        z-index: -1;
    }

    &--dark {
        background-color: #15141D;
        position: relative;
        z-index: 2;
        background-size: cover;
        border-color: #15141D;
        color: #fff;




        .pricing-card__title,
        .pricing-card__text {
            color: #15141D;
        }

        .pricing-card__list-item {
            color: #fff;
        }

        .pricing-card__package {
            background-color: #fff;
            color: #15141D;
        }

        .pricing-card__price-decimal,
        .pricing-card__price-sub {
            color: rgba(255, 255, 255, 0.7);
        }
    }

    &__badge {
        position: absolute;
        top: vars.rem(20);
        right: vars.rem(-40);
        background-color: vars.$footer-accent;
        color: #fff;
        padding: vars.rem(5) vars.rem(50);
        font-family: vars.$font-family-base;
        font-weight: 700;
        font-size: clamp(12px, 0.5vw + 0.75rem, 14px);
        text-transform: uppercase;
        transform: rotate(45deg);
        z-index: 10;
        pointer-events: none;
    }

    &__header {
        display: flex;
        align-items: flex-start;
        margin-bottom: vars.rem(30);
    }

    &__price-currency {
        font-size: clamp(18px, 2vw + 0.5rem, 24px);
        font-weight: 700;
        margin-top: vars.rem(10);
        margin-right: vars.rem(5);
    }

    &__price-amount {
        font-size: clamp(32px, 5vw + 1rem, 60px);
        font-weight: 800;
        line-height: 1;
    }

    &__price-details {
        margin-left: vars.rem(10);
        margin-top: vars.rem(10);

        @media (max-width: 575px) {
            margin-top: vars.rem(5);
            margin-left: vars.rem(5);
        }
    }

    &__price-decimal {
        display: block;
        font-size: clamp(15px, 1vw + 1rem, 18px);
        font-weight: 700;
        color: #6D6C80;
    }

    &__price-sub {
        display: block;
        font-size: clamp(12px, 0.5vw + 0.75rem, 14px);
        color: #6D6C80;
    }

    &__package {
        background-color: #F4F6F9;
        padding: vars.rem(30);
        border-radius: vars.rem(10);
        margin-bottom: vars.rem(30);

        @media (max-width: 1399px) {
            padding: vars.rem(20) vars.rem(20);
        }
    }

    &__title {
        font-size: clamp(16px, 1vw + 1rem, 22px);
        font-weight: 700;
        margin-bottom: vars.rem(10);
        color: vars.$color-heading;

        @media (max-width: 1399px) {
            font-size: clamp(17px, 1vw + 1rem, 18px);
        }
    }

    &__text {
        font-size: clamp(12px, 0.5vw + 0.75rem, 14px);
        line-height: 1.6;
        color: #6D6C80;
        margin: 0;
    }

    &__list {
        list-style: none;
        padding: 0;
    }

    &__list-item {
        font-size: clamp(14px, 0.5vw + 0.75rem, 16px);
        color: #6D6C80;
        margin-bottom: vars.rem(15);
        display: flex;
        align-items: center;

        i {
            color: vars.$footer-accent;
            margin-right: vars.rem(15);
            font-size: clamp(12px, 0.5vw + 0.75rem, 14px);
        }

        &:last-child {
            margin-bottom: 0;
        }
    }

    &__button-wrap {
        position: relative;
        z-index: 2;
        margin-top: vars.rem(20);

        .btn-shape {
            position: absolute;
            top: 0;
            right: 0;
            z-index: 1;
        }
    }

    &__btn {
        position: relative;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: vars.rem(20);
        background-color: #f1f3f7;
        border: 1px solid vars.$footer-accent;
        border-radius: vars.rem(50);
        text-decoration: none;
        color: #15141d;
        font-weight: 700;
        font-size: clamp(12px, 0.5vw + 0.75rem, 14px);
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;

        @media (max-width: 1399px) {
            padding: 15px 25px;
            font-size: 14px;
        }


        i {
            margin-left: vars.rem(10);
            transition: transform 0.3s ease;
        }

        &::after {
            content: "";
            position: absolute;
            bottom: -5px;
            right: -5px;
            width: vars.rem(65);
            height: vars.rem(50);
            background-color: #d1d5db;
            border-radius: 50% 0 0 50%;
            z-index: -1;
            opacity: 0.5;
            transition: background-color 0.3s ease;
        }

        &:hover {
            background-color: vars.$footer-accent;
            color: #fff;

            &::after {
                background-color: rgba(0, 0, 0, 0.1);
            }

            i {
                transform: translateX(5px);
            }
        }
    }

    &--dark+&__button-wrap &__btn {
        background-color: vars.$footer-accent;
        color: #fff;
        border: none;

        &::after {
            background-color: #000;
            opacity: 1;
            width: vars.rem(65);
            height: vars.rem(50);
            bottom: -20px;
            right: -10px;
            border-radius: 50% 50% 0 50%;
        }

        &:hover {
            background-color: #fff;
            color: vars.$footer-accent;
        }
    }
}