/* The birth form is a standalone interface; result screens use site.css. */
.fate-ziwei-reference { --ref-text:#242521; --ref-muted:#74766e; --ref-border:#dfdfda; --ref-accent:#272b24; margin:0; color:var(--ref-text); background:#fff; font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; }
.fate-ziwei-reference *, .fate-ziwei-reference *::before, .fate-ziwei-reference *::after { box-sizing:border-box; }
.fate-ziwei-reference a { color:inherit; text-decoration:none; }
.fate-ziwei-reference .ref-layout { width:min(1040px,calc(100% - 64px)); margin:54px auto 72px; display:grid; grid-template-columns:minmax(0,1fr) minmax(400px,480px); gap:80px; align-items:center; }
.fate-ziwei-reference .ref-intro { max-width:420px; }
.fate-ziwei-reference .ref-kicker { margin:0 0 18px; color:#8a795b; font-size:12px; font-weight:600; }
.fate-ziwei-reference .ref-intro h1 { margin:0; font-family:inherit; font-size:48px; line-height:1.2; font-weight:700; letter-spacing:0; }
.fate-ziwei-reference .ref-intro-copy { margin:18px 0 0; color:#5e605b; font-size:15px; line-height:1.75; }
.fate-ziwei-reference .ref-intro-note { margin:22px 0 0; color:#8a8c85; font-size:13px; }
.fate-ziwei-reference .ref-birth-form { margin:0; padding:30px; border:1px solid #e7e7e3; border-radius:14px; background:#fff; box-shadow:0 12px 36px #22220f08; }
.fate-ziwei-reference .ref-form-heading { margin-bottom:26px; padding-bottom:20px; border-bottom:1px solid #ededeb; }
.fate-ziwei-reference .ref-form-heading h2 { margin:0; font-family:inherit; font-size:18px; font-weight:600; }
.fate-ziwei-reference .ref-form-heading p { margin:7px 0 0; color:var(--ref-muted); font-size:13px; }
.fate-ziwei-reference .ref-form-fields { display:grid; gap:22px; }
.fate-ziwei-reference .ref-field { display:block; min-width:0; margin:0; }
.fate-ziwei-reference .ref-field > span,.fate-ziwei-reference .ref-label,.fate-ziwei-reference .ref-gender legend { display:block; margin:0 0 9px; color:#3b3d38; font-size:13px; font-weight:600; line-height:1.4; }
.fate-ziwei-reference .ref-field small { color:#92948d; font-size:12px; font-weight:400; margin-left:4px; }
.fate-ziwei-reference .ref-field :is(input:not([type="radio"]),select) { display:block; width:100%; min-width:0; height:46px; min-height:46px; margin:0; padding:0 12px; border:1px solid var(--ref-border); border-radius:8px; background:#fafaf9; color:#292b27; font-size:14px; box-shadow:none; }
.fate-ziwei-reference .ref-field :is(input,select):hover { border-color:#b4b6ae; }
.fate-ziwei-reference .ref-field :is(input,select):focus-visible,.fate-ziwei-reference .ref-gender input:focus-visible + span { outline:2px solid #8a977f; outline-offset:2px; }
.fate-ziwei-reference .ref-date-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.fate-ziwei-reference .ref-time-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.fate-ziwei-reference .ref-hour { display:flex; align-items:center; gap:9px; margin:10px 0 0; color:#696b64; font-size:12px; line-height:1.4; }
.fate-ziwei-reference .ref-hour-seal { display:grid; place-items:center; flex:0 0 28px; height:28px; border:1px solid #ddd2bb; border-radius:50%; color:#8a7652; font-family:serif; font-size:14px; }
.fate-ziwei-reference .ref-hour strong { color:#555a4f; font-weight:600; }
.fate-ziwei-reference .ref-hour small { margin-left:4px; color:#898b85; font-size:12px; }
.fate-ziwei-reference .ref-gender { padding:0; border:0; }
.fate-ziwei-reference .ref-gender-options { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.fate-ziwei-reference .ref-gender label { position:relative; display:block; margin:0; }
.fate-ziwei-reference .ref-gender input { position:absolute; opacity:0; }
.fate-ziwei-reference .ref-gender span { display:grid; place-items:center; height:44px; margin:0; border:1px solid var(--ref-border); border-radius:8px; background:#fafaf9; color:#656861; font-size:14px; }
.fate-ziwei-reference .ref-gender input:checked + span { border-color:#73816c; background:#f0f4ef; color:#394b38; font-weight:600; }
.fate-ziwei-reference .ref-place-note { margin:24px 0 0; padding:12px 14px; border-radius:8px; background:#f7f7f5; color:#73756e; font-size:12px; line-height:1.6; }
.fate-ziwei-reference .ref-error { margin:14px 0 0; color:#a6382d; font-size:13px; }
.fate-ziwei-reference .ref-error[hidden] { display:none; }
.fate-ziwei-reference .ref-submit { display:block; width:100%; min-height:50px; margin:18px 0 0; border:0; border-radius:8px; background:var(--ref-accent); color:#fff; font-size:14px; font-weight:600; cursor:pointer; }
.fate-ziwei-reference .ref-submit:hover { background:#42493f; }.fate-ziwei-reference .ref-submit:disabled { opacity:.55; cursor:wait; }
.fate-ziwei-reference .ref-footnote { margin:14px 0 0; text-align:center; color:#999b95; font-size:12px; }
@media(max-width:850px) { .fate-ziwei-reference .ref-layout { grid-template-columns:minmax(0,1fr); width:min(480px,calc(100% - 40px)); gap:28px; margin:40px auto 55px; }.fate-ziwei-reference .ref-intro h1 { font-size:34px; }.fate-ziwei-reference .ref-intro-note { margin-top:12px; } }
@media(max-width:480px) {.fate-ziwei-reference .ref-layout { width:calc(100% - 32px); margin-top:32px; gap:24px; }.fate-ziwei-reference .ref-intro h1 { font-size:30px; }.fate-ziwei-reference .ref-intro-copy { margin-top:10px; font-size:14px; }.fate-ziwei-reference .ref-birth-form { padding:22px; border-radius:12px; }.fate-ziwei-reference .ref-form-fields { gap:20px; } }
