.fm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.fm-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.fm-modal-container {
    background: white;
    border-radius: 12px;
    width: 800px;
    max-width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
}

.fm-modal-overlay.active .fm-modal-container {
    transform: translateY(0);
}

.fm-modal-left {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.fm-modal-right {
    width: 250px;
    background: #f9f9f9;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #eee;
}

.fm-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    z-index: 1;
}

.fm-modal-close:hover {
    color: #333;
}

.fm-modal-title {
    font-size: 1.5rem;
    color: #6a5acd;
    margin-bottom: 20px;
    font-weight: 600;
    margin-top: 0px;
}

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

.fm-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.fm-form-input, .fm-form-textarea {
    width: calc(100% - 30px);
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s;
    margin-right: 15px;
}

.fm-form-input:focus, .fm-form-textarea:focus {
    border-color: #6a5acd;
    outline: none;
}

.fm-form-textarea {
    min-height: 120px;
    resize: vertical;
    width: calc(100% - 30px);
    margin-right: 15px;
}

.fm-submit-btn {
    background: #6a5acd;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.fm-submit-btn:hover {
    background: #5a4abd;
    transform: translateY(-2px);
}

.fm-qrcode-title {
    font-size: 1.1rem;
    color: #6a5acd;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.fm-qrcode-image {
    width: 160px;
    height: 160px;
    margin-bottom: 15px;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.fm-qrcode-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fm-qrcode-desc {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .fm-modal-container {
    flex-direction: column;
    width: 90%;
    }
    
    .fm-modal-right {
    width: 100%;
    padding: 20px;
    border-left: none;
    border-top: 1px solid #eee;
    }
    
    .fm-modal-left {
    padding: 20px;
    }
    
    .fm-qrcode-image {
    width: 120px;
    height: 120px;
    }
}