.survey-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.survey-modal-overlay.visible {
    opacity: 1;
}

.survey-modal {
    background-color: var(--bg-card, #2d3748); /* Fallback values just in case */
    border: 2px solid var(--club-yellow, #ECC94B);
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    color: var(--text-main, #f7fafc);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.survey-modal-overlay.visible .survey-modal {
    transform: translateY(0);
}

.survey-modal h2 {
    color: var(--club-yellow, #ECC94B);
    margin-top: 0;
    border-bottom: 2px solid var(--border-color, #4a5568);
    padding-bottom: 0.5rem;
}

.survey-modal p.intro {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.survey-modal .btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-end;
}

.survey-modal .form-group {
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 6px;
}

.survey-modal .form-group p.question {
    font-weight: 600;
    margin-bottom: 0.8rem;
    margin-top: 0;
    font-size: 1.05rem;
}

.survey-modal label {
    display: block;
    margin-bottom: 0.8rem;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: background 0.2s;
    color: var(--text-main, #f7fafc); /* Explicitly set light color */
}

.survey-modal label:hover {
    background: rgba(255, 255, 255, 0.1);
}

.survey-modal input[type="radio"] {
    margin-right: 0.8rem;
    accent-color: var(--club-yellow, #ECC94B);
    transform: scale(1.1);
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--club-yellow, #ECC94B);
    width: 0%;
    transition: width 0.4s ease;
    box-shadow: 0 0 10px rgba(249, 221, 22, 0.3);
}

/* Steps */
.survey-step {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.survey-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.survey-modal textarea {
    width: 100%;
    background: var(--bg-dark, #1a202c);
    color: var(--text-main, #f7fafc);
    border: 1px solid var(--border-color, #4a5568);
    border-radius: 4px;
    padding: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    font-size: 1rem;
}

.survey-modal textarea:focus {
    outline: none;
    border-color: var(--club-yellow, #ECC94B);
}

.survey-modal .btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: space-between;
}

.survey-modal .btn-group.center {
    justify-content: center;
}
