/**
 * 快速报名表单样式
 */

/* 弹窗样式 */
.bai-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.bai-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 5px;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.bai-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.bai-modal-close:hover {
    color: #666;
}

/* 学生信息弹窗样式 */
#bai-student-info-modal .bai-modal-content {
    max-width: 600px;
}

#bai-student-info-container {
    margin-top: 20px;
}

#bai-student-info-modal h3 {
    margin-top: 0;
    color: #333;
    text-align: center;
    font-size: 20px;
}

/* 表单样式 */
.bai-form-row {
    margin-bottom: 15px;
}

.bai-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.bai-form-row input[type="text"],
.bai-form-row input[type="tel"],
.bai-form-row input[type="email"],
.bai-form-row textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.bai-form-row .required {
    color: #f00;
}

/* 按钮样式 */
.bai-quick-checkout-button {
    margin-left: 10px !important;
}

/* 禁用按钮样式 */
.bai-quick-checkout-button.disabled,
.bai-variable-quick-checkout-button.disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.bai-quick-checkout-button.disabled:hover,
.bai-variable-quick-checkout-button.disabled:hover {
    background-color: #ccc !important;
    color: #666 !important;
}

/* 禁用字段样式 */
.bai-form-row input[readonly],
.bai-form-row input[disabled] {
    background-color: #f5f5f5 !important;
    color: #666 !important;
    cursor: not-allowed !important;
    border-color: #ddd !important;
}

.bai-form-row input[readonly]:focus {
    outline: none !important;
    box-shadow: none !important;
}

.bai-field-note {
    font-size: 12px;
    color: #666;
    margin: 5px 0 0 0;
    font-style: italic;
}

/* 结账页面样式 */
.bai-checkout-product-info {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #e1e1e1;
}

.bai-checkout-product-info h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.bai-checkout-product-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.bai-checkout-product-item:last-child {
    border-bottom: none;
}

.bai-checkout-product-name {
    font-weight: bold;
    color: #333;
}

.bai-checkout-variation-data {
    color: #666;
    font-style: italic;
}

.bai-checkout-product-quantity {
    color: #888;
    font-size: 14px;
}

.bai-student-info-note {
    background: #e7f3ff;
    border-left: 4px solid #3498db;
    padding: 10px 15px;
    margin: 10px 0;
    color: #2c3e50;
    font-size: 14px;
    border-radius: 0 4px 4px 0;
}

.bai-parent-info-fields h4 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

.bai-parent-info-fields h3 {
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* 学生信息表单样式 */
.bai-student-info-form {
    margin: 30px 0;
    padding: 20px;
    background-color: #f7f7f7;
    border-radius: 5px;
}

.bai-student-info-form h2 {
    margin-top: 0;
    margin-bottom: 15px;
}

/* 家长信息字段样式 */
.bai-parent-info-fields {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

/* 表单验证错误样式 */
.bai-form-error {
    color: #f00;
    font-size: 0.9em;
    margin-top: 5px;
}

/* 成功消息样式 */
.bai-success-message {
    background-color: #dff0d8;
    color: #3c763d;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    text-align: center;
}

/* 错误消息样式 */
.bai-error-message {
    background-color: #f2dede;
    color: #a94442;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    text-align: center;
}

/* 产品信息样式 */
.bai-product-info {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.bai-product-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.bai-product-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.bai-product-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.bai-product-name {
    font-weight: bold;
    color: #444;
}

.bai-variation-data {
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

/* 后台表格样式 */
.product-variation {
    font-size: 12px;
    color: #777;
    margin-top: 3px;
}

/* 变体产品快速结账按钮样式 */
.bai-variable-quick-checkout-button {
    margin-left: 10px;
    margin-top: 10px;
    display: inline-block;
}

/* 弹窗中的产品信息样式 */
#bai-student-info-modal .bai-product-info {
    margin-bottom: 25px;
    max-width: 100%;
    overflow: hidden;
}

#bai-student-info-modal .bai-product-name {
    font-size: 16px;
    margin-bottom: 5px;
}

#bai-student-info-modal .bai-variation-data {
    font-size: 14px;
    margin-bottom: 10px;
    color: #555;
} 