/**
 * Feedback Widget - Vintajj 2025 Style
 * Integrated with v25 design system
 */

.v25-feedback-widget {
    background: transparent;
    border-radius: 12px;
    padding: 0;
    margin-top: 0;
}

.v25-feedback-header {
    margin-bottom: 24px;
}

.v25-feedback-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1c1917;
    margin: 0;
}

/* Category Selection */
.v25-feedback-categories {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.v25-feedback-category {
    flex: 1;
    min-width: 100px;
    cursor: pointer;
}

.v25-feedback-category input {
    display: none;
}

.v25-feedback-category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    border: 1px solid #e7e5e4;
    border-radius: 10px;
    background: #fff;
    transition: all 0.2s ease;
}

.v25-feedback-category input:checked + .v25-feedback-category-btn {
    border-color: #A65A3C;
    background: rgba(166, 90, 60, 0.06);
    box-shadow: 0 0 0 3px rgba(166, 90, 60, 0.1);
}

.v25-feedback-category:hover .v25-feedback-category-btn {
    border-color: #A65A3C;
    background: rgba(166, 90, 60, 0.03);
}

.v25-feedback-icon {
    font-size: 24px;
    line-height: 1;
}

.v25-feedback-label {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #57534e;
}

.v25-feedback-category input:checked + .v25-feedback-category-btn .v25-feedback-label {
    color: #A65A3C;
    font-weight: 600;
}

/* Form Fields */
.v25-feedback-field {
    margin-bottom: 16px;
}

.v25-feedback-textarea,
.v25-feedback-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e7e5e4;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-family: 'Inter', -apple-system, sans-serif;
    color: #1c1917;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.v25-feedback-textarea:focus,
.v25-feedback-input:focus {
    outline: none;
    border-color: #A65A3C;
    box-shadow: 0 0 0 3px rgba(166, 90, 60, 0.1);
}

.v25-feedback-textarea {
    resize: vertical;
    min-height: 100px;
}

.v25-feedback-textarea::placeholder,
.v25-feedback-input::placeholder {
    color: var(--v25-text-muted, #999);
}

/* Submit Button */
.v25-feedback-actions {
    margin-top: 20px;
}

.v25-feedback-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: #A65A3C;
    color: #fff;
    border: none;
    border-radius: 9999px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 150px;
    box-shadow: 0 2px 8px rgba(166, 90, 60, 0.25);
}

.v25-feedback-submit:hover {
    background: #8B4A32;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(166, 90, 60, 0.3);
}

.v25-feedback-submit:active {
    transform: translateY(0);
}

.v25-feedback-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.v25-spinner {
    width: 20px;
    height: 20px;
    animation: v25-spin 1s linear infinite;
}

@keyframes v25-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Messages */
.v25-feedback-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--v25-radius-sm, 8px);
    font-size: 14px;
}

.v25-feedback-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.v25-feedback-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .v25-feedback-widget {
        padding: 16px;
    }

    .v25-feedback-categories {
        gap: 8px;
    }

    .v25-feedback-category {
        min-width: 80px;
    }

    .v25-feedback-category-btn {
        padding: 12px 8px;
    }

    .v25-feedback-icon {
        font-size: 20px;
    }

    .v25-feedback-label {
        font-size: 11px;
    }

    .v25-feedback-submit {
        width: 100%;
    }
}

/* Tab integration styles */
.v25-tab-content[data-tab="feedback"] .v25-feedback-widget {
    margin-top: 0;
    padding: 0;
    background: transparent;
}
