/* ============================================
   M-PESA VS AIRTEL MONEY COMPARISON CALCULATOR
   ============================================ */

/* HERO SECTION */
.comparison-hero {
    position: relative;
    width: 100%;
    padding-top: 3rem;
    padding-bottom: 60px;
    overflow: hidden;
}

.comparison-hero__background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #00361e 0%, #004526 50%, #06613a 100%);
    z-index: -2;
}

.comparison-hero__background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(100, 150, 255, 0.12), transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.06), transparent 35%);
    z-index: 1;
}

.comparison-hero__header {
    position: relative;
    text-align: center;
    color: #fff;
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
    z-index: 1;
}

.comparison-hero__title {
    font-size: 3.3rem;
    letter-spacing: -0.018em;
    margin: 0;
    color: #ffffff !important;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.05;
    font-weight: 900;
    text-transform: uppercase;
    display: inline-block;
    transform: rotate(-0.6deg) skewY(-1deg);
}

.comparison-hero__subtitle-main {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.3;
    font-weight: 600;
}

.comparison-hero__highlight {
    color: #f59e0b;
    font-weight: 800;
}

.comparison-hero__subtitle {
    max-width: 900px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.6;
}

@media (min-width: 1024px) {
    .comparison-hero__title {
        font-size: 3rem;
    }

    .comparison-hero__subtitle-main {
        font-size: 1.85rem;
    }
}

.comparison-hero__wave {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 220px;
    z-index: 0;
}

.comparison-hero__wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* CALCULATOR BOARD */
.comparison-calc-board {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.28), 0 10px 26px rgba(0, 0, 0, 0.14);
    padding: 2rem;
    display: grid;
    gap: 1.5rem;
    color: #1f2937;
    z-index: 1;
    transform: translateY(3rem);
}

@media (min-width: 1024px) {
    .comparison-calc-board {
        max-width: 1260px;
        padding: 2.5rem;
    }
}

.comparison-calc-title {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #004526;
    text-align: center;
    text-decoration: underline wavy #004526;
    text-decoration-thickness: 1.25px;
    text-underline-offset: 4px;
    display: inline-block;
}

.comparison-service-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
    justify-items: center;
}

@media (max-width: 640px) {
    .comparison-service-selector {
        grid-template-columns: 1fr;
    }
}

.comparison-service-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: #f3f4f6;
    border: 1.5px solid #d1d5db;
    color: #1f2937;
    font-weight: 600;
    width: 100%;
}

.comparison-service-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.comparison-service-pill span {
    font-size: 0.9rem;
}

.comparison-service-pill:hover {
    border-color: #004526;
    background: rgba(0, 69, 38, 0.06);
    transform: translateY(-1px);
}

.comparison-service-pill:has(input:checked) {
    border-color: #004526;
    background: rgba(0, 69, 38, 0.1);
    box-shadow: 0 4px 12px rgba(0, 69, 38, 0.15);
    color: #004526;
    font-weight: 700;
}

.comparison-calc-input-group {
    display: grid;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .comparison-calc-input-group {
        grid-template-columns: 1fr auto;
        align-items: end;
    }
}

.comparison-calc-input {
    display: grid;
    gap: 0.5rem;
}

.comparison-calc-input label {
    font-weight: 700;
    color: #1f2937;
    font-size: 0.9rem;
    display: block;
    text-align: left;
}

.comparison-calc-input input {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border-radius: 0.75rem;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.comparison-calc-input input:focus {
    outline: none;
    border-color: #004526;
    box-shadow: 0 0 0 3px rgba(0, 69, 38, 0.12);
}

.comparison-calc-input input::placeholder {
    color: #9ca3af;
    font-weight: 500;
}

.comparison-input-hint {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: left;
    margin-top: 4px;
}

.comparison-calc-submit {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    background: #004526;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 22px rgba(0, 69, 38, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 44px;
}

@media (min-width: 768px) {
    .comparison-calc-submit {
        width: auto;
        min-width: 160px;
    }
}

.comparison-calc-submit:hover {
    background: #003d1f;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 69, 38, 0.25);
}

.comparison-calc-submit:active {
    transform: translateY(0);
}

/* RESULTS COMPARISON */
.comparison-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .comparison-results {
        grid-template-columns: 1fr;
    }
}

.comparison-result-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comparison-result-header {
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-result-provider {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 0.5rem;
}

.comparison-result-card--mpesa .comparison-result-provider {
    color: #004526;
}

.comparison-result-card--airtel .comparison-result-provider {
    color: #e74c3c;
}

.comparison-result-charge {
    font-size: 1.75rem;
    font-weight: 900;
    color: #1f2937;
    margin: 0;
}

.comparison-result-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.comparison-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-result-row:last-child {
    border-bottom: none;
}

.comparison-result-row span {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.comparison-result-row strong {
    font-size: 1rem;
    color: #1f2937;
    font-weight: 700;
}

.comparison-winner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #86efac;
    border-radius: 1rem;
    color: #166534;
}

.comparison-winner i {
    font-size: 2rem;
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.comparison-winner p {
    margin: 0.5rem 0 0;
    font-weight: 600;
}

/* COMPARISON TABLE SECTION */
.comparison-table-section {
    padding: 4rem 0;
    background: #f9fbf7;
}

.comparison-table-heading {
    text-align: center;
    margin-bottom: 2rem;
}

.comparison-table-heading h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.comparison-table-heading p {
    font-size: 1.05rem;
    color: #6b7280;
}

.comparison-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.comparison-tab {
    padding: 0.75rem 1.5rem;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comparison-tab:hover {
    border-color: #004526;
    color: #004526;
}

.comparison-tab.active {
    background: #004526;
    border-color: #004526;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 69, 38, 0.3);
}

.comparison-table-wrapper {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table thead {
    background: #f9fafb;
}

.comparison-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
}

.comparison-table tbody tr:hover {
    background: #f9fafb;
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge--mpesa {
    background: rgba(0, 69, 38, 0.1);
    color: #004526;
}

.badge--airtel {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

/* INSIGHTS SECTION */
.insights-section {
    padding: 4rem 0;
    background: #ffffff;
}

.insights-heading {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 3rem;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.insight-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.insight-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border-color: #004526;
}

.insight-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #004526 0%, #006837 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #ffffff;
    font-size: 1.5rem;
}

.insight-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.75rem;
}

.insight-card p {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* FAQ SECTION */
.faq-section {
    padding: 4rem 0;
    background: #f9fbf7;
}

.faq-heading {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 3rem;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #004526;
}

.faq-item[open] {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #004526;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-item[open] .faq-question {
    background: #f0fdf4;
}

.faq-question span {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
    flex: 1;
    padding-right: 1rem;
}

.faq-question i {
    font-size: 1.25rem;
    font-weight: 700;
    color: #004526;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item[open] .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: #4b5563;
    line-height: 1.7;
    font-size: 0.95rem;
}

.faq-answer strong {
    color: #004526;
    font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .comparison-hero__title {
        font-size: 2rem;
    }

    .comparison-hero__subtitle-main {
        font-size: 1.25rem;
    }

    .comparison-calc-board {
        padding: 1.5rem;
        transform: translateY(2rem);
    }

    .comparison-table-wrapper {
        padding: 1rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }
}