/*----------------------------------------*/
/*  Pricing Comparison Table CSS
/*----------------------------------------*/

.pricing-comparison-table {
    margin-bottom: 60px;
}

.pricing-comparison-table .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pricing-comparison-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.pricing-comparison-table table thead th {
    background-color: var(--tp-common-white);
    border: none;
    padding: 0;
    vertical-align: top;
}

.pricing-comparison-table table thead th.feature-column {
    width: 25%;
    min-width: 180px;
    padding: 30px 20px;
    font-weight: 600;
    font-size: 16px;
    color: #62637D;
    border-bottom: 2px solid #F1F1F1;
}

.pricing-comparison-table table thead th.plan-column {
    width: auto;
    padding: 0;
    border: 1px solid #F1F1F1;
    border-bottom: 2px solid #F1F1F1;
    border-radius: 10px 10px 0 0;
    position: relative;
}

.pricing-comparison-table table thead th.plan-column.recommended {
    border: 2px solid var(--tp-common-sky);
    box-shadow: 0px 31px 39px rgba(32, 70, 94, 0.1);
    z-index: 2;
}

.pricing-comparison-table table thead th.plan-column.recommended .plan-header {
    background: linear-gradient(135deg, var(--tp-common-sky) 0%, #2196F3 100%);
}

.pricing-comparison-table table thead th.plan-column.recommended .plan-header .plan-title {
    color: var(--tp-common-white);
}

.pricing-comparison-table table tbody tr.price-row td {
    padding: 30px 20px;
    border-bottom: 2px solid #F1F1F1;
}

.pricing-comparison-table table tbody tr.price-row td.plan-column {
    border-left: 1px solid #F1F1F1;
    border-right: 1px solid #F1F1F1;
    text-align: center;
}

.pricing-comparison-table table tbody tr.price-row td.plan-column.recommended {
    border-left: 2px solid var(--tp-common-sky);
    border-right: 2px solid var(--tp-common-sky);
    background-color: rgba(33, 150, 243, 0.02);
}

.pricing-comparison-table table tbody tr.feature-row td {
    padding: 20px;
    border-bottom: 1px solid #F1F1F1;
    transition: background-color 0.3s ease;
}

.pricing-comparison-table table tbody tr.feature-row td.feature-name {
    font-weight: 500;
    color: #62637D;
}

.pricing-comparison-table table tbody tr.feature-row td.plan-column {
    border-left: 1px solid #F1F1F1;
    border-right: 1px solid #F1F1F1;
    text-align: center;
}

.pricing-comparison-table table tbody tr.feature-row td.plan-column.recommended {
    border-left: 2px solid var(--tp-common-sky);
    border-right: 2px solid var(--tp-common-sky);
    background-color: rgba(33, 150, 243, 0.02);
}

.pricing-comparison-table table tbody tr.feature-row:hover td {
    background-color: rgba(98, 99, 125, 0.03);
}

.pricing-comparison-table table tbody tr.feature-row td.merged-cell {
    background-color: rgba(98, 99, 125, 0.05);
    font-weight: 600;
    border-left: 1px solid #F1F1F1;
    border-right: 1px solid #F1F1F1;
}

.pricing-comparison-table table tbody tr.signup-row td {
    padding: 30px 20px;
    border-bottom: none;
}

.pricing-comparison-table table tbody tr.signup-row td.plan-column {
    border-left: 1px solid #F1F1F1;
    border-right: 1px solid #F1F1F1;
    border-bottom: 1px solid #F1F1F1;
    border-radius: 0 0 10px 10px;
    text-align: center;
}

.pricing-comparison-table table tbody tr.signup-row td.plan-column.recommended {
    border-left: 2px solid var(--tp-common-sky);
    border-right: 2px solid var(--tp-common-sky);
    border-bottom: 2px solid var(--tp-common-sky);
    background-color: rgba(33, 150, 243, 0.02);
}

/* Plan Header Styles */
.plan-header {
    padding: 40px 20px;
    background: linear-gradient(135deg, #62637D 0%, #4A4B5E 100%);
    border-radius: 10px 10px 0 0;
    text-align: center;
    position: relative;
}

.plan-header .recommended-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--tp-common-yellow);
    color: var(--tp-common-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-header .plan-icon {
    margin-bottom: 20px;
}

.plan-header .plan-icon .icon {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--tp-common-pink);
    color: var(--tp-common-white);
    font-size: 24px;
    transition: transform 0.3s ease;
}

.plan-header .plan-icon .icon:hover {
    transform: scale(1.1);
}

.plan-header .plan-icon .icon.price-color-2 {
    background-color: var(--tp-common-sky);
}

.plan-header .plan-icon .icon.price-color-3 {
    background-color: var(--tp-common-yellow);
}

.plan-header .plan-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--tp-common-white);
    margin: 0;
}

/* Price Display Styles */
.price-display .price-amount {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 5px 0;
}

.price-display .price-period {
    font-size: 14px;
    color: #62637D;
    font-weight: 500;
}

/* Feature Icons */
.feature-icon {
    font-size: 20px;
}

.feature-value {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Sign Up Button Styles in Table */
.pricing-comparison-table .signup-btn {
    width: 100%;
    min-width: 180px;
    max-width: 220px;
    padding: 12px 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pricing-comparison-table .signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pricing-comparison-table .plan-column.recommended .signup-btn {
    background-color: var(--tp-common-sky);
    color: var(--tp-common-white);
    border-color: var(--tp-common-sky);
}

.pricing-comparison-table .plan-column.recommended .signup-btn:hover {
    background-color: #1976D2;
    border-color: #1976D2;
}

/* Toggle Switch Styles */
.pricing-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.pricing-toggle-wrapper .toggle-label {
    font-size: 16px;
    font-weight: 600;
    color: #62637D;
    transition: color 0.3s ease;
}

.pricing-toggle-wrapper .toggle-label#monthly-label {
    color: var(--tp-common-sky);
}

.pricing-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.pricing-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.pricing-toggle input:checked + .toggle-slider {
    background-color: var(--tp-common-sky);
}

.pricing-toggle input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

.pricing-toggle .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--tp-common-sky);
    transition: 0.4s;
    border-radius: 30px;
}

.pricing-toggle .toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#pricing-period-toggle:checked ~ #monthly-label {
    color: #62637D;
}

#pricing-period-toggle:checked ~ #yearly-label {
    color: var(--tp-common-sky);
}

/* Mobile Card View */
.pricing-cards-mobile .tp-price__item {
    background-color: var(--tp-common-white);
    padding: 40px 30px;
    border-radius: 10px;
    border: 1px solid #F1F1F1;
}

.pricing-cards-mobile .tp-price__item.tp-price__active {
    border: 2px solid var(--tp-common-sky);
    box-shadow: 0px 31px 39px rgba(32, 70, 94, 0.1);
}

.pricing-cards-mobile .tp-price__item.tp-price__active .tp-btn-border {
    background-color: var(--tp-common-sky);
    color: var(--tp-common-white);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .pricing-comparison-table table thead th.feature-column {
        min-width: 150px;
        font-size: 14px;
    }
    
    .plan-header {
        padding: 30px 15px;
    }
    
    .plan-header .plan-title {
        font-size: 18px;
    }
    
    .plan-header .plan-icon .icon {
        height: 50px;
        width: 50px;
        font-size: 20px;
    }
    
    .price-display .price-amount {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .pricing-toggle-wrapper .toggle-label {
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .price-display .price-amount {
        font-size: 28px;
    }
}
