.feedback-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.feedback-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    z-index: 10000;
}

.feedback-container {
    position: relative;
    height: 100%;
}

.feedback-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8faff 100%);
    border: 3px solid transparent;
    border-radius: 30px;
    padding: 2rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    height: 100%;

    display: flex;
    flex-direction: column;
}

/* Градиентная рамка */
.feedback-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg,
    #667eea 0%,
    #764ba2 25%,
    #f093fb 50%,
    #f5576c 75%,
    #ffd166 100%);
    border-radius: 33px;
    z-index: -1;
    animation: gradientBorder 8s ease infinite;
    background-size: 400% 400%;
}

@keyframes gradientBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.feedback-form__wrapper {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.feedback-form__wrapper::-webkit-scrollbar {
    width: 6px;
}

.feedback-form__wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.feedback-form__wrapper::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.feedback-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.feedback-form-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    padding: 0 10px;
    background: linear-gradient(90deg,
    #FF416C,
    #FF4B2B,
    #FF8A00,
    #FFC837,
    #38EF7D,
    #11998E,
    #36D1DC,
    #5B86E5,
    #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% 300%;
    animation: gradientText 8s ease infinite;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@keyframes gradientText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.feedback-form-description {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

.feedback-form-group {
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.feedback-form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #475569;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feedback-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.feedback-required-indicator {
    color: #f5576c;
}

.feedback-form-input,
.feedback-form-textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #334155;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.feedback-form-input:focus,
.feedback-form-textarea:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15),
    0 8px 16px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.feedback-form-textarea {
    min-height: 80px;
    resize: vertical;
    line-height: 1.5;
}

.feedback-error-message {
    color: #f5576c;
    font-size: 0.75rem;
    margin-top: 4px;
    display: block;
    min-height: 18px;
}

.feedback-checkbox-wrapper {
    margin-top: 1rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.feedback-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.feedback-checkbox-input {
    margin-top: 3px;
    flex-shrink: 0;
}

.feedback-checkbox-label {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

.feedback-checkbox-label a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.feedback-checkbox-label a:hover {
    text-decoration: underline;
}


.feedback-button-container {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.feedback-submit-button {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.875rem;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.feedback-submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.feedback-submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.feedback-submit-button.loading {
    opacity: 0.8;
    cursor: wait;
}

.feedback-submit-button.loading .feedback-button-text::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.feedback-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    border: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
    transition: all 0.3s ease;
}

.feedback-modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 6px 16px rgba(245, 87, 108, 0.4);
}

@media (max-width: 768px) {
    .feedback-modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .feedback-card {
        padding: 1.5rem;
        border-radius: 20px;
        max-height: 85vh;
    }

    .feedback-form-title {
        font-size: 1.5rem;
    }

    .feedback-form-description {
        font-size: 0.85rem;
    }

    .feedback-form-input,
    .feedback-form-textarea {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .feedback-submit-button {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .feedback-modal-close {
        top: 10px;
        right: 10px;
        width: 26px;
        height: 26px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .feedback-modal-content {
        max-height: 90vh;
    }

    .feedback-card {
        padding: 1.25rem;
        max-height: 90vh;
    }

    .feedback-form-title {
        font-size: 1.3rem;
    }

    .feedback-form-group {
        margin-bottom: 1rem;
    }
}
