/* ROI Calculator Styles */
#roi-calculator-section {
    background: #fff;
    padding: 0;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

/* Marquee */
.roi-marquee {
    background: rgb(230, 0, 0);
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    padding: 8px 0;
    font-size: 14px;
    letter-spacing: 1px;
}
.roi-marquee p {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 20s linear infinite;
    margin: 0;
}
@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* Step Container Framework */
.roi-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 20px;
    min-height: 600px;
    position: relative;
}

.roi-step-view {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.roi-step-view.active {
    display: block;
}

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

/* Hero View */
.roi-hero {
    text-align: center;
}
.roi-hero h2 {
    font-size: clamp(36px, 5vw, 52px);
    color: #0E427E;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}
.roi-hero p {
    font-size: 20px;
    color: #666;
    margin-bottom: 50px;
}
.roi-hero-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 40px;
}
.roi-badge {
    background: #f0f4f8;
    color: #0E427E;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* CTA Buttons */
.roi-btn {
    display: inline-block;
    padding: 16px 40px;
    background: #62BA46;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(98, 186, 70, 0.3);
    transition: all 0.3s;
    text-align: center;
}
.roi-btn:hover {
    background: #0E427E;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(14, 66, 126, 0.4);
}
.roi-btn-outline {
    background: transparent;
    color: #0E427E;
    border: 2px solid #0E427E;
    box-shadow: none;
}
.roi-btn-outline:hover {
    background: #0E427E;
    color: #fff;
}

/* Form Styles */
.roi-form-group {
    margin-bottom: 40px;
}
.roi-form-group h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}
.roi-form-hint {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}
.roi-input {
    width: 100%;
    max-width: 400px;
    padding: 16px 20px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 12px;
    transition: border-color 0.3s;
}
.roi-input:focus {
    outline: none;
    border-color: #0E427E;
}

/* Card Selecting */
.roi-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}
.roi-card {
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    background: #fafafa;
    transition: all 0.3s;
}
.roi-card:hover {
    border-color: #b0c4de;
    background: #fff;
    transform: translateY(-2px);
}
.roi-card.selected {
    border-color: #0E427E;
    background: #f0f4f8;
}
.roi-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}
.roi-card-desc {
    font-size: 14px;
    color: #666;
}

/* Multiple Selection */
.roi-tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.roi-tag {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    background: #fff;
    transition: all 0.2s;
}
.roi-tag.selected {
    background: #0E427E;
    color: #fff;
    border-color: #0E427E;
}

/* Result Dashboard */
.roi-result-header {
    text-align: center;
    margin-bottom: 60px;
}
.roi-hero-number-wrap {
    margin: 20px 0;
}
.roi-hero-number {
    font-size: clamp(56px, 8vw, 96px);
    font-weight: 800;
    background: linear-gradient(135deg, #0E427E, #1a73e8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

.roi-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}
.roi-stat-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    text-align: center;
}
.roi-stat-title {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}
.roi-stat-value {
    font-size: 40px;
    font-weight: 700;
    color: #0E427E;
    margin-bottom: 5px;
}
.roi-stat-sub {
    font-size: 14px;
    color: #888;
}

/* Stacked Bar components */
.roi-breakdown-section {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
}
.roi-bar-container {
    width: 100%;
    height: 30px;
    background: #eee;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    margin: 20px 0;
}
.roi-bar-segment {
    height: 100%;
    transition: width 1s ease-out;
    width: 0;
}
.roi-bar-segment:nth-child(1) { background: #0E427E; }
.roi-bar-segment:nth-child(2) { background: #2c5ba3; }
.roi-bar-segment:nth-child(3) { background: #4a74c8; }
.roi-bar-segment:nth-child(4) { background: #688dee; }
.roi-bar-segment:nth-child(5) { background: #85a6ff; }
.roi-bar-segment:nth-child(6) { background: #a3bfff; }
.roi-bar-segment:nth-child(7) { background: #c2d8ff; }

.roi-legend {
    font-size: 14px;
    color: #555;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.roi-legend-item {
    display: flex;
    align-items: center;
}
.roi-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 8px;
}

/* Investment Blur Card */
.roi-investment-card {
    background: linear-gradient(145deg, #0E427E, #142a4a);
    border-radius: 20px;
    padding: 40px;
    color: #fff;
    text-align: center;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}
.roi-investment-card::before {
    content: "";
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 120px;
    opacity: 0.1;
}

.roi-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}
.roi-checklist li {
    font-size: 16px;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}
.roi-checklist li::before {
    content: "✓";
    font-weight: bold;
    color: #62BA46;
    position: absolute;
    left: 0;
    top: 0;
}

/* Soft Landing */
.roi-soft-landing {
    text-align: center;
    padding: 60px 20px;
}
.roi-soft-landing h3 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
}
.roi-soft-landing p {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* --- B2B Features CSS --- */
.roi-slider-group {
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}
.roi-slider-group label {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
}
.roi-slider-group input[type="range"] {
    width: 100%;
    accent-color: #0E427E;
    box-sizing: border-box;
}
.roi-slider-ticks {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: -5px;
    font-size: 12px;
    color: #999;
}

.roi-gating-container {
    position: relative;
}
.roi-gating-blur {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
    opacity: 0.5;
    transition: all 0.5s ease;
}
.roi-gate-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.6);
    padding: 20px;
    text-align: center;
}
.roi-gate-box {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 100%;
}
.roi-gate-box h4 {
    font-size: 22px;
    color: #0E427E;
    margin-bottom: 10px;
}
.roi-gate-input-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.roi-gate-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.roi-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.roi-comparison-table th, .roi-comparison-table td {
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}
.roi-comparison-table th {
    background: #f0f4f8;
    font-size: 18px;
    color: #333;
}
.roi-comparison-table th.panshaker-col {
    background: #0E427E;
    color: #fff;
}
.roi-comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: #555;
    background: #fafbfc;
}
.roi-table-bad { color: #d32f2f; font-weight: bold; }
.roi-table-good { color: #62BA46; font-weight: bold; }

.roi-lease-input {
    font-size: 18px;
    font-weight: bold;
    color: #0E427E;
    border: 1px solid #999;
    background: #fff;
    padding: 2px 8px;
    width: 80px;
    text-align: center;
    border-radius: 4px;
    margin: 0 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .roi-container { padding: 30px 15px; }
    .roi-hero h2 { font-size: 28px; }
    .roi-hero-number { font-size: 44px; }
    
    .roi-stats-grid { grid-template-columns: 1fr; gap: 15px; margin-bottom: 40px; }
    .roi-legend { grid-template-columns: 1fr; gap: 12px; }
    .roi-card-grid { grid-template-columns: 1fr; gap: 12px; }
    .roi-breakdown-section { padding: 20px 15px; }
    
    .roi-btn { width: 100%; box-sizing: border-box; margin-bottom: 10px; }
    
    /* Table Responsive for iPhone WeChat */
    .roi-comparison-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        font-size: 14px;
    }
    
    .roi-comparison-table th, .roi-comparison-table td {
        padding: 12px 10px;
    }
    
    .roi-investment-card { padding: 30px 20px; }
    #roi-lease-highlight { font-size: 14px !important; }
    .roi-lease-input { width: 70px; font-size: 16px; }
}
