/* Enhanced Calculator Feedback - Frontend Styles */

.ecf-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.ecf-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color, #3b82f6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.ecf-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.ecf-trigger svg {
    width: 28px;
    height: 28px;
}

.ecf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000000;
    animation: ecfFadeIn 0.3s ease;
}

.ecf-modal-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: ecfSlideUp 0.3s ease;
}

.ecf-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.ecf-close:hover {
    background: #f3f4f6;
    color: #333;
}

.ecf-step h3 {
    margin: 0 0 24px 0;
    font-size: 24px;
    color: #1f2937;
    text-align: center;
}

.ecf-sentiment-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.ecf-sentiment-btn {
    flex: 1;
    padding: 24px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #4b5563;
}

.ecf-sentiment-btn:hover {
    border-color: var(--primary-color, #3b82f6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ecf-emoji {
    font-size: 48px;
}

.ecf-form-group {
    margin-bottom: 20px;
}

.ecf-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.ecf-form-group textarea,
.ecf-form-group input[type="email"],
.ecf-form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.ecf-form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.ecf-form-group textarea:focus,
.ecf-form-group input:focus,
.ecf-form-group select:focus {
    outline: none;
    border-color: var(--primary-color, #3b82f6);
}

.ecf-star-rating {
    display: flex;
    gap: 8px;
    font-size: 32px;
    justify-content: center;
    margin: 8px 0;
}

.ecf-star {
    cursor: pointer;
    color: #d1d5db;
    transition: all 0.2s;
}

.ecf-star:hover,
.ecf-star.active {
    color: #fbbf24;
    transform: scale(1.1);
}

.ecf-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--primary-color, #3b82f6);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.ecf-submit-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.ecf-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ecf-success {
    text-align: center;
    padding: 20px 0;
}

.ecf-success-icon {
    display: inline-block;
    width: 64px;
    height: 64px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    font-size: 36px;
    line-height: 64px;
    margin-bottom: 16px;
}

.ecf-success h3 {
    margin: 16px 0 8px 0;
    color: #1f2937;
}

.ecf-success p {
    color: #6b7280;
    margin: 0 0 24px 0;
}

.ecf-related h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #374151;
}

#ecf-related-calculators {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ecf-related-link {
    display: block;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
    color: var(--primary-color, #3b82f6);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.ecf-related-link:hover {
    background: #f3f4f6;
    transform: translateX(4px);
}

/* Animations */
@keyframes ecfFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ecfSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive */
@media (max-width: 640px) {
    .ecf-modal-content {
        width: 95%;
        padding: 24px;
        max-height: 85vh;
    }
    
    .ecf-sentiment-buttons {
        flex-direction: column;
    }
    
    .ecf-trigger {
        width: 56px;
        height: 56px;
    }
}

/* Related Calculators Grid (for shortcode) */
.ecf-related-calculators {
    margin: 32px 0;
}

.ecf-related-calculators h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1f2937;
}

.ecf-calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.ecf-calculator-card {
    display: block;
    padding: 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.ecf-calculator-card:hover {
    border-color: var(--primary-color, #3b82f6);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.ecf-calculator-card h4 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 18px;
}

.ecf-popularity {
    display: inline-block;
    font-size: 14px;
    color: #10b981;
    font-weight: 500;
}