/* RERA Agent Search — Brand Theme (#ff6725 orange) */

.ra-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;
}
.ra-search-hero-decoration {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.ra-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);
}
.ra-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;
}
.ra-search-hero-badge i { margin-right: 5px; }
.ra-search-hero-title {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.2;
}
.ra-search-hero-desc {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    margin: 0;
}
.ra-search-hero-desc a {
    color: #ffd6c2;
    text-decoration: underline;
    font-weight: 500;
}
.ra-search-hero-desc a:hover { color: #fff; text-decoration: none; }
.ra-search-hero + .ra-search-card { border-radius: 0 0 20px 20px !important; }
.ra-search-card { padding: 24px; }

/* Guidance result card */
.ra-guidance-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
}
.ra-guidance-header {
    background: linear-gradient(135deg, #fff3ed 0%, #fff8f4 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}
.ra-guidance-section { margin-bottom: 20px; }
.ra-guidance-section h6 {
    font-size: 14px;
    font-weight: 700;
    color: #e55a1b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #fff3ed;
}
.ra-step-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: ra-step;
}
.ra-step-list li {
    position: relative;
    padding: 12px 12px 12px 50px;
    margin-bottom: 10px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    counter-increment: ra-step;
}
.ra-step-list li::before {
    content: counter(ra-step);
    position: absolute;
    left: 12px;
    top: 12px;
    width: 28px;
    height: 28px;
    background: #ff6725;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

/* Info sections */
.ra-info-card {
    background: #fafafa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #f0f0f0;
    transition: transform 0.2s, box-shadow 0.2s;
}
.ra-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.ra-info-card h5 {
    font-size: 16px;
    font-weight: 700;
    color: #e55a1b;
    margin-bottom: 10px;
}
.ra-info-card h5 i {
    margin-right: 8px;
    color: #ff6725;
}
.ra-info-card p, .ra-info-card li {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}
.ra-info-card ul {
    padding-left: 18px;
    margin-bottom: 0;
}
.ra-info-card ul li { margin-bottom: 6px; }

/* Penalty table */
.ra-penalty-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.ra-penalty-table thead th {
    background: #fff3ed;
    color: #e55a1b;
    font-weight: 700;
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.ra-penalty-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    vertical-align: top;
}
.ra-penalty-table tbody tr:last-child td { border-bottom: none; }
.ra-penalty-table tbody tr:hover { background: #fff8f4; }

/* Badge for status */
.ra-status-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}
.ra-status-badge.ra-badge-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}
.ra-status-badge.ra-badge-warning {
    background: #fff8e1;
    color: #f57f17;
    border: 1px solid #fff9c4;
}
.ra-status-badge.ra-badge-danger {
    background: #fbe9e7;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

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

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

/* Portal link callout */
.ra-portal-callout {
    background: linear-gradient(135deg, #fff3ed 0%, #fff8f4 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-top: 10px;
}
.ra-portal-callout a {
    display: inline-block;
    background: #ff6725;
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.ra-portal-callout a:hover {
    background: #e55a1b;
    transform: translateY(-1px);
    color: #fff;
}
.ra-portal-callout a i { margin-right: 6px; }

/* Mobile responsive */
@media (max-width: 768px) {
    .ra-search-hero { padding: 24px 18px 18px; }
    .ra-search-hero-title { font-size: 20px; }
    .ra-search-card { padding: 18px; }
    .ra-guidance-card { padding: 20px; }
    .ra-penalty-table { font-size: 13px; }
    .ra-penalty-table thead th, .ra-penalty-table tbody td { padding: 10px 12px; }
}

@media (max-width: 576px) {
    .ra-search-hero-title { font-size: 18px; }
    .ra-search-hero-desc { font-size: 13px; }
    .ra-info-card { padding: 16px; }
    .ra-step-list li { padding-left: 44px; font-size: 13px; }
    .ra-step-list li::before { width: 24px; height: 24px; font-size: 11px; }
}

/* Agent result cards */
.ra-agent-card {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ra-agent-card:hover {
    border-color: #ffb88c;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.ra-agent-card-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
    transition: background 0.2s;
}
.ra-agent-card-header:hover { background: #fff8f4; }
.ra-agent-card-header { cursor: url(../dashboard/images/icon/pointer.svg), pointer !important; }
.ra-agent-card-main {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}
.ra-agent-type-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #fff3ed;
    color: #ff6725;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.ra-agent-card-info { min-width: 0; flex: 1; }
.ra-agent-card-info h6 {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ra-agent-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.ra-meta-item {
    font-size: 12px;
    color: #777;
}
.ra-meta-item i { color: #ff6725; }
.ra-badge-firm {
    background: #fff3ed;
    color: #e55a1b;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}
.ra-badge-individual {
    background: #f3e5f5;
    color: #7b1fa2;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}
.ra-expand-icon {
    color: #aaa;
    font-size: 14px;
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 10px;
}

/* Agent detail tables */
.ra-agent-card-detail .table {
    margin-bottom: 0;
}
.ra-agent-card-detail .table th {
    background: #f5f5f5;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 700;
    color: #666;
}
.ra-agent-card-detail .badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 6px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .ra-agent-card-header { padding: 12px 14px; }
    .ra-agent-card-main { gap: 10px; }
    .ra-agent-type-icon { width: 36px; height: 36px; font-size: 15px; }
    .ra-agent-card-info h6 { font-size: 14px; }
    .ra-agent-card-detail .row { padding: 10px 14px !important; }
}

/* Print styles */
@media print {
    .dashboard-side-menu, .dashboard-header, .ra-search-hero, .ra-search-card,
    .related-tool-card, #tool-article, .ra-faq-item, footer, nav, .breadcrumb,
    .ra-results-actions, .ra-portal-callout { display: none !important; }
    .ra-agent-card { break-inside: avoid; }
    .ra-agent-card-detail { display: block !important; }
    #ra-result-area::before {
        content: 'RERA Agent Search — Source: tg.verified.realestate — ' attr(data-date);
        display: block;
        font-size: 12px;
        color: #666;
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid #ddd;
    }
}
