/* Feedback Modal & Button */

/* Feedback Modal Overlay */
.feedback-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    overflow: hidden;
}

.feedback-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Feedback Modal */
.feedback-modal {
    width: 100%;
    max-width: 400px;
    max-height: 85vh;
    background: var(--product-card-bg, #252525);
    border-radius: 16px 16px 0 0;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-overflow-scrolling: touch;
}

.feedback-modal-overlay.active .feedback-modal {
    transform: translateY(0);
}

.feedback-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(128,128,128,0.12);
    position: sticky;
    top: 0;
    background: var(--product-card-bg, #252525);
    z-index: 1;
}

.feedback-modal-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--title-color, #fff);
    margin: 0;
}

.feedback-modal-close {
    width: 30px;
    height: 30px;
    background: color-mix(in srgb, var(--title-color) 10%, transparent);
    border: none;
    border-radius: 50%;
    color: var(--title-color, #fff);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s;
}

.feedback-modal-close:active {
    transform: scale(0.88);
}

.feedback-modal-close i {
    width: 16px;
    height: 16px;
}

/* Feedback Form */
.feedback-form {
    padding: 16px;
}

/* Star Rating */
.feedback-rating-section {
    margin-bottom: 16px;
    text-align: center;
}

.feedback-rating-section label {
    display: block;
    font-size: 13px;
    color: var(--product-desc-color, #888);
    margin-bottom: 8px;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.star-rating button {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.star-rating button:hover {
    transform: scale(1.15);
}

.star-rating button i {
    width: 28px;
    height: 28px;
    color: color-mix(in srgb, var(--title-color) 20%, transparent);
    transition: all 0.15s;
}

.star-rating button.active i {
    color: #fbbf24;
}

.star-rating button.active svg {
    fill: #fbbf24;
}

.star-rating button:hover i {
    color: #fbbf24;
}

/* Feedback Type */
.feedback-type-section {
    margin-bottom: 14px;
}

.feedback-type-section > label {
    display: block;
    font-size: 13px;
    color: var(--product-desc-color, #888);
    margin-bottom: 8px;
}

.feedback-type-options {
    display: flex;
    gap: 8px;
}

.type-option {
    flex: 1;
}

.type-option input {
    display: none;
}

.type-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    background: color-mix(in srgb, var(--title-color) 5%, transparent);
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--product-desc-color, #888);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.type-option span i {
    width: 16px;
    height: 16px;
}

.type-option input:checked + span {
    background: color-mix(in srgb, var(--title-color) 10%, transparent);
    border-color: var(--title-color, #fff);
    color: var(--title-color, #fff);
}

/* Feedback Fields */
.feedback-field {
    margin-bottom: 12px;
}

.feedback-field label {
    display: block;
    font-size: 13px;
    color: var(--product-desc-color, #888);
    margin-bottom: 6px;
}

.feedback-field input,
.feedback-field textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    background: color-mix(in srgb, var(--title-color) 5%, transparent);
    border: 1px solid rgba(128,128,128,0.15);
    border-radius: 8px;
    color: var(--title-color, #fff);
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.feedback-field input:focus,
.feedback-field textarea:focus {
    outline: none;
    border-color: var(--title-color, #fff);
}

.feedback-field input::placeholder,
.feedback-field textarea::placeholder {
    color: var(--product-desc-color, #555);
}

.feedback-field textarea {
    resize: vertical;
    min-height: 80px;
}

/* Submit Button */
.feedback-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--title-color, #fff);
    border: none;
    border-radius: 8px;
    color: var(--menu-bg, #1a1a1a);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.feedback-submit-btn:active {
    opacity: 0.8;
}

.feedback-submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.feedback-submit-btn i {
    width: 18px;
    height: 18px;
}

/* Success State */
.feedback-success {
    padding: 60px 20px;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon i {
    width: 40px;
    height: 40px;
    color: #22c55e;
}

.feedback-success h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--title-color, #fff);
    margin: 0 0 10px 0;
}

.feedback-success p {
    font-size: 14px;
    color: var(--product-desc-color, #888);
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.feedback-close-btn {
    padding: 12px 32px;
    background: color-mix(in srgb, var(--title-color) 10%, transparent);
    border: none;
    border-radius: 10px;
    color: var(--title-color, #fff);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.feedback-close-btn:active {
    opacity: 0.7;
}
