/* Finder NU Styles */

.finder-nu-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.finder-header {
    text-align: center;
    margin-bottom: 40px;
}

.finder-title {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #333;
}

.finder-subtitle {
    font-size: 1.2em;
    color: #666;
    margin: 0;
}

/* Main Content Layout */
.finder-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Sidebar Filters */
.finder-sidebar {
    flex: 0 0 300px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.finder-sidebar h2 {
    margin-top: 0;
    font-size: 1.5em;
    color: #333;
    border-bottom: 2px solid #c8102e;
    padding-bottom: 10px;
}

.finder-filters {
    margin-bottom: 20px;
}

.finder-filter-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
}

.finder-filter-group:last-child {
    border-bottom: none;
}

.finder-filter-group h3 {
    font-size: 1.1em;
    margin: 0 0 10px 0;
    color: #495057;
}

.filter-description {
    font-size: 0.9em;
    color: #6c757d;
    margin: 5px 0 10px 0;
}

.finder-choices {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.finder-choice {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.finder-choice:hover {
    background-color: #e9ecef;
}

.finder-choice input {
    margin-right: 8px;
    cursor: pointer;
}

.finder-reset-btn {
    width: 100%;
    padding: 12px;
    background: #c8102e;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.3s;
}

.send-email-btn {
    background: #dc3545;
    padding-left: 10px;
    padding-right: 10px;
    margin-left: 10px;
    color: white;
    border: none;
    /* border-radius: 5px; */
    cursor: pointer;
    font-size: 1em;
    font-weight: 300;
    transition: background-color 0.3s;
}

.finder-reset-btn:hover,
.send-email-button:hover {
    background: #c82333;
}

/* Main Content Area */
.finder-main {
    flex: 1;
    min-width: 0;
}

.finder-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #c8102e;
}

.finder-results-header h2 {
    margin: 0;
    font-size: 1.8em;
    color: #333;
}

.finder-count {
    font-size: 1.1em;
    color: #6c757d;
}

/* Service Cards */
.finder-services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.finder-service-card {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.finder-service-card:not(.finder-service-disabled) {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.finder-service-card:not(.finder-service-disabled):hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #c8102e;
}

.finder-service-disabled {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(100%);
}

.service-thumbnail {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f8f9fa;
}

.service-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.3em;
    color: #333;
}

.service-content p {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.5;
    flex: 1;
}

.service-select-btn {
    padding: 10px 20px;
    background: #c8102e;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.3s;
    align-self: flex-start;
}

.service-select-btn:hover {
    background: #990c23;
}

.service-select-btn.selected {
    background: #A4804A;
}

.service-select-btn.selected:hover {
    background: #76663F;
}

/* Comparison Table */
.finder-comparison {
    margin-top: 40px;
    background: white;
    border: 2px solid #c8102e;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.comparison-header h2 {
    margin: 0;
    font-size: 1.8em;
    color: #333;
}

.comparison-close {
    padding: 8px 16px;
    background: #121212;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s;
}

.comparison-close:hover {
    background: #3c3c3c;
}

.comparison-table-wrapper {
    overflow-x: auto;
}

.finder-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.finder-comparison-table th,
.finder-comparison-table td {
    padding: 15px;
    border: 1px solid #dee2e6;
    text-align: left;
    vertical-align: top;
}

.finder-comparison-table thead th {
    background: #c8102e;
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.finder-comparison-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.finder-comparison-table tbody tr:hover {
    background: #e9ecef;
}

.category-label {
    font-weight: 600;
    background: #f8f9fa !important;
    width: 200px;
    position: relative;
}

.help-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 0.8em;
    margin-left: 8px;
    cursor: help;
}

/* No Services Message */
.no-services {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 1.2em;
}

.form-row {
    display: inline-flex;
    align-items: right;
}

.form-row label {
    margin-right: 10px;
    margin-left: 10px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .finder-content {
        flex-direction: column;
    }

    .finder-sidebar {
        flex: 1;
        width: 100%;
        position: static;
        max-height: none;
    }

    .finder-services {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .finder-title {
        font-size: 2em;
    }

    .finder-services {
        grid-template-columns: 1fr;
    }

    .finder-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .comparison-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .finder-comparison-table {
        font-size: 0.9em;
    }

    .finder-comparison-table th,
    .finder-comparison-table td {
        padding: 10px;
    }

    .category-label {
        width: auto;
    }
}

/* Loading and Error States */
.finder-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.finder-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    border: 1px solid #f5c6cb;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.finder-service-card {
    animation: fadeIn 0.3s ease-in-out;
}

/* Print Styles */
@media print {

    .finder-sidebar,
    .service-select-btn,
    .comparison-close {
        display: none;
    }

    .finder-main {
        width: 100%;
    }

    .finder-service-card {
        break-inside: avoid;
    }
}
