.swf-bc-wizard-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Tajawal';
}

/* Progress Bar */
.swf-bc-progress-container {
    margin-bottom: 30px;
}

.swf-bc-progress-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.swf-bc-progress-step {
    flex: 1;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.swf-bc-progress-step.active {
    background-color:#17926A;
}

.swf-bc-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}
.swf-bc-progress-step.completed {
    background-color: #4CAF50;
}

/* Top Brokers by Country Shortcode */
/* ============================================================= */
/* TOP BROKERS BY COUNTRY – Fixed & Enhanced Hover Details     */
/* ============================================================= */

.swf-bc-top-brokers {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Tajawal';
}

.swf-bc-top-brokers-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.swf-bc-top-brokers-text h3 {
    color: #333;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
   font-family: 'Tajawal';
}

.swf-bc-top-brokers-text p,
.swf-bc-top-brokers-text a {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.swf-bc-top-brokers-text a {
    color: #17926A;
    text-decoration: underline;
    font-weight: 500;
}

.swf-bc-brokers-list {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    overflow: hidden;
}

/* Broker Row */
.swf-bc-broker-item {
    position: relative;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: background 0.3s ease;
}

.swf-bc-broker-item:last-child {
    border-bottom: none;
}

.swf-bc-broker-item:hover {
    background: #fafafa;
    margin: 0 -30px;
    padding: 16px 30px;
    border-radius: 8px;
}

/* Main content: logo + name + rating */
.swf-bc-broker-main {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.swf-bc-broker-icon {
    flex-shrink: 0;
}

.swf-bc-broker-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 6px;
}

.swf-bc-broker-icon-placeholder {
    width: 44px;
    height: 44px;
    background: #17926A;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
}

.swf-bc-broker-info-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.swf-bc-broker-name {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.swf-bc-stars-compact {
    color: #ff9800;
    font-size: 15px;
    letter-spacing: 1px;
}

/* ——— FIXED HOVER DETAILS (Desktop) ——— */
.swf-bc-broker-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.4s ease, 
                margin 0.4s ease;
    padding: 0 55px;           /* matches original design */
}

.swf-bc-broker-item:hover .swf-bc-broker-details {
    max-height: 100px;         /* high enough for any description */
    padding: 12px 55px;
    margin-top: 8px;
}

.swf-bc-broker-description-compact {
    color: #666;
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0;
}

/* Visit Button */
.swf-bc-broker-link-compact {
    background: #17926A;
    color: white !important;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.swf-bc-broker-link-compact:hover {
    background: #136f52;
}

/* Rank Badge */
.swf-bc-broker-rank-compact {
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.swf-bc-rank-number-compact {
    background: #f5f5f5;
    color: #666;
    padding: 5px 9px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    min-width: 26px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.swf-bc-broker-item:nth-child(1) .swf-bc-rank-number-compact { background: #ffd700; color: #333; }
.swf-bc-broker-item:nth-child(2) .swf-bc-rank-number-compact { background: #c0c0c0; color: #333; }
.swf-bc-broker-item:nth-child(3) .swf-bc-rank-number-compact { background: #cd7f32; color: #fff; }

/* ============================================================= */
/* RESPONSIVE – Perfect Mobile Experience                      */
/* ============================================================= */

@media (max-width: 1024px) {
    .swf-bc-top-brokers-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .swf-bc-top-brokers-text h3 { font-size: 24px; }
}

@media (max-width: 768px) {
    .swf-bc-top-brokers { margin: 30px auto; padding: 0 15px; }
    .swf-bc-brokers-list { padding: 20px; border-radius: 10px; }

    .swf-bc-broker-item:hover {
        margin: 0 -20px;
        padding: 16px 20px;
    }

    .swf-bc-broker-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .swf-bc-broker-main { width: 100%; gap: 12px; }

    .swf-bc-broker-icon img,
    .swf-bc-broker-icon-placeholder {
        width: 40px; height: 40px; font-size: 16px;
    }

    .swf-bc-broker-name { font-size: 15px; }

    .swf-bc-broker-link-compact {
        width: 100%;
        text-align: center;
        padding: 10px;
        font-size: 14px;
    }

    /* Always show description on mobile (no reliable hover) */
    .swf-bc-broker-details {
        max-height: 120px !important;
        padding: 10px 0 !important;
        margin-top: 10px !important;
        overflow: visible;
    }

    .swf-bc-broker-description-compact {
        padding: 0;
        font-size: 13px;
    }

    /* Move rank to top */
    .swf-bc-broker-rank-compact {
        position: static;
        transform: none;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .swf-bc-top-brokers-text h3 { font-size: 22px; }
    .swf-bc-top-brokers-text p,
    .swf-bc-top-brokers-text a { font-size: 15px; }

    .swf-bc-broker-icon img,
    .swf-bc-broker-icon-placeholder { width: 36px; height: 36px; }

    .swf-bc-broker-name { font-size: 14.5px; }

    .swf-bc-broker-item:hover {
        margin: 0 -15px;
        padding: 16px 15px;
    }
}
/* Wizard Content */
.swf-bc-wizard-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    min-height: 600px;
}

/* Left Column - Questions */
.swf-bc-wizard-left {
    background: #fff;
}

.swf-bc-step {
    display: none;
}

.swf-bc-step.active {
    display: block;
}

.swf-bc-step-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.swf-bc-step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.swf-bc-step-badge {
    background: #f5f5f5;
    color: #333;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.swf-bc-why-it-matters-link {
    color: #17926A;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.swf-bc-icon-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #17926A;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    font-style: normal;
}

.swf-bc-question-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #1a1a1a;
}

.swf-bc-input-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

/* Country Select */
.swf-bc-country-select-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.swf-bc-country-select {
    width: 100%;
    padding: 6px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.swf-bc-country-select:focus {
    outline: none;
    border-color: #17926A;
}

.swf-bc-country-select-wrapper::after {
    content: "▼";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #666;
    font-size: 12px;
}

/* Options */
.swf-bc-options-container {
    margin: 30px 0;
}

.swf-bc-option-label {
    display: flex;
    align-items: center;
    padding: 16px;
    margin-bottom: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.swf-bc-option-label:hover {
    border-color: #17926A;
    background: #f8f9ff;
}

.swf-bc-option-input {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.swf-bc-option-input[type="checkbox"] {
    border-radius: 4px;
}

.swf-bc-option-input[type="radio"] {
    border-radius: 50%;
}

.swf-bc-option-text {
    flex: 1;
    font-size: 16px;
    color: #333;
}

/* Buttons */
.swf-bc-btn-primary,
.swf-bc-btn-secondary {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.swf-bc-btn-primary {
    background: #17926A;
    color: #fff;
    width: 100%;
    justify-content: center;
}

.swf-bc-btn-primary:hover:not(:disabled) {
    background: #17926A;
}

.swf-bc-btn-primary:disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

.swf-bc-btn-secondary {
    background: transparent;
    color: #666;
}

.swf-bc-btn-secondary:hover {
    color: #333;
}

.swf-bc-step-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.swf-bc-step-actions .swf-bc-btn-primary {
    flex: 1;
}

.swf-bc-step-actions .swf-bc-btn-secondary {
    padding: 14px 20px;
}

.swf-bc-arrow-right {
    font-style: normal;
}

/* Right Column - Results */
.swf-bc-wizard-right {
    background: #fff;
}

.swf-bc-results-container {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 20px;
}

.swf-bc-results-header {
    margin-bottom: 30px;
}

.swf-bc-results-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #1a1a1a;
}

.swf-bc-results-info {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f5f5f5;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #666;
}

.swf-bc-brokers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.swf-bc-broker-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.swf-bc-broker-item:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.swf-bc-broker-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f5f5f5;
    color: #666;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.swf-bc-broker-rank.top-3 {
    background: #B2E67A;
    color: #fff;
}

.swf-bc-broker-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swf-bc-broker-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swf-bc-broker-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    font-size: 10px;
    text-align: center;
    padding: 5px;
    color: #666;
}

.swf-bc-broker-name {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.swf-bc-broker-arrow {
    color: #ccc;
    font-size: 20px;
    flex-shrink: 0;
}

.swf-bc-loading-message {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

/* Final Completion Message */
.swf-bc-final-message {
    text-align: center;
    padding: 20px 0;
}

.swf-bc-final-text {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .swf-bc-wizard-content {
        grid-template-columns: 1fr;
    }
    
    .swf-bc-results-container {
        position: static;
    }
}

@media (max-width: 768px) {
    .swf-bc-step-card,
    .swf-bc-results-container {
        padding: 25px;
    }
    
    .swf-bc-question-title {
        font-size: 24px;
    }
    
    .swf-bc-results-title {
        font-size: 22px;
    }
}

/* Compare Button Styles */
.swf-bc-compare-button {
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #17926A;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.3s;
}

.swf-bc-compare-button:hover {
    background-color: #17926A;
}

/* Comparison Page Styles */
.swf-bc-theme{--swf-primary:#29A16B;--swf-secondary:#B4D77C}
.swf-bc-comparison-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.swf-bc-comparison-header {
    margin-bottom: 30px;
}

.swf-bc-filters {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.swf-bc-comparison-table {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.swf-bc-comparison-brokers {
    display: flex;
    border-bottom: 2px solid #ddd;
}

.swf-bc-comparison-attributes {
    display: flex;
    flex-direction: column;
}

/* Loading State */
.swf-bc-brokers-list.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Compare Button Styles */
.swf-bc-compare-button-container {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.swf-bc-compare-button {
    background: linear-gradient(135deg, #17926A 5%, #B2E67A 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.swf-bc-compare-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.swf-bc-compare-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.swf-bc-compare-icon {
    font-size: 20px;
}

.swf-bc-loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: swf-bc-spin 1s ease-in-out infinite;
}

@keyframes swf-bc-spin {
    to { transform: rotate(360deg); }
}

/* Comparison Overlay */
.swf-bc-comparison-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    overflow-y: auto;
}

.swf-bc-comparison-container {
    background: white;
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.swf-bc-comparison-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.swf-bc-comparison-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.swf-bc-comparison-close {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.swf-bc-comparison-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.swf-bc-comparison-content {
    padding: 30px;
}

/* Comparison Filters */
.swf-bc-comparison-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.swf-bc-filter-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #495057;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.swf-bc-filter-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.swf-bc-filter-btn.active {
    background: linear-gradient(135deg, #17926A 0%, #333 100%);
    color: white;
    border-color: #17926A;
}

/* Comparison Table */
.swf-bc-comparison-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    font-size: 12px;
}

.swf-bc-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.swf-bc-comparison-table th,
.swf-bc-comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.swf-bc-comparison-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    position: sticky;
    top: 0;
    z-index: 10;
}

.swf-bc-broker-header-row th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 700;
    color: #343a40;
}

.swf-bc-broker-header {
    text-align: center;
    padding: 10px;
}

.swf-bc-broker-logo-small {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    margin: 0 auto 8px;
    object-fit: cover;
}

.swf-bc-broker-logo-placeholder-small {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    margin: 0 auto 8px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: #6c757d;
}

.swf-bc-broker-name {
    font-size: 14px;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 4px;
}

.swf-bc-broker-rating-small {
    font-size: 12px;
    color: #17926A;
}

.swf-bc-feature-label {
    font-weight: 600;
    color: #495057;
    background: #f8f9fa;
    min-width: 150px;
}

.swf-bc-comparison-row:hover {
    background: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .swf-bc-comparison-container {
        margin: 10px;
    }
    
    .swf-bc-comparison-header {
        padding: 15px 20px;
    }
    
    .swf-bc-comparison-content {
        padding: 20px;
    }
    
    .swf-bc-comparison-filters {
        justify-content: center;
    }
    
    .swf-bc-comparison-table {
        font-size: 14px;
    }
    
    .swf-bc-comparison-table th,
    .swf-bc-comparison-table td {
        padding: 10px;
        min-width: 120px;
    }
    
    .swf-bc-feature-label {
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .swf-bc-compare-button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .swf-bc-comparison-header h2 {
        font-size: 20px;
    }
    
    .swf-bc-filter-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* ===== BROKER REVIEWS STYLING ===== */

/* Broker Reviews Container */
.swf-broker-reviews-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family:'Tajawal';
}

/* Filters Section */
.swf-br-filters {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.swf-br-filters-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.swf-br-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.swf-br-filter-group {
    display: flex;
    flex-direction: column;
}

.swf-br-filter-label {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

.swf-br-filter-input,
.swf-br-filter-select {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.swf-br-filter-input:focus,
.swf-br-filter-select:focus {
    outline: none;
    border-color: #17926A;
    box-shadow: 0 0 0 3px rgba(23, 146, 106, 0.1);
}

/* Product Type Filters */
.swf-br-product-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.swf-br-product-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.swf-br-product-filter-item:hover {
    background: #e9ecef;
}

.swf-br-product-filter-item.active {
    background: #17926A;
    color: white;
    border-color: #17926A;
}

.swf-br-product-filter {
    margin: 0;
    cursor: pointer;
}

/* Sort Options */
.swf-br-sort-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.swf-br-sort-label {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
}

/* Broker Grid */
.swf-br-broker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

/* Broker Card */
.swf-br-broker-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.swf-br-broker-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: #17926A;
}

.swf-br-broker-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #17926A 0%, #B2E67A 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swf-br-broker-card:hover::before {
    opacity: 1;
}

/* Broker Header */
.swf-br-broker-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.swf-br-broker-logo {
    width: 60px;
    height: 40px;
    border-radius: 6px;
    object-fit: contain;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.swf-br-broker-info {
    flex: 1;
}

.swf-br-broker-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.swf-br-broker-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.swf-br-stars {
    color: #17926A;
    font-size: 16px;
    letter-spacing: 1px;
}

.swf-br-rating-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Broker Details */
.swf-br-broker-details {
    margin-bottom: 16px;
}

.swf-br-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.swf-br-detail-item:last-child {
    border-bottom: none;
}

.swf-br-detail-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.swf-br-detail-value {
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 500;
}

/* Broker Description */
.swf-br-broker-description {
    margin-bottom: 20px;
}

.swf-br-broker-description p {
    font-size: 14px;
    color: #495057;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Broker Actions */
.swf-br-broker-actions {
    display: flex;
    gap: 12px;
}

.swf-br-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.swf-br-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.swf-br-btn:hover::before {
    left: 100%;
}

.swf-br-btn-primary {
    background: linear-gradient(135deg, #17926A 0%, #B2E67A 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(23, 146, 106, 0.3);
}

.swf-br-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 146, 106, 0.4);
}

.swf-br-btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #e9ecef;
}

.swf-br-btn-secondary:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-2px);
}

/* Loading and Error States */
.swf-br-loading,
.swf-br-error,
.swf-br-no-results {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    border-radius: 12px;
    margin: 20px 0;
}

.swf-br-loading {
    color: #666;
    background: #f8f9fa;
}

.swf-br-error {
    color: #d32f2f;
    background: #ffebee;
    border: 1px solid #ffcdd2;
    line-height: 1.6;
}

.swf-br-no-results {
    color: #666;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.swf-br-loading {
    position: relative;
}

.swf-br-loading::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #17926A;
    border-radius: 50%;
    animation: swf-br-spin 1s linear infinite;
}

@keyframes swf-br-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.swf-br-error {
    color: #dc3545;
    background: #f8d7da;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
}

.swf-br-no-results {
    color: #6c757d;
    background: #e2e3e5;
    border-radius: 8px;
    border: 1px solid #d6d8db;
}

/* Responsive Design */
@media (max-width: 768px) {
    .swf-broker-reviews-container {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    .swf-br-filters {
        padding: 20px;
    }
    
    .swf-br-filters-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .swf-br-product-filters {
        gap: 8px;
    }
    
    .swf-br-sort-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .swf-br-broker-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .swf-br-broker-card {
        padding: 20px;
    }
    
    .swf-br-broker-actions {
        flex-direction: column;
    }
    
    .swf-br-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .swf-br-broker-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .swf-br-broker-logo {
        margin: 0 auto;
    }
    
    .swf-br-detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Accessibility Improvements */
.swf-br-filter-input:focus-visible,
.swf-br-filter-select:focus-visible,
.swf-br-btn:focus-visible {
    outline: 2px solid #17926A;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .swf-br-broker-card {
        border-width: 2px;
    }
    
    .swf-br-btn-primary {
        border: 2px solid #17926A;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .swf-br-broker-card,
    .swf-br-btn,
    .swf-br-filter-input,
    .swf-br-filter-select {
        transition: none;
    }
    
    .swf-br-loading::before {
        animation: none;
    }
}


.swf-br-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}

.swf-br-badge {
    background-color: #e0f2fe;
    color: #147a56;           
    font-size: 0.8rem;         
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;       
    border: 1px solid #bae6fd;
    display: inline-block;
    white-space: nowrap;      
}

.swf-br-broker-details {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
}

.swf-br-detail-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
}

.swf-br-detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.swf-br-detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    font-weight: 600;
}

.swf-br-detail-value {
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
}

.swf-br-products-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Recommended broker styling */
.swf-br-highlighted {
    border: 2px solid #2c9d6c !important;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    position: relative;
}

.swf-br-recommended-flag {
    position: absolute;
    top: -44px;
    left: -26px;
    background: #2c9d6c;
    color: white;
    padding: 4px 15px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    transform: rotate(0deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
} 

.swf-br-broker-header {
    position: relative;
}