/* RFP Wizard Header Styles */

/* Brown Header */
.rfp-wizard-header {
    background-color: var(--selectedSideTabBackgroundColor);
    color: var(--selectedSideTabTextColor);
    padding: 0 !important;
}

.rfp-wizard-header-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    padding: 20px 24px !important;
}

.rfp-wizard-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    color: white !important;
}

.rfp-wizard-subtitle {
    font-size: 14px !important;
    opacity: 0.9 !important;
    color: white !important;
}

/* Step Progress Bar */
.rfp-wizard-steps {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 20px 40px !important;
    background: white !important;
    gap: 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
    width: 100% !important;
}

.rfp-step {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
}

.rfp-step .step-circle,
.step-circle {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border: 2px solid #e0e0e0 !important;
    background: white !important;
    color: #666 !important;
    transition: all 0.3s ease !important;
}

/* Active Step - Brown */
.rfp-step.active .step-circle {
    background: var(--selectedSideTabBackgroundColor) !important;
    border-color: var(--selectedSideTabBackgroundColor) !important;
    color: var(--selectedSideTabTextColor) !important;
}

/* Completed Step - Brown (same as active) */
.rfp-step.completed .step-circle {
    background: var(--selectedSideTabBackgroundColor) !important;
    border-color: var(--selectedSideTabBackgroundColor) !important;
    color: var(--selectedSideTabTextColor) !important;
}

/* Step Labels */
.rfp-step .step-label,
.step-label {
    font-size: 12px !important;
    color: #666 !important;
    white-space: nowrap !important;
}

.rfp-step.active .step-label {
    color: var(--selectedSideTabBackgroundColor) !important;
    font-weight: 600 !important;
}

.rfp-step.completed .step-label {
    color: var(--selectedSideTabBackgroundColor) !important;
}

/* Step Connectors */
.step-connector {
    flex: 1 !important;
    height: 2px !important;
    background: #e0e0e0 !important;
    margin: 0 8px !important;
    margin-bottom: 20px !important;
    min-width: 50px !important;
}

.step-connector.completed {
    background: var(--selectedSideTabBackgroundColor) !important;
}

/* Company Selection Indicator */
.rfp-company-indicator {
    background: #e8f5e9 !important;
    padding: 16px 20px !important;
    margin: 16px !important;
    border-radius: 8px !important;
}

.rfp-company-count {
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #333 !important;
}

.rfp-match-status {
    color: #4caf50 !important;
    font-weight: 500 !important;
}

.rfp-company-range {
    display: flex !important;
    justify-content: space-between !important;
    margin-top: 8px !important;
    font-size: 13px !important;
    color: #666 !important;
}

/* Hide default offcanvas header when wizard header is present */
#offcanvasAddRFP > .offcanvas-header {
    display: none !important;
}

/* Required field asterisk - red color */
.requiredRFPFields {
    color: red;
    font-size: 12px;
}

/* ==================== COMPANY COUNT INDICATOR BAR ==================== */

.rfp-company-indicator-bar {
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

/* Sticky modifier - apply only on category selection page */
.rfp-company-indicator-bar.sticky {
    position: sticky;
    top: -24px;
    z-index: 100;
}

.rfp-company-indicator-bar.status-good {
    background: #E8F5E9;
    border-color: #A5D6A7;
}

.rfp-company-indicator-bar.status-warning {
    background: #FFF8E1;
    border-color: #FFE082;
}

.rfp-company-indicator-bar.status-over {
    background: #FFEBEE;
    border-color: #EF9A9A;
}

.rfp-indicator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.rfp-company-count-text {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.rfp-indicator-status {
    font-weight: 500;
    font-size: 14px;
    color: #F9A825;
}

.rfp-company-indicator-bar.status-good .rfp-indicator-status {
    color: #4CAF50;
}

.rfp-company-indicator-bar.status-warning .rfp-indicator-status {
    color: #F9A825;
}

.rfp-company-indicator-bar.status-over .rfp-indicator-status {
    color: #E53935;
}

.rfp-indicator-progress-container {
    width: 100%;
    height: 8px;
    background: #E0E0E0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.rfp-indicator-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FFC107 0%, #FF9800 100%);
    border-radius: 4px;
    transition: width 0.3s ease, background 0.3s ease;
}

.rfp-company-indicator-bar.status-good .rfp-indicator-progress-bar {
    background: linear-gradient(90deg, #66BB6A 0%, #43A047 100%);
}

.rfp-company-indicator-bar.status-over .rfp-indicator-progress-bar {
    background: linear-gradient(90deg, #EF5350 0%, #E53935 100%);
}

.rfp-indicator-range {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #757575;
}

/* ==================== SELECTED CATEGORIES CHIPS ==================== */

.rfp-selected-categories-section {
    margin-bottom: 0;
}

.rfp-selected-title {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.rfp-selected-subtitle {
    font-size: 13px;
    color: #757575;
}

.rfp-selected-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 40px;
    max-height: 130px;
    overflow-y: auto;
    padding: 10px;
    border: 1px dashed #E0E0E0;
    border-radius: 6px;
    background: #FAFAFA;
}

/* Custom scrollbar for chips container */
.rfp-selected-chips::-webkit-scrollbar {
    width: 6px;
}

.rfp-selected-chips::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.rfp-selected-chips::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.rfp-selected-chips::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.rfp-selected-chips:empty::before {
    content: "Choose subcategories.";
    color: #9E9E9E;
    font-size: 13px;
    font-style: italic;
}

.rfp-category-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #F5F5F5;
    border: 1px solid #E0E0E0;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    color: #333;
    max-width: 250px;
    transition: all 0.2s ease;
}

.rfp-category-chip:hover {
    background: #EEEEEE;
    border-color: #BDBDBD;
}

.rfp-category-chip span {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rfp-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #E0E0E0;
    color: #616161;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    padding: 0;
    line-height: 1;
}

.rfp-chip-remove:hover {
    background: #BDBDBD;
    color: #333;
}

/* ==================== RESPONSIVE STYLES ==================== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .rfp-wizard-header-content {
        padding: 16px 20px !important;
    }

    .rfp-wizard-title {
        font-size: 18px !important;
    }

    .rfp-wizard-subtitle {
        font-size: 13px !important;
    }

    .rfp-wizard-steps {
        padding: 16px 20px !important;
    }

    .rfp-step .step-circle,
    .step-circle {
        width: 32px !important;
        height: 32px !important;
        font-size: 13px !important;
    }

    .rfp-step .step-label,
    .step-label {
        font-size: 11px !important;
    }

    .step-connector {
        min-width: 30px !important;
        margin: 0 4px !important;
        margin-bottom: 18px !important;
    }
}

/* Mobile (576px and below) */
@media (max-width: 576px) {
    .rfp-wizard-header-content {
        padding: 12px 16px !important;
    }

    .rfp-wizard-title {
        font-size: 16px !important;
    }

    .rfp-wizard-subtitle {
        font-size: 12px !important;
    }

    .rfp-wizard-steps {
        padding: 12px 12px !important;
    }

    .rfp-step .step-circle,
    .step-circle {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
        border-width: 1.5px !important;
    }

    .rfp-step .step-label,
    .step-label {
        font-size: 9px !important;
    }

    .step-connector {
        min-width: 15px !important;
        margin: 0 2px !important;
        margin-bottom: 16px !important;
    }
}

/* Extra small mobile (400px and below) */
@media (max-width: 400px) {
    .rfp-wizard-steps {
        padding: 10px 8px !important;
    }

    .rfp-step .step-circle,
    .step-circle {
        width: 24px !important;
        height: 24px !important;
        font-size: 10px !important;
    }

    .rfp-step .step-label,
    .step-label {
        font-size: 8px !important;
    }

    .step-connector {
        min-width: 10px !important;
        margin: 0 1px !important;
        margin-bottom: 14px !important;
    }
}

/* ==================== RESPONSIVE FOR COMPANY INDICATOR & CHIPS ==================== */

@media (max-width: 768px) {
    .rfp-company-indicator-bar {
        padding: 14px 16px;
    }

    .rfp-company-count-text {
        font-size: 15px;
    }

    .rfp-indicator-status {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .rfp-company-indicator-bar {
        padding: 12px 14px;
    }

    .rfp-indicator-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .rfp-company-count-text {
        font-size: 14px;
    }

    .rfp-indicator-status {
        font-size: 12px;
    }

    .rfp-selected-categories-section .d-flex.align-items-center.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
    }

    .rfp-category-chip {
        font-size: 12px;
        padding: 4px 10px;
    }

    .rfp-chip-remove {
        width: 16px;
        height: 16px;
        font-size: 12px;
    }
}

/* ==================== RFP FILTER PAGE STYLES - UPDATED ==================== */

/* Section 1: Refine Your Selection Title Box */
.rfp-refine-title-box {
    background: #FAFAFA;
    border-radius: 8px;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.rfp-refine-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.rfp-refine-description {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Section 2: Select Categories */
.rfp-categories-section {
    padding: 0;
}

.rfp-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.rfp-edit-link {
    background: transparent;
    border: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.rfp-edit-link:hover {
    color: #333;
}

.rfp-edit-button {
    background: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    padding: 6px 20px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rfp-edit-button:hover {
    background: #F5F5F5;
    border-color: #BDBDBD;
}

.rfp-categories-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px;
    background: #FAFAFA;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    min-height: 60px;
}

/* Scrollable chips container for filter page (max 3 rows) */
.rfp-filter-chips-scrollable {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 135px; /* Approximately 3 rows with gap */
    overflow-y: auto;
    padding-right: 6px;
}

.rfp-filter-chips-scrollable::-webkit-scrollbar {
    width: 5px;
}

.rfp-filter-chips-scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.rfp-filter-chips-scrollable::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.rfp-filter-chips-scrollable::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.rfp-category-chip-readonly {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    color: #333;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Section 3: Refine Your Matches Box */
.rfp-refine-matches-box {
    background: #FAFAFA;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    padding: 20px 24px;
}

.rfp-filter-icon {
    color: #666;
    font-size: 14px;
}

.rfp-refine-matches-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.rfp-matches-count {
    font-size: 14px;
    color: var(--selectedSideTabBackgroundColor);
    font-weight: 500;
}

.rfp-filter-row-new {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #F0F0F0;
}

.rfp-filter-row-new:last-child {
    border-bottom: none;
}

.rfp-filter-checkbox-new {
    display: flex;
    align-items: center;
    margin: 0;
}

.rfp-filter-checkbox-new input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--selectedSideTabBackgroundColor);
    cursor: pointer;
    margin: 0;
}

.rfp-filter-row-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.rfp-filter-row-icon.star-icon {
    color: #F5A623;
}

.rfp-filter-row-icon.clock-icon {
    color: #4CAF50;
}

.rfp-filter-row-icon.users-icon {
    color: #757575;
}

.rfp-filter-row-icon.partner-icon {
    color: #5C9DED;
}

.rfp-filter-label-text {
    font-size: 14px;
    color: #333;
}

.rfp-filter-dropdown-small {
    width: 70px;
    padding: 6px 10px;
    font-size: 14px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    background: #fff;
    text-align: center;
}

.rfp-filter-dropdown {
    width: 140px;
    padding: 6px 10px;
    font-size: 14px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    background: #fff;
}

.rfp-filter-text-input-new {
    width: 160px;
    padding: 6px 12px;
    font-size: 14px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
}

.rfp-filter-text-input-new::placeholder {
    color: #BDBDBD;
}

/* Section 4: Company Selection Box */
.rfp-company-selection-box {
    background: #fff;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    padding: 20px 24px;
}

.rfp-selected-count-text {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.rfp-selection-actions {
    display: flex;
    gap: 16px;
}

.rfp-select-action-link {
    font-size: 14px;
    color: var(--selectedSideTabBackgroundColor);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.rfp-select-action-link:hover {
    text-decoration: underline;
    color: var(--selectedSideTabBackgroundColor);
}

.rfp-deselect-action-link {
    font-size: 14px;
    color: #999;
    text-decoration: none;
    cursor: pointer;
}

.rfp-deselect-action-link:hover {
    text-decoration: underline;
    color: #666;
}

/* Company Tabs */
.rfp-company-tabs {
    display: flex;
    gap: 0;
}

.rfp-company-tab {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #E0E0E0;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rfp-company-tab:first-child {
    border-radius: 6px 0 0 6px;
}

.rfp-company-tab:last-child {
    border-radius: 0 6px 6px 0;
    border-left: none;
}

.rfp-company-tab.active {
    background: var(--selectedSideTabBackgroundColor);
    border-color: var(--selectedSideTabBackgroundColor);
    color: var(--selectedSideTabTextColor);
}

.rfp-company-tab:hover:not(.active) {
    background: #F5F5F5;
}

/* Search Box */
.rfp-search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.rfp-search-box-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #BDBDBD;
    font-size: 14px;
}

.rfp-search-box-input {
    width: 100%;
    padding-left: 40px;
    padding-right: 14px;
    height: 42px;
    font-size: 14px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    background: #fff;
}

.rfp-search-box-input::placeholder {
    color: #BDBDBD;
}

/* Sort Box */
.rfp-sort-box {
    display: flex;
    align-items: center;
    color: #666;
    flex-shrink: 0;
    gap: 8px;
}

.rfp-sort-dropdown {
    width: auto;
    min-width: 180px;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    background: #fff;
    height: 42px;
}

/* Go Button */
.rfp-go-btn {
    background: var(--selectedSideTabBackgroundColor, #6B8E23);
    color: #fff;
    border: 1px solid var(--selectedSideTabBackgroundColor, #6B8E23);
    padding: 8px 24px;
    height: 42px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.rfp-go-btn:hover {
    background: var(--selectedSideTabBackgroundColor, #5a7a1e);
    opacity: 0.9;
    color: #fff;
}

/* Apply Button for Refine Filters */
.rfp-apply-filter-btn {
    background: var(--selectedSideTabBackgroundColor, #6B8E23);
    color: #fff;
    border: none;
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rfp-apply-filter-btn:hover {
    background: var(--selectedSideTabBackgroundColor, #5a7a1e);
    opacity: 0.9;
}

/* Disabled filter controls */
.rfp-filter-dropdown-small:disabled,
.rfp-filter-dropdown:disabled,
.rfp-filter-text-input-new:disabled {
    background-color: #F5F5F5;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Company List New */
.rfp-company-list-new {
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-right: -10px;
    padding-right: 10px;
}

.rfp-company-item-new {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #F0F0F0;
}

.rfp-company-item-new:last-child {
    border-bottom: none;
}

.rfp-company-item-new:hover {
    background: #FAFAFA;
    margin: 0 0 0 -24px;
    padding: 14px 24px 14px 24px;
}

.rfp-company-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rfp-company-checkbox-new {
    width: 20px;
    height: 20px;
    accent-color: var(--selectedSideTabBackgroundColor);
    cursor: pointer;
}

.rfp-company-name-new {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.rfp-company-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rfp-star-rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.rfp-star-rating .fa-star {
    font-size: 14px;
    color: #F5A623;
}

.rfp-star-rating .fa-star.empty {
    color: #E0E0E0;
}

.rfp-rating-count {
    font-size: 14px;
    color: #666;
    margin-left: 4px;
}

/* Pipe separator between rating and recommendations */
.rfp-separator {
    color: #999;
    margin: 0 8px;
    font-weight: normal;
}

/* Recommendation count display */
.rfp-recommendation-count {
    font-size: 14px;
    color: #666;
    margin-left: 0;
    white-space: nowrap;
}

/* Outside categories badge */
.rfp-outside-badge {
    display: inline-block;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 10px;
    color: #666;
    margin-left: 8px;
    white-space: nowrap;
}

/* Loading Spinner */
.rfp-loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: #666;
    font-size: 14px;
}

.rfp-loading-spinner i {
    margin-right: 8px;
}

/* Scrollbar for company list */
.rfp-company-list-new::-webkit-scrollbar {
    width: 6px;
}

.rfp-company-list-new::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.rfp-company-list-new::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.rfp-company-list-new::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* ==================== RESPONSIVE FOR FILTER PAGE ==================== */

@media (max-width: 768px) {
    .rfp-filter-row-new {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .rfp-company-tabs {
        width: 100%;
    }
    
    .rfp-company-tab {
        flex: 1;
        text-align: center;
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .d-flex.gap-3.mb-3 {
        flex-direction: column;
    }
    
    .rfp-sort-box {
        width: 100%;
    }
    
    .rfp-sort-dropdown {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .rfp-refine-title-box,
    .rfp-refine-matches-box,
    .rfp-company-selection-box {
        padding: 16px;
    }
    
    .rfp-selection-actions {
        flex-direction: column;
        gap: 8px;
        align-items: flex-end;
    }
}

/* ==================== RFP CONFIRMATION PAGE (STEP 5) STYLES ==================== */

/* Confirm Notes Section */
.rfp-confirm-notes-section {
    background: #F8F9FA;
    border-radius: 8px;
    padding: 20px 24px;
    border-left: 4px solid var(--selectedSideTabBackgroundColor);
}

.rfp-confirm-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.rfp-confirm-subtitle {
    font-size: 14px;
    color: #6c757d;
}

/* Companies to Notify Section */
.rfp-companies-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.rfp-companies-count {
    font-size: 48px;
    font-weight: 700;
    color: var(--selectedSideTabBackgroundColor);
    line-height: 1;
}

.rfp-edit-selection-btn {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rfp-edit-selection-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

/* Stats Row - Simplified Layout */
.rfp-stats-row {
    display: flex;
    justify-content: flex-start;
    gap: 60px;
    padding: 16px 0;
    border-top: 1px solid #E8E8E8;
}

.rfp-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.rfp-stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.rfp-stat-label {
    font-size: 13px;
    color: #6c757d;
    margin-top: 4px;
}

/* Notification Preference Section */
.rfp-notification-preference {
    margin-top: 0;
}

.rfp-preference-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.rfp-preference-option {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rfp-preference-option:hover {
    border-color: #adb5bd;
}

.rfp-preference-option.selected {
    background: color-mix(in srgb, var(--selectedSideTabBackgroundColor) 10%, white 90%);
    border-color: var(--selectedSideTabBackgroundColor);
    box-shadow: 0 0 0 1px var(--selectedSideTabBackgroundColor);
}

.rfp-preference-option label {
    cursor: pointer;
    margin-bottom: 0;
}

.rfp-preference-radio {
    width: 18px;
    height: 18px;
    accent-color: var(--selectedSideTabBackgroundColor);
    cursor: pointer;
    flex-shrink: 0;
}

.rfp-preference-icon {
    color: var(--selectedSideTabBackgroundColor);
    font-size: 16px;
}

.rfp-preference-label {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.rfp-preference-description {
    font-size: 13px;
    color: #6c757d;
}

/* Supplier Stats in Notification Preference */
.rfp-preference-stats {
    font-size: 13px;
    color: var(--selectedSideTabBackgroundColor);
    font-weight: 500;
}

.rfp-supplier-stats {
    color: var(--selectedSideTabBackgroundColor);
}

.rfp-saved-list-dropdown select {
    max-width: 300px;
}

/* Supplier Stats Link - Clickable */
.rfp-supplier-stats-link {
    color: var(--selectedSideTabBackgroundColor);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.rfp-supplier-stats-link:hover {
    color: var(--selectedSideTabBackgroundColor);
    text-decoration: underline;
}

/* Info Tooltip Wrapper */
.rfp-info-tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.rfp-info-tooltip-icon {
    color: var(--selectedSideTabBackgroundColor);
    font-size: 14px;
    cursor: pointer;
    opacity: 0.8;
}

.rfp-info-tooltip-icon:hover {
    opacity: 1;
}

/* Info Tooltip Content - Display below icon, centered */
.rfp-info-tooltip-content {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #FFFDF5;
    border: 1px solid #E8E4D4;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #1a1a1a;
    min-width: 500px;
    max-width: 700px;
    width: max-content;
    z-index: 1050;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    line-height: 1.6;
    white-space: normal;
}

/* Arrow pointing up to the icon */
.rfp-info-tooltip-content::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #E8E4D4;
}

.rfp-info-tooltip-content::after {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #FFFDF5;
}

.rfp-info-tooltip-content-icon {
    color: var(--selectedSideTabBackgroundColor);
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}


/* Responsive Styles for Confirmation Page */
@media (max-width: 768px) {
    .rfp-stats-row {
        gap: 40px;
    }

    .rfp-companies-count {
        font-size: 40px;
    }

    .rfp-stat-number {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .rfp-confirm-notes-section {
        padding: 16px 18px;
    }

    .rfp-confirm-title {
        font-size: 16px;
    }

    .rfp-stats-row {
        gap: 30px;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .rfp-companies-count {
        font-size: 36px;
    }

    .rfp-stat-number {
        font-size: 20px;
    }

    .rfp-preference-option {
        padding: 14px 16px;
    }

    .rfp-preference-label {
        font-size: 14px;
    }

    .rfp-preference-description {
        font-size: 12px;
    }

    .rfp-edit-selection-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* ==================== SEPARATED SECTIONS STYLES ==================== */

/* Confirm Notes Card - Simple Style */
.rfp-confirm-notes-card {
    background: #fff;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    padding: 24px;
}

.rfp-confirm-notes-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.rfp-confirm-notes-subtitle {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
}

/* Stats Row - Centered Layout (Image 3 style) */
.rfp-stats-row-centered {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #E8E8E8;
}

.rfp-stat-centered-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

/* Pipe Divider between stats */
.rfp-stat-divider {
    width: 1px;
    height: 40px;
    background-color: #dee2e6;
    flex-shrink: 0;
}

.rfp-stat-centered-number {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.rfp-stat-centered-label {
    font-size: 13px;
    color: #6c757d;
    margin-top: 6px;
}

/* Stats Row - Inline Layout (for separate card) - kept for backward compatibility */
.rfp-stats-row-inline {
    display: flex;
    gap: 40px;
    padding-top: 16px;
    border-top: 1px solid #E8E8E8;
}

.rfp-stat-inline-item {
    display: flex;
    flex-direction: column;
}

.rfp-stat-inline-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rfp-stat-inline-value {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 2px;
}

/* ==================== STATS CARDS UI ==================== */

.rfp-stats-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #E8E8E8;
}

.rfp-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 14px 10px;
    min-width: 80px;
    flex: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.rfp-stat-card:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.rfp-stat-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
}

.rfp-stat-card-count {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.rfp-stat-card-label {
    font-size: 10px;
    font-weight: 500;
    color: #888;
    margin-top: 4px;
    text-align: center;
}

/* Icon Color Variants */
.rfp-stat-card-icon.stat-gray {
    background: #f0f0f0;
    color: #666;
}

.rfp-stat-card-icon.stat-blue {
    background: #e3f2fd;
    color: #1976d2;
}

.rfp-stat-card-icon.stat-yellow {
    background: #fff8e1;
    color: #f57c00;
}

.rfp-stat-card-icon.stat-green {
    background: #e8f5e9;
    color: #388e3c;
}

.rfp-stat-card-icon.stat-red {
    background: #ffebee;
    color: #d32f2f;
}

.rfp-stat-card-icon.stat-muted {
    background: #f5f5f5;
    color: #9e9e9e;
}

/* Notification Preference Section (Separate) */
.rfp-notification-preference-section {
    padding: 0;
}

/* Info Note Section */
.rfp-info-note {
    background: #F0F7FF;
    border: 1px solid #B8D4F0;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #1a1a1a;
}

.rfp-info-note-icon {
    color: #2196F3;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==================== RESPONSIVE STYLES FOR CONFIRMATION PAGE ==================== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    /* Confirm Notes Card */
    .rfp-confirm-notes-card {
        padding: 20px;
    }

    .rfp-confirm-notes-title {
        font-size: 17px;
    }

    .rfp-confirm-notes-subtitle {
        font-size: 13px;
    }

    /* Companies to Notify Section */
    .rfp-companies-count {
        font-size: 42px;
    }

    .rfp-companies-label {
        font-size: 13px;
    }

    /* Stats Row */
    .rfp-stat-centered-number {
        font-size: 24px;
    }

    .rfp-stat-centered-label {
        font-size: 12px;
    }

    .rfp-stat-divider {
        height: 35px;
    }

    /* Stats Cards UI - Tablet */
    .rfp-stats-cards {
        gap: 8px;
    }

    .rfp-stat-card {
        padding: 12px 8px;
        min-width: 70px;
    }

    .rfp-stat-card-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
        margin-bottom: 6px;
    }

    .rfp-stat-card-count {
        font-size: 18px;
    }

    .rfp-stat-card-label {
        font-size: 9px;
    }

    /* Notification Preference */
    .rfp-preference-title {
        font-size: 15px;
    }

    .rfp-preference-label {
        font-size: 14px;
    }

    .rfp-preference-description {
        font-size: 12px;
    }

    .rfp-preference-stats {
        font-size: 12px;
    }

    .rfp-preference-option {
        padding: 14px 18px;
    }

    /* Info Note */
    .rfp-info-note {
        padding: 14px 16px;
        font-size: 13px;
    }

    .rfp-info-note-icon {
        font-size: 16px;
    }

    /* Edit Selection Button */
    .rfp-edit-selection-btn {
        padding: 6px 14px;
        font-size: 13px;
    }

    /* Info Tooltip */
    .rfp-info-tooltip-content {
        min-width: 400px;
        max-width: 600px;
        font-size: 13px;
        padding: 14px 18px;
        left: auto;
        right: -100px;
        transform: none;
    }

    .rfp-info-tooltip-content::before,
    .rfp-info-tooltip-content::after {
        left: auto;
        right: 110px;
        transform: none;
    }

    .rfp-supplier-stats-link {
        font-size: 12px;
    }
}

/* Mobile (576px and below) */
@media (max-width: 576px) {
    /* Confirm Notes Card */
    .rfp-confirm-notes-card {
        padding: 16px;
    }

    .rfp-confirm-notes-title {
        font-size: 16px;
    }

    .rfp-confirm-notes-subtitle {
        font-size: 12px;
    }

    /* Companies to Notify Section */
    .rfp-companies-count {
        font-size: 36px;
    }

    .rfp-companies-label {
        font-size: 12px;
    }

    /* Stats Row - 2 column layout on mobile */
    .rfp-stats-row-centered {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: space-around;
    }

    .rfp-stat-centered-item {
        flex: 0 0 45%;
        margin-bottom: 10px;
    }

    .rfp-stat-divider {
        display: none;
    }

    .rfp-stat-centered-number {
        font-size: 22px;
    }

    .rfp-stat-centered-label {
        font-size: 11px;
    }

    /* Inline Stats (if used) */
    .rfp-stats-row-inline {
        flex-wrap: wrap;
        gap: 20px;
    }

    .rfp-stat-inline-item {
        min-width: 100px;
    }

    /* Stats Cards UI - Mobile */
    .rfp-stats-cards {
        gap: 6px;
        padding-top: 12px;
    }

    .rfp-stat-card {
        padding: 10px 6px;
        min-width: calc(25% - 6px);
        flex: 1 1 calc(25% - 6px);
        border-radius: 8px;
    }

    .rfp-stat-card:hover {
        box-shadow: none;
    }

    .rfp-stat-card-icon {
        width: 30px;
        height: 30px;
        font-size: 12px;
        margin-bottom: 5px;
    }

    .rfp-stat-card-count {
        font-size: 16px;
    }

    .rfp-stat-card-label {
        font-size: 8px;
    }

    /* Notification Preference */
    .rfp-preference-title {
        font-size: 14px;
    }

    .rfp-preference-option {
        padding: 12px 14px;
        margin-bottom: 10px;
    }

    .rfp-preference-label {
        font-size: 13px;
    }

    .rfp-preference-description {
        font-size: 11px;
    }

    .rfp-preference-stats {
        font-size: 11px;
    }

    .rfp-preference-icon {
        font-size: 14px;
    }

    .rfp-preference-radio {
        width: 16px;
        height: 16px;
    }

    /* Saved List Dropdown */
    .rfp-saved-list-dropdown select {
        max-width: 100%;
        font-size: 13px;
    }

    /* Info Note */
    .rfp-info-note {
        padding: 12px 14px;
        font-size: 12px;
        gap: 10px;
    }

    .rfp-info-note-icon {
        font-size: 14px;
    }

    /* Edit Selection Button */
    .rfp-edit-selection-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .rfp-edit-selection-btn i {
        font-size: 12px;
    }

    /* Info Tooltip - Mobile */
    .rfp-info-tooltip-content {
        min-width: 280px;
        max-width: calc(100vw - 40px);
        font-size: 12px;
        padding: 12px 14px;
        left: -120px;
        right: auto;
    }

    .rfp-info-tooltip-content::before,
    .rfp-info-tooltip-content::after {
        left: 130px;
        right: auto;
    }

    .rfp-info-tooltip-content-icon {
        font-size: 14px;
    }

    .rfp-supplier-stats-link {
        font-size: 11px;
    }

    .rfp-preference-stats-row {
        flex-wrap: wrap;
    }
}

/* Extra small mobile (400px and below) */
@media (max-width: 400px) {
    /* Companies Header - Stack on very small screens */
    .rfpsCard .d-flex.justify-content-between.align-items-start {
        flex-direction: column;
        gap: 12px;
    }

    .rfp-edit-selection-btn {
        width: 100%;
        justify-content: center;
    }

    /* Stats - Full width on very small screens */
    .rfp-stat-centered-item {
        flex: 0 0 100%;
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .rfp-stat-centered-item:last-child {
        border-bottom: none;
    }

    .rfp-companies-count {
        font-size: 32px;
    }

    /* Stats Cards UI - Extra Small */
    .rfp-stats-cards {
        gap: 4px;
    }

    .rfp-stat-card {
        min-width: calc(50% - 4px);
        flex: 1 1 calc(50% - 4px);
        padding: 8px 4px;
        border-radius: 6px;
    }

    .rfp-stat-card-icon {
        width: 26px;
        height: 26px;
        font-size: 10px;
        margin-bottom: 4px;
    }

    .rfp-stat-card-count {
        font-size: 14px;
    }

    .rfp-stat-card-label {
        font-size: 8px;
    }

    /* Preference Options */
    .rfp-preference-option {
        padding: 10px 12px;
    }

    .rfp-preference-label {
        font-size: 12px;
    }

    .rfp-preference-description,
    .rfp-preference-stats {
        font-size: 10px;
    }

    /* Info Tooltip - Extra small */
    .rfp-info-tooltip-content {
        min-width: 250px;
        max-width: calc(100vw - 30px);
        font-size: 11px;
        padding: 10px 12px;
        left: -100px;
    }

    .rfp-info-tooltip-content::before,
    .rfp-info-tooltip-content::after {
        left: 110px;
    }

    .rfp-supplier-stats-link {
        font-size: 10px;
    }
}

/* ==================== RFP FINAL SUCCESS PAGE (STEP 6) ==================== */

/* Success Icon Container */
.rfp-success-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rfp-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #E8F5E9;
    border: 3px solid #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rfp-success-icon i {
    font-size: 40px;
    color: #4CAF50;
}

/* Success Title */
.rfp-success-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

/* Success Message */
.rfp-success-message {
    font-size: 16px;
    color: #6c757d;
    max-width: 600px;
    line-height: 1.5;
}

/* What's Next Card */
.rfp-whats-next-card {
    background: #FAFAFA;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    padding: 24px;
    max-width: 600px;
    width: 100%;
}

.rfp-whats-next-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.rfp-whats-next-text {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
}

.rfp-contact-link {
    color: var(--selectedSideTabBackgroundColor);
    text-decoration: none;
    font-weight: 500;
}

.rfp-contact-link:hover {
    color: var(--selectedSideTabBackgroundColor);
    text-decoration: underline;
}

/* Go to RFP Home Page Button */
.rfp-home-btn {
    min-width: 200px;
    padding: 12px 32px !important;
    font-size: 15px !important;
}

/* ==================== RESPONSIVE STYLES FOR FINAL PAGE ==================== */

@media (max-width: 768px) {
    .rfp-success-icon {
        width: 75px;
        height: 75px;
    }

    .rfp-success-icon i {
        font-size: 36px;
    }

    .rfp-success-title {
        font-size: 26px;
    }

    .rfp-success-message {
        font-size: 15px;
    }

    .rfp-whats-next-card {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .rfp-success-icon {
        width: 70px;
        height: 70px;
    }

    .rfp-success-icon i {
        font-size: 34px;
    }

    .rfp-success-title {
        font-size: 24px;
    }

    .rfp-success-message {
        font-size: 14px;
    }

    .rfp-whats-next-card {
        padding: 18px;
    }

    .rfp-whats-next-title {
        font-size: 15px;
    }

    .rfp-whats-next-text {
        font-size: 13px;
    }

    .rfp-home-btn {
        min-width: 180px;
        padding: 10px 24px !important;
        font-size: 14px !important;
    }
}