.fedi-survey-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.fedi-survey-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.fedi-survey-header h2 {
    color: #1a1a1a;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.survey-instructions {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.survey-question {
    margin-bottom: 30px;
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
    border-left: 4px solid #FF6B35;
}

.question-label {
    display: block;
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.5;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-group.scale-group {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 15px;
    background: #ffffff;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    transition: all 0.2s ease;
}

.radio-option:hover,
.checkbox-option:hover {
    border-color: #FF6B35;
    background: #fff5f0;
}

.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
    display: none;
}

.radio-custom,
.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.checkbox-custom {
    border-radius: 4px;
}

.radio-option input[type="radio"]:checked + .radio-custom,
.checkbox-option input[type="checkbox"]:checked + .checkbox-custom {
    border-color: #FF6B35;
    background: #FF6B35;
}

.radio-custom::after,
.checkbox-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.checkbox-custom::after {
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    border-radius: 0;
    background: transparent;
    transform: translate(-50%, -60%) rotate(45deg) scale(0);
}

.radio-option input[type="radio"]:checked + .radio-custom::after,
.checkbox-option input[type="checkbox"]:checked + .checkbox-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom::after {
    transform: translate(-50%, -60%) rotate(45deg) scale(1);
}

.option-text {
    font-size: 15px;
    color: #333;
    line-height: 1.4;
}

.radio-option.scale-option {
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    padding: 15px 10px;
}

.radio-option.scale-option .radio-custom {
    margin-right: 0;
    margin-bottom: 8px;
}

.radio-option.scale-option .option-text {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

.radio-option.scale-option .option-text small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #666;
    margin-top: 4px;
}

.conditional-field {
    margin-top: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    display: none;
}

.conditional-field.active {
    display: block;
}

.conditional-field label {
    display: block;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
    font-size: 14px;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    resize: vertical;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

textarea:focus {
    outline: none;
    border-color: #FF6B35;
}

.survey-submit {
    text-align: center;
    margin-top: 30px;
}

.submit-button {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931A 100%);
    color: #fff;
    border: none;
    padding: 16px 50px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.survey-message {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    display: none;
}

.survey-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.survey-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 600px) {
    .fedi-survey-container {
        padding: 20px;
    }
    
    .fedi-survey-header h2 {
        font-size: 22px;
    }
    
    .radio-group.scale-group {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .radio-option.scale-option {
        min-width: 60px;
        padding: 10px 8px;
    }
    
    .submit-button {
        padding: 14px 40px;
        font-size: 16px;
    }
}
