/* ===================================================
   Water Price Page Styles
   =================================================== */

.wp-section {
    padding: 60px 0 80px;
    background: #f4f8fb;
}

/* ---------- Update Date Badge ---------- */
.wp-update-date {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background: #e8f4fd;
    color: #0d6efd;
    font-size: 13px;
    padding: 10px 20px;
    border-radius: 50px;
    margin-bottom: 28px;
    border: 1px solid #bfe0fd;
}

.wp-update-date i {
    font-size: 13px;
    opacity: .7;
}

.wp-update-date strong {
    font-weight: 700;
}

.wp-update-sep {
    opacity: .35;
    font-size: 16px;
    line-height: 1;
}

/* ---------- Two-column Main Grid ---------- */
.wp-main-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
    margin-bottom: 40px;
}

.wp-col-main {}

.wp-col-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ---------- Sidebar Box ---------- */
.wp-sidebar-box {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 22px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

.wp-sidebar-box-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.wp-sidebar-box-title i {
    font-size: 16px;
    color: #0d6efd;
}

.wp-sidebar-box-title h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
}

/* ---------- Quick List (sidebar) ---------- */
.wp-quick-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.wp-quick-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
}

.wp-quick-item--1 { background: #f0fdf4; border-left: 3px solid #4caf50; }
.wp-quick-item--2 { background: #eff6ff; border-left: 3px solid #2196f3; }
.wp-quick-item--3 { background: #fff7ed; border-left: 3px solid #ff9800; }
.wp-quick-item--4 { background: #fef2f2; border-left: 3px solid #f44336; }

.wp-quick-range {
    font-weight: 700;
    color: #1a1a2e;
    white-space: nowrap;
    min-width: 80px;
}

.wp-quick-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.wp-quick-price {
    font-weight: 700;
    font-size: 13px;
    color: #1a1a2e;
}

.wp-quick-price small {
    font-weight: 400;
    font-size: 10px;
    color: #888;
    margin-left: 3px;
    background: rgba(0,0,0,.06);
    padding: 1px 4px;
    border-radius: 4px;
}

.wp-quick-note {
    margin: 0;
    font-size: 11px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.5;
}

.wp-quick-note i {
    color: #f0ad4e;
    flex-shrink: 0;
}

/* ---------- Policy Grid ---------- */
.wp-policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.wp-policy-card {
    display: flex;
    gap: 18px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    padding: 22px;
    transition: box-shadow .2s, transform .2s;
}

.wp-policy-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

.wp-policy-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #0d6efd;
}

.wp-policy-content h4 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
}

.wp-policy-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

/* ---------- Procedure Box ---------- */
.wp-procedure-box {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 12px;
}

.wp-procedure-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    padding: 14px 22px;
    font-size: 15px;
    font-weight: 700;
    color: #2e7d32;
}

.wp-procedure-header i {
    font-size: 18px;
}

.wp-procedure-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #2e7d32;
}

.wp-procedure-body {
    padding: 18px 22px;
    line-height: 1.8;
    color: #444;
    font-size: 14px;
}

.wp-procedure-body p { margin: 0; }

/* ---------- Section Title ---------- */
.wp-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.wp-section-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.wp-section-title h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
}

/* ---------- Price Table ---------- */
.wp-table-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .07);
    margin-bottom: 16px;
}

.wp-price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.wp-price-table thead th {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 16px 14px;
    text-align: center;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, .08);
}

.wp-price-table thead th small {
    font-weight: 400;
    opacity: .8;
}

.wp-price-table .col-stt {
    width: 60px;
}

.wp-price-table .col-price {
    width: 240px;
}

/* Body Rows */
.wp-price-table tbody td {
    padding: 14px 16px;
    border: 1px solid #e9ecef;
    vertical-align: middle;
}

.wp-price-table tbody tr:hover {
    background-color: #f0f7ff;
}

/* Group Header */
.group-header-row {
    background: #edf2ff;
}

.group-header-row td {
    font-weight: 600;
}

.group-number {
    text-align: center;
    font-weight: 700;
    color: #0d6efd;
    font-size: 16px;
}

.group-name {
    color: #1a1a2e;
}

/* Sub Rows */
.sub-row {
    background: #fff;
}

.sub-number {
    text-align: center;
    font-weight: 600;
    color: #555;
}

.sub-name {
    color: #333;
}

/* Detail Rows */
.detail-row td {
    padding-left: 40px;
}

.detail-name {
    color: #555;
    font-size: 14px;
}

.highlight-row {
    background: #f0fdf4;
}

/* Price Cell */
.price-cell {
    text-align: center;
}

.price-value {
    display: inline-block;
    font-weight: 700;
    font-size: 15px;
    color: #1a1a2e;
    background: #f8f9fa;
    padding: 4px 14px;
    border-radius: 8px;
    min-width: 80px;
}

.no-price {
    text-align: center;
    background: #f8f9fa;
}

/* ---------- Table Note ---------- */
.wp-table-note {
    background: #fff8e1;
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 14px;
    color: #6d5c00;
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wp-table-note i {
    font-size: 18px;
    color: #f0ad4e;
    flex-shrink: 0;
}

/* ---------- Legal References (sidebar) ---------- */
.wp-legal-ref-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 3px solid #0d6efd;
    margin-bottom: 10px;
    transition: background .2s;
}

.wp-legal-ref-item:last-child { margin-bottom: 0; }

.wp-legal-ref-item:hover { background: #edf2ff; }

.wp-legal-ref-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #0d6efd;
}

.wp-legal-ref-content {
    line-height: 1.6;
    font-size: 13px;
    color: #555;
}

.wp-legal-ref-content strong {
    color: #1a1a2e;
    font-size: 13px;
    display: block;
    margin-bottom: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .wp-main-grid {
        grid-template-columns: 1fr 300px;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .wp-main-grid {
        grid-template-columns: 1fr;
    }

    .wp-col-side {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .wp-sidebar-box {
        flex: 1 1 280px;
    }

    .wp-update-date {
        font-size: 12px;
        padding: 8px 14px;
    }

    .wp-price-table {
        font-size: 13px;
    }

    .wp-price-table thead th,
    .wp-price-table tbody td {
        padding: 10px 8px;
    }

    .price-value {
        font-size: 13px;
        padding: 3px 8px;
        min-width: 60px;
    }

    .detail-row td {
        padding-left: 16px;
    }

    .wp-section-title h2 {
        font-size: 18px;
    }

    .wp-policy-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .wp-price-table .col-price {
        width: auto;
    }

    .wp-legal-ref-icon {
        display: none;
    }

    .wp-col-side {
        flex-direction: column;
    }
}
