/* ============================================================
   报名页样式（长图海报背景版）
   背景图: /images/bg1.png (1500x5424 长图，下部约 51% 为纯色 #24B4E6)
   配色:   浅蓝 #24B4E6 / 亮黄 #FFE600 / 白色文字
   ============================================================ */

html, body { margin: 0; padding: 0; }
body.sign-page {
    /* 与海报下部纯色背景精确匹配，长页面滚动时无缝 */
    background: #24B4E6;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
                 "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* 海报容器：移动端全宽，桌面端限宽居中 */
.poster-wrap {
    max-width: 750px;
    margin: 0 auto;
    position: relative;
}
.poster {
    width: 100%;
    display: block;
}

/* 表单区：负 margin 上移，嵌入海报下部空白纯色区
   海报总高 ≈ 361.6% 宽；"活动信息"卡片结束于图高约 48.9%，
   表单顶部落在图高约 51.9% 处（留 3% 呼吸空间） */
.form-area {
    position: relative;
    margin-top: -174%;
    padding: 0 16px 48px;
    box-sizing: border-box;
}
.form-card {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 16px;
    padding: 22px 18px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

/* 标题：亮黄，呼应海报 BIG DAY */
.form-title {
    color: #FFE600;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    line-height: 1.55;
    margin-bottom: 6px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
}
.form-sub {
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    text-align: center;
    margin-bottom: 22px;
}

/* 表单字段 */
.f-item { margin-bottom: 16px; }
.f-label {
    display: block;
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 7px;
    line-height: 1.5;
}
.f-label .req { color: #FFE600; margin-right: 4px; }
.f-label .hint { font-size: 12px; color: rgba(255, 255, 255, 0.65); margin-left: 6px; }

.f-input, .f-select, .f-textarea {
    width: 100%;
    box-sizing: border-box;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    color: #123C7A;
    font-size: 15px;
    padding: 0 12px;
    outline: none;
    transition: box-shadow 0.15s;
}
.f-textarea {
    height: 88px;
    padding: 10px 12px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}
.f-input::placeholder, .f-textarea::placeholder { color: #8FA8CE; }
.f-input:focus, .f-select:focus, .f-textarea:focus {
    box-shadow: 0 0 0 2px #FFE600;
}

/* 省市双列 */
.f-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.f-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231D4B97' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.f-select:disabled { background-color: rgba(255, 255, 255, 0.5); color: #8FA8CE; }

/* 车牌号：前缀下拉 + 后缀输入横向并排 */
.f-car-plate {
    display: flex;
    align-items: center;
    gap: 8px;
}
.f-car-prefix {
    width: 64px;
    flex-shrink: 0;
}
.f-car-suffix {
    flex: 1;
}

/* 单选 */
.f-radio {
    display: flex;
    gap: 24px;
    align-items: center;
    height: 44px;
}
.f-radio label {
    color: #ffffff;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.f-radio input[type="radio"] {
    accent-color: #FFE600;
    width: 18px;
    height: 18px;
    margin: 0 6px 0 0;
}

/* 提交按钮：亮黄胶囊，呼应海报按钮 */
.f-submit {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(180deg, #FFF36B 0%, #FFE600 100%);
    color: #0B2C6E;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
    margin-top: 8px;
    transition: opacity 0.2s, transform 0.1s;
}
.f-submit:hover { opacity: 0.94; }
.f-submit:active { transform: translateY(1px); }
.f-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Toast */
.toast {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.78);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    max-width: 80%;
    text-align: center;
}
.toast.success { background: rgba(56, 178, 96, 0.95); }
.toast.error { background: rgba(226, 78, 78, 0.95); }

@media (max-width: 600px) {
    .form-area { padding: 0 12px 40px; }
    .form-card { padding: 18px 14px; border-radius: 14px; }
    .form-title { font-size: 16px; }
    .f-row2 { grid-template-columns: 1fr; gap: 0; }
    .f-row2 .f-item { margin-bottom: 16px; }
}