/**
 * WeBid2Win Pricing Page Styles
 *
 * Matches the home-page design system (--w2w-* tokens, #215387 primary).
 *
 * @package WeBid2Win_Vehicle_Bids
 */

/* ================================================================
   LAYOUT OVERRIDES (hide site navigation on pricing page)
   ================================================================ */
body.page-id-197 .site-header,
body.page-id-197 .wp-site-blocks > header,
body.page-id-197 .wp-block-kadence-header,
body.page-id-197 .kadence-header {
    display: none !important;
}

body.page-id-197 .site-main,
body.page-id-197 .wp-site-blocks {
    margin-top: 0 !important;
}

/* ================================================================
   RESET
   ================================================================ */
.w2w-pricing {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}

.w2w-pricing *, .w2w-pricing *::before, .w2w-pricing *::after {
    box-sizing: border-box;
}

.w2w-pricing img {
    max-width: 100%;
    height: auto;
}

/* ================================================================
   CONTAINER
   ================================================================ */
.w2w-pricing-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================================================================
   HERO
   ================================================================ */
.w2w-pricing-hero {
    text-align: center;
    padding: 60px 24px 40px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.w2w-pricing-logo {
    height: 44px;
    width: auto;
    margin-bottom: 28px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.w2w-pricing-hero h1 {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.w2w-pricing-hero-sub {
    font-size: 17px;
    color: #64748b;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ================================================================
   SECTIONS
   ================================================================ */
.w2w-pricing-section {
    padding: 56px 0;
}

.w2w-pricing-section h2 {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

/* ================================================================
   AUDIENCE TOGGLE (Seller / Buyer)
   ================================================================ */
.w2w-pricing-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 44px;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 4px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.w2w-pricing-toggle-btn {
    flex: 1;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.w2w-pricing-toggle-btn.active {
    background: #fff;
    color: #215387;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.w2w-pricing-toggle-btn:hover:not(.active) {
    color: #334155;
}

/* ================================================================
   AUDIENCE PANELS
   ================================================================ */
.w2w-pricing-audience {
    display: none;
}

.w2w-pricing-audience.active {
    display: block;
}

/* ================================================================
   PLAN CARDS
   ================================================================ */
.w2w-pricing-plans {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 820px;
    margin: 0 auto;
}

.w2w-pricing-plans-single {
    grid-template-columns: 1fr;
    max-width: 620px;
}

.w2w-pricing-plan {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.w2w-pricing-plan:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.w2w-pricing-plan-featured {
    border-color: #215387;
    box-shadow: 0 0 0 1px #215387;
}

.w2w-pricing-plan-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #215387;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 16px;
    border-radius: 0 0 0 10px;
}

.w2w-pricing-plan-header {
    padding: 32px 28px 24px;
    border-bottom: 1px solid #f1f5f9;
}

.w2w-pricing-plan-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #0f172a;
}

.w2w-pricing-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 10px;
}

.w2w-pricing-amount {
    font-size: 48px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.02em;
}

.w2w-pricing-period {
    font-size: 16px;
    color: #64748b;
    font-weight: 500;
}

.w2w-pricing-plan-desc {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* ================================================================
   FEATURE LIST
   ================================================================ */
.w2w-pricing-features {
    list-style: none;
    margin: 0;
    padding: 24px 28px;
    flex: 1;
}

.w2w-pricing-features li {
    font-size: 14px;
    padding: 8px 0 8px 28px;
    position: relative;
    line-height: 1.5;
}

.w2w-pricing-features li.included {
    color: #334155;
}

.w2w-pricing-features li.excluded {
    color: #cbd5e1;
}

.w2w-pricing-features li::before {
    position: absolute;
    left: 0;
    top: 8px;
    font-size: 16px;
    line-height: 1.4;
}

.w2w-pricing-features li.included::before {
    content: '\2713';
    color: #16a34a;
    font-weight: 700;
}

.w2w-pricing-features li.excluded::before {
    content: '\2014';
    color: #cbd5e1;
}

/* ================================================================
   BUYER GRID (two-column features inside the buyer card)
   ================================================================ */
.w2w-pricing-buyer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.w2w-pricing-buyer-col h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin: 0;
    padding: 20px 28px 0;
}

.w2w-pricing-buyer-col .w2w-pricing-features {
    padding-top: 12px;
}

/* ================================================================
   ADD-ON ROW
   ================================================================ */
.w2w-pricing-addon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 14px;
}

.w2w-pricing-addon-label {
    color: #475569;
    font-weight: 500;
}

.w2w-pricing-addon-price {
    color: #0f172a;
    font-weight: 700;
}

/* ================================================================
   PLAN FOOTER
   ================================================================ */
.w2w-pricing-plan-footer {
    padding: 20px 28px 28px;
    text-align: center;
}

.w2w-pricing-current {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.w2w-pricing-btn {
    display: inline-block;
    padding: 13px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    line-height: 1.4;
    width: 100%;
}

.w2w-pricing-btn-primary {
    background: #215387;
    color: #fff;
    border-color: #215387;
}

.w2w-pricing-btn-primary:hover {
    background: #1a4370;
    border-color: #1a4370;
    color: #fff;
    text-decoration: none;
}

.w2w-pricing-btn-outline {
    background: #fff;
    color: #215387;
    border-color: #e2e8f0;
}

.w2w-pricing-btn-outline:hover {
    border-color: #215387;
    background: #f8fafc;
    text-decoration: none;
}

/* ================================================================
   FAQ SECTION
   ================================================================ */
.w2w-pricing-faq-section {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.w2w-pricing-faq-section h2 {
    margin-bottom: 36px;
}

.w2w-pricing-faqs {
    max-width: 700px;
    margin: 0 auto;
}

.w2w-pricing-faq {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #fff;
    overflow: hidden;
}

.w2w-pricing-faq-q {
    display: flex;
    width: 100%;
    padding: 18px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    position: relative;
    padding-right: 48px;
    transition: color 0.15s;
}

.w2w-pricing-faq-q:hover {
    color: #215387;
}

.w2w-pricing-faq-q::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 400;
    color: #94a3b8;
    transition: transform 0.2s;
}

.w2w-pricing-faq.open .w2w-pricing-faq-q::after {
    content: '\2212';
}

.w2w-pricing-faq-a {
    display: none;
    padding: 0 24px 18px;
}

.w2w-pricing-faq.open .w2w-pricing-faq-a {
    display: block;
}

.w2w-pricing-faq-a p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.7;
}

/* ================================================================
   BOTTOM CTA
   ================================================================ */
.w2w-pricing-bottom-cta {
    text-align: center;
    background: #fff;
    padding: 64px 0 72px;
}

.w2w-pricing-bottom-cta p {
    font-size: 17px;
    color: #64748b;
    margin: 0 0 28px;
}

.w2w-pricing-cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.w2w-pricing-cta-actions .w2w-pricing-btn {
    width: auto;
}

.w2w-pricing-cta-note {
    margin-top: 16px;
    font-size: 14px;
    color: #64748b;
}

.w2w-pricing-cta-note a {
    color: #215387;
    font-weight: 600;
    text-decoration: none;
}

.w2w-pricing-cta-note a:hover {
    text-decoration: underline;
}

/* ================================================================
   AUTH MODAL (shared styles — duplicated from home-page.css
   so pricing page works standalone)
   ================================================================ */
.w2w-pricing .w2w-auth-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.w2w-pricing .w2w-auth-overlay.active {
    display: flex;
}

.w2w-pricing .w2w-auth-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.w2w-pricing .w2w-auth-modal {
    position: relative;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    width: 95%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
    animation: w2w-auth-slide-in 0.25s ease-out;
}

@keyframes w2w-pricing-auth-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.w2w-pricing .w2w-auth-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.15s;
}
.w2w-pricing .w2w-auth-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.w2w-pricing .w2w-auth-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 24px;
}

.w2w-pricing .w2w-auth-tab {
    flex: 1;
    padding: 18px 0;
    font-size: 15px;
    font-weight: 600;
    color: #94a3b8;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: color 0.15s, border-color 0.15s;
}
.w2w-pricing .w2w-auth-tab:hover { color: #475569; }
.w2w-pricing .w2w-auth-tab.active {
    color: #215387;
    border-bottom-color: #215387;
}

.w2w-pricing .w2w-auth-panel {
    display: none;
    padding: 28px 24px 32px;
}
.w2w-pricing .w2w-auth-panel.active {
    display: block;
}

.w2w-pricing .w2w-auth-modal .webid2win-form-container {
    max-width: 100%;
    padding: 0;
    box-shadow: none;
    border: none;
    border-radius: 0;
    margin: 0;
}

.w2w-pricing .w2w-auth-modal .webid2win-form-title {
    display: none;
}

.w2w-pricing .w2w-auth-modal .webid2win-form-footer {
    display: none;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
    .w2w-pricing-hero h1 {
        font-size: 26px;
    }

    .w2w-pricing-hero-sub {
        font-size: 15px;
    }

    .w2w-pricing-plans {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .w2w-pricing-buyer-grid {
        grid-template-columns: 1fr;
    }

    .w2w-pricing-amount {
        font-size: 40px;
    }

    .w2w-pricing-section {
        padding: 40px 0;
    }

    .w2w-pricing-addon {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
}
