﻿/* =========================================
   ELECTRICAL TARIFF PAGE
========================================= */

:root {
    --tariff-navy: #073f69;
    --tariff-blue: #0b6faf;
    --tariff-light-blue: #1596d2;
    --tariff-yellow: #f5bd28;
    --tariff-text: #334d63;
    --tariff-muted: #6e8193;
    --tariff-border: #dce7f0;
    --tariff-background: #f4f8fc;
}

/* =========================================
   HERO
========================================= */

.inner-page-hero {
    position: relative;
    min-height: 240px;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(105deg, #0b3f6d 0%, #0d5d91 55%, #1676c5 100%);
}

    .inner-page-hero::before {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 118px;
        opacity: 0.14;
        background: url("../images/electricity-city-line.svg") center bottom / cover no-repeat;
        pointer-events: none;
    }

    .inner-page-hero::after {
        content: "";
        position: absolute;
        top: -180px;
        left: -110px;
        width: 450px;
        height: 450px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 50%;
        box-shadow: 0 0 0 55px rgba(255, 255, 255, 0.024), 0 0 0 110px rgba(255, 255, 255, 0.017);
        pointer-events: none;
    }

.inner-page-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 150px 0 72px;
}

    .inner-page-hero-content > span {
        display: block;
        margin-bottom: 8px;
        color: rgba(255, 255, 255, 0.80);
        font-size: 13px;
        font-weight: 700;
    }

.inner-page-hero h1 {
    margin: 0 0 16px;
    padding: 0;
    color: #ffffff;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.35;
    font-weight: 800;
    overflow: visible;
}

.inner-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 12px;
}

    .inner-breadcrumb a {
        color: #ffffff;
        font-weight: 700;
        transition: color 0.2s ease;
    }

        .inner-breadcrumb a:hover {
            color: var(--tariff-yellow);
        }

    .inner-breadcrumb i {
        font-size: 9px;
    }

/* =========================================
   PAGE SECTION
========================================= */

.tariff-section {
    min-height: 470px;
    padding: 0 0 24px;
    background: var(--tariff-background);
}

.tariff-card {
    position: relative;
    z-index: 3;
    padding: 34px 38px 36px;
    border: 1px solid var(--tariff-border);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(11, 63, 109, 0.09);
    transform: translateY(-30px);
}

/* =========================================
   CARD HEADER
========================================= */

.tariff-card-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 30px;
}

.tariff-header-icon {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #eaf5fc;
    color: var(--tariff-blue);
    font-size: 26px;
}

.tariff-card-header span {
    display: block;
    margin-bottom: 4px;
    color: var(--tariff-blue);
    font-size: 12px;
    font-weight: 800;
}

.tariff-card-header h2 {
    margin: 0 0 7px;
    color: var(--tariff-navy);
    font-size: 27px;
    line-height: 1.45;
    font-weight: 800;
}

.tariff-card-header p {
    margin: 0;
    color: var(--tariff-muted);
    font-size: 13px;
    line-height: 1.8;
}

/* =========================================
   SEARCH AREA
========================================= */

.tariff-search-box {
    display: grid;
/*    grid-template-columns: minmax(0, 1fr) 145px;*/
    gap: 14px;
    align-items: end;
    padding: 20px;
    border: 1px solid #dce8f2;
    border-radius: 16px;
    background: #f8fbfe;
}

.tariff-field {
    min-width: 0;
}

    .tariff-field label {
        display: block;
        margin-bottom: 8px;
        color: var(--tariff-navy);
        font-size: 13px;
        font-weight: 800;
    }

.tariff-select-wrap {
    position: relative;
}

    .tariff-select-wrap > i:first-child {
        position: absolute;
        top: 50%;
        right: 16px;
        z-index: 2;
        color: var(--tariff-blue);
        pointer-events: none;
        transform: translateY(-50%);
    }

.tariff-select {
    width: 100%;
    min-height: 52px;
    padding: 0 47px 0 42px;
    border: 1px solid #cddce8;
    border-radius: 11px;
    outline: none;
    background: #ffffff;
    color: var(--tariff-text);
    font-family: inherit;
    font-size: 14px;
    appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .tariff-select:focus {
        border-color: var(--tariff-blue);
        box-shadow: 0 0 0 4px rgba(11, 111, 175, 0.10);
    }

.select-arrow {
    position: absolute;
    top: 50%;
    left: 16px;
    color: #7c8e9f;
    font-size: 12px;
    pointer-events: none;
    transform: translateY(-50%);
}

.tariff-button {
    width: 145px;
    min-width: 0;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient( 135deg, var(--tariff-blue), var(--tariff-light-blue) );
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 9px 20px rgba(11, 111, 175, 0.20);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .tariff-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 13px 25px rgba(11, 111, 175, 0.27);
    }

    .tariff-button:active {
        transform: translateY(0);
    }

/* =========================================
   VALIDATION
========================================= */

.tariff-validation {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 13px;
    padding: 11px 14px;
    border: 1px solid #f4cccc;
    border-radius: 10px;
    background: #fff4f4;
    color: #b83737;
    font-size: 13px;
}

    .tariff-validation[hidden] {
        display: none;
    }

/* =========================================
   EMPTY STATE
========================================= */

.tariff-empty-state {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 190px;
    padding: 35px 20px 25px;
    text-align: center;
}

    .tariff-empty-state[hidden] {
        display: none;
    }

    .tariff-empty-state > span {
        width: 70px;
        height: 70px;
        display: grid;
        place-items: center;
        margin-bottom: 14px;
        border-radius: 50%;
        background: #eaf5fc;
        color: var(--tariff-blue);
        font-size: 29px;
    }

    .tariff-empty-state h3 {
        margin: 0 0 6px;
        color: var(--tariff-navy);
        font-size: 20px;
        font-weight: 800;
    }

    .tariff-empty-state p {
        margin: 0;
        color: var(--tariff-muted);
        font-size: 13px;
    }

/* =========================================
   RESULT
========================================= */

.tariff-result {
    margin-top: 28px;
    padding-top: 27px;
    border-top: 1px solid var(--tariff-border);
    scroll-margin-top: 125px;
}

    .tariff-result[hidden] {
        display: none;
    }

.tariff-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

    .tariff-result-header span:first-child {
        display: block;
        margin-bottom: 4px;
        color: var(--tariff-blue);
        font-size: 11px;
        font-weight: 800;
    }

    .tariff-result-header h3 {
        margin: 0;
        color: var(--tariff-navy);
        font-size: 22px;
        line-height: 1.5;
        font-weight: 800;
    }

.tariff-date {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eaf5fc;
    color: var(--tariff-blue);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

/* =========================================
   TABLES
========================================= */

.tariff-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--tariff-border);
    border-radius: 14px;
}

.tariff-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
    background: #ffffff;
}

    .tariff-table th,
    .tariff-table td {
        padding: 15px 17px;
        border-bottom: 1px solid #e4ecf3;
        text-align: right;
        vertical-align: middle;
    }

    .tariff-table th {
        background: var(--tariff-navy);
        color: #ffffff;
        font-size: 13px;
        font-weight: 800;
    }

    .tariff-table td {
        color: #455d72;
        font-size: 13px;
        line-height: 1.8;
    }

    .tariff-table tbody tr:nth-child(even) {
        background: #f8fbfe;
    }

    .tariff-table tbody tr:hover {
        background: #eef7fd;
    }

    .tariff-table tbody tr:last-child td {
        border-bottom: 0;
    }

.tariff-value {
    color: var(--tariff-blue) !important;
    font-size: 16px !important;
    font-weight: 800;
    direction: ltr;
}

/* =========================================
   NOTE
========================================= */

.tariff-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 18px 0;
    padding: 17px;
    border-right: 4px solid var(--tariff-yellow);
    border-radius: 11px;
    background: #fffaf0;
}

    .tariff-note i {
        margin-top: 3px;
        color: #ce9410;
        font-size: 18px;
    }

    .tariff-note p {
        margin: 0;
        color: #5f6570;
        font-size: 13px;
        line-height: 1.9;
    }

    .tariff-note strong {
        color: var(--tariff-navy);
    }

.secondary-table th {
    background: var(--tariff-blue);
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {
    .inner-page-hero {
        min-height: 225px;
    }

    .inner-page-hero-content {
        padding: 150px 0 62px;
    }

    .tariff-card {
        padding: 30px 25px;
        transform: translateY(-26px);
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 760px) {
    .inner-page-hero {
        min-height: 205px;
    }

    .inner-page-hero-content {
        padding: 150px 0 55px;
    }

    .inner-page-hero h1 {
        font-size: 31px;
    }

    .inner-page-hero-content > span {
        font-size: 12px;
    }

    .inner-breadcrumb {
        font-size: 11px;
    }

    .tariff-section {
        padding-bottom: 25px;
    }

    .tariff-card {
        padding: 25px 18px;
        border-radius: 17px;
        transform: translateY(-22px);
    }

    .tariff-card-header {
        align-items: center;
        gap: 13px;
        margin-bottom: 23px;
    }

    .tariff-header-icon {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
        border-radius: 13px;
        font-size: 22px;
    }

    .tariff-card-header h2 {
        font-size: 22px;
    }

    .tariff-card-header p {
        font-size: 12px;
    }

    .tariff-search-box {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .tariff-button {
        width: 100%;
    }

    .tariff-empty-state {
        min-height: 165px;
        padding: 28px 15px 20px;
    }

        .tariff-empty-state > span {
            width: 60px;
            height: 60px;
            font-size: 25px;
        }

    .tariff-result-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

        .tariff-result-header h3 {
            font-size: 19px;
        }

    .tariff-table th,
    .tariff-table td {
        padding: 12px 13px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .inner-page-hero {
        min-height: 195px;
    }

    .inner-page-hero-content {
        padding: 150px 0 50px;
    }

    .inner-page-hero h1 {
        font-size: 27px;
    }

    .tariff-card {
        padding: 21px 14px;
    }

    .tariff-search-box {
        padding: 13px;
    }

    .tariff-select {
        font-size: 12px;
    }
}
