/* ===========================
   Pricing Table - c2oHR
=========================== */

.c2ohr-pricing-wrapper .pricing-table {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    margin: 2rem 0;
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    padding: 35px;
    border-radius: 15px;
}

/* Plan Card */
.c2ohr-pricing-wrapper .plan {
    background: #ffffff;
    border: 2px solid #F2F3F4;
    padding: 10px;
    border-radius: 12px;
    width: 300px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    align-self: flex-start;
    margin-top: 0;
}

.c2ohr-pricing-wrapper .plan:hover {
    transform: translateY(-5px);
}

.c2ohr-pricing-wrapper .plan.popular {
    border: 2px solid #2B6CB0;
    border-radius: 0px;
    position: relative;
    align-self: flex-start;
    margin-top: 0 !important;
    width: 300px;
}

/* Popular Badge - Floating Above Card */
.c2ohr-pricing-wrapper .plan.popular::before {
    content: "POPULAR";
    position: absolute;
    top: -41px;
    left: -2px;
    width: calc(100% + 4px);
    background: #2B6CB0;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 0;
    text-align: center;
    white-space: nowrap;
    z-index: 1;
    border-radius: 30px 30px 0 0;
}

/* Header */
.c2ohr-pricing-wrapper .header-background-color {
    background-color: #F2F3F4;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
}

.c2ohr-pricing-wrapper .header-background-color-popular {
    background-color: #DBECFA;
    border-radius: 12px;
    color: #000;
    padding: 1.5rem;
    text-align: left;
}

.c2ohr-pricing-wrapper .plan h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}

.c2ohr-pricing-wrapper .plan .price {
    font-size: 2rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.c2ohr-pricing-wrapper .plan .price small {
    font-size: 0.8rem;
    font-weight: normal;
}

.c2ohr-pricing-wrapper .plan .desc {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    line-height: 1.4;
    color: #626769;
}

/* Features List */
.c2ohr-pricing-wrapper .features {
    list-style: none;
    padding: 1rem 1.5rem;
    margin: 0;
    flex-grow: 1;
}

.c2ohr-pricing-wrapper .features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 16px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Blue Tick — Scoped */
.c2ohr-pricing-wrapper .features li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #007BFF;
    font-weight: bold;
}

/* Inactive Features */
.c2ohr-pricing-wrapper .features li.inactive {
    color: #ccc;
    text-decoration: line-through;
}

.c2ohr-pricing-wrapper .features li.inactive::before {
    content: "✖";
    color: #ccc;
}

/* Disabled/Not Included Features */
.c2ohr-pricing-wrapper .features li.disabled {
    color: #D7D7D7;
}

.c2ohr-pricing-wrapper .features li.disabled::before {
    content: "•";
    color: #D7D7D7;
    font-size: 1.5rem;
    line-height: 1;
}

/* CTA Buttons */
.c2ohr-pricing-wrapper .get-started,
.c2ohr-pricing-wrapper .get-started-normal {
    text-align: center;
    padding: 0.8rem;
    margin: 1rem;
    display: block;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.c2ohr-pricing-wrapper .get-started {
    background-color: #127AC5;
    color: white;
}

.c2ohr-pricing-wrapper .get-started:hover {
    background-color: #0a66c2;
}

.c2ohr-pricing-wrapper .get-started-normal {
    border: 2px solid #127AC5;
    color: #127AC5;
}

.c2ohr-pricing-wrapper .get-started-normal:hover {
    background-color: #f0f8ff;
}

/* Toggle Switch */
.c2ohr-pricing-wrapper .toggle-container {
    text-align: center;
    margin-bottom: 2rem;
}

.c2ohr-pricing-wrapper .toggle-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
}

.c2ohr-pricing-wrapper .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

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

.c2ohr-pricing-wrapper .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 26px;
}

.c2ohr-pricing-wrapper .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.c2ohr-pricing-wrapper input:checked+.slider {
    background-color: #0a66c2;
}

.c2ohr-pricing-wrapper input:checked+.slider:before {
    transform: translateX(24px);
}

/* =======================================
   Responsive Grid Adjustments
======================================= */

/* 4 cards above 1440px */
@media (min-width: 1440px) {
    .c2ohr-pricing-wrapper .pricing-table {
        justify-content: center;
    }

    .c2ohr-pricing-wrapper .plan {
        width: calc(25% - 30px);
    }
}

/* 3 cards between 1300–1439px */
@media (max-width: 1439px) and (min-width: 1300px) {
    .c2ohr-pricing-wrapper .plan {
        width: calc(33.33% - 30px);
    }
}

/* 2 cards below 1300px */
@media (max-width: 1299px) and (min-width: 768px) {
    .c2ohr-pricing-wrapper .plan {
        width: calc(50% - 30px);
    }
}

/* 1 card for mobile (center aligned) */
@media (max-width: 767px) {
    .c2ohr-pricing-wrapper .pricing-table {
        justify-content: center;
    }

    .c2ohr-pricing-wrapper .plan {
        width: 90%;
        max-width: 340px;
        margin: 0 auto;
    }
}

/* Hide broken images */
.c2ohr-pricing-wrapper .features li img {
    display: none;
}