/* Feedback Modal Styles - Contact Modal Design */

/* CSS Variables for Light/Dark Mode */
:root {
    --feedback-modal-bg: #ffffff;
    --feedback-modal-text: #000000;
    --feedback-modal-text-secondary: #6e6e73;
    --feedback-modal-border: #d2d2d7;
    --feedback-modal-input-bg: #ffffff;
    --feedback-modal-close-bg: #f0f0f0;
    --feedback-modal-close-bg-hover: #e0e0e0;
    --feedback-modal-close-color: #333333;
    --feedback-modal-button-bg: #007AFF;
    --feedback-modal-button-bg-hover: #0056CC;
}

:root[data-theme="dark"] {
    --feedback-modal-bg: #1c1c1e;
    --feedback-modal-text: #ffffff;
    --feedback-modal-text-secondary: #a1a1a6;
    --feedback-modal-border: #38383a;
    --feedback-modal-input-bg: #2c2c2e;
    --feedback-modal-close-bg: #48484a;
    --feedback-modal-close-bg-hover: #5a5a5c;
    --feedback-modal-close-color: #ffffff;
    --feedback-modal-button-bg: #0A84FF;
    --feedback-modal-button-bg-hover: #0056CC;
}

/* Terms Modal */
.terms-modal-container {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.terms-content {
    padding: 20px;
}

.terms-text {
    line-height: 1.6;
}

.terms-section {
    margin-bottom: 20px;
}

.terms-section h5 {
    color: var(--primary-color, #007AFF);
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
}

.terms-section p {
    color: var(--text-color, #333);
    font-size: 14px;
    margin-bottom: 0;
}

/* Modal Overlay and Base Modal */
#feedbackModal.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 40px 0;
    overflow-y: auto;
}

#feedbackModal.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

#feedbackModal .modal-close-container {
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 20;
    padding: 0;
}

#feedbackModal .modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--feedback-modal-close-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 17px;
    font-weight: 400;
    z-index: 20;
    color: var(--feedback-modal-close-color);
    transition: background-color 0.2s, color 0.2s;
}

#feedbackModal .modal-close:hover {
    background-color: var(--feedback-modal-close-bg-hover);
}

#feedbackModal .modal-close:active {
    background-color: var(--feedback-modal-close-bg-hover);
}

#feedbackModal .modal-close i {
    font-size: 20px;
}

#feedbackModal .modal {
    background-color: var(--feedback-modal-bg);
    border-radius: 18px;
    width: 1069px;
    max-width: 95%;
    padding: 0 40px 40px 40px;
    position: relative;
    margin-top: 40px;
    margin-bottom: 80px;
    height: auto;
    min-height: 1300px;
    max-height: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#feedbackModal .hero-icon {
    width: 69px;
    height: 69px;
    margin-bottom: 30px;
    animation: slideDown 0.8s ease forwards;
    transform: translateY(-20px);
    margin-top: 70px;
}

/* Dark Mode Filter für Hero Icon */
:root[data-theme="dark"] #feedbackModal .hero-icon {
    filter: brightness(0) invert(1);
}

#feedbackModal .modal-title {
    text-align: center;
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 15px;
    font-family: var(--font-family-heading, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    max-width: 80%;
    line-height: 1.1;
    margin-top: 30px;
}

#feedbackModal .modal-title span {
    font-weight: 600;
    color: var(--feedback-modal-text);
}

#feedbackModal .modal-title .gray {
    color: var(--feedback-modal-text-secondary);
    font-weight: 600;
}

#feedbackModal .modal-subtitle {
    text-align: center;
    font-size: 21px;
    font-weight: 400;
    margin-bottom: 40px;
    color: var(--feedback-modal-text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

#feedbackModal #feedbackForm {
    width: 100%;
    max-width: 680px;
    padding-bottom: 100px;
}

#feedbackModal .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

/* Abstände nach jeweils drei Eingabefeldern */
#feedbackModal .form-row:nth-child(3) {
    margin-bottom: 40px;
}

#feedbackModal .form-row:nth-child(6) {
    margin-bottom: 40px;
}

#feedbackModal .form-row:nth-child(9) {
    margin-bottom: 40px;
}

#feedbackModal .form-row:last-of-type {
    margin-top: 30px;
}

#feedbackModal .form-group {
    flex: 1;
}

#feedbackModal .form-group.full-width {
    flex: 0 0 100%;
    width: 100%;
}

#feedbackModal .form-control {
    width: 350px;
    height: 70px;
    padding: 8px 12px;
    border: 1px solid var(--feedback-modal-border);
    border-radius: 12px;
    font-size: 17px;
    font-weight: 400;
    font-family: var(--font-family-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    background-color: var(--feedback-modal-input-bg);
    color: var(--feedback-modal-text);
    transition: border-color 0.2s;
}

#feedbackModal .form-control:focus {
    outline: none;
    border-color: var(--feedback-modal-button-bg);
}

#feedbackModal .form-control::placeholder {
    color: var(--feedback-modal-text-secondary);
}

#feedbackModal .form-control.text-area {
    height: auto;
    min-height: 150px;
    width: 100%;
    resize: vertical;
}

#feedbackModal .form-select {
    width: 350px;
    height: 70px;
    padding: 8px 12px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 400;
    font-family: var(--font-family-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
    padding-right: 36px;
    cursor: pointer;
}

/* File Upload Area */
#feedbackModal .file-upload-area {
    border: 2px dashed #d2d2d7;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    background: #fafafa;
    width: 100%;
}

#feedbackModal .file-upload-area.dragover {
    border-color: var(--primary-color, #007AFF);
    background: rgba(0, 122, 255, 0.05);
}

#feedbackModal .file-upload-button {
    cursor: pointer;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #666;
    transition: color 0.3s ease;
}

#feedbackModal .file-upload-button:hover {
    color: var(--primary-color, #007AFF);
}

#feedbackModal .file-upload-button i {
    font-size: 24px;
}

#feedbackModal .file-upload-button span {
    font-size: 17px;
    font-weight: 400;
}

/* File List */
#feedbackModal .file-list {
    margin-top: 15px;
    text-align: left;
}

#feedbackModal .file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

#feedbackModal .file-item-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

#feedbackModal .file-item-info i {
    color: var(--primary-color, #007AFF);
    width: 16px;
    text-align: center;
}

#feedbackModal .file-item-name {
    font-weight: 500;
    color: var(--text-color, #333);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#feedbackModal .file-item-size {
    color: #666;
    font-size: 12px;
    margin-left: 8px;
}

#feedbackModal .file-item-remove {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    font-size: 12px;
}

#feedbackModal .file-item-remove:hover {
    background: rgba(255, 68, 68, 0.1);
}

#feedbackModal .file-info {
    color: #666;
    font-size: 14px;
    margin-top: 8px;
    text-align: left;
}

/* Checkbox Styles */
#feedbackModal .checkbox-row {
    margin-top: 10px;
    margin-bottom: 60px;
}

#feedbackModal .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

#feedbackModal .form-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}

#feedbackModal .checkbox-label {
    font-size: 15px;
    color: #333;
    line-height: 1.4;
    cursor: pointer;
}

/* Submit Button */
#feedbackModal .submit-button {
    width: 100%;
    height: 50px;
    background-color: var(--feedback-modal-button-bg);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#feedbackModal .submit-button:hover {
    background-color: var(--feedback-modal-button-bg-hover);
}

#feedbackModal .submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#feedbackModal .submit-button:disabled .button-text {
    display: none;
}

#feedbackModal .submit-button:disabled .button-spinner {
    display: inline-flex;
}

#feedbackModal .button-spinner {
    display: none;
    align-items: center;
    gap: 8px;
}

/* Legal Text */
#feedbackModal .legal-text {
    font-size: 14px;
    color: var(--feedback-modal-text-secondary);
    line-height: 1.4;
    text-align: center;
    margin-top: 20px;
}

/* Success Message */
#feedbackModal .success-message {
    background-color: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.3);
    color: #34c759;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
}

#feedbackModal .success-message i {
    font-size: 18px;
    color: #34c759;
}

/* Error Message */
#feedbackModal .error-message {
    background-color: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #ff3b30;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
}

#feedbackModal .error-message i {
    font-size: 18px;
    color: #ff3b30;
}

/* Dark mode adjustments for success/error messages */
:root[data-theme="dark"] #feedbackModal .success-message {
    background-color: rgba(52, 199, 89, 0.15);
    border-color: rgba(52, 199, 89, 0.4);
    color: #30d158;
}

:root[data-theme="dark"] #feedbackModal .success-message i {
    color: #30d158;
}

:root[data-theme="dark"] #feedbackModal .error-message {
    background-color: rgba(255, 69, 58, 0.15);
    border-color: rgba(255, 69, 58, 0.4);
    color: #ff453a;
}

:root[data-theme="dark"] #feedbackModal .error-message i {
    color: #ff453a;
}

/* Dark mode specific adjustments */
/* X-Mark Icon Styling */
#feedbackModal .modal-close-icon {
    width: 14px;
    height: 14px;
    filter: none; /* Standard schwarz/grau für hellen Hintergrund */
}

:root[data-theme="dark"] #feedbackModal .modal-close-icon {
    filter: invert(100%); /* Weiß für dunklen Hintergrund */
}

:root[data-theme="dark"] #feedbackModal .modal-close i {
    color: #ffffff;
}

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

@keyframes slideDown {
    from {
        transform: translateY(-20px);
    }
    to {
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #feedbackModal .modal {
        width: 95%;
        max-width: none;
        margin: 20px auto;
        padding: 0 20px 40px 20px;
        min-height: auto;
    }
    
    #feedbackModal .modal-title {
        font-size: 32px;
    }
    
    #feedbackModal .modal-subtitle {
        font-size: 18px;
    }
    
    #feedbackModal .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    #feedbackModal .form-control,
    #feedbackModal .form-select {
        width: 100%;
    }
    
    #feedbackModal .file-upload-area {
        padding: 20px;
    }
    
    #feedbackModal .hero-icon {
        width: 50px;
        height: 50px;
        margin-top: 50px;
    }
} 