/**
 * Pricing Page Styles - AnchorExchange V2
 * Styles specific to the pricing page
 */

/* Remove default padding-top from main on pricing page */
body.v2-pricing .v2-main {
    padding-top: 0 !important;
}

/* ==========================================================================
   Section Titles
   ========================================================================== */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-headings, #0d3b66);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Pricing Hero Section - Enhanced to match homepage
   ========================================================================== */
.pricing-hero.premium-gradient {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    color: #fff;
    padding: 4rem 0;
    margin-top: 0;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.pricing-hero.premium-gradient::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1), transparent 55%);
    opacity: 0.6;
    pointer-events: none;
}

.pricing-hero.premium-gradient .container-fluid {
    position: relative;
    z-index: 1;
}

.pricing-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.pricing-hero .lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-guarantee {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* ==========================================================================
   Pricing Journey Section - Enhanced
   ========================================================================== */
.pricing-journey .pricing-step-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    text-align: left;
}

.pricing-journey .pricing-step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.pricing-step-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: linear-gradient(135deg, #e0f2fe, #bfdbfe);
    margin-bottom: 1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.pricing-journey .pricing-step-card:hover .pricing-step-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #bfdbfe, #93c5fd);
}

.pricing-journey-cta .btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.85rem 2rem;
}

/* ==========================================================================
   Pricing Cards
   ========================================================================== */
.pricing-tier-toggle .btn {
    border-radius: 999px;
}

.pricing-tier-toggle-wrapper {
    max-width: 960px;
    margin: 0 auto 2.5rem;
}

.tier-grid .pricing-card {
    height: 100%;
    border-radius: 18px;
    border: 1px solid rgba(13, 59, 102, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.tier-grid .pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.pricing-card-header {
    flex-shrink: 0;
    padding-bottom: 0;
}

.pricing-card-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0d3b66;
    margin-bottom: 0.5rem;
}

.pricing-card-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-card-badge.free {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.pricing-card-badge.tier1 {
    background: rgba(0, 123, 255, 0.15);
    color: #007bff;
}

.pricing-card-badge.tier2 {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.pricing-card-badge.tier3 {
    background: rgba(108, 117, 125, 0.15);
    color: #6c757d;
}

.pricing-card-price {
    flex-shrink: 0;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin: 1rem 0 0.75rem;
}

.pricing-card-price .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0d3b66;
    line-height: 1;
}

.pricing-card-price .period {
    font-size: 1rem;
    color: #6c7a91;
    font-weight: 500;
}

.pricing-card-description {
    flex-shrink: 0;
    font-size: 0.95rem;
    color: #6c7a91;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.pricing-card-features {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.pricing-card-features .feature {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    color: #0d3b66;
}

.pricing-card-features .feature i {
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.pricing-card-features .feature.disabled {
    opacity: 0.5;
    color: #999;
}

.pricing-card-features .feature strong {
    font-weight: 600;
}

.pricing-card-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(13, 59, 102, 0.08);
}

.pricing-card-footer .btn {
    margin: 0;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.pricing-card-tagline {
    font-size: 0.9rem;
    color: #6c7a91;
}

.pricing-card.popular::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 215, 128, 0.45), rgba(255, 255, 255, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.pricing-card-ribbon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ffc107;
    color: #0d3b66;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
    z-index: 10;
}

.pricing-card-savings {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0d3b66;
    margin-top: 0.5rem;
}

/* ==========================================================================
   Feature Comparison Table
   ========================================================================== */
.pricing-feature-table .sticky-column {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 2;
    box-shadow: 12px 0 24px rgba(7, 24, 53, 0.08);
}

.pricing-table {
    width: 100%;
    margin-bottom: 1rem;
    background-color: #fff;
    border-collapse: collapse;
}

.pricing-table thead th {
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

.pricing-table tbody tr {
    border-bottom: 1px solid #dee2e6;
}

.pricing-table tbody td {
    padding: 1rem;
}

.pricing-table .highlight {
    background: rgba(255, 193, 7, 0.05);
}

.feature-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    background: rgba(13, 59, 102, 0.08);
    color: #0d3b66;
    flex-shrink: 0;
}

/* ==========================================================================
   Support & Services Cards
   ========================================================================== */
.included-card {
    border-radius: 1.5rem;
    border: 1px solid rgba(13, 59, 102, 0.08);
    box-shadow: 0 25px 70px rgba(5, 16, 42, 0.09);
}

.marine-illustration {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

/* ==========================================================================
   Boost Packages
   ========================================================================== */
.boost-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 1.25rem;
    border: 1px solid rgba(13, 59, 102, 0.08);
    padding: 1.5rem;
    background: #fff;
    box-shadow: 0 4px 16px rgba(5, 16, 42, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.boost-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(5, 16, 42, 0.12);
}

.boost-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.boost-header {
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.boost-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0d3b66;
    margin-bottom: 0.5rem;
}

.boost-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0d3b66;
    line-height: 1;
}

.boost-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.boost-body p {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #0d3b66;
}

.boost-body ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    flex: 1;
}

.boost-body ul li {
    padding: 0.35rem 0;
    color: #6c7a91;
    font-size: 0.95rem;
}

.boost-body ul li::before {
    content: "✓ ";
    color: #28a745;
    font-weight: 600;
    margin-right: 0.5rem;
}

.boost-body .btn {
    margin-top: auto;
    padding: 0.75rem 1rem;
    font-weight: 500;
}

.boost-card.featured {
    border: 2px solid #fcbf49;
    box-shadow: 0 12px 48px rgba(252, 191, 73, 0.25);
}

.boost-ribbon {
    position: absolute;
    top: -28px;
    right: -35px;
    background: #fcbf49;
    color: #0d3b66;
    padding: 0.5rem 3rem;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(252, 191, 73, 0.3);
    z-index: 10;
}

/* Better ribbon badge for boost packages */
.boost-ribbon-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0d3b66;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ==========================================================================
   Account Access Section - Register/Login Cards
   ========================================================================== */
.account-access-card {
    border-radius: 18px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.account-access-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15) !important;
}

.account-access-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0f2fe, #bfdbfe);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.account-access-card:hover .account-access-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #bfdbfe, #93c5fd);
}

.account-access-icon i {
    font-size: 2.5rem;
    color: #3b82f6;
}

.account-access-card ul {
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

.account-access-card ul li {
    font-size: 0.95rem;
    text-align: left;
}

/* ==========================================================================
   CTA Section - Enhanced to match homepage
   ========================================================================== */
.cta-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

.cta-gradient::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15), transparent 60%);
    opacity: 0.8;
    pointer-events: none;
}

.cta-gradient .container {
    position: relative;
    z-index: 1;
}

.micro-trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    font-size: 0.95rem;
    opacity: 0.9;
}

.micro-trust-list span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.micro-trust-list i {
    color: #10b981;
    font-size: 1.1rem;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-shadow-sm {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.text-shadow-md {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.85s ease forwards;
}

.fade-delay-1 { animation-delay: 0.1s; }
.fade-delay-2 { animation-delay: 0.2s; }
.fade-delay-3 { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fade-in-up {
        animation: none;
        opacity: 1;
    }
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (min-width: 992px) {
    .tier-grid .col-lg-3:not(:last-child) .pricing-card {
        border-right: none;
    }
}

@media (max-width: 768px) {
    .pricing-hero h1 {
        font-size: 1.85rem;
    }

    .pricing-hero .lead {
        font-size: 1rem;
    }

    .hero-badges {
        font-size: 0.85rem;
    }

    .pricing-journey .pricing-step-card {
        padding: 1.5rem;
    }

    .pricing-step-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .tier-grid .pricing-card {
        padding: 1.5rem;
    }

    .account-access-card .card-body {
        padding: 2rem !important;
    }

    .account-access-icon {
        width: 70px;
        height: 70px;
    }

    .account-access-icon i {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .micro-trust-list {
        gap: 1rem;
        font-size: 0.85rem;
    }
}
