/* TGSPDCL Electricity Bill — Brand Orange Theme (#ff6725), prefix: te- */

.te-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;
}
.te-search-hero-decoration {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.te-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);
}
.te-search-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: #e55a1b;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.te-search-hero-badge i { margin-right: 5px; }
.te-search-hero-title {
    color: #3e2723;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.2;
}
.te-search-hero-desc {
    color: rgba(62,39,35,0.8);
    font-size: 14px;
    margin: 0;
}
.te-search-hero-desc a {
    color: #ffd4c2;
    text-decoration: underline;
    font-weight: 500;
}
.te-search-hero-desc a:hover { color: #3e2723; text-decoration: none; }
.te-search-hero + .te-search-card { border-radius: 0 0 20px 20px !important; }
.te-search-card { padding: 24px; }

/* Skeleton Loader */
.te-skeleton {
    background: #f0f0f0;
    border-radius: 8px;
    animation: te-pulse 1.5s ease-in-out infinite;
}
.te-skeleton-line {
    height: 16px;
    margin-bottom: 12px;
    border-radius: 4px;
}
.te-skeleton-line.w60 { width: 60%; }
.te-skeleton-line.w80 { width: 80%; }
.te-skeleton-line.w40 { width: 40%; }
.te-skeleton-line.w100 { width: 100%; }
.te-skeleton-block {
    height: 48px;
    margin-bottom: 12px;
    border-radius: 8px;
}
@keyframes te-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Result Card */
.te-result-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

/* Bill Highlight Box */
.te-bill-highlight {
    background: linear-gradient(135deg, #fff8f4 0%, #fff0e8 100%);
    border: 1px solid #ffd4c2;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
}
.te-bill-highlight-label {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.te-bill-highlight-amount {
    font-size: 36px;
    font-weight: 700;
    color: #ff6725;
    line-height: 1.1;
}
.te-bill-highlight-amount small {
    font-size: 20px;
    font-weight: 600;
}
.te-bill-highlight-due {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}
.te-bill-highlight-due strong { color: #333; }

/* Detail Grid */
.te-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}
.te-detail-row {
    display: contents;
}
.te-detail-label {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}
.te-detail-value {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}
.te-detail-row:last-child .te-detail-label,
.te-detail-row:last-child .te-detail-value {
    border-bottom: none;
}

/* Bill Breakdown Table */
.te-bill-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #eee;
}
.te-bill-table thead th {
    background: #ff6725;
    color: #fff;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}
.te-bill-table tbody td {
    padding: 12px 16px;
    font-size: 14px;
    color: #444;
    border-bottom: 1px solid #f0f0f0;
}
.te-bill-table tbody tr:last-child td { border-bottom: none; }
.te-bill-table tbody tr:nth-child(even) { background: #fafafa; }
.te-bill-table tbody td.te-amount {
    font-weight: 700;
    color: #ff6725;
    white-space: nowrap;
}

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

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

/* Cached Badge */
.te-cached-badge {
    display: inline-block;
    background: #fff3e0;
    color: #e65100;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 16px;
}

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

/* Step List */
.te-step-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: te-step;
}
.te-step-list li {
    counter-increment: te-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;
}
.te-step-list li::before {
    content: counter(te-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;
}

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

/* Pay Button */
.te-pay-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff6725 0%, #ff8f5c 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s;
}
.te-pay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,103,37,0.3);
    color: #fff;
    text-decoration: none;
}
.te-pay-btn i { margin-right: 6px; }

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

/* Reassurance Messages */
.te-reassurance {
    text-align: center;
    padding: 8px 0;
    font-size: 13px;
    color: #888;
    display: none;
}
.te-reassurance.show { display: block; }
.te-reassurance i { margin-right: 4px; color: #ff6725; }

/* Error State */
.te-error-box {
    text-align: center;
    padding: 40px 20px;
}
.te-error-box i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
}
.te-error-box h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
.te-error-box p {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .te-search-hero { padding: 24px 20px 18px; }
    .te-search-hero-title { font-size: 22px; }
    .te-detail-grid { grid-template-columns: 1fr; }
    .te-detail-label { border-bottom: none; padding-bottom: 2px; }
    .te-detail-value { padding-top: 2px; }
    .te-bill-highlight-amount { font-size: 28px; }
    .te-result-card { padding: 20px; }
    .te-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .te-search-hero-title { font-size: 20px; }
    .te-search-hero { padding: 20px 16px 16px; }
    .te-search-card { padding: 16px; }
    .te-slab-table { font-size: 13px; }
    .te-slab-table thead th, .te-slab-table tbody td { padding: 10px 12px; }
    .te-bill-table thead th, .te-bill-table tbody td { padding: 10px 12px; font-size: 13px; }
    .te-bill-highlight { padding: 16px; }
    .te-bill-highlight-amount { font-size: 24px; }
    .te-results-actions { gap: 6px !important; }
    .te-results-actions .btn { font-size: 12px; padding: 5px 8px; }
}

/* Print Styles */
@media print {
    .dashboard-side-menu, .dashboard-header, .te-search-hero, .te-search-card,
    .related-tool-card, #tool-article, .te-faq-item, footer, nav, .breadcrumb,
    .te-results-actions, .te-pay-btn, #te-guidance, .row.mb-20:has(.related-tool-card) { display: none !important; }
    .te-result-card {
        box-shadow: none !important;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    .te-result-card::before {
        content: 'TGSPDCL Electricity Bill — Source: tg.verified.realestate — Printed: ' attr(data-print-date);
        display: block;
        font-size: 12px;
        color: #666;
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid #ddd;
    }
    .te-bill-highlight { border: 1px solid #ddd; }
    .te-detail-grid { border: 1px solid #ddd; }
}
