/* feedback.css */

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #ffdf8f;
}

#feedback-text {
    width: 100%;
    min-height: 100px;
    padding: 12px 14px;
    border: 1px solid rgba(126, 136, 164, 0.24);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.4;
    resize: vertical;
    transition: all 0.3s ease;
    background: rgba(33, 39, 56, 0.92);
    color: #fff9e7;
}

#feedback-text:focus {
    outline: none;
    border-color: rgba(255, 223, 143, 0.48);
    box-shadow: 0 0 0 4px rgba(255, 223, 143, 0.08);
}

#feedback-text::placeholder { color: #a8b0c3; font-style: italic; }

.char-counter {
    text-align: right;
    font-size: 0.75rem;
    color: #ffdf8f;
    margin-top: 4px;
}

.char-counter.warning { color: #ff6b6b; font-weight: 600; }

.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 6px;
}

.rating-stars input { display: none; }

.rating-stars label {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px;
}

.rating-stars label:hover,
.rating-stars label:hover ~ label,
.rating-stars input:checked ~ label {
    color: #ffc107;
    transform: scale(1.05);
}

.rating-stars input:checked + label { color: #ffc107; transform: scale(1.05); }

.submit-feedback-btn {
    background: linear-gradient(180deg, #ffe7a8 0%, #e7c66f 100%);
    color: #161a27;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.submit-feedback-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, #fff0c2 0%, #f0cf7a 100%);
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(231, 198, 111, 0.25);
}

.submit-feedback-btn:active:not(:disabled) { transform: translateY(0); }
.submit-feedback-btn:disabled { background: #ccc; cursor: not-allowed; transform: none; box-shadow: none; }

#feedback-modal .modal-content {
    max-width: 450px;
    max-height: 85vh;
    overflow-y: auto;
    color: #fff9e7;
}

#feedback-modal h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #ffdf8f;
    font-size: 1.3rem;
}

.rating-hint {
    display: none;
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .rating-stars label { font-size: 1.7rem; }
    #feedback-text { min-height: 90px; font-size: 0.85rem; }
    .submit-feedback-btn { padding: 10px 18px; font-size: 0.9rem; }
    #feedback-modal .modal-content { margin: 8px; max-width: calc(100% - 16px); }
}

@media (max-width: 480px) {
    .rating-stars { gap: 4px; }
    .rating-stars label { font-size: 1.5rem; padding: 2px; }
    #feedback-text { min-height: 80px; padding: 8px; }
}
