:root {
  --contact-bg: #fff9fc;
  --contact-surface: #ffffff;
  --contact-soft: #faf5f9;
  --contact-ink: #302735;
  --contact-muted: #796b81;
  --contact-subtle: #7a6984;
  --contact-line: #e9e0ec;
  --contact-accent: #de216a;
  --contact-accent-strong: #c92262;
  --contact-accent-soft: #fff0f6;
  --contact-focus: #ee8bb2;
  --contact-radius: 12px;
  --contact-space: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 14px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  color: var(--contact-ink);
  background: var(--contact-bg);
  word-break: keep-all;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: wait; }
p { overflow-wrap: anywhere; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--contact-focus);
  outline-offset: 4px;
}
input:focus-visible, textarea:focus-visible {
  outline: 0;
  border-color: var(--contact-accent);
  box-shadow: 0 0 0 3px var(--contact-accent-soft);
}

.contact-wrap { width: min(1120px, calc(100% - 64px)); margin: auto; }
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 100; padding: 12px 18px; background: var(--contact-surface); color: var(--contact-accent-strong); }
.skip-link:focus { top: 12px; }
.contact-header { border-bottom: 1px solid var(--contact-line); background: var(--contact-surface); }
.contact-header__inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.contact-brand { font-size: 20px; font-weight: 850; letter-spacing: -.055em; white-space: nowrap; }
.contact-home { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 12px; color: var(--contact-muted); }
.contact-home:hover { color: var(--contact-accent-strong); }
.contact-main { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 64px; align-items: start; padding-top: 56px; padding-bottom: 80px; }
.contact-intro { padding-top: 18px; }
.contact-kicker { display: block; color: var(--contact-subtle); font-size: 10px; font-weight: 750; letter-spacing: .14em; line-height: 1.6; }
.contact-intro h1 { font-size: 40px; line-height: 1.38; letter-spacing: -.055em; font-weight: 820; margin: 16px 0 20px; }
.contact-intro h1 em { color: var(--contact-accent); font-style: normal; }
.contact-intro > p { color: var(--contact-muted); font-size: 14px; line-height: 1.9; }
.contact-help { display: flex; gap: 16px; margin-top: 36px; padding: 24px 0; border-top: 1px solid var(--contact-line); border-bottom: 1px solid var(--contact-line); }
.contact-help__mark { flex: none; color: var(--contact-accent); font-size: 20px; line-height: 1.4; font-weight: 750; }
.contact-help strong { display: block; font-size: 14px; line-height: 1.6; }
.contact-help p { color: var(--contact-muted); font-size: 12px; line-height: 1.8; margin: 6px 0 10px; }
.contact-help a { display: inline-flex; align-items: center; min-height: 32px; font-size: 12px; font-weight: 650; color: var(--contact-accent-strong); }
.contact-intro .contact-note { color: var(--contact-subtle); font-size: 12px; margin-top: 24px; }

/* The account and tabs form one persistent navigation area above each panel. */
.contact-card { min-width: 0; background: var(--contact-surface); border: 1px solid var(--contact-line); border-radius: 20px; padding: 32px; }
.contact-session { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.contact-session__identity { flex: 1; min-width: 0; }
.contact-session__eyebrow { display: block; margin-bottom: 5px; font-size: 10px; line-height: 1.5; font-weight: 750; letter-spacing: .12em; color: var(--contact-subtle); }
.contact-session p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; font-size: 17px; line-height: 1.6; letter-spacing: -.025em; font-weight: 750; color: var(--contact-ink); }
.contact-session__note { display: block; margin-top: 3px; font-size: 11px; line-height: 1.7; color: var(--contact-muted); }
.contact-session button { flex: none; min-height: 44px; padding: 10px 14px; background: var(--contact-surface); border: 1px solid var(--contact-line); border-radius: 8px; color: var(--contact-muted); font-size: 12px; font-weight: 600; transition: border-color .15s, color .15s, background .15s; }
.contact-session button:hover { border-color: #d6c6db; background: var(--contact-soft); color: var(--contact-ink); }
.contact-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; margin-bottom: 30px; background: var(--contact-soft); border: 1px solid #efe7ef; border-radius: var(--contact-radius); }
.contact-tabs button { min-width: 0; min-height: 44px; padding: 11px 12px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--contact-muted); font-size: 14px; line-height: 1.5; font-weight: 650; transition: color .15s, background .15s, border-color .15s; }
.contact-tabs button:hover { color: var(--contact-accent-strong); }
.contact-tabs button[aria-selected="true"] { border-color: #f1d6e2; background: var(--contact-surface); color: var(--contact-accent-strong); box-shadow: 0 1px 3px #48233706; }
.contact-tabs button:focus-visible { outline-offset: 1px; }
.contact-card__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.contact-card h2 { margin: 8px 0 0; font-size: 24px; line-height: 1.5; font-weight: 750; letter-spacing: -.04em; }
.required-guide { color: var(--contact-subtle); font-size: 11px; white-space: nowrap; }
.required-guide span, .contact-field label > span { color: var(--contact-accent); }

/* Write a question. */
.contact-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.contact-field { min-width: 0; margin-bottom: 22px; }
.contact-field label { display: block; font-size: 13px; line-height: 1.7; font-weight: 650; margin-bottom: 9px; }
.contact-field input, .contact-field textarea { display: block; width: 100%; min-height: 48px; padding: 12px 14px; background: var(--contact-surface); color: var(--contact-ink); border: 1px solid #dfd5e4; border-radius: 9px; font-size: 14px; line-height: 1.7; transition: border-color .15s, box-shadow .15s; }
.contact-field textarea { min-height: 180px; resize: vertical; }
.contact-field input::placeholder, .contact-field textarea::placeholder { color: #9f93a6; font-size: 12px; }
.contact-field input:hover, .contact-field textarea:hover { border-color: #cdbbd5; }
.contact-field input[aria-invalid="true"], .contact-field textarea[aria-invalid="true"] { border-color: var(--contact-accent-strong); }
.contact-field__help { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 8px; color: var(--contact-muted); font-size: 11px; line-height: 1.8; }
.contact-field__help #message-count { white-space: nowrap; color: var(--contact-subtle); }
.contact-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-privacy { padding: 18px; border: 1px solid var(--contact-line); border-radius: 10px; background: #fcf9fc; margin-top: 4px; }
.contact-privacy label { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; line-height: 1.8; cursor: pointer; }
.contact-privacy input { flex: none; width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--contact-accent); }
.contact-privacy strong { font-weight: 650; }
.contact-privacy small { color: var(--contact-muted); font-size: 11px; white-space: nowrap; }
.contact-privacy p { color: var(--contact-muted); font-size: 11px; line-height: 1.85; margin: 10px 0; }
.contact-privacy a { display: inline-block; font-size: 11px; line-height: 1.8; color: var(--contact-muted); text-decoration: underline; text-underline-offset: 3px; }
.contact-privacy a:hover { color: var(--contact-accent-strong); }
.contact-submit { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 52px; padding: 14px 18px; margin-top: 24px; border: 0; border-radius: 10px; background: var(--contact-accent); color: #fff; font-size: 14px; line-height: 1.6; font-weight: 700; transition: background .15s; }
.contact-submit:hover { background: var(--contact-accent-strong); }
.contact-submit:disabled { background: #e5a0bb; color: #fff; }
.contact-submit-note { color: var(--contact-subtle); font-size: 11px; line-height: 1.8; text-align: center; margin: 12px 0 0; }
.contact-error { color: #af2458; background: var(--contact-accent-soft); border: 1px solid #f4d5e1; border-radius: 9px; padding: 12px 14px; margin: 16px 0 0; font-size: 12px; line-height: 1.8; }
.contact-error:focus { outline: 2px solid var(--contact-focus); outline-offset: 3px; }

/* Own inquiry history and detail. */
.inquiry-refresh { min-height: 44px; padding: 8px 12px; border: 1px solid var(--contact-line); border-radius: 8px; background: var(--contact-surface); color: var(--contact-muted); font-size: 12px; font-weight: 600; }
.inquiry-refresh:hover { color: var(--contact-accent-strong); border-color: #e7bbce; }
.inquiry-private-note, .inquiry-state { color: var(--contact-muted); font-size: 12px; line-height: 1.9; }
.inquiry-private-note { padding-bottom: 18px; margin: -6px 0 0; border-bottom: 1px solid var(--contact-line); }
.inquiry-state { padding: 24px 0; }
.inquiry-empty { text-align: center; padding: 44px 20px; margin-top: 20px; }
.inquiry-empty strong { display: block; font-size: 17px; line-height: 1.7; letter-spacing: -.025em; }
.inquiry-empty p { font-size: 13px; line-height: 1.9; color: var(--contact-muted); margin: 10px 0 18px; }
.inquiry-empty .contact-again { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 18px; margin: 0; border: 1px solid #f1cbdc; border-radius: 8px; text-decoration: none; color: var(--contact-accent-strong); background: var(--contact-accent-soft); font-weight: 650; }
.inquiry-list { list-style: none; padding: 0; margin: 0; }
.inquiry-list li { border-bottom: 1px solid var(--contact-line); }
.inquiry-list-button { position: relative; display: block; width: 100%; min-height: 104px; padding: 23px 28px 23px 0; border: 0; background: transparent; color: var(--contact-ink); text-align: left; transition: color .15s; }
.inquiry-list-button::after { content: "›"; position: absolute; top: 50%; right: 2px; transform: translateY(-50%); color: #a18eac; font-size: 23px; line-height: 1; font-weight: 400; }
.inquiry-list-button:hover { color: var(--contact-accent-strong); }
.inquiry-list-button:hover::after { color: var(--contact-accent-strong); }
.inquiry-list-button strong { display: block; font-size: 14px; font-weight: 650; line-height: 1.75; overflow-wrap: anywhere; }
.inquiry-list-meta { display: flex; align-items: center; gap: 12px; margin-top: 11px; }
.inquiry-list-meta time { color: var(--contact-subtle); font-size: 11px; line-height: 1.7; }
.inquiry-badge { display: inline-flex; align-items: center; flex: none; padding: 4px 8px; border-radius: 5px; background: var(--contact-accent-soft); color: var(--contact-accent-strong); font-size: 11px; line-height: 1.5; font-weight: 650; }
.inquiry-more { display: block; width: 100%; min-height: 46px; padding: 11px 16px; margin-top: 22px; border: 1px solid var(--contact-line); border-radius: 9px; background: var(--contact-surface); color: var(--contact-muted); font-size: 12px; font-weight: 600; }
.inquiry-more:hover { color: var(--contact-accent-strong); border-color: #e7bbce; }
.inquiry-back { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 0; margin: -7px 0 20px; border: 0; background: transparent; color: var(--contact-muted); font-size: 12px; font-weight: 600; }
.inquiry-back:hover { color: var(--contact-accent-strong); }
.inquiry-detail:focus { outline: 0; }
.inquiry-detail h2 { font-size: 24px; line-height: 1.6; overflow-wrap: anywhere; margin: 12px 0; }
.inquiry-detail-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; color: var(--contact-subtle); font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.inquiry-detail-meta span { max-width: 100%; }
.inquiry-detail-author { padding: 18px 0; margin: 24px 0; border-top: 1px solid var(--contact-line); border-bottom: 1px solid var(--contact-line); font-size: 12px; line-height: 1.9; }
.inquiry-detail-author > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; }
.inquiry-detail-author > div + div { margin-top: 6px; }
.inquiry-detail-author dt { color: var(--contact-muted); }
.inquiry-detail-author dd { margin: 0; overflow-wrap: anywhere; }
.inquiry-message { padding-bottom: 20px; color: #4e4057; font-size: 14px; line-height: 2; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Login and submission feedback. */
.contact-login { padding: 32px 12px 28px; text-align: center; }
.contact-login h2 { font-size: 26px; line-height: 1.5; margin-top: 18px; }
.contact-login > p { max-width: 370px; margin: 16px auto 28px; font-size: 14px; line-height: 1.9; color: var(--contact-muted); }
.contact-login .contact-submit { justify-content: center; gap: 18px; margin-top: 0; }
.contact-success { padding: 30px 4px 8px; text-align: center; }
.contact-success:focus { outline: 0; }
.contact-success__check { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 24px; border-radius: 50%; color: var(--contact-accent); background: var(--contact-accent-soft); font-size: 25px; font-weight: 750; }
.contact-success h2 { font-size: 28px; margin-top: 14px; }
.contact-success > p { margin: 16px 0 24px; color: var(--contact-muted); font-size: 13px; line-height: 1.9; }
.contact-reference { padding: 22px 16px; border: 1px solid var(--contact-line); border-radius: var(--contact-radius); background: var(--contact-soft); overflow-wrap: anywhere; }
.contact-reference > span { display: block; color: var(--contact-muted); font-size: 11px; }
.contact-reference strong { display: block; color: var(--contact-ink); font-size: 17px; line-height: 1.7; letter-spacing: .02em; margin: 8px 0; }
.contact-reference small { display: block; color: var(--contact-subtle); font-size: 11px; line-height: 1.7; }
.contact-again { display: block; min-height: 44px; padding: 10px 6px; margin: 12px auto 0; border: 0; background: transparent; color: var(--contact-muted); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.contact-again:hover { color: var(--contact-accent-strong); }

.contact-footer { border-top: 1px solid var(--contact-line); background: #faf6fa; padding: 32px 0; color: var(--contact-muted); }
.contact-footer__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.contact-footer .contact-brand { font-size: 17px; color: #75657e; }
.contact-footer nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 11px; line-height: 1.8; }
.contact-footer p { font-size: 10px; line-height: 2; margin: 2px 0; }
.contact-footer p a { text-decoration: underline; text-underline-offset: 3px; }
.contact-footer small { display: block; margin-top: 12px; color: var(--contact-subtle); font-size: 10px; line-height: 1.8; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1000px) {
  .contact-main { gap: 36px; }
  .contact-intro h1 { font-size: 34px; }
  .contact-card { padding: 28px; }
  .contact-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

@media (max-width: 680px) {
  .contact-wrap { width: calc(100% - 32px); }
  .contact-header__inner { min-height: 66px; }
  .contact-brand { font-size: 18px; }
  .contact-home { font-size: 11px; }
  .contact-main { display: block; padding-top: 28px; padding-bottom: 48px; }
  .contact-intro { padding-top: 0; }
  .contact-intro h1 { font-size: 30px; margin: 12px 0 14px; }
  .contact-intro > p { font-size: 13px; line-height: 1.8; }
  .contact-help { gap: 12px; margin-top: 24px; padding: 18px 0; }
  .contact-help p { font-size: 12px; margin: 4px 0 6px; }
  .contact-intro .contact-note { display: none; }
  .contact-card { padding: 24px 20px; border-radius: 16px; margin-top: 24px; }
  .contact-session { gap: 12px; margin-bottom: 22px; }
  .contact-session p { font-size: 15px; }
  .contact-session__eyebrow { font-size: 9px; margin-bottom: 3px; }
  .contact-session__note { font-size: 10px; }
  .contact-session button { padding: 10px 11px; font-size: 11px; }
  .contact-tabs { margin-bottom: 26px; }
  .contact-tabs button { font-size: 13px; }
  .contact-card__heading { margin-bottom: 22px; gap: 8px; }
  .contact-card h2 { font-size: 22px; }
  .contact-field { margin-bottom: 20px; }
  .contact-field label { font-size: 13px; }
  .contact-field input, .contact-field textarea { font-size: 16px; padding: 12px; }
  .contact-field input::placeholder, .contact-field textarea::placeholder { font-size: 12px; }
  .contact-field__help { font-size: 10px; gap: 8px; }
  .contact-privacy { padding: 15px; }
  .contact-privacy label { font-size: 12px; }
  .contact-privacy p { font-size: 11px; }
  .contact-submit { font-size: 14px; }
  .contact-submit-note { font-size: 10px; }
  .contact-login { padding: 18px 0; }
  .contact-login h2 { font-size: 24px; }
  .contact-login > p { font-size: 13px; }
  .inquiry-list-meta { align-items: flex-start; flex-direction: column; gap: 7px; }
  .inquiry-list-button { min-height: 104px; padding: 20px 22px 20px 0; }
  .inquiry-detail h2 { font-size: 21px; }
  .inquiry-detail-author > div { grid-template-columns: minmax(0, 1fr); gap: 1px; }
  .inquiry-detail-author > div + div { margin-top: 12px; }
  .inquiry-message { font-size: 14px; }
  .contact-success { padding: 20px 0 4px; }
  .contact-success h2 { font-size: 25px; }
  .contact-reference strong { font-size: 16px; }
  .contact-footer__top { display: block; }
  .contact-footer nav { margin-top: 18px; gap: 16px; }
  .desktop-break { display: none; }
}

@media (max-width: 360px) {
  .contact-card { padding: 22px 16px; }
  .contact-session__note { max-width: 135px; line-height: 1.5; }
  .contact-privacy { padding: 13px; }
  .contact-privacy label { gap: 8px; }
  .contact-field__help { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
