/* Tariff Page Specific Styles - Scoped strictly to .tariff-page-section */
.tariff-page-section {
    padding: 2.5rem 0 5rem;
    position: relative;
}

.tariff-hero-banner {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 3.5rem 1.5rem;
    border-radius: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(14, 165, 233, 0.15);
}

.tariff-hero-banner::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.tariff-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: #ffffff;
    color: #0ea5e9;
    padding: 0.45rem 1.2rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.2);
    margin-bottom: 1rem;
}

.tariff-main-heading {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.tariff-subtext {
    color: #64748b;
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

.tariff-table-container {
    max-width: 980px;
    margin: 0 auto;
}

.tariff-table-card {
    background: #ffffff;
    border-radius: 1.2rem;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid #cbd5e1;
    overflow: hidden;
}

.tariff-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tariff-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

.tariff-table thead th {
    background-color: #0f172a;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 1.25rem 1.5rem;
    text-align: center;
    border-bottom: 2px solid #0f172a;
    border-right: 1px solid #334155;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.tariff-table thead th:first-child {
    text-align: left;
    padding-left: 2rem;
}

.tariff-table thead th:last-child {
    border-right: none;
}

.tariff-table tbody td {
    padding: 1.15rem 1.5rem;
    font-size: 1rem;
    color: #1e293b;
    vertical-align: middle;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.tariff-table tbody td:last-child {
    border-right: none;
}

.tariff-table tbody tr:last-child td {
    border-bottom: none;
}

.tariff-table tbody tr:nth-child(even) td {
    background-color: #f8fafc;
}

.tariff-table tbody tr:hover td {
    background-color: #f1f5f9;
}

.tariff-table tbody td.vehicle-type-cell {
    font-weight: 700;
    color: #0f172a;
    text-align: left;
    padding-left: 2rem;
}

.tariff-table tbody td.rate-cell {
    font-weight: 600;
    color: #0f172a;
}

.tariff-table tbody td.dash-cell {
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .tariff-page-section {
        padding: 1.5rem 0 3rem;
    }
    .tariff-hero-banner {
        padding: 2.5rem 1.2rem;
        margin-bottom: 2rem;
    }
    .tariff-table thead th {
        padding: 1rem 0.8rem;
        font-size: 0.9rem;
    }
    .tariff-table thead th:first-child {
        padding-left: 1rem;
    }
    .tariff-table tbody td {
        padding: 0.9rem 0.8rem;
        font-size: 0.88rem;
    }
    .tariff-table tbody td.vehicle-type-cell {
        padding-left: 1rem;
    }
}

@media (max-width: 576px) {
    .tariff-hero-banner {
        border-radius: 1rem;
        padding: 2rem 1rem;
    }
    .tariff-main-heading {
        font-size: 1.8rem;
    }
    .tariff-subtext {
        font-size: 0.95rem;
    }
    .tariff-table-card {
        border-radius: 0.8rem;
        border: none;
        box-shadow: none;
        background: transparent;
    }
    .tariff-table thead {
        display: none;
    }
    .tariff-table, 
    .tariff-table tbody, 
    .tariff-table tr, 
    .tariff-table td {
        display: block;
        width: 100%;
    }
    .tariff-table tr {
        margin-bottom: 1.25rem;
        background-color: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 0.75rem;
        padding: 1rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    }
    .tariff-table tbody tr:nth-child(even) td {
        background-color: transparent;
    }
    .tariff-table tbody tr:hover td {
        background-color: transparent;
    }
    .tariff-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.6rem 0 !important;
        border-bottom: 1px solid #f1f5f9;
        border-right: none !important;
        text-align: right !important;
        white-space: normal !important;
        font-size: 0.9rem;
    }
    .tariff-table tbody td:last-child {
        border-bottom: none;
    }
    .tariff-table tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #64748b;
        text-align: left;
        margin-right: 0.5rem;
        text-transform: uppercase;
        font-size: 0.75rem;
        letter-spacing: 0.03em;
    }
    .tariff-table tbody td.vehicle-type-cell {
        display: block;
        text-align: center !important;
        font-size: 1.1rem;
        color: #0ea5e9;
        font-weight: 800;
        border-bottom: 2px solid #e2e8f0;
        padding-bottom: 0.75rem !important;
        margin-bottom: 0.4rem;
        padding-left: 0 !important;
    }
    .tariff-table tbody td.vehicle-type-cell::before {
        display: none;
    }
    .tariff-table tbody td.dash-cell {
        letter-spacing: 0;
        color: #cbd5e1;
    }
}
