/* Feedback System Styles */

/* Fixed Feedback Section */
/* Fixed Feedback Section */
.feedback-section {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.feedback-section .section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.feedback-card {
    background: var(--background-subtle);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
}

.feedback-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

/* Sentiment Buttons */
.sentiment-feedback {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.sentiment-btn {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    flex: 1;
    max-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.sentiment-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.sentiment-btn.active {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.05);
}

.sentiment-btn .emoji {
    font-size: 1.5rem;
}

.sentiment-btn .label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.sentiment-btn.active .label {
    color: var(--primary-color);
}

/* Always Visible Text Area */
.feedback-text-area {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.feedback-text-area:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.feedback-submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
}

.feedback-submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Success Message */
.feedback-success {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

/* Floating Widget */
.floating-feedback-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.floating-feedback-btn {
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transition: var(--transition);
}

.floating-feedback-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

/* Modal */
.feedback-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    padding: 20px;
}

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

.feedback-modal {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    max-width: 400px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.2s;
}

.feedback-modal-overlay.active .feedback-modal {
    transform: scale(1);
}

.feedback-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.feedback-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.feedback-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.feedback-close-btn:hover {
    background: var(--background-light);
}

/* Category Chips */
.feedback-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feedback-chip {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feedback-chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.feedback-chip.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Nudge Styles */
.feedback-nudge {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 999;
    max-width: 90%;
    min-width: 320px;
    visibility: hidden;
    transition: transform 0.4s ease-out;
}

.feedback-nudge.active {
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nudge-content {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nudge-text {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    color: var(--text-primary);
    flex: 1;
}

.nudge-emoji {
    font-size: 1.25rem;
}

.nudge-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Update nudge button styles */
.nudge-btn {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    background: white;
    color: var(--text-secondary);
}

.nudge-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.nudge-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.nudge-btn.primary {
    background: var(--primary-color);
    color: white;
}

.nudge-btn.primary:hover {
    background: var(--primary-dark);
}

.nudge-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-tertiary);
    padding: 0.25rem;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
}

.nudge-close:hover {
    color: var(--text-secondary);
    background: var(--background-light);
}
/* Progress Bar */
.feedback-progress-container {
    position: relative;
    height: 10px;
    background: transparent;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    overflow: visible;
    display: flex;
    align-items: center;
}

.feedback-progress-bar {
    height: 2px;
    background: var(--primary-color);
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 0;
}

/* Step Indicators */
.feedback-progress-steps {
    position: absolute;
    top: 50%;
    left: 1.5rem;
    right: 1.5rem;
    height: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    transform: translateY(-50%);
}

.progress-step {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.progress-step.completed {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.progress-step.current {
    background: white;
    border-color: var(--primary-color);
    border-width: 2px;
    transform: scale(1.1);
}

.progress-step.pending {
    background: var(--background-light);
    border-color: #d1d5db;
    border-width: 2px;
}


/* Detailed Feedback Modal */
.detailed-feedback-modal {
    padding: 1.5rem;
    padding-top: 2rem;
}

.detailed-step {
    display: none;
}

.detailed-step.active {
    display: block;
}

.detailed-question {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.detailed-options {
    margin-bottom: 1rem;
}

.detailed-option {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.detailed-option input[type="radio"],
.detailed-option input[type="checkbox"] {
    margin-right: 0.5rem;
}

.detailed-option label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.detailed-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 1rem;
}

.detailed-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.detailed-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.detailed-btn.primary {
    background: var(--primary-color);
    color: white;
}

.detailed-btn.secondary {
    background: var(--background-light);
    color: var(--text-secondary);
}
/* Phone input */
.detailed-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-family: inherit;
    margin-bottom: 1rem;
}

.detailed-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
/* Thank You Modal */
.thank-you-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.thank-you-overlay.active {
    opacity: 1;
    visibility: visible;
}

.thank-you-modal {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.2s;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.thank-you-overlay.active .thank-you-modal {
    transform: scale(1);
    animation: thankYouBounce 0.5s ease;
}

@keyframes thankYouBounce {
    0% { transform: scale(0.9); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.thank-you-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: sparkle 1s ease infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.thank-you-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.thank-you-message {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.thank-you-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-width: 120px;
}

.thank-you-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Success animation for inline messages */
@keyframes successSlide {
    0% { 
        opacity: 0;
        transform: translateY(-10px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-success {
    animation: successSlide 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .sentiment-feedback {
        gap: 0.5rem;
    }
    
    .sentiment-btn {
        padding: 0.625rem 0.5rem;
    }
    
    .sentiment-btn .emoji {
        font-size: 1.25rem;
    }
    
    .sentiment-btn .label {
        font-size: 0.625rem;
    }
    
    .floating-feedback-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .nudge-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .nudge-actions {
        width: 100%;
        justify-content: space-between;
    }
}

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