/* Visitor Satisfaction Tracker - Frontend Styles */

/* Popup Container */
.vst-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    animation: vstFadeIn 0.3s ease-in-out;
}

.vst-popup-overlay.vst-active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vst-popup {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: vstSlideUp 0.4s ease-out;
}

/* Close Button */
.vst-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
    transition: color 0.2s ease;
}

.vst-close-btn:hover {
    color: #333;
}

/* Step Container */
.vst-step {
    display: none;
}

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

/* Header */
.vst-popup h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #333;
    text-align: center;
    font-weight: 600;
}

.vst-popup p {
    margin: 0 0 25px 0;
    font-size: 16px;
    color: #666;
    text-align: center;
    line-height: 1.5;
}

/* Happy/Unhappy Buttons */
.vst-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.vst-btn {
    flex: 1;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.vst-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vst-btn-happy {
    color: #10b981;
    border-color: #10b981;
}

.vst-btn-happy:hover {
    background: #10b981;
    color: #fff;
}

.vst-btn-unhappy {
    color: #ef4444;
    border-color: #ef4444;
}

.vst-btn-unhappy:hover {
    background: #ef4444;
    color: #fff;
}

/* Star Rating */
.vst-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 25px 0;
}

.vst-star {
    font-size: 36px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.vst-star:hover,
.vst-star.vst-active {
    color: #fbbf24;
    transform: scale(1.1);
}

.vst-star:hover ~ .vst-star {
    color: #ddd;
}

/* Feedback Textarea */
.vst-feedback-group {
    margin: 20px 0;
}

.vst-feedback-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.vst-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.vst-textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Submit/Navigation Buttons */
.vst-action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.vst-btn-submit,
.vst-btn-skip {
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vst-btn-submit {
    background: #3b82f6;
    color: #fff;
}

.vst-btn-submit:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.vst-btn-skip {
    background: #e5e7eb;
    color: #666;
}

.vst-btn-skip:hover {
    background: #d1d5db;
}

/* Thank You Message */
.vst-thank-you {
    text-align: center;
    padding: 20px 0;
}

.vst-thank-you-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.vst-thank-you h3 {
    color: #10b981;
    margin-bottom: 10px;
}

/* Loading State */
.vst-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animations */
@keyframes vstFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Mobile Responsive */
@media (max-width: 600px) {
    .vst-popup {
        padding: 25px 20px;
        width: 95%;
    }
    
    .vst-popup h3 {
        font-size: 20px;
    }
    
    .vst-popup p {
        font-size: 14px;
    }
    
    .vst-buttons {
        flex-direction: column;
    }
    
    .vst-star {
        font-size: 30px;
    }
    
    .vst-btn-submit,
    .vst-btn-skip {
        padding: 10px 20px;
        font-size: 14px;
    }
}
