/* Contact Popup Widget Styles */
.contact-popup-widget {
    position: fixed;
    bottom: 70px; 
    right: 20px;
    z-index: 10000; 
    font-family: Arial, sans-serif;
}

.contact-popup-tab {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.contact-popup-tab:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.contact-tab-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.contact-user-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid white;
    flex-shrink: 0;
}

.contact-popup-content {
    position: absolute;
    bottom: calc(100%);
    right: 0;
    width: 350px;
    max-height: 0;
    overflow: hidden;
    background: white;
    border-radius: 8px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 20px;
}

.contact-popup-widget:hover .contact-popup-content {
    max-height: 650px;
    padding: 20px;
    overflow-y: auto;
}

.contact-form-heading {
    text-align: center;
    color: #1f2937;
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-disclaimer {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 15px;
}

.contact-submit-btn {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-submit-btn:hover {
    background: #1d4ed8;
}

.contact-submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .contact-popup-widget {
        right: 10px;
        bottom: 60px;
    }
    
    .contact-popup-content {
        width: calc(100vw - 20px);
        max-width: 350px;
    }
}