/**
 * Frontend Styles für Feedback Manager
 */

.fm-feedback-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.fm-feedback-form {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fm-form-section {
    padding: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.fm-form-section:last-child {
    border-bottom: none;
}

.fm-form-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

/* Form Fields */
.fm-form-field {
    margin-bottom: 20px;
}

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

.fm-form-field select,
.fm-form-field input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.3s ease;
}

.fm-form-field select:focus,
.fm-form-field input[type="email"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

/* Question Blocks */
.fm-question-block {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.fm-question-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.fm-question-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.fm-question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0073aa;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.fm-question-answer {
    margin-top: 15px;
    padding-left: 38px;
}

/* Radio Groups (Ja/Nein) */
.fm-radio-group {
    display: flex;
    gap: 15px;
}

.fm-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.fm-radio-label:hover {
    border-color: #0073aa;
    background: #f0f6fc;
}

.fm-radio-label input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

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

/* Scale (1-10) */
.fm-scale-container {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.fm-scale-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.fm-scale-inputs {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.fm-scale-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.fm-scale-label input[type="radio"] {
    display: none;
}

.fm-scale-label span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.fm-scale-label:hover span {
    border-color: #0073aa;
    background: #f0f6fc;
}

.fm-scale-label input[type="radio"]:checked + span {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Checkbox Groups (Multiple Choice) */
.fm-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fm-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    transition: all 0.3s ease;
}

.fm-checkbox-label:hover {
    border-color: #0073aa;
    background: #f0f6fc;
}

.fm-checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.fm-checkbox-label input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: #0073aa;
}

/* Textarea (Freitext) */
.fm-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.fm-textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.fm-optional-hint {
    margin: 5px 0 0 0;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* Multiple Choice Radio (Single Select) */
.fm-multiple-choice-radio {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Form Actions */
.fm-form-actions {
    padding: 30px;
    text-align: center;
}

.fm-submit-button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fm-submit-button:hover {
    background: #005a87;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

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

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

/* Form Messages */
.fm-form-message {
    margin: 20px 30px;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
}

.fm-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.fm-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Success Container */
.fm-success-container {
    text-align: center;
    padding: 40px 20px;
}

.fm-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #28a745;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    animation: successPop 0.5s ease-out;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.fm-success-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
}

.fm-success-text {
    font-size: 16px;
    color: #666;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.fm-submit-again-button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fm-submit-again-button:hover {
    background: #005a87;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .fm-feedback-form-container {
        padding: 10px;
    }

    .fm-form-section {
        padding: 20px;
    }

    .fm-scale-inputs {
        gap: 4px;
    }

    .fm-scale-label span {
        height: 36px;
        font-size: 14px;
    }

    .fm-radio-group {
        flex-direction: column;
    }

    .fm-success-icon {
        width: 70px;
        height: 70px;
        font-size: 40px;
    }

    .fm-success-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .fm-question-answer {
        padding-left: 0;
    }

    .fm-question-number {
        width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 12px;
    }

    .fm-question-text {
        font-size: 14px;
    }

    .fm-scale-label span {
        font-size: 12px;
    }

    .fm-success-icon {
        width: 60px;
        height: 60px;
        font-size: 32px;
    }

    .fm-success-title {
        font-size: 20px;
    }

    .fm-success-text {
        font-size: 14px;
    }
}

/* ====================
   Blocked View (24h Sperre)
   ==================== */

.fm-blocked-container {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border: 2px solid #ffb900;
    border-radius: 8px;
    margin: 20px 0;
}

.fm-blocked-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.fm-blocked-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.fm-blocked-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.fm-countdown {
    font-size: 36px;
    font-weight: bold;
    color: #0073aa;
    font-family: monospace;
    margin: 20px 0;
    padding: 20px;
    background: #f0f6fc;
    border-radius: 8px;
    display: inline-block;
}

.fm-blocked-hint {
    font-size: 13px;
    color: #999;
    font-style: italic;
}

/* ====================
   Kiosk-Modus
   ==================== */

.fm-kiosk-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #0073aa;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
}

.fm-kiosk-badge .dashicons {
    font-size: 16px;
}

.fm-kiosk-mode {
    position: relative;
}

.fm-kiosk-success {
    background: #d4edda !important;
    border-color: #28a745 !important;
}

.fm-success-icon-large {
    width: 100px !important;
    height: 100px !important;
    font-size: 60px !important;
}

.fm-next-participant-button {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.fm-next-participant-button:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.fm-next-participant-button:active {
    transform: translateY(0);
}

/* ====================
   Geschlossene Umfrage
   ==================== */

.fm-notice {
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

.fm-notice-closed {
    background: #fff3cd;
    border: 2px solid #ffc107;
}

.fm-notice-closed h3 {
    color: #856404;
    margin-top: 0;
    font-size: 22px;
}

.fm-notice-closed p {
    color: #856404;
    font-size: 16px;
    margin-bottom: 0;
}

/* ====================
   Cooldown Notice
   ==================== */

.fm-cooldown-notice {
    color: #856404 !important;
    background: #fff3cd;
    padding: 10px 15px;
    border-radius: 4px;
    margin-top: 15px;
    font-weight: 600;
}

/* ====================
   Responsive Anpassungen für neue Features
   ==================== */

@media (max-width: 768px) {
    .fm-countdown {
        font-size: 28px;
    }

    .fm-blocked-title {
        font-size: 20px;
    }

    .fm-kiosk-badge {
        top: 5px;
        right: 5px;
        font-size: 10px;
        padding: 4px 8px;
    }

    .fm-next-participant-button {
        padding: 12px 30px;
        font-size: 16px;
    }
}
