/* Inquiry Button Styles */
.hj-inquiry-button {
    background: #ff6900 !important;
    color: white !important;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.hj-inquiry-button:hover {
    background: #e55a00 !important;
}

.hj-inquiry-button-wrapper {
    margin: 20px 0;
}

/* Hide price when needed */
.price-hidden {
    color: #999;
    font-style: italic;
}

/* Inquiry Popup Styles */
.hj-inquiry-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
}

.hj-inquiry-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.hj-inquiry-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.hj-inquiry-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.hj-inquiry-close:hover {
    color: #333;
}

.hj-inquiry-popup-content h3 {
    margin: 0 0 20px;
    color: #333;
    font-size: 24px;
    border-bottom: 2px solid #ff6900;
    padding-bottom: 10px;
}

.hj-inquiry-product-info {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.hj-inquiry-product-info p {
    margin: 0;
    font-size: 16px;
}

/* Form Styles */
#hj-inquiry-form .hj-form-group {
    margin-bottom: 20px;
}

#hj-inquiry-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

#hj-inquiry-form label .required {
    color: #e74c3c;
}

#hj-inquiry-form input[type="text"],
#hj-inquiry-form input[type="tel"],
#hj-inquiry-form input[type="email"],
#hj-inquiry-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

#hj-inquiry-form input:focus,
#hj-inquiry-form textarea:focus {
    outline: none;
    border-color: #ff6900;
    box-shadow: 0 0 5px rgba(255, 105, 0, 0.2);
}

#hj-inquiry-form input[readonly] {
    background: #f0f0f0;
    cursor: not-allowed;
}

#hj-inquiry-form input.error {
    border-color: #e74c3c;
}

#hj-inquiry-form .hj-form-actions {
    text-align: center;
    margin-top: 25px;
}

.hj-submit-inquiry {
    background: #ff6900 !important;
    color: white !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hj-submit-inquiry:hover {
    background: #e55a00 !important;
}

.hj-submit-inquiry:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Result Display */
#hj-inquiry-result {
    text-align: center;
}

.hj-inquiry-success {
    padding: 20px;
}

.hj-inquiry-success h4 {
    color: #27ae60;
    font-size: 20px;
    margin-bottom: 15px;
}

#hj-inquiry-price-display .hj-price-value {
    font-size: 24px;
    color: #ff6900;
    font-weight: bold;
}

#hj-inquiry-seller-display .hj-seller-phone {
    font-size: 18px;
    color: #333;
}

/* Notification Styles */
.hj-inquiry-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    max-width: 400px;
}

.hj-inquiry-notification.show {
    opacity: 1;
    transform: translateX(0);
}

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

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

/* Body class when popup is open */
body.hj-inquiry-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 600px) {
    .hj-inquiry-popup-content {
        width: 95%;
        padding: 20px;
    }
    
    .hj-inquiry-popup-content h3 {
        font-size: 20px;
    }
    
    .hj-submit-inquiry {
        width: 100%;
    }
}

/* Admin Inquiries Table Styles */
.status-new {
    background: #fff3cd;
    color: #856404;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.status-viewed {
    background: #d1ecf1;
    color: #0c5460;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.status-contacted {
    background: #d4edda;
    color: #155724;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}
