/* Product Inquiry Popup Styles */
.product-inquiry-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-inquiry-popup.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

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

.product-inquiry-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    padding: 25px 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000000;
}

.product-inquiry-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    border-radius: 50%;
}

.product-inquiry-popup-close:hover {
    color: #000;
    background-color: #f5f5f5;
}

/* Header with Icon */
.product-inquiry-header {
    text-align: center;
    margin-bottom: 20px;
}

.product-inquiry-icon {
    display: inline-block;
    margin-bottom: 8px;
}

.product-inquiry-icon svg {
    width: 40px;
    height: 40px;
}

.product-inquiry-popup-content h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Form Styles */
.product-inquiry-form {
    margin-top: 15px;
}

.product-inquiry-form-group {
    margin-bottom: 15px;
    position: relative;
}

.product-inquiry-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    font-size: 13px;
}

.product-inquiry-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background-color: #fff;
    height:40px;
}

.product-inquiry-input:focus {
    outline: none;
    border-color: #DC143C;
    box-shadow: 0 0 0 2px rgba(220, 20, 60, 0.1);
}

.product-inquiry-input.error {
    border-color: #DC143C;
    background-color: #fff5f5;
}

.product-inquiry-input.error:focus {
    border-color: #DC143C;
    box-shadow: 0 0 0 2px rgba(220, 20, 60, 0.2);
}

.product-inquiry-form-group textarea.product-inquiry-input {
    resize: vertical;
    min-height: 90px;
    font-family: inherit;
}

/* Error Messages */
.product-inquiry-error {
    display: none;
    color: #DC143C;
    font-size: 11px;
    margin-top: 4px;
    align-items: center;
    gap: 5px;
}

.product-inquiry-error.show {
    display: flex;
}

.product-inquiry-error:before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #DC143C;
    color: #fff;
    font-size: 9px;
    font-weight: bold;
    flex-shrink: 0;
}

/* Submit Button */
.product-inquiry-form-submit {
    margin-top: 20px;
    text-align: center;
}

.product-inquiry-submit-btn {
    background-color: #DC143C;
    color: #fff;
    border: none;
    padding: 10px !important;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    min-height: 44px;
}

.product-inquiry-submit-btn:hover:not(:disabled) {
    background-color: #B71C1C;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.product-inquiry-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.product-inquiry-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.product-inquiry-note {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #666;
    text-align: center;
    font-style: italic;
}

/* Success/Error Messages */
.product-inquiry-message {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    display: none;
    text-align: center;
}

.product-inquiry-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.product-inquiry-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Button Styles */
.product-inquiry-btn {
    background-color: #DC143C;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-inquiry-btn:hover {
    background-color: #B71C1C;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

/* Prevent body scroll when popup is open */
body.product-inquiry-popup-open {
    overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .product-inquiry-popup-content {
        padding: 20px 25px;
        width: 95%;
        max-height: 95vh;
    }

    .product-inquiry-popup-content h2 {
        font-size: 20px;
    }

    .product-inquiry-icon svg {
        width: 35px;
        height: 35px;
    }

    .product-inquiry-form-group {
        margin-bottom: 12px;
    }

    .product-inquiry-submit-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .product-inquiry-popup-content {
        padding: 18px 20px;
    }

    .product-inquiry-popup-content h2 {
        font-size: 18px;
    }

    .product-inquiry-header {
        margin-bottom: 15px;
    }
}
