
/* Broker Test Styles */
.test-intro {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 40px;
    border-radius: 15px;
    border: 2px solid #3c266e;
    margin-bottom: 40px;
    text-align: center;
}

.test-intro h2 {
    margin-bottom: 20px;
    color: #3c266e;
    font-size: 28px;
}

.test-intro p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #ccc;
}

.broker-test-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Two Column Layout */
.test-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    min-height: 600px;
}

/* Left Column - Test */
.test-column {
    background: linear-gradient(135deg, #0a0517, #1a0d2e);
    border: 3px solid #3c266e;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 0 30px rgba(60, 38, 110, 0.3);
}

/* Right Column - Results */
.results-column {
    background: linear-gradient(135deg, #0a0517, #1a0d2e);
    border: 3px solid #3c266e;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(60, 38, 110, 0.3);
    position: sticky;
    top: 20px;
    height: fit-content;
}

.results-column h3 {
    color: #3c266e;
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
}

.results-placeholder {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
}

/* Start Screen */
.test-start-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 20px;
    text-align: center;
    box-shadow: none;
}

.test-start-card h3 {
    color: #3c266e;
    font-size: 32px;
    margin-bottom: 20px;
}

.test-start-card p {
    color: #ccc;
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.test-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #ccc;
}

.feature-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.start-test-btn {
    background: linear-gradient(135deg, #3c266e, #5a3f8f);
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(60, 38, 110, 0.4);
    font-family: inherit;
}

.start-test-btn:hover {
    background: linear-gradient(135deg, #5a3f8f, #7a5fa0);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(60, 38, 110, 0.6);
}

/* Progress Container */
.progress-container {
    margin-bottom: 30px;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 20px;
    background: linear-gradient(45deg, rgba(60, 38, 110, 0.1), rgba(60, 38, 110, 0.2));
    border-radius: 25px;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(60, 38, 110, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #3c266e, #5a3f8f, #7a5fa0, #3c266e);
    background-size: 200% 100%;
    border-radius: 25px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: progressShine 2s linear infinite;
    box-shadow: 0 2px 10px rgba(60, 38, 110, 0.5);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressGlow 3s ease-in-out infinite;
}

@keyframes progressShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes progressGlow {
    0%, 100% { left: -100%; opacity: 0; }
    50% { left: 100%; opacity: 1; }
}

/* Hide segments */
.progress-segments {
    display: none;
}

.progress-segment {
    display: none;
}

/* Progress Motivator */
.progress-motivator {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #3c266e;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.question-counter {
    text-align: center;
    color: #3c266e;
    font-weight: 600;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Question Card */
.question-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.question-card h3 {
    color: #3c266e;
    font-size: 24px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.question-card p {
    color: #ccc;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.question-card p em {
    color: #3c266e;
    font-style: normal;
    font-weight: 600;
}

/* Answer Options */
.answer-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.answer-option {
    background: rgba(60, 38, 110, 0.1);
    border: 2px solid rgba(60, 38, 110, 0.3);
    border-radius: 12px;
    padding: 20px 20px 20px 55px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ccc;
    font-size: 16px;
    position: relative;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.answer-option:hover {
    border-color: #3c266e;
    background: rgba(60, 38, 110, 0.2);
    transform: translateX(5px);
}

.answer-option.selected {
    border-color: #3c266e;
    background: rgba(60, 38, 110, 0.3);
    color: white;
}

.answer-option::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #3c266e;
    border-radius: 50%;
    background: transparent;
}

.answer-option.selected::before {
    background: #3c266e;
    box-shadow: inset 0 0 0 3px #0a0517;
}

/* Navigation */
.question-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.prev-btn {
    background: rgba(60, 38, 110, 0.2);
    color: #3c266e;
    border: 2px solid #3c266e;
}

.prev-btn:hover {
    background: rgba(60, 38, 110, 0.3);
}

.next-btn {
    background: linear-gradient(135deg, #3c266e, #5a3f8f);
    color: white;
    margin-left: auto;
}

.next-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a3f8f, #7a5fa0);
    transform: translateY(-2px);
}

.next-btn:disabled {
    background: #666;
    cursor: not-allowed;
}

/* Live Broker Recommendations */
.live-recommendations {
    display: none;
}

.live-recommendations.show {
    display: block;
}

.broker-recommendation-small {
    background: rgba(60, 38, 110, 0.1);
    border: 2px solid rgba(60, 38, 110, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    display: block;
    position: relative;
    transform: translateY(0);
    opacity: 1;
}

.broker-recommendation-small.updating {
    opacity: 0.3;
    transform: translateX(-20px) scale(0.95);
}

.broker-recommendation-small.new-entry {
    animation: slideInShuffle 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideInShuffle {
    0% {
        opacity: 0;
        transform: translateX(100px) rotate(3deg) scale(0.8);
    }
    30% {
        opacity: 0.7;
        transform: translateX(-10px) rotate(-1deg) scale(0.95);
    }
    60% {
        opacity: 0.9;
        transform: translateX(5px) rotate(0.5deg) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotate(0deg) scale(1);
    }
}

#liveRecommendations {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.broker-recommendation-small:hover {
    border-color: #3c266e;
    background: rgba(60, 38, 110, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(60, 38, 110, 0.3);
}

.broker-recommendation-small::after {
    content: "›";
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    color: white;
    font-size: 24px;
    font-weight: bold;
    opacity: 0.7;
    transition: all 0.3s ease;
    pointer-events: none;
}

.broker-recommendation-small:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(5px);
}

.broker-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
  
}

.broker-rank {
    background: linear-gradient(135deg, #3c266e, #5a3f8f);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

/* Gold, Silver, Bronze styling for top 3 */
.broker-recommendation-small:nth-child(1) .broker-rank {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.broker-recommendation-small:nth-child(2) .broker-rank {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
    color: #333;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.4);
}

.broker-recommendation-small:nth-child(3) .broker-rank {
    background: linear-gradient(135deg, #CD7F32, #B87333);
    color: white;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.4);
}

.broker-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.broker-name {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.broker-match-score-small {
    background: rgba(60, 38, 110, 0.3);
    color: #3c266e;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
}



/* Final Results Screen (hidden in new layout) */
.results-card {
    display: none;
}

/* Additional Info */
.additional-info {
    margin-top: 60px;
    text-align: center;
    grid-column: 1 / -1;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-card {
    background: #100a1f;
    border: 2px solid #3c266e;
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.info-card:hover {
    border-color: #5a3f8f;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(60, 38, 110, 0.3);
}

.info-card h4 {
    color: #3c266e;
    margin-bottom: 15px;
    font-size: 18px;
}

.info-card p {
    color: #ccc;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .test-layout {
        grid-template-columns: 1fr 350px;
        gap: 30px;
    }
}

@media (max-width: 968px) {
    .test-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .results-column {
        position: static;
        order: -1;
    }
    
    .results-column h3 {
        font-size: 20px;
    }
    
    .broker-recommendation-small {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .broker-test-container {
        padding: 10px;
    }
    
    .test-column,
    .results-column {
        padding: 25px 20px;
    }
    
    .test-features {
        gap: 20px;
    }
    
    .answer-option {
        padding: 18px 18px 18px 50px;
        font-size: 15px;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .question-navigation {
        flex-direction: column;
    }
    
    .broker-card-header {
        gap: 10px;
    }
    
    .broker-logo {
        width: 35px;
        height: 35px;
    }
    
    .broker-name {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .test-intro {
        padding: 25px 20px;
    }
    
    .test-start-card h3 {
        font-size: 24px;
    }
    
    .question-card h3 {
        font-size: 20px;
    }
    
    .answer-option {
        padding: 15px 15px 15px 45px;
        font-size: 14px;
        line-height: 1.6;
        word-break: break-word;
        overflow-wrap: anywhere;
        white-space: normal;
    }
    
    .broker-features-small {
        gap: 6px;
    }
    
    .feature-tag-small {
        font-size: 10px;
        padding: 3px 6px;
    }
}
