:root {
  color-scheme: light;
  --canvas: #f8f5f7;
  --panel: #ffffff;
  --text: #241c28;
  --muted: #6a5c6c;
  --line: #e7dfe6;
  --accent: #62365e;
  --accent-deep: #462043;
  --accent-soft: #f7eff6;
  --error: #a32642;
  --radius: 14px;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--text);
  background: var(--canvas);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 50% -10%, #ecdde9 0%, transparent 50%); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled, fieldset:disabled button { cursor: wait; }
:focus-visible { outline: 3px solid #94678f; outline-offset: 3px; }
[hidden] { display: none !important; }

.shell { width: min(100% - 32px, 664px); margin: 0 auto; padding: 46px 0 64px; }
.recruitment-banner { display: block; width: 100%; max-width: 1024px; height: auto; margin: 0 auto; border-radius: 0 0 18px 18px; }
.form-shell { padding: 27px 0 36px; }
.brand { width: min(100%, 205px); margin: 0 0 18px 2px; }
.brand-footer { width: 126px; margin: 24px auto 0; }
.brand img, .brand-footer img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.video-shell { max-width: 900px; width: min(100% - 28px, 900px); }
.video-shell h1 { font-size: clamp(18px, 4vw, 25px); overflow-wrap: anywhere; }
.video-shell video { display: block; width: 100%; max-height: 70vh; margin: 18px 0; border-radius: 10px; background: #131014; }
.video-shell nav { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; margin-top: 10px; }
.video-shell a { color: var(--accent-deep); padding: 10px 0; }
.sheet { padding: 36px 40px 28px; border: 1px solid #e7dbe4; border-radius: 26px; background: var(--panel); box-shadow: 0 20px 58px #472c4610; }
.sheet-heading { margin-bottom: 30px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 9px; font-size: clamp(25px, 5vw, 33px); letter-spacing: -.03em; line-height: 1.23; }
.sheet-heading p, .field-hint { color: var(--muted); font-size: 14px; line-height: 1.5; margin-bottom: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.fields { display: grid; gap: 19px; }
.field { min-width: 0; }
.field label, .field .label { display: block; font-weight: 650; font-size: 15px; margin-bottom: 8px; }
.field input, .field select { width: 100%; min-width: 0; border: 1px solid #ddcedc; background: #fff; border-radius: var(--radius); min-height: 48px; padding: 10px 13px; color: var(--text); font-size: 16px; }
.field input::placeholder { color: #827286; }
.field select { padding-right: 9px; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--error); }
.birth-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px; }

.media-fields { display: grid; gap: 14px; margin: 26px 0; }
.media { padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: #fcfafc; }
.media-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.media-heading h2 { font-size: 16px; margin-bottom: 0; }
.media-heading output { color: var(--accent); font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 650; }
.media .field-hint { margin-top: 5px; }
.picker { margin: 12px 0 0; min-height: 44px; padding: 8px 14px; border-radius: 11px; border: 1px solid #e5d6e2; background: var(--accent-soft); color: var(--accent-deep); font-weight: 650; font-size: 14px; }
.picker span { padding-right: 4px; font-size: 18px; line-height: 1; }
.picker:hover, .secondary:hover { background: #efe2ed; }
.file-list { list-style: none; margin: 8px 0 0; padding: 0; }
.file-list:empty { display: none; }
.file-item { display: flex; align-items: center; gap: 8px; padding: 5px 0 0; min-width: 0; }
.file-item span { flex: 1; font-size: 13px; overflow-wrap: anywhere; min-width: 0; }
.file-item .file-size { flex: 0 0 auto; color: var(--muted); white-space: nowrap; }
.remove-file { border: 1px solid transparent; background: transparent; color: var(--accent); font-size: 13px; min-height: 36px; min-width: 44px; padding: 3px 7px; border-radius: 8px; }
.remove-file:hover { background: var(--accent-soft); }

.primary { width: 100%; border: 0; min-height: 54px; border-radius: 14px; background: var(--accent-deep); color: white; font-weight: 700; font-size: 16px; }
.primary:hover { background: #583052; }
.primary:disabled, fieldset:disabled .primary { opacity: .64; }
.contact { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.privacy { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.contact-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 3vw, 24px); max-width: 384px; margin: 18px auto 0; }
.contact-codes figure { min-width: 0; margin: 0; text-align: center; }
.contact-codes a { display: block; width: 100%; max-width: 180px; margin: 0 auto; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.contact-codes img { display: block; width: 100%; height: auto; }
.contact-codes figcaption { margin-top: 7px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.field-error { color: var(--error); margin: 7px 0 0; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.summary-error { margin: 13px 0 0; padding: 10px 12px; border: 1px solid #f1d3dc; border-radius: 11px; background: #fff6f8; }
.progress-panel { margin-top: 16px; color: var(--accent-deep); font-size: 14px; }
.progress-panel p { margin-bottom: 6px; }
progress { width: 100%; height: 8px; border: 0; border-radius: 8px; overflow: hidden; accent-color: var(--accent); }
progress::-webkit-progress-bar { background: var(--accent-soft); }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }
.success { text-align: center; padding: 12px 0 16px; }
.success h2 { margin: 13px 0 8px; }
.success p { color: var(--muted); margin-bottom: 12px; }
.checkmark { margin: 0 auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #2b6347; font-size: 25px; background: #e6f3eb; }
.success code { display: block; margin: 0 auto 19px; max-width: 100%; width: fit-content; padding: 9px 11px; border-radius: 9px; background: var(--accent-soft); overflow-wrap: anywhere; color: var(--accent-deep); font-size: 14px; }
.secondary { border: 1px solid #e5d6e2; border-radius: 11px; min-height: 44px; padding: 8px 15px; background: white; color: var(--accent-deep); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 520px) {
  .shell { width: min(100% - 24px, 664px); padding: 27px 0 34px; }
  .recruitment-banner { border-radius: 0; }
  .form-shell { padding: 19px 0 28px; }
  .brand { width: 162px; margin-bottom: 14px; }
  .brand-footer { width: 110px; margin-top: 20px; }
  .sheet { padding: 24px 17px 20px; border-radius: 20px; }
  .sheet-heading { margin-bottom: 24px; }
  .fields { gap: 16px; }
  .media { padding: 13px; }
  .media-fields { margin: 21px 0; }
}

@media (max-width: 359px) {
  .contact-codes { grid-template-columns: 1fr; gap: 16px; }
}
