* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.title {
    text-align: center;
    color: #1890ff;
    font-size: 24px;
    margin-bottom: 24px;
}

.notice {
    border-bottom: 1px dashed #d9d9d9;
    padding-bottom: 24px;
    margin-bottom: 32px;
    font-size: 14px;
}

.notice h2 {
    text-align: center;
    font-size: 16px;
    margin-bottom: 12px;
}

.notice p {
    margin-bottom: 8px;
    text-align: justify;
}

.notice ol {
    margin-left: 20px;
    margin-bottom: 8px;
}

.notice li {
    margin-bottom: 4px;
}

.form-item {
    margin-bottom: 24px;
}

.form-item label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.required {
    color: #ff4d4f;
    margin-right: 4px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="number"]:focus {
    border-color: #1890ff;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 8px 0;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    min-width: 120px;
}

.four-col label {
    min-width: 140px;
}

.radio-group input[type="radio"] {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    cursor: pointer;
}

.form-actions {
    text-align: center;
    margin-top: 32px;
}

button[type="submit"] {
    background: #1890ff;
    color: #fff;
    border: none;
    padding: 12px 48px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

button[type="submit"]:hover {
    background: #40a9ff;
}

button[type="submit"]:disabled {
    background: #bae7ff;
    cursor: not-allowed;
}

.message {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
    min-height: 22px;
}

.message.success {
    color: #52c41a;
}

.message.error {
    color: #ff4d4f;
}

.single-col {
    flex-direction: column;
    gap: 8px;
}

.single-col label {
    min-width: auto;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 0;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    margin-top: 3px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-group.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
}

textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    resize: vertical;
    font-family: inherit;
}

textarea:focus {
    border-color: #1890ff;
}

.agreement {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.agreement label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.agreement input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    cursor: pointer;
}

.agreement a {
    color: #1890ff;
    text-decoration: none;
    margin: 0 2px;
}

.agreement a:hover {
    text-decoration: underline;
}

.policy {
    max-width: 800px;
    font-size: 14px;
    line-height: 1.8;
}

.policy h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    color: #333;
}

.policy p {
    margin-bottom: 12px;
    text-align: justify;
}

.policy ol,
.policy ul {
    margin-left: 20px;
    margin-bottom: 12px;
}

.policy li {
    margin-bottom: 8px;
}

.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.policy-table th,
.policy-table td {
    border: 1px solid #d9d9d9;
    padding: 10px 12px;
    text-align: left;
}

.policy-table th {
    background: #fafafa;
    font-weight: 500;
}

.sign-date {
    text-align: center;
    color: #666;
    margin-bottom: 24px;
}

.back-link {
    text-align: center;
    margin-top: 32px;
}

.back-link a {
    color: #1890ff;
    text-decoration: none;
}

.back-link a:hover {
    text-decoration: underline;
}

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

.modal.show {
    display: block;
}

.modal-content {
    position: relative;
    background: #fff;
    margin: 4% auto;
    width: 92%;
    max-width: 800px;
    height: 88vh;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 16px;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    z-index: 10;
}

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

.result-modal {
    width: 320px;
    max-width: 90%;
    height: auto;
    margin: 18% auto;
    padding: 32px 24px;
    text-align: center;
    align-items: center;
}

.result-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
}

.result-icon.success {
    background: #52c41a;
}

.result-icon.error {
    background: #ff4d4f;
}

.result-text {
    font-size: 16px;
    margin-bottom: 24px;
    color: #333;
}

.result-ok {
    background: #1890ff;
    color: #fff;
    border: none;
    padding: 8px 32px;
    font-size: 15px;
    border-radius: 4px;
    cursor: pointer;
}

.result-ok:hover {
    background: #40a9ff;
}
