/* HMWSSB Water Bill — Brand Orange Theme (#ff6725), prefix: hw- */

.hw-search-hero {
    background: linear-gradient(135deg, #ff6725 0%, #ff8f5c 50%, #ffb88c 100%);
    padding: 32px 28px 22px;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}
.hw-search-hero-decoration {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.hw-search-hero-decoration::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 30px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.hw-search-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.hw-search-hero-badge i { margin-right: 5px; }
.hw-search-hero-title {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.2;
}
.hw-search-hero-desc {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    margin: 0;
}
.hw-search-hero-desc a {
    color: #ffd4c2;
    text-decoration: underline;
    font-weight: 500;
}
.hw-search-hero-desc a:hover { color: #fff; text-decoration: none; }
.hw-search-hero + .hw-search-card { border-radius: 0 0 20px 20px !important; }
.hw-search-card { padding: 24px; }

/* Section titles */
.hw-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}
.hw-section-title i {
    color: #ff6725;
    margin-right: 8px;
}

/* Info cards grid */
.hw-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.hw-info-card {
    padding: 20px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}
.hw-info-card h5 {
    font-size: 15px;
    font-weight: 700;
    color: #ff6725;
    margin: 0 0 8px;
}
.hw-info-card h5 i { margin-right: 6px; }
.hw-info-card p {
    font-size: 14px;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

/* Slab / tariff table */
.hw-slab-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}
.hw-slab-table thead th {
    background: #ff6725;
    color: #fff;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}
.hw-slab-table tbody td {
    padding: 12px 16px;
    font-size: 14px;
    color: #444;
    border-bottom: 1px solid #f0f0f0;
}
.hw-slab-table tbody tr:last-child td { border-bottom: none; }
.hw-slab-table tbody tr:nth-child(even) { background: #fafafa; }

/* Detail grid for results */
.hw-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.hw-detail-item {
    padding: 14px 18px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    flex-direction: column;
}
.hw-detail-item:nth-child(odd) {
    border-right: 1px solid #f5f5f5;
}
.hw-detail-label {
    font-size: 12px;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}
.hw-detail-label i {
    color: #ff6725;
    margin-right: 5px;
    width: 14px;
    text-align: center;
}
.hw-detail-value {
    font-size: 15px;
    color: #333;
    font-weight: 600;
    word-break: break-word;
}

/* Arrears highlight box */
.hw-arrears-highlight {
    background: linear-gradient(135deg, #fff3ed 0%, #ffe8db 100%);
    border: 1px solid #ffd4c2;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    margin-top: 24px;
}
.hw-arrears-label {
    font-size: 13px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 6px;
}
.hw-arrears-amount {
    font-size: 36px;
    font-weight: 700;
    color: #e55a1b;
    line-height: 1.2;
    margin-bottom: 8px;
}
.hw-arrears-amount.hw-credit { color: #2e7d32; }
.hw-arrears-note {
    font-size: 13px;
    color: #888;
}
.hw-arrears-note a {
    color: #e55a1b;
    font-weight: 600;
    text-decoration: underline;
}
.hw-arrears-note a:hover { color: #ff6725; }

/* Skeleton loading */
.hw-skeleton-bar {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: hw-shimmer 1.5s infinite;
    border-radius: 6px;
    height: 14px;
    display: inline-block;
}
.hw-skeleton-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: center;
}
.hw-skeleton-row .hw-skeleton-bar { height: 16px; }
@keyframes hw-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Results actions */
.hw-results-actions .btn {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
}

/* Guidance card */
.hw-guidance-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
}
.hw-guidance-header {
    background: linear-gradient(135deg, #fff3ed 0%, #ffd6c2 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}
.hw-guidance-header h4 {
    color: #ff6725;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
}
.hw-guidance-header p {
    color: #ff6725;
    font-size: 14px;
    margin: 0;
}

/* Step list */
.hw-step-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: hw-step;
}
.hw-step-list li {
    counter-increment: hw-step;
    padding: 14px 14px 14px 54px;
    position: relative;
    margin-bottom: 10px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}
.hw-step-list li::before {
    content: counter(hw-step);
    position: absolute;
    left: 14px;
    top: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ff6725;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Connection type badge */
.hw-conn-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.hw-conn-badge.hw-domestic {
    background: #e8f5e9;
    color: #2e7d32;
}
.hw-conn-badge.hw-commercial {
    background: #fff3e0;
    color: #e65100;
}
.hw-conn-badge.hw-industrial {
    background: #e3f2fd;
    color: #1565c0;
}

/* FAQ */
.hw-faq-item {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s;
}
.hw-faq-item.open { border-color: #ff6725; }
.hw-faq-question {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    background: #fafafa;
}
.hw-faq-question i { transition: transform 0.3s; color: #ff6725; }
.hw-faq-item.open .hw-faq-question i { transform: rotate(180deg); }
.hw-faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}
.hw-faq-item.open .hw-faq-answer {
    padding: 0 20px 16px;
    max-height: 500px;
}

/* Print */
@media print {
    .dashboard-side-menu, .dashboard-header, .hw-search-hero, .hw-search-card,
    .related-tool-card, #tool-article, .hw-faq-item, footer, nav, .breadcrumb,
    .hw-results-actions, .hw-guidance-card, .hw-info-grid-section { display: none !important; }
    .hw-detail-grid { border: 1px solid #ddd; }
    .hw-arrears-highlight { border: 1px solid #ddd; background: #f9f9f9 !important; }
    #hw-result-area::before {
        content: 'HMWSSB Water Bill — Source: tg.verified.realestate — Printed: ' attr(data-date);
        display: block;
        font-size: 12px;
        color: #666;
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid #ddd;
    }
    #hw-result-area .card-box { box-shadow: none !important; border: 1px solid #ddd; }
    .hw-detail-grid .hw-detail-item { page-break-inside: avoid; }
}

/* Mobile */
@media (max-width: 768px) {
    .hw-search-hero-title { font-size: 20px; }
    .hw-info-grid { grid-template-columns: 1fr; }
    .hw-detail-grid { grid-template-columns: 1fr; }
    .hw-detail-item { border-right: none !important; }
    .hw-arrears-amount { font-size: 28px; }
    .hw-slab-table { font-size: 13px; }
    .hw-slab-table thead th, .hw-slab-table tbody td { padding: 10px 12px; }
}
@media (max-width: 576px) {
    .hw-search-hero { padding: 22px 18px 16px; }
    .hw-search-hero-title { font-size: 18px; }
    .hw-detail-item { padding: 10px 14px; }
    .hw-detail-value { font-size: 14px; }
    .hw-arrears-amount { font-size: 24px; }
    .hw-slab-table thead th, .hw-slab-table tbody td { padding: 8px 10px; font-size: 12px; }
}
