/* ==========================================================================
   ScrapEcoDeals — Pricing & Subscription Matrix Stylesheet
   ========================================================================== */

/* ── 1. HERO SECTION ─────────────────────────────────────────────────────── */
/* ── 1. HERO SECTION ─────────────────────────────────────────────────────── */
.pricing-hero-section {
    position: relative;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.68) 0%, rgba(15, 23, 42, 0.82) 100%), url('/website/images/categories-banner-opt.jpg') center center / cover no-repeat;
    padding: 70px 0 95px;
    text-align: left;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}

.pricing-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(22, 163, 74, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.pricing-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.pricing-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(30px, 3.8vw, 44px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.pricing-hero-subtitle {
    font-size: clamp(14px, 1.2vw, 16px);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}

/* ── 2. FLOATING ENTITY SELECTOR ─────────────────────────────────────────── */
.pricing-selector-section {
    position: relative;
    z-index: 10;
    margin-top: -36px;
    margin-bottom: 40px;
}

.pricing-selector-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 28px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
}

.pricing-selector-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.pricing-selector-title {
    display: flex;
    align-items: center;
}

.selector-prompt {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.selector-prompt .highlight-green {
    color: #16a34a;
    font-weight: 600;
    font-size: 13.5px;
    margin-left: 4px;
}

.pricing-dropdown-wrapper {
    position: relative;
    min-width: 260px;
}

.pricing-dropdown-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1e8449;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.pricing-dropdown-btn:hover,
.pricing-dropdown-btn:focus {
    background: #176f3d;
    box-shadow: 0 4px 14px rgba(30, 132, 73, 0.3);
}

.pricing-dropdown-btn .selected-entity-name {
    color: #ffffff;
}

.pricing-dropdown-btn .chevron-icon {
    font-size: 13px;
    color: #ffffff;
    transition: transform 0.25s ease;
    margin-left: 12px;
}

.pricing-dropdown-btn[aria-expanded="true"] .chevron-icon {
    transform: rotate(180deg);
}

.pricing-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.14);
    padding: 6px;
    margin: 0;
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.pricing-dropdown-menu.show {
    display: block;
    animation: fadeInDown 0.2s ease forwards;
}

.pricing-entity-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    transition: all 0.2s ease;
}

.pricing-entity-option:hover {
    background: #f0fdf4;
    color: #166534;
}

.pricing-entity-option.active {
    background: #e8f7ee;
    color: #137343;
    font-weight: 700;
}

.pricing-entity-option .check-icon {
    font-size: 15px;
    color: #16a34a;
    display: none;
}

.pricing-entity-option.active .check-icon {
    display: inline-block;
}

/* ── 3. COMPARISON MATRIX SECTION ─────────────────────────────────────────── */
.pricing-matrix-section {
    padding: 0 0 70px;
}

.pricing-section-header {
    text-align: left;
    margin-bottom: 22px;
}

.current-entity-name {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 3px;
    letter-spacing: -0.3px;
}

.current-plans-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.pricing-table-responsive {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

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

/* Table Header (Solid Dark Emerald Green) */
.feature-col-header {
    width: 320px;
    min-width: 280px;
    padding: 20px 24px;
    background: #137343;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    vertical-align: middle;
    text-align: left;
    border: none;
}

.plan-col-header {
    padding: 16px 18px;
    background: #137343;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    vertical-align: middle;
    min-width: 180px;
}

.plan-header-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.plan-tier-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.plan-price-main {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.plan-billing-freq {
    font-size: 11px;
    color: #bbf7d0;
    font-weight: 500;
}

/* Table Body */
.pricing-comparison-table tbody tr {
    transition: background 0.15s ease;
}

.pricing-comparison-table tbody tr:hover {
    background: #f8fafc;
}

.feature-title-cell {
    padding: 13px 24px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13.5px;
    font-weight: 500;
    color: #1e293b;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.feature-title-cell .feature-text {
    flex: 1;
    line-height: 1.4;
}

.feature-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 2px 4px;
    border-radius: 4px;
}

.feature-info-btn:hover {
    color: #137343;
    background: #e8f7ee;
}

.feature-val-cell {
    padding: 11px 16px;
    border-bottom: 1px solid #f1f5f9;
    border-left: 1px solid #f1f5f9;
    text-align: center;
    vertical-align: middle;
}

.pricing-badge-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.pricing-badge-circle:hover {
    transform: scale(1.15);
}

.pricing-badge-circle.check-circle {
    background: #22c55e;
    color: #ffffff;
}

.pricing-badge-circle.cross-circle {
    background: #ef4444;
    color: #ffffff;
}

.custom-value-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.custom-value-cell .value-text {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

/* Table Footer */
.pricing-comparison-table tfoot td {
    padding: 16px 18px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    vertical-align: middle;
}

.pricing-comparison-table tfoot .cta-action-cell {
    border-left: 1px solid #f1f5f9;
}

.btn-subscribe-now {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    text-align: center;
    background: #137343;
    color: #ffffff !important;
    border: 1px solid #137343;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-subscribe-now:hover {
    background: #0e5632;
    border-color: #0e5632;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(19, 115, 67, 0.25);
    transform: translateY(-1px);
}

/* Custom Tooltip Styling */
.pricing-custom-tooltip .tooltip-inner {
    background-color: #0f172a;
    color: #f8fafc;
    font-size: 12px;
    line-height: 1.5;
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 250px;
    text-align: left;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.pricing-custom-tooltip .tooltip-arrow::before {
    border-top-color: #0f172a;
}

/* Empty State */
.pricing-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.pricing-empty-state .empty-icon {
    font-size: 48px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.pricing-empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.pricing-empty-state p {
    font-size: 14px;
    color: #64748b;
    max-width: 480px;
    margin: 0 auto 20px;
}

/* ── 4. ENTERPRISE & BESPOKE INQUIRY BANNER ───────────────────────────────── */
.pricing-enterprise-section {
    padding: 20px 0 60px;
}

.enterprise-card {
    background: linear-gradient(135deg, #033626 0%, #054f38 60%, #076d4e 100%);
    border-radius: 24px;
    padding: 40px 48px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    box-shadow: 0 16px 40px rgba(3, 54, 38, 0.25);
    flex-wrap: wrap;
}

.enterprise-content {
    flex: 1 1 500px;
}

.enterprise-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4ade80;
    margin-bottom: 12px;
}

.enterprise-content h3 {
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.enterprise-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.6;
}

.btn-enterprise {
    display: inline-block;
    padding: 14px 28px;
    background: #ffffff;
    color: #033626;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-enterprise:hover {
    background: #f0fdf4;
    color: #166534;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ── 5. PLATFORM VALUE HIGHLIGHTS ─────────────────────────────────────────── */
.pricing-benefits-section {
    padding: 0 0 80px;
}

.pricing-benefit-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px 26px;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-benefit-card:hover {
    border-color: #bbf7d0;
    box-shadow: 0 12px 30px rgba(22, 163, 74, 0.08);
    transform: translateY(-3px);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    color: #16a34a;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.pricing-benefit-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.pricing-benefit-card p {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ── 6. RESPONSIVE MEDIA QUERIES ──────────────────────────────────────────── */
@media (max-width: 991px) {
    .pricing-selector-card {
        padding: 20px;
    }

    .pricing-dropdown-wrapper {
        min-width: 100%;
    }

    .enterprise-card {
        padding: 30px 24px;
    }
}

@media (max-width: 767px) {
    .pricing-hero-section {
        padding: 45px 0 65px;
    }

    .pricing-comparison-table th,
    .pricing-comparison-table td {
        padding: 12px 14px;
    }

    .feature-col-header {
        width: 220px;
        min-width: 200px;
    }

    .plan-price-main {
        font-size: 20px;
    }
}
