/**
 * 提交供货信息表单前端样式
 */

/* 表单容器 */
.sif-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 表单标题 */
.sif-form-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

/* 表单区域 */
.sif-form-section {
    margin-bottom: 30px;
}

.sif-form-section h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #444;
}

/* 表单字段 */
.sif-form-field {
    margin-bottom: 15px;
}

.sif-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.sif-form-field label .required {
    color: #e53935;
}

.sif-form-field input[type="text"],
.sif-form-field input[type="tel"],
.sif-form-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    color: #333;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.sif-form-field input[type="text"]:focus,
.sif-form-field input[type="tel"]:focus,
.sif-form-field textarea:focus {
    border-color: #4caf50;
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

/* 图片上传区域 */
.sif-image-upload-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.sif-image-upload-item {
    width: calc(29%);
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    background-color: #f9f9f9;
}

.sif-image-preview {
    height: 120px;
    margin-bottom: 10px;
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sif-image-placeholder {
    text-align: center;
    color: #888;
}

.sif-image-placeholder .dashicons {
    font-size: 30px;
    width: 30px;
    height: 30px;
    display: block;
    margin: 0 auto 10px;
}

.sif-preview-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sif-image-actions {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 10;
}

.sif-remove-image {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.sif-remove-image:hover {
    opacity: 1;
}

.sif-image-description textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    box-sizing: border-box;
}

/* 提交按钮 */
.sif-form-actions {
    text-align: center;
    margin-top: 20px;
}

.sif-submit-button {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.sif-submit-button:hover {
    background-color: #388e3c;
}

/* 状态消息 */
.sif-form-status {
    margin-top: 20px;
    padding: 10px 15px;
    border-radius: 4px;
    text-align: center;
}

.sif-notice {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.sif-success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.sif-error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

/* 协议勾选框 */
.sif-form-agreement {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.sif-form-agreement label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    color: #555;
}

.sif-form-agreement input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.sif-form-agreement .sif-agreement-text {
    font-size: 14px;
    line-height: 1.5;
}

.sif-form-agreement .sif-agreement-label {
    font-size: 12px;
    line-height: 1.4;
}

.sif-form-agreement .sif-agreement-link {
    color: #4caf50;
    text-decoration: none;
    font-weight: 500;
    margin: 0 3px;
    transition: color 0.3s;
}

.sif-form-agreement .sif-agreement-link:hover {
    color: #388e3c;
    text-decoration: underline;
}

/* 协议模态框 - 基于参考样式优化 */
.sif-terms-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.8) 0%, rgba(37, 117, 252, 0.8) 100%);
    z-index: 10000;
    animation: fadeIn 0.5s ease-out;
}

.sif-terms-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sif-terms-modal-content {
    width: 90%;
    max-width: 800px;
    height: 80vh;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideIn 0.5s ease-out;
}

.sif-terms-modal-header {
    padding: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sif-terms-modal-title {
    flex: 1;
    font-size: 24px;
    color: #333;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.sif-terms-modal-close {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sif-terms-modal-close:hover {
    color: #333;
    background-color: #f0f0f0;
}

.sif-terms-modal-close:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.sif-terms-modal-body {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
    line-height: 1.6;
    color: #444;
}

/* 自定义滚动条 */
.sif-terms-modal-body::-webkit-scrollbar {
    width: 6px;
}

.sif-terms-modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.sif-terms-modal-body h1,
.sif-terms-modal-body h2,
.sif-terms-modal-body h3 {
    color: #2c3e50;
    margin-top: 20px;
    margin-bottom: 10px;
}

.sif-terms-modal-body h1 {
    font-size: 24px;
}

.sif-terms-modal-body h2 {
    font-size: 20px;
}

.sif-terms-modal-body h3 {
    font-size: 18px;
}

.sif-terms-modal-body p {
    margin-bottom: 15px;
    text-align: justify;
}

.sif-terms-modal-body ul,
.sif-terms-modal-body ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.sif-terms-modal-body li {
    margin-bottom: 8px;
}



/* 模态框底部样式 */
.sif-terms-modal-footer {
    padding: 20px;
    display: flex;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.sif-terms-modal-agree-btn {
    padding: 12px 40px;
    background: #4361ee;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
}

.sif-terms-modal-agree-btn:hover {
    background: #3a56d4;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(67, 97, 238, 0.4);
}

.sif-terms-modal-agree-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .sif-image-upload-container {
        gap: 15px;
    }
    .sif-image-upload-item {
        width: 100%;
    }
    
    .sif-terms-modal-footer {
        padding: 15px;
    }
    
    .sif-terms-modal-close-btn {
        padding: 10px 30px;
        font-size: 14px;
    }
    
    .sif-form-agreement {
        padding: 12px;
    }
    
    .sif-form-agreement .sif-agreement-text {
        font-size: 13px;
    }
    
    .sif-terms-modal-content {
        width: 95%;
        height: 85vh;
    }
    
    .sif-terms-modal-header {
        padding: 15px;
    }
    
    .sif-terms-modal-title {
        font-size: 20px;
    }
    
    .sif-terms-modal-body {
        padding: 15px;
    }
    

}
    }
}

@media (max-width: 480px) {
    .sif-image-upload-container {
        gap: 10px;
    }
    .sif-image-upload-item {
        width: 100%;
    }
}