/* Simple Survey Frontend Styles - Step by Step */

.simple-survey-container {
    margin: 40px auto;
    max-width: 800px;
    padding: 0 20px;
}

.simple-survey-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Fortschrittsbalken */
.survey-progress-bar {
    position: relative;
    width: 100%;
    height: 8px;
    background: #e9ecef;
}

.progress-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
    transition: width 0.4s ease;
}

.progress-text {
    position: absolute;
    right: 10px;
    top: -25px;
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

/* Survey Container */
.simple-survey {
    padding: 40px;
}

.survey-title {
    color: #2c3e50;
    font-size: 32px;
    margin-bottom: 30px;
    font-weight: 700;
    text-align: center;
}

/* Steps */
.survey-step {
    min-height: 300px;
    animation: fadeIn 0.3s ease;
}

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

/* Textblock */
.survey-textblock {
    background: #f8f9fa;
    border-left: 4px solid #4CAF50;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
    line-height: 1.8;
    color: #495057;
}

.survey-textblock strong {
    color: #2c3e50;
}

/* Fragen */
.survey-question {
    margin-bottom: 30px;
}

.question-label {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.5;
}

.question-label .required {
    color: #e74c3c;
    margin-left: 3px;
}

.question-label .max-info {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #6c757d;
    margin-top: 5px;
}

/* Kurze Textfelder */
.survey-input-short {
    width: 100%;
    max-width: 500px;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.survey-input-short:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Lange Textfelder */
.survey-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.survey-textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Radio Buttons */
.radio-label {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    cursor: pointer;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s;
}

.radio-label:hover {
    background: #f8f9fa;
    border-color: #4CAF50;
}

.radio-label input[type="radio"] {
    margin: 0 15px 0 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #4CAF50;
}

.radio-label input[type="radio"]:checked + span {
    font-weight: 600;
    color: #2c3e50;
}

.radio-label span {
    flex: 1;
    font-size: 16px;
    color: #495057;
    line-height: 1.5;
}

/* Checkboxen */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.checkbox-label:hover {
    background: #f8f9fa;
}

.checkbox-label input[type="checkbox"] {
    margin: 4px 12px 0 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #4CAF50;
}

.checkbox-label span {
    flex: 1;
    font-size: 16px;
    color: #495057;
    line-height: 1.5;
}

/* Einwilligungs-Checkbox */
.consent-label {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.consent-label:hover {
    background: #ffe69c;
}

.consent-label input[type="checkbox"] {
    margin: 4px 12px 0 0;
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #ffc107;
}

.consent-label span {
    flex: 1;
    font-size: 15px;
    color: #856404;
    line-height: 1.6;
}

/* Navigation */
.survey-navigation {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.survey-button {
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.survey-button-prev {
    background: #6c757d;
    color: white;
}

.survey-button-prev:hover {
    background: #5a6268;
    transform: translateX(-2px);
}

.survey-button-next,
.survey-button-submit {
    background: #4CAF50;
    color: white;
    margin-left: auto;
}

.survey-button-next:hover,
.survey-button-submit:hover {
    background: #45a049;
    transform: translateX(2px);
}

.survey-button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none !important;
}

/* Success/Error Messages */
.survey-message {
    text-align: center;
    padding: 60px 40px;
    animation: fadeIn 0.5s ease;
}

.survey-message.success {
    color: #155724;
}

.survey-message.success .success-icon {
    font-size: 80px;
    color: #4CAF50;
    margin-bottom: 20px;
}

.survey-message.success h3 {
    font-size: 28px;
    color: #2c3e50;
    margin: 0;
}

.survey-message.error {
    background: #f8d7da;
    border: 2px solid #f5c6cb;
    color: #721c24;
    border-radius: 8px;
    padding: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .simple-survey {
        padding: 30px 20px;
    }
    
    .survey-title {
        font-size: 24px;
    }
    
    .question-label {
        font-size: 18px;
    }
    
    .survey-navigation {
        flex-direction: column;
    }
    
    .survey-button {
        width: 100%;
    }
    
    .survey-button-next,
    .survey-button-submit {
        margin-left: 0;
        order: -1;
    }
}

/* Loading Animation */
.survey-form.loading {
    opacity: 0.6;
    pointer-events: none;
}
