:root {
  color-scheme: light;
  --navy: #071a2b;
  --brand: #183d68;
  --gold: #d8c79c;
  --accent: #9d8244;
  --ivory: #f5f2ea;
  --ink: #142231;
  --muted: #687585;
  --line: #dbe2e8;
  --danger: #b42338;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); font: 15px/1.65 Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.application-page { background: radial-gradient(circle at 92% 7%, rgba(216,199,156,.24), transparent 25rem), linear-gradient(180deg,#f7f4ed,#f4f6f8 440px); }
a { color: var(--brand); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
.site-header { background: var(--navy); border-bottom: 1px solid rgba(216,199,156,.35); }
.site-header-inner { width: min(100% - 40px,1100px); min-height: 82px; margin: auto; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; padding: 0; border: 0; border-radius: 0; background: transparent; }
.brand img { display: block; width: 56px; height: auto; object-fit: contain; }
.header-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; margin-left: auto; }
.header-contact a, .site-header .link-button { color: #ddd2b5; font-size: 12px; text-decoration: none; }
.site-header form { margin: 0; }
.link-button { padding: 4px 0; border: 0; background: transparent; white-space: nowrap; }
.container { width: min(100% - 40px,940px); min-height: calc(100vh - 230px); margin: 46px auto 64px; }
.card { padding: clamp(24px,4vw,44px); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 22px; background: #fff; box-shadow: 0 20px 55px rgba(20,34,49,.09); }
.narrow { max-width: 620px; margin-inline: auto; }
h1 { margin: 0 0 14px; font-size: clamp(27px,4vw,36px); line-height: 1.3; letter-spacing: -.045em; }
h2 { margin: 32px 0 16px; font-size: 20px; letter-spacing: -.025em; }
.step, .eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.lead { margin: 0 0 24px; color: var(--muted); }
.form-guide { margin: 22px 0; padding: 16px 18px; border: 1px solid #ded7c6; border-radius: 12px; background: #fbf8f0; color: #665934; font-size: 13px; }
.form-guide strong { color: #4e4328; }
.form-guide p { margin: 5px 0 0; }
form { margin-top: 24px; }
.field { display: grid; gap: 8px; min-width: 0; margin-bottom: 22px; }
.field label { color: #243a52; font-size: 14px; font-weight: 700; }
.field small { color: var(--muted); font-size: 12px; }
.field-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
input, select, textarea { width: 100%; min-width: 0; min-height: 48px; padding: 11px 13px; border: 1px solid #cfd8e1; border-radius: 10px; background: #fff; color: var(--ink); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 3px solid rgba(24,61,104,.12); }
input:disabled, select:disabled { background: #eef1f4; color: #687585; cursor: not-allowed; }
input[type="checkbox"] { width: 18px; min-height: 18px; height: 18px; margin: 0; accent-color: var(--brand); flex-shrink: 0; }
.checkbox, .inline-check { display: flex; align-items: center; gap: 8px; }
.field .inline-check { color: var(--muted); font-size: 12px; font-weight: 500; cursor: pointer; }
input[type="file"] { font-size: 13px; padding: 9px; }
input[type="file"]::file-selector-button { margin-right: 12px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: #f4f6f8; color: var(--ink); cursor: pointer; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 18px; border: 1px solid #cfd8e1; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 700; line-height: 1.45; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { border-color: var(--brand); }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
button:disabled { opacity: .5; cursor: not-allowed; }
.primary { color: #fff; background: var(--brand); border-color: var(--brand); }
.primary:hover { background: var(--navy); color: #fff; }
.danger { background: #fff8f8; color: var(--danger); border-color: #e8cbd0; }
.small { min-height: 34px; padding: 6px 11px; font-size: 12px; }
.button-row { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1px solid #e7ebef; }
.button-row > :first-child:not(:last-child) { margin-right: auto; }
.button-row > * { min-width: 110px; }
.formset-row { min-width: 0; margin: 0 0 26px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.formset-row legend { padding: 0 10px; color: var(--brand); font-size: 15px; font-weight: 750; }
.formset-row .field:last-child { margin-bottom: 0; }
.representative-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 12px 16px; padding: 18px; margin-bottom: 20px; border-radius: 10px; background: #f7f9fb; }
.representative-fields .field { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.representative-fields .field label { margin: 0; line-height: 22px; }
.representative-fields .field input { width: 100%; height: 48px; min-height: 48px; max-height: 48px; flex: 0 0 48px; }
.representative-help { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.row-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #e7ebef; }
.row-actions a { margin-right: auto; }
.button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.delete-field { display: none; }
[data-formset-add] { width: 100%; min-height: 54px; border: 1px dashed #98aabd; color: var(--brand); background: #f7f9fb; }
[data-formset-add]::before { content: "+"; font-size: 22px; font-weight: 400; }
.address-search { justify-self: start; }
.message, .status { margin: 0 0 18px; padding: 14px 16px; border-radius: 10px; background: #eaf1f5; font-size: 14px; }
.message.error, .errorlist { color: #982536; background: #fff5f6; }
.message.success, .status.success { color: #235d48; background: #f1faf6; }
.message.warning { color: #665934; background: #fbf8f0; border: 1px solid #ded7c6; }
.errorlist { margin: 4px 0; padding: 9px 12px; border: 1px solid #edc8cf; border-radius: 8px; font-size: 12px; list-style: none; }
.application-list { display: grid; gap: 12px; }
.application-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd; }
.application-row form { margin: 0; min-width: 0; }
.application-item { width: 100%; padding: 0; border: 0; background: none; justify-content: space-between; text-align: left; }
.application-item strong { display: block; overflow-wrap: anywhere; }
.application-item span { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.application-row .danger { min-width: 58px; padding: 9px 12px; font-size: 13px; }
.application-select { min-width: 0; }
.empty { color: var(--muted); padding: 24px 0; text-align: center; }
.summary { display: grid; grid-template-columns: minmax(110px,180px) minmax(0,1fr); margin: 0 0 18px; border-top: 1px solid var(--line); }
.summary dt, .summary dd { margin: 0; padding: 13px 14px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.summary dt { background: #f7f9fb; color: #42566c; font-size: 13px; font-weight: 700; }
.summary dd { font-size: 14px; }
.app-progress { margin-bottom: 20px; padding: 16px 20px; border: 1px solid rgba(20,52,91,.1); border-radius: 14px; background: rgba(255,255,255,.86); }
.progress-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 12px; color: #4c5d70; }
.progress-track { height: 5px; overflow: hidden; border-radius: 99px; background: #e7e6e1; }
.progress-track span { display: block; height: 100%; background: linear-gradient(90deg,var(--brand),var(--accent)); }
.progress-steps { display: flex; justify-content: space-between; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 11px; }
.progress-steps [aria-current] { color: var(--brand); font-weight: 800; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; width: min(100% - 40px,1100px); margin: auto; padding: 24px 0 30px; border-top: 1px solid #e0e5e9; color: var(--muted); font-size: 12px; }
.site-footer div { display: flex; flex-direction: column; gap: 4px; }
.site-footer a { color: inherit; }
.address-results { display: grid; gap: 8px; margin: 14px 0; }
.address-result { width: 100%; text-align: left; justify-content: flex-start; }
.landing-page { background: var(--ivory); }
.landing-shell { display: grid; grid-template-columns: minmax(0,1fr) minmax(400px,.85fr); min-height: 100vh; }
.landing-left { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 34px clamp(34px,5vw,80px); color: #f7f3e9; background: var(--navy); }
.landing-brand img { width: 80px; height: 80px; }
.landing-hero { margin: 60px 0 36px; }
.landing-hero .eyebrow { color: var(--gold); }
.landing-hero h1 { color: #f7f3e9; font-family: "Noto Serif KR",Georgia,serif; font-size: clamp(38px,4.4vw,64px); font-weight: 500; line-height: 1.22; letter-spacing: -.055em; }
.landing-hero > p:last-child { color: #c2ccd5; font-size: 16px; line-height: 1.8; }
.service-process { width: 100%; margin-bottom: 50px; }
.service-process > p { color: #e6dcc2; font-size: 13px; }
.service-process ol { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.service-process li { padding-top: 12px; border-top: 1px solid rgba(216,199,156,.45); color: #aebdcb; font-size: 11px; }
.service-process b { display: block; margin-bottom: 5px; color: #fff; font-size: 12px; }
.landing-contact { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #aebdcb; }
.landing-contact span { width: 100%; }
.landing-contact a { color: inherit; }
.landing-right { display: flex; align-items: center; padding: 48px clamp(26px,4vw,64px); }
.entry-card { width: min(100%,540px); margin: auto; padding: clamp(26px,3vw,42px); border: 1px solid #e0dbcf; border-radius: 26px; background: #fff; box-shadow: 0 22px 65px rgba(20,34,49,.12); }
.entry-card h2 { margin: 5px 0 10px; font-size: 32px; }
.entry-actions { display: grid; gap: 12px; }
.entry-button { display: block; width: 100%; padding: 18px; text-align: left; border-radius: 14px; }
.entry-button strong { display: block; margin-bottom: 5px; font-size: 16px; }
.entry-button span { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.entry-button.primary { background: var(--navy); }
.entry-button.primary span { color: #c5d0d9; }
.entry-note { color: var(--muted); font-size: 12px; }
.file-help { color: var(--muted); font-size: 12px; }
.date-control { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.date-control .calendar-input { position: absolute; right: 0; bottom: 0; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.calendar-button { min-height: 48px; padding: 10px 14px; font-size: 13px; }
@media (max-width: 1000px) {
  .landing-shell { grid-template-columns: minmax(0,1fr) minmax(360px,.9fr); }
  .landing-left { padding-inline: 30px; }
  .landing-right { padding-inline: 24px; }
  .service-process ol { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 780px) {
  .landing-shell { display: flex; flex-direction: column; }
  .landing-left { display: contents; }
  .landing-brand { order: 1; margin: 24px 22px 0; align-self: flex-start; }
  .landing-shell { background: var(--navy); }
  .landing-hero { order: 2; margin: 0; padding: 42px 22px 24px; }
  .landing-hero h1 { font-size: clamp(34px,7vw,50px); }
  .landing-hero > p:last-child { font-size: 14px; }
  .landing-right { order: 3; padding: 28px 18px; background: var(--ivory); }
  .service-process { order: 4; margin: 0; padding: 28px 22px; }
  .landing-contact { order: 5; padding: 0 22px 28px; }
  .entry-card { padding: 26px 22px; border-radius: 20px; }
}
@media (max-width: 620px) {
  .site-header-inner { width: calc(100% - 28px); min-height: 76px; gap: 12px; flex-wrap: wrap; padding-block: 12px; }
  .brand { padding: 0; }
  .brand img { width: 48px; height: auto; }
  .header-contact { flex-direction: column; align-items: flex-end; gap: 2px; }
  .header-contact a { font-size: 11px; }
  .site-header form { margin-left: auto; }
  .container { width: calc(100% - 28px); margin: 26px auto 40px; }
  .card { border-radius: 16px; padding: 24px 18px; }
  .formset-row { padding: 18px 14px; }
  .button-row { flex-wrap: wrap; }
  .button-row > * { flex: 1; min-width: 0; }
  .representative-fields { grid-template-columns: 1fr; }
  .application-row { gap: 10px; padding: 12px; }
  .application-item { display: block; }
  .application-item strong { font-size: 14px; }
  .app-progress { padding: 14px; }
  .progress-steps { font-size: 10px; gap: 4px; }
  .summary { grid-template-columns: 1fr; }
  .summary dt { padding: 9px 12px 0; border-bottom: 0; background: #fff; }
  .summary dd { padding: 4px 12px 12px; }
  .site-footer { flex-direction: column; }
}
