/**
 * Contact Modal Styles
 */

.contact-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-in-out;
}

.contact-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.contact-modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease-in-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.contact-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.contact-modal-close:hover,
.contact-modal-close:focus {
    color: #333;
    outline: none;
}

.contact-modal-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    padding-right: 30px;
}

.contact-modal-body {
    margin-top: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-modal-content {
        padding: 30px 20px;
        width: 95%;
        max-height: 95vh;
    }
    
    .contact-modal-close {
        right: 15px;
        top: 15px;
        font-size: 24px;
    }
}

/* Fluent Forms 在模态框中的样式调整 */
.contact-modal-body .frm-form-group {
    margin-bottom: 20px;
}

.contact-modal-body .frm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.contact-modal-body .frm-form-group input,
.contact-modal-body .frm-form-group textarea,
.contact-modal-body .frm-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.contact-modal-body .frm-form-group input:focus,
.contact-modal-body .frm-form-group textarea:focus,
.contact-modal-body .frm-form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.contact-modal-body button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.contact-modal-body button[type="submit"]:hover {
    background-color: #0056b3;
}
