/* Global Pet Supplies Inquiry Modal Styles */
.gpim-inquiry-btn {
    background-color: rgba(8,119,30,0.43);
    color: white;
    border: none;
    padding: 6px 22px;
    border-radius: 22px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-left: 10px;
}

.gpim-inquiry-btn:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.gpim-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
}

.gpim-modal-content {
    background-color: white;
    margin: 10% auto;
    width: 360px;
    height: 460px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gpim-modal-header {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 15px 20px;
}

.gpim-modal-header h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.gpim-modal-header p {
    font-size: 12px;
    opacity: 0.9;
}

.gpim-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: white;
    background: rgba(0,0,0,0.2);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gpim-close:hover {
    background: rgba(0,0,0,0.3);
    transform: rotate(90deg);
}

#gpimInquiryForm {
    padding: 15px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

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

.gpim-form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
}

.gpim-form-group input,
.gpim-form-group select,
.gpim-form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border 0.3s ease;
}

.gpim-form-group input:focus,
.gpim-form-group select:focus,
.gpim-form-group textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.gpim-required::after {
    content: " *";
    color: #e74c3c;
}

.gpim-form-row {
    display: flex;
    gap: 10px;
}

.gpim-form-row .gpim-form-group {
    flex: 1;
}

.gpim-file-upload {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gpim-file-input {
    display: none;
}

.gpim-file-label {
    background-color: #f8f9fa;
    border: 1px dashed #bdc3c7;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gpim-file-label:hover {
    background-color: #e9ecef;
    border-color: #3498db;
}

.gpim-file-status {
    font-size: 12px;
    color: #7f8c8d;
}

.gpim-btn-submit {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.gpim-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(46, 204, 113, 0.3);
}

.gpim-btn-submit:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.gpim-message {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: none;
}

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

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

@media (max-width: 480px) {
    .gpim-modal-content {
        width: 95%;
        height: 90%;
        margin: 5% auto;
    }
    
    .gpim-form-row {
        flex-direction: column;
        gap: 0;
    }
}


/* 强制显示弹窗的备用样式 */
.gpim-modal[style*="display: block"],
.gpim-modal.force-show {
    display: block !important;
}

.gpim-modal[style*="display: none"] {
    display: none !important;
}

/* 确保弹窗在最上层 */
.gpim-modal {
    z-index: 999999 !important;
}

.gpim-modal-content {
    z-index: 1000000 !important;
}

/* 按钮点击状态反馈 */
.gpim-inquiry-btn:active {
    transform: translateY(1px) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

/* 调试边框 */
.gpim-debug * {
    /* border: 1px solid red !important; */
}