/**
 * 弹窗样式文件
 * 包含报名弹框的所有样式定义
 */

/* 弹框遮罩层 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.show {
    display: flex !important;
}

/* 弹框内容容器 */
.modal-content {
    position: relative;
    background: linear-gradient(180deg, rgba(42, 130, 228, 1) 0%, rgba(245, 245, 245, 1) 100%);
    width: 50%;
    max-width: 500px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-content::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 45px;
    width: 100px;
    height: 110px;
    background: url("../image/detail/baominglogo.png") no-repeat center center;
    background-size: contain;
    z-index: 1;
}

/* 弹框头部 */
.modal-header {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    height: 90px;
    display: flex;
    align-items: center;
    position: relative;
}

.close-icon {
    position: absolute;
    top: 0px;
    right: 0px;
    z-index: 1;
    width: 25px;
    height: 25px;
    cursor: pointer;
}

/* 弹框主体 */
.modal-body {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
}

.modalTwo {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modalTwo header {
    font-size: 14px;
    color: #333;
    font-weight: bold;
    margin: 0;
}

/* 单选按钮组 */
.radio-group {
    display: flex;
    gap: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.radio-option input[type="radio"] {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(42, 130, 228, 1);
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    background-color: #E0EBFF;
    border-color: #E0EBFF;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: rgba(15, 143, 255, 1);
    border-radius: 50%;
}

.radio-text {
    font-size: 14px;
    color: rgba(42, 130, 228, 1);
    font-weight: 400;
}

.radio-option input[type="radio"]:checked + .radio-custom + .radio-text {
    font-weight: bold;
}

/* 表单样式 */
.modalForm {
    margin-top: 20px;
}

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

.form-label {
    display: block;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input, .form-select {
    width: 100%;
    padding: 12px 16px;
    border: 0.1px solid rgba(42, 130, 228, 1);
    border-radius: 8px;
    background-color: #E0EBFF;
    color: rgba(42, 130, 228, 1);
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #2a82e4;
    background-color: #fff;
}

.form-input::placeholder {
    color: rgba(42, 130, 228, 1);
}

.form-select {
    appearance: none;
    background-image: url("../image/detail/down.png");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* 提交按钮 */
.submit-btn {
    width: 20%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin: 10px auto;
    padding: 0;
}

.submit-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.submit-btn:active {
    transform: translateY(0);
}

.registerSub-icon {
    width: 100%;
    height: auto;
}

/* 错误提示样式 */
.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: none;
    line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-content {
        width: 80%;
    }
    
    .submit-btn {
        width: 35%;
    }
    
    .modal-body {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 90%;
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .submit-btn {
        width: 50%;
    }
}
