/* Page Content Animation - page-specific loading targets */
body.loading .page-header,
body.loading .tabs-section,
body.loading .tab-content.active .content-section {
    opacity: 0;
    filter: blur(20px);
}

body.loading .page-header {
    animation: contentFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.35s forwards;
    opacity: 0;
    transform: scale(0.95);
    filter: blur(10px);
}

body.loading .tabs-section,
body.loading .tab-content.active .content-section {
    animation: contentFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* Page Header - page-specific overrides */
.page-header {
    background:
        linear-gradient(135deg,
            rgba(255, 87, 64, 0.85) 0%,
            rgba(255, 138, 101, 0.6) 100%
        ),
        var(--page-header-bg-image, none) center/cover;
}

/* Content Sections - page-specific overrides */
.content-section {
    padding: 100px 0;
}

.content-section:nth-child(even) {
    background: #fafafa;
}

/* Rental Plans Grid */
.rental-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.crossborder-two-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-top: 0;
}

.crossborder-two-card-grid .info-box {
    margin: 0;
}

/* Plan Card */
.plan-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    border-top: 4px solid #FF5740;
    transition: all 0.3s;
}

.plan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}

.plan-card h3 {
    color: #1a1a1a;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.price {
    font-size: 2rem;
    color: #FF5740;
    font-weight: 700;
    margin: 1rem 0;
}

/* Page-specific btn override */
.btn {
    margin-top: 1rem;
}

.rental-plans .info-box {
    margin: 0;
}

/* Maintenance section spotlight */
.maintenance-highlight {
    margin-top: 3rem;
    padding: 2.5rem;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 87, 64, 0.15), rgba(255, 87, 64, 0) 45%),
        linear-gradient(145deg, #fff 0%, #fff9f7 100%);
    border: 1px solid rgba(255, 87, 64, 0.14);
}

.maintenance-highlight-title {
    margin: 0 0 2rem;
    color: #1e3c72;
    font-size: 2rem;
    letter-spacing: -0.02em;
}

.maintenance-pain-grid {
    margin-top: 0;
}

.maintenance-pain-card {
    border-left-color: #dc3545;
    background: linear-gradient(180deg, #fff 0%, #fff9f9 100%);
}

.maintenance-pain-card h4 {
    margin-bottom: 0.65rem;
}

.maintenance-options-grid {
    margin-top: 2.2rem;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.maintenance-option-block {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

.maintenance-option-block--primary {
    border-color: rgba(255, 87, 64, 0.24);
    box-shadow: 0 10px 30px rgba(255, 87, 64, 0.08);
}

.maintenance-option-block--secondary {
    background: linear-gradient(180deg, #ffffff 0%, #fff9f7 100%);
}

.maintenance-option-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    padding: 0.36rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 87, 64, 0.12);
    color: #ff5740;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.maintenance-option-block > h3 {
    margin: 0;
    color: #1e3c72;
    font-size: 1.6rem;
}

.maintenance-option-block > h4 {
    margin: 0.6rem 0 0;
    color: #4a4a4a;
    font-size: 1.02rem;
    font-weight: 600;
}

.maintenance-option-block > p {
    margin-top: 0.9rem;
    color: #555;
}

.maintenance-plan-grid {
    margin-top: 1.35rem;
}

.maintenance-plan-grid .plan-card {
    padding: 1.8rem;
}

.maintenance-plan-grid .plan-card h3 {
    font-size: 1.24rem;
    color: #1a1a1a;
}

.maintenance-plan-grid .plan-card h4 {
    color: #ff5740;
    margin-bottom: 0.7rem;
}

.maintenance-ondemand-box {
    margin-top: 1.25rem;
}

.maintenance-ondemand-box .features {
    margin: 0;
}

/* Monthly plans shared card fragments */
.plan-card-spacer {
    height: 47px;
}

.plan-card-featured {
    border: 3px solid #FF5740;
    position: relative;
}

.plan-card-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #FF5740 0%, #ff6b35 100%);
    color: white;
    padding: 12px 0;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-radius: 10px 10px 0 0;
}

.plan-card-featured-content {
    padding-top: 3rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Tab Navigation Styles - Pill Design */
.tabs-section {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.62) 0%,
        rgba(255, 245, 242, 0.56) 100%
    );
    backdrop-filter: blur(12px) saturate(125%);
    -webkit-backdrop-filter: blur(12px) saturate(125%);
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 16px rgba(255, 87, 64, 0.05);
    position: sticky;
    z-index: 100;
    transition: padding 0.3s;
}

.tabs-section.is-sticky {
    padding: 15px 0;
}

.tabs-nav {
    display: inline-flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 50px;
    padding: 8px;
}

.tab-button {
    background: transparent;
    border: none;
    color: #666;
    padding: 14px 42px;
    font-size: 1.02rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 50px;
    white-space: nowrap;
    font-family: inherit;
}

.tab-button:hover {
    color: #FF5740;
}

.tab-button.active {
    background: #FF5740;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 87, 64, 0.3);
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.4s ease-out forwards;
}

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

/* Reduce gap between last content-section and CTA */
.content-section:has(+ .tab-cta-section) {
    padding-bottom: 4.5rem;
}

/* Tab CTA Section with background image */
.tab-cta-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    margin-top: 0;
    position: relative;
    text-align: center;
}

.tab-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65));
    z-index: 1;
}

.tab-cta-section .container {
    position: relative;
    z-index: 2;
}

.tab-cta-section h3 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.01em;
}

.tab-cta-section p {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.9;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

/* ============================================
   Responsive - Mobile (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    /* Tabs navigation */
    .tabs-section {
        padding: 20px 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tabs-section .container {
        padding: 0;
        text-align: left !important;
    }

    .tabs-nav {
        gap: 0.5rem;
        justify-content: flex-start;
        border-radius: 50px;
        padding: 8px;
        display: inline-flex;
        margin: 0 20px;
    }

    .tab-button {
        padding: 12px 24px;
        font-size: 0.92rem;
        flex-shrink: 0;
    }

    /* Rental plans grid */
    .rental-plans {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .crossborder-two-card-grid {
        grid-template-columns: 1fr;
    }

    .maintenance-highlight {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .maintenance-highlight-title {
        font-size: 1.55rem;
        margin-bottom: 1.3rem;
    }

    .maintenance-options-grid {
        margin-top: 1.4rem;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .maintenance-option-block {
        padding: 1.35rem;
    }

    .maintenance-option-block > h3 {
        font-size: 1.3rem;
    }

    .maintenance-option-block > h4 {
        font-size: 0.96rem;
    }

    .maintenance-plan-grid .plan-card {
        padding: 1.5rem;
    }

    .maintenance-plan-grid .plan-card h3 {
        font-size: 1.1rem;
    }

    .plan-card {
        padding: 2rem 1.5rem;
    }

    .plan-card h3 {
        font-size: 1.35rem;
    }

    /* Tab CTA section */
    .tab-cta-section {
        padding: 60px 0;
    }

    .tab-cta-section h3 {
        font-size: 1.5rem;
    }

    .tab-cta-section p {
        font-size: 0.95rem;
    }
}
