/* Dialog Component Styles */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(128, 128, 128, 0.6); /* 半透明浅灰色遮罩 */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(2px); /* 可选：背景模糊效果 */
}

.dialog-container {
    background-color: #ffffff; /* 白色背景 */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    position: relative;
    animation: dialogSlideIn 0.3s ease-out;
}

#dialogInquiry .dialog-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 24px 0 24px;
    margin-bottom: 20px;
}

#dialogInquiry .dialog-header-close {
    position: absolute;
    right: 10px;
    top: 10px;
}

.dialog-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.dialog-close {
    background: none;
    border: none;
    font-size: 36px;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1;
}

.dialog-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

.dialog-close:active {
    background-color: #e5e5e5;
}

.dialog-body {
    padding: 0 24px 24px 24px;
}

/* 覆盖通用询盘样式 */
#dialogInquiry .sam-form-inquiry{
    padding: 0.2rem 0.6rem 0.5rem 0.6rem
}
#dialogInquiry .close-icon{
    position: relative;
    width: 0.4rem;
    height: 0.4rem;
    right: 0rem;
    top: 0rem;
}
#dialog_upload {
    position: relative;
}
#dialogInquiry .close-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
}
/* 响应式设计 */
@media (max-width: 768px) {
    #dialogInquiry .sam-form-inquiry {
        padding : 0.6rem 0;
    }
    .dialog-container {
        max-width: 96%;
        max-height: 96%;
    }
    
    .dialog-header {
        padding: 16px 20px 0 20px;
    }
    
    .dialog-body {
        padding: 0 20px 20px 20px;
    }
}

/* 动画效果 */
@keyframes dialogSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes dialogSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
}

/* 关闭时的动画 */
.dialog-container.closing {
    animation: dialogSlideOut 0.2s ease-in forwards;
}

/* 滚动条样式 */
.dialog-container::-webkit-scrollbar {
    width: 8px;
}

.dialog-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 8px 8px 0;
}

.dialog-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.dialog-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}