/* Existing desktop header layout remains in the source stylesheet. */
.header-right > .site-contact {
  position: absolute;
  top: 50%;
  right: max(20px, calc((100vw - 1762px) / 2));
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}
.site-contact .header-tel {
  gap: 7px;
  font-size: 24px;
}
.site-contact .header-tel-icon {
  flex: 0 0 15px;
}
.site-contact-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 37px;
  padding: 0 12px;
  border: 1px solid currentColor;
  border-radius: 2px;
  color: inherit;
  background: transparent;
  font: 600 14px/1.2 "Noto Sans KR", sans-serif;
  cursor: pointer;
}
.header .site-contact { color: #fff; text-shadow: 0 1px 5px #07132aeb; }
.header:is(.on, .dark, .sub) .site-contact { color: #173360; text-shadow: none; }

.consult-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(460px, calc(100% - 28px));
  max-width: none;
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #fff;
  color: #172536;
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 18px 55px #0b18264d;
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
}
.consult-dialog:not([open]) { display: none; }
.consult-dialog::backdrop { background: #101c2bbb; }
.consult-panel { padding: clamp(18px, 6vw, 32px); }
.consult-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 6px 0;
  background: #fff;
}
.consult-heading h2 { font-size: 24px; line-height: 1.35; }
.consult-close {
  flex: 0 0 44px;
  height: 44px;
  background: #edf1f5;
  border: 0;
  border-radius: 4px;
  color: #173360;
  font: 28px/1 sans-serif;
  cursor: pointer;
}
.consult-intro, .consult-preview { margin-top: 8px; color: #465469; font-size: 14px; line-height: 1.5; }
#consult-form { display: grid; gap: 9px; margin-top: 22px; font-size: 14px; }
#consult-form[hidden] { display: none; }
#consult-form > label { font-weight: 600; }
#consult-form > input {
  height: 45px;
  min-width: 0;
  width: 100%;
  padding: 0 12px;
  margin-bottom: 8px;
  border: 1px solid #7e8b9e;
  border-radius: 4px;
  color: #172536;
  background: #fff;
  font-size: 16px;
}
.consult-policy { border: 1px solid #c5ced9; border-radius: 4px; padding: 9px 12px; }
.consult-policy summary { cursor: pointer; }
.consult-policy dl { display: grid; gap: 6px; margin-top: 8px; color: #47556a; }
.consult-policy dl > div { display: grid; grid-template-columns: 5em 1fr; gap: 8px; }
.consult-policy dt { font-weight: 600; }
.consult-consent { display: flex; align-items: flex-start; gap: 9px; padding: 7px 0; cursor: pointer; }
.consult-consent input { margin-top: 2px; flex-shrink: 0; width: 18px; height: 18px; accent-color: #173360; }
.consult-submit {
  min-height: 46px;
  padding: 8px 12px;
  border: 0;
  border-radius: 4px;
  background: #173360;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.consult-submit:disabled { opacity: .62; cursor: wait; }
.consult-status { min-height: 1.5em; font-size: 14px; line-height: 1.55; }
.consult-status[data-error] { color: #a41527; }
.consult-call { color: #173360; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.site-contact :focus-visible, .consult-dialog :focus-visible {
  outline: 2px solid #2771be;
  outline-offset: 3px;
}

@media (max-width: 1240px) {
  .header-right > .site-contact {
    top: auto;
    right: 16px;
    bottom: 16px;
    position: fixed;
    transform: none;
    gap: 9px;
    padding: 7px 8px 7px 13px;
    border: 1px solid #c6d3e1;
    border-radius: 4px;
    background: #173360;
    color: #fff;
    box-shadow: 0 4px 15px #0d253b55;
  }
  .header:is(.on, .dark, .sub) .header-right > .site-contact,
  .header-right > .site-contact .header-tel { color: #fff; }
  .header-right > .site-contact .header-tel { min-height: 37px; font-size: 20px; }
  .site-contact .header-tel-icon { display: none; }
  .site-contact-open { min-height: 36px; }
}

@media (min-width: 1241px) and (max-width: 1490px) {
  .header-right > .site-contact { right: 16px; gap: 8px; }
  .site-contact .header-tel { font-size: 21px; }
  .site-contact .header-tel-icon { display: none; }
}
.header-right > .site-contact-mobile {
  position: fixed;
  top: auto;
  right: 12px;
  bottom: max(38px, calc(env(safe-area-inset-bottom) + 18px));
  transform: none;
  gap: 9px;
  padding: 6px 8px 6px 12px;
  border: 1px solid #c6d3e1;
  border-radius: 4px;
  background: #173360;
  color: #fff;
  box-shadow: 0 4px 15px #0d253b55;
}
.header-right > .site-contact-mobile .header-tel {
  min-height: 36px;
  font-size: 20px;
  color: #fff;
  display: flex;
  align-items: center;
}
.site-contact-mobile .header-tel-icon { display: none; }