/* components/contact-form/assets/css/style.css */

.bh-contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.bh-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bh-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.bh-modal-title {
    margin: 0 0 20px;
    font-size: 24px;
    color: #333;
}

.bh-form-group {
    margin-bottom: 20px;
}

.bh-form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.bh-form-group input,
.bh-form-group select,
.bh-form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.bh-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.bh-submit-btn {
    background: #8C3494;
    color: #fff;
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 提交中状态样式 */
.bh-form-submitting .bh-form-group input,
.bh-form-submitting .bh-form-group select,
.bh-form-submitting .bh-form-group textarea,
.bh-form-submitting .bh-form-group .bh-form-control {
    opacity: 0.7;
    cursor: not-allowed;
    background-color: #f8f8f8;
    pointer-events: none;
    border-color: #ddd;
}

.bh-submit-btn:hover {
    background: #702876;
}

.bh-submit-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

/* 加载动画 */
.bh-submit-btn.loading {
    padding-left: 45px;
}

.bh-submit-btn.loading:before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* 成功状态样式 */
.bh-form-success .bh-form-group input,
.bh-form-success .bh-form-group select,
.bh-form-success .bh-form-group textarea,
.bh-form-success .bh-form-group .bh-form-control {
    border-color: #4CAF50;
    background-color: #f8fff8;
    pointer-events: none;
}

.bh-submit-btn.success {
    background: #4CAF50;
    pointer-events: none;
}

.bh-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 30px;
    height: 30px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    color: #666;
    padding: 0;
    transition: all 0.3s ease;
}

.bh-modal-close:hover {
    background: #e0e0e0;
    color: #333;
    transform: rotate(90deg);
}

/* 关闭图标 */
.bh-modal-close::before {
    display: block;
    font-family: Arial, sans-serif;
    font-weight: 300;
}

.bh-form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

.bh-form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.bh-form-message.error {
    background: #fdecea;
    color: #c62828;
}