.daohe-inquiry-page {
  max-width: 42rem;
  margin: 4rem auto;
  padding: 0 1.25rem 3rem;
}
.daohe-inquiry-page form label { display: grid; gap: .35rem; margin: 1rem 0; }
.daohe-inquiry-page input:not([type="checkbox"]), .daohe-inquiry-page textarea {
  width: 100%;
  padding: .6rem .75rem;
  border: 1px solid #9baabd;
  border-radius: .35rem;
  font: inherit;
}
.daohe-inquiry-page .daohe-inquiry-consent { display: flex; align-items: start; gap: .5rem; }
.daohe-inquiry-trap { position: absolute; left: -10000px; }
.daohe-inquiry-record { border-block-start: 1px solid #cdd5df; margin-block: 1rem; padding-block: 1rem; }
.daohe-inquiry-text { white-space: pre-wrap; overflow-wrap: anywhere; }
body.daohe-consult-open { overflow: hidden; }
.daohe-consult-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  box-sizing: border-box;
  width: min(42rem, calc(100% - 2rem));
  height: min(43rem, calc(100% - 2rem));
  height: min(43rem, calc(100dvh - 2rem));
  max-width: none;
  max-height: none;
  padding: 0;
  color: var(--ink, #152f4b);
  background: #fff;
  border: 0;
  border-radius: .65rem;
  overflow: hidden;
  box-shadow: 0 1rem 4rem #142b4c44;
}
.daohe-consult-dialog[open] { display: flex; flex-direction: column; }
.daohe-consult-dialog::backdrop { background: #0f203fb3; }
.daohe-consult-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem 1.25rem;
  border-bottom: 1px solid #dce4ec;
}
.daohe-consult-dialog h2 { margin: 0; font-size: 1.3rem; }
.daohe-consult-close {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: .35rem;
  background: #f0f4f8;
  color: inherit;
  font: 1.5rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.daohe-consult-dialog iframe { width: 100%; min-height: 0; flex: 1 1 auto; border: 0; background: #fff; }
.daohe-inquiry-embedded .daohe-inquiry-page { margin: 0 auto; padding: 1rem 1.25rem; }
.daohe-inquiry-embedded .daohe-inquiry-page form label { margin: .65rem 0; }
.daohe-inquiry-embedded .daohe-inquiry-page .daohe-inquiry-notice { color: #4b6077; font-size: .875rem; }

.daohe-consult-dialog { width: min(720px, calc(100% - 32px)); border: 1px solid #d5e0e9; border-radius: 10px; box-shadow: 0 25px 100px #102a4555; }
.daohe-consult-dialog::backdrop { background: #112b4780; backdrop-filter: blur(3px); }
.daohe-consult-dialog > header { padding: 20px 34px 0; border: 0; gap: 18px; }
.daohe-consult-dialog h2 { font-size: 25px; }
.daohe-consult-close { width: 36px; height: 36px; border-radius: 50%; background: #edf3f7; color: #34566e; font-size: 26px; }
.daohe-inquiry-embedded .daohe-inquiry-page { max-width: none; padding: 12px 34px 30px; }
.daohe-consult-intro { font-size: 14px; line-height: 1.8; color: #6b8191; }
.daohe-inquiry-page form[data-consult-form] { display: grid; gap: 16px; }
.daohe-inquiry-page form[data-consult-form] fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.daohe-inquiry-page form[data-consult-form] legend { font-size: 14px; margin-bottom: 10px; }
.daohe-inquiry-page form[data-consult-form] label { margin: 0; gap: 7px; font-size: 14px; }
.daohe-inquiry-page form[data-consult-form] .inquiry-types label { display: flex; gap: 8px; }
.daohe-inquiry-page form[data-consult-form] .inquiry-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: #6b8191; }
.daohe-inquiry-page form[data-consult-form] input:not([type="checkbox"]), .daohe-inquiry-page form[data-consult-form] textarea { min-width: 0; box-sizing: border-box; padding: 10px 12px; border: 1px solid #d4dfe7; border-radius: 4px; color: var(--ink); font-size: 15px; }
.daohe-inquiry-page form[data-consult-form] textarea { resize: vertical; min-height: 100px; }
.daohe-inquiry-page form[data-consult-form] > .btn { justify-self: start; min-width: 140px; }
@media (max-width: 680px) {
  .daohe-consult-dialog > header { padding: 16px 20px 0; }
  .daohe-consult-dialog h2 { font-size: 21px; }
  .daohe-inquiry-embedded .daohe-inquiry-page { padding: 12px 20px 22px; }
}

/* Bring in the dialog and soften the page behind it together. */
@media (prefers-reduced-motion: no-preference) {
  .daohe-consult-dialog[open] {
    animation: daohe-consult-enter 360ms cubic-bezier(.2,.75,.2,1) both;
  }
  .daohe-consult-dialog[open]::backdrop {
    animation: daohe-consult-backdrop 480ms ease-out both;
  }
}
@keyframes daohe-consult-enter {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes daohe-consult-backdrop {
  from { background-color: #112b4700; backdrop-filter: blur(0); }
  to { background-color: #112b4780; backdrop-filter: blur(3px); }
}

/* Center the receipt in the standalone page or in the dialog frame. */
.daohe-inquiry-confirmed .daohe-inquiry-page {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(1rem, 5vw, 2rem);
}
.daohe-inquiry-confirmed:not(.daohe-inquiry-embedded) .daohe-inquiry-page > a {
  align-self: flex-start;
  margin-bottom: .75rem;
}
.daohe-inquiry-success {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-height: 12rem;
  text-align: center;
}
/* The receipt receives focus for announcement but is not an interactive control. */
.daohe-inquiry-success:focus,
.daohe-consult-dialog.has-inquiry-receipt iframe:focus { outline: none; }
.daohe-inquiry-success__icon {
  width: clamp(4rem, 17vw, 5rem);
  height: auto;
  flex-shrink: 0;
  fill: none;
  stroke: #24844f;
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.daohe-inquiry-success p { max-width: 28em; margin: 0; color: #273e53; line-height: 1.7; }
@media (prefers-reduced-motion: no-preference) {
  .daohe-inquiry-success__ring,
  .daohe-inquiry-success__check {
    stroke-dasharray: 1;
    animation: daohe-inquiry-draw 420ms ease-out both;
  }
  .daohe-inquiry-success__ring { transform: rotate(-90deg); transform-origin: center; }
  .daohe-inquiry-success__check { animation-delay: 220ms; }
}
@keyframes daohe-inquiry-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
