/* ===== 表单页样式 ===== */
#formPage {
    padding: 20px;
    position: relative;
    z-index: 2;
    justify-content: center;
}

.scroll-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    padding: 25px 20px;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
    box-shadow: var(--shadow-gold);
}

.scroll-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
}

.scroll-header h2 {
    font-family: var(--font-title);
    color: var(--gold);
    font-size: 20px;
    letter-spacing: 3px;
}

.scroll-ornament {
    color: var(--gold-dim);
    font-size: 14px;
}

/* 表单组 */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.form-icon {
    margin-right: 4px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.form-group input::placeholder {
    color: var(--text-dim);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%239a8a6a'%3E%3Cpath d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-group select option {
    background: #1a1a2e;
    color: var(--text-primary);
}

/* 单选按钮组 */
.radio-group {
    display: flex;
    gap: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--gold-dim);
    display: inline-block;
    position: relative;
    transition: border-color 0.3s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: var(--gold);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
}

/* 复选框样式（闰月） */
.radio-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid var(--gold-dim);
    display: inline-block;
    position: relative;
    transition: border-color 0.3s ease;
}

.radio-label input[type="checkbox"]:checked + .checkbox-custom {
    border-color: var(--gold);
    background: var(--gold);
}

.radio-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: -1px;
    left: 2px;
    font-size: 12px;
    color: var(--bg-dark);
    font-weight: bold;
}

/* 提交按钮 */
.btn-submit {
    width: 100%;
    margin-top: 10px;
    padding: 16px;
    font-size: 18px;
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 农历日期输入行 */
#lunarDateGroup select,
#lunarDateGroup input[type="number"] {
    padding: 10px 8px;
    font-size: 14px;
}
#lunarDateGroup span {
    color: var(--text-dim);
    font-size: 13px;
}

/* ===== Tablet (768px+) ===== */
@media (min-width: 768px) {
    .scroll-card {
        max-width: 600px;
        padding: 30px;
    }
    #baziForm {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 24px;
    }
    #baziForm .form-group:first-child {
        grid-column: 1 / -1;
    }
    #baziForm .form-group:last-of-type {
        grid-column: 1 / -1;
    }
    .btn-submit {
        grid-column: 1 / -1;
    }
}

/* ===== Desktop (1024px+) ===== */
@media (min-width: 1024px) {
    .scroll-card {
        max-width: 700px;
    }
}
