/* ============================================
   TOURNAMENT SURVEY PAGE STYLES
   ============================================ */

/* Tournament / Survey selectors */
.survey-selectors {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.selector-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.selector-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.selector {
    background: rgba(6, 24, 18, 0.85);
    border: 1px solid rgba(212, 164, 65, 0.3);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: border-color 0.2s;
    width: 100%;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23d4a441' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.25rem;
}

.selector:focus {
    outline: none;
    border-color: var(--gold);
}

.selector:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.selector option {
    background: #0d1a0d;
    color: var(--text-primary);
}

/* Survey questions */
.survey-questions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.survey-question-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.survey-question-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.survey-question-number {
    color: var(--gold);
    font-weight: 700;
    margin-right: 0.35rem;
}

.survey-textarea {
    background: rgba(6, 24, 18, 0.85);
    border: 1px solid rgba(212, 164, 65, 0.25);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    resize: vertical;
    min-height: 90px;
    width: 100%;
    transition: border-color 0.2s;
}

.survey-textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.survey-textarea::placeholder {
    color: var(--text-muted);
}

/* Submit button */
.survey-submit-btn {
    margin-top: 0.5rem;
}

/* Submit error */
.submit-error {
    margin-top: 0.75rem;
    color: hsl(0, 70%, 65%);
    font-size: 0.9rem;
}

/* Already responded view */
.already-responded {
    padding: 1.25rem;
    background: rgba(212, 164, 65, 0.07);
    border: 1px solid rgba(212, 164, 65, 0.25);
    border-radius: 8px;
}

.already-responded-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 0.4rem;
}

.already-responded-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.previous-responses {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid rgba(212, 164, 65, 0.15);
    padding-top: 1rem;
}

.prev-response-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.prev-response-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.prev-response-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: pre-wrap;
    line-height: 1.6;
}

/* ── Radio / Checkbox options ─────────────────────────────── */
.survey-options-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.survey-option-label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0.45rem 0.65rem;
    border-radius: 6px;
    transition: background 0.15s;
    user-select: none;
}

.survey-option-label:hover {
    background: rgba(212, 164, 65, 0.07);
}

.survey-radio,
.survey-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(212, 164, 65, 0.5);
    background: rgba(6, 24, 18, 0.8);
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}

.survey-radio          { border-radius: 50%; }
.survey-checkbox       { border-radius: 4px; }

.survey-radio:checked,
.survey-checkbox:checked {
    border-color: var(--gold);
    background: var(--gold);
}

.survey-radio:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}

.survey-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    color: #0a1f0a;
    line-height: 1;
    font-weight: 700;
}

/* ── Rating scale ─────────────────────────────────────────── */
.survey-rating-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.survey-rating-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0 0.15rem;
}

.survey-rating-buttons {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.survey-rating-btn {
    min-width: 2.6rem;
    height: 2.6rem;
    border: 2px solid rgba(212, 164, 65, 0.35);
    border-radius: 6px;
    background: rgba(6, 24, 18, 0.6);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.survey-rating-btn:hover {
    border-color: var(--gold);
    background: rgba(212, 164, 65, 0.12);
}

.survey-rating-btn.selected {
    border-color: var(--gold);
    background: var(--gold);
    color: #0a1f0a;
}

/* Success state */
.success-state {
    text-align: center;
    padding: 3rem 1rem;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.success-state h3 {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.success-state p {
    color: var(--text-secondary);
}
