/* 联系表单样式 */

/* 联系按钮 */
.btn-contact {
    display: block;
    width: 100%;
    background: #007185;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-contact:hover {
    background: #005a6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 113, 133, 0.3);
}

.btn-contact span {
    margin-right: 8px;
}

/* 联系模态框 */
.contact-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.contact-modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-modal-header {
    background: linear-gradient(135deg, #232F3E 0%, #37475A 100%);
    color: white;
    padding: 20px 24px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.contact-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    transition: color 0.3s ease;
}

.contact-close:hover {
    color: #FF9900;
}

.contact-modal-body {
    padding: 24px;
}

/* 产品信息摘要 */
.product-info-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.product-info-summary img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.product-info-summary h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #232F3E;
}

.product-info-summary p {
    margin: 0;
    color: #B12704;
    font-weight: 600;
    font-size: 18px;
}

/* 表单样式 */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #232F3E;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #D5D9D9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007185;
    box-shadow: 0 0 0 3px rgba(0, 113, 133, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
    border-color: #D13212;
}

/* 表单操作按钮 */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #E7E7E7;
}

.btn-cancel {
    padding: 12px 24px;
    border: 2px solid #D5D9D9;
    background: white;
    color: #565959;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    border-color: #B12704;
    color: #B12704;
}

.btn-submit {
    padding: 12px 24px;
    border: none;
    background: #FF9900;
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 120px;
}

.btn-submit:hover {
    background: #e88900;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.btn-submit:disabled {
    background: #D5D9D9;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-loading {
    display: none;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loading {
    display: inline-block;
}

/* 成功/错误消息 */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #cce7ff;
    color: #004085;
    border: 1px solid #b8daff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 95vh;
    }
    
    .contact-modal-header {
        padding: 16px 20px;
    }
    
    .contact-modal-header h2 {
        font-size: 18px;
    }
    
    .contact-modal-body {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-info-summary {
        flex-direction: column;
        text-align: center;
    }
    
    .product-info-summary img {
        width: 100px;
        height: 100px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .contact-modal-content {
        width: 98%;
        margin: 2% auto;
        border-radius: 8px;
    }
    
    .contact-modal-header {
        padding: 12px 16px;
        border-radius: 8px 8px 0 0;
    }
    
    .contact-modal-body {
        padding: 16px;
    }
    
    .product-info-summary {
        padding: 12px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
    }
} 