/* ==========================================================================
   Certified Copy (Nakal) Tool — Purple Theme (#e55a1b)
   Prefix: cn-
   ========================================================================== */

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

/* Tabs */
.cn-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid #e8e8e8;
}
.cn-tab {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}
.cn-tab:hover { color: #e55a1b; }
.cn-tab.active {
    color: #e55a1b;
    border-bottom-color: #ff6725;
}
.cn-tab i { margin-right: 6px; }
.cn-tab-content { display: none; }
.cn-tab-content.active { display: block; }

/* Info Cards */
.cn-info-section {
    margin-bottom: 20px;
}
.cn-info-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.3s;
}
.cn-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106,27,154,0.08);
    border-color: #ce93d8;
}
.cn-info-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #e55a1b;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cn-info-card-title i {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff3ed;
    color: #ff6725;
    font-size: 15px;
    flex-shrink: 0;
}

/* Fee Table */
.cn-fee-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.cn-fee-table thead th {
    background: #fff3ed;
    color: #e55a1b;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: left;
}
.cn-fee-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
}
.cn-fee-table tbody tr:hover { background: #faf5fc; }
.cn-fee-table .cn-fee-amount {
    font-weight: 700;
    color: #e55a1b;
}

/* Checklist */
.cn-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cn-checklist li {
    padding: 10px 0;
    border-bottom: 1px solid #f5f0f7;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}
.cn-checklist li:last-child { border-bottom: none; }
.cn-checklist li i {
    color: #ff6725;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Steps */
.cn-step-list {
    counter-reset: cn-step;
    list-style: none;
    padding: 0;
    margin: 0;
}
.cn-step-list li {
    counter-increment: cn-step;
    padding: 14px 0;
    border-bottom: 1px solid #f5f0f7;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}
.cn-step-list li:last-child { border-bottom: none; }
.cn-step-list li::before {
    content: counter(cn-step);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6725, #ff8f5c);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Time Badge */
.cn-time-badge {
    display: inline-block;
    background: #fff3ed;
    color: #e55a1b;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    margin-right: 10px;
    margin-bottom: 8px;
}

/* Result Guidance Card */
.cn-result-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
}
.cn-result-header {
    background: linear-gradient(135deg, #fff3ed 0%, #fff3ed 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}
.cn-result-section { margin-bottom: 20px; }
.cn-result-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;
}

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

/* Guidance Box */
.cn-guidance-box {
    background: #faf5fc;
    border: 1px solid #ffd6c2;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}
.cn-guidance-box p {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}
.cn-guidance-box strong { color: #e55a1b; }

/* SRO Details Box */
.cn-sro-details {
    background: #fff3ed;
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
}
.cn-sro-details h6 {
    font-size: 14px;
    font-weight: 700;
    color: #e55a1b;
    margin-bottom: 10px;
}
.cn-sro-details p {
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
    line-height: 1.6;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .cn-search-hero { padding: 24px 20px 18px; }
    .cn-search-hero-title { font-size: 20px; }
    .cn-search-hero-desc { font-size: 13px; }
    .cn-tabs { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
    .cn-tab { padding: 10px 16px; font-size: 13px; }
    .cn-fee-table { font-size: 13px; }
    .cn-fee-table thead th,
    .cn-fee-table tbody td { padding: 10px 12px; }
    .cn-info-card { padding: 18px; }
    .cn-info-card-title { font-size: 15px; }
    .cn-result-card { padding: 20px; }
}

@media (max-width: 576px) {
    .cn-search-hero-title { font-size: 18px; }
    .cn-tabs { gap: 0; }
    .cn-tab { padding: 10px 12px; font-size: 12px; flex: 1; text-align: center; white-space: normal; }
    .cn-step-list li { gap: 10px; font-size: 13px; }
    .cn-step-list li::before { width: 26px; height: 26px; font-size: 11px; }
}

/* Print Styles */
@media print {
    .dashboard-side-menu, .dashboard-header, .cn-search-hero, .cn-search-card,
    .related-tool-card, #tool-article, .cn-faq-item, footer, nav, .breadcrumb,
    .cn-results-actions, .cn-tabs, .cn-tab-content { display: none !important; }
    .cn-info-section { display: block !important; }
    .cn-info-card { box-shadow: none !important; border: 1px solid #ddd; page-break-inside: avoid; }
    .cn-fee-table { page-break-inside: avoid; }
    body::before {
        content: 'Certified Copy (Nakal) Guide — 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;
    }
}
