/* Road Width Check Styles — Theme: #FF6725 (orange) */
/* CSS prefix: rwc- */

/* Hero Section */
.rwc-search-hero {
    background: linear-gradient(135deg, #ff6725 0%, #ff8f5c 50%, #ffb88c 100%);
    border-radius: 20px 20px 0 0;
    padding: 30px 30px 25px;
    position: relative;
    overflow: hidden;
}
.rwc-search-hero-decoration {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    pointer-events: none;
}
.rwc-search-hero-decoration::before {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
}
.rwc-search-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.rwc-search-hero-badge i {
    font-size: 11px;
}
.rwc-search-hero-title {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.rwc-search-hero-desc {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    margin-bottom: 0;
}
.rwc-search-hero-desc a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.rwc-search-hero-desc a:hover {
    color: #fff;
    text-decoration-thickness: 2px;
}
.rwc-search-hero + .rwc-search-card {
    border-radius: 0 0 20px 20px;
    margin-top: -1px;
}

/* Search Form Card */
.rwc-search-card {
    border-radius: 0 0 20px 20px;
}

/* Results Section */
.rwc-results-card {
    padding: 30px;
}
.rwc-results-header {
    text-align: center;
    margin-bottom: 25px;
}
.rwc-results-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 5px;
}
.rwc-results-header p {
    font-size: 13px;
    color: #6b7280;
}

/* Color-coded result badge */
.rwc-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}
.rwc-result-badge.green {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}
.rwc-result-badge.blue {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}
.rwc-result-badge.yellow {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}
.rwc-result-badge.red {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}
.rwc-result-badge.grey {
    background: rgba(107, 114, 128, 0.12);
    color: #4b5563;
}

/* Summary Grid */
.rwc-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}
.rwc-summary-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 18px 15px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.rwc-summary-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 103, 37, 0.12);
}
.rwc-summary-item .rwc-si-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 18px;
}
.rwc-summary-item .rwc-si-icon.orange {
    background: #fff5f0;
    color: #FF6725;
}
.rwc-summary-item .rwc-si-icon.green {
    background: #d1fae5;
    color: #059669;
}
.rwc-summary-item .rwc-si-icon.blue {
    background: #dbeafe;
    color: #2563eb;
}
.rwc-summary-item .rwc-si-icon.red {
    background: #fee2e2;
    color: #dc2626;
}
.rwc-summary-item .rwc-si-icon.purple {
    background: #ede9fe;
    color: #7c3aed;
}
.rwc-summary-item .rwc-si-icon.amber {
    background: #fef3c7;
    color: #d97706;
}
.rwc-si-value {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
    margin-bottom: 2px;
}
.rwc-si-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Detail Rows */
.rwc-detail-section {
    margin-top: 20px;
}
.rwc-detail-section h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rwc-detail-section h4 i {
    color: #FF6725;
}
.rwc-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.rwc-detail-list li {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}
.rwc-detail-list li:last-child {
    border-bottom: none;
}
.rwc-detail-list li i {
    color: #FF6725;
    margin-top: 3px;
    min-width: 16px;
}
.rwc-detail-list li strong {
    color: #1f2937;
}

/* Disclaimer box */
.rwc-disclaimer {
    background: #fff5f0;
    border: 1px solid #ffd4c2;
    border-radius: 10px;
    padding: 15px 20px;
    font-size: 13px;
    color: #92400e;
    line-height: 1.6;
    margin-top: 20px;
}
.rwc-disclaimer strong {
    color: #9a3412;
}

/* Reference Table */
.rwc-ref-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    margin-top: 10px;
}
.rwc-ref-table thead th {
    background: #fff5f0;
    color: #9a3412;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    border-bottom: 2px solid #ffd4c2;
    white-space: nowrap;
}
.rwc-ref-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #374151;
}
.rwc-ref-table tbody tr:hover {
    background: #fff5f0;
}
.rwc-ref-table tbody tr.rwc-highlight {
    background: #fff5f0;
    font-weight: 600;
}

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

/* Article Section */
#tool-article .column {
    padding: 25px 30px;
}
#tool-article h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
    margin-top: 25px;
}
#tool-article h2:first-child {
    margin-top: 0;
}
#tool-article h3 {
    font-size: 17px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
    margin-top: 20px;
}
#tool-article p {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 12px;
}
#tool-article ul {
    margin-bottom: 12px;
    padding-left: 20px;
}
#tool-article li {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 5px;
}
#tool-article a {
    color: #FF6725;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .rwc-search-hero {
        padding: 22px 20px 18px;
        border-radius: 16px 16px 0 0;
    }
    .rwc-search-hero-title {
        font-size: 1.2rem;
    }
    .rwc-summary-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .rwc-si-value {
        font-size: 16px;
    }
    .rwc-results-card {
        padding: 20px 15px;
    }
    .rwc-ref-table {
        font-size: 12px;
    }
    .rwc-ref-table thead th,
    .rwc-ref-table tbody td {
        padding: 8px 8px;
    }
}
@media (max-width: 480px) {
    .rwc-summary-grid {
        grid-template-columns: 1fr;
    }
}
