.inquiry-dialog {
  width: min(720px, calc(100vw - 32px));
  max-width: none;
  max-height: min(880px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 24px;
  color: #222824;
  background: transparent;
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

.inquiry-dialog::backdrop {
  background: rgba(4, 18, 13, .72);
  backdrop-filter: blur(8px);
}

.inquiry-shell {
  max-height: min(880px, calc(100dvh - 32px));
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(122, 92, 43, .2);
  border-radius: 24px;
  background:
    radial-gradient(circle at 95% 0, rgba(190, 147, 73, .13), transparent 20rem),
    #f4efe5;
  box-shadow: 0 28px 90px rgba(0, 12, 8, .34);
  scrollbar-width: thin;
}

.inquiry-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  padding: clamp(28px, 5vw, 50px) clamp(24px, 5vw, 54px) 24px;
}

.inquiry-kicker {
  margin: 0 0 9px;
  color: #9a7136;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.inquiry-header h2 {
  margin: 0;
  color: #1e2722;
  font-family: Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.025em;
}

.inquiry-intro {
  max-width: 520px;
  margin: 15px 0 0;
  color: #5e6862;
  font-size: 14px;
  line-height: 1.7;
}

.inquiry-icon-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(32, 44, 37, .22);
  border-radius: 50%;
  color: #29342e;
  background: rgba(255, 255, 255, .32);
  font: 300 28px/1 Georgia, serif;
  cursor: pointer;
}

.inquiry-form {
  display: grid;
  gap: 22px;
  padding: 8px clamp(24px, 5vw, 54px) clamp(28px, 5vw, 50px);
}

.inquiry-form[hidden] { display: none; }

.inquiry-field {
  min-width: 0;
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
  color: #2b342f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.inquiry-field small {
  color: #777f7a;
  font-size: 11px;
  font-weight: 400;
}

.inquiry-dialog select,
.inquiry-dialog input[name="contact"],
.inquiry-dialog textarea {
  width: 100%;
  border: 1px solid rgba(43, 52, 47, .25);
  border-radius: 12px;
  color: #202823;
  background: rgba(255, 253, 247, .82);
  font: 400 16px/1.45 inherit;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.inquiry-dialog select,
.inquiry-dialog input[name="contact"] {
  min-height: 50px;
  padding: 11px 14px;
}

.inquiry-dialog textarea {
  min-height: 124px;
  padding: 13px 14px;
  resize: vertical;
}

.inquiry-dialog select:focus,
.inquiry-dialog input[name="contact"]:focus,
.inquiry-dialog textarea:focus {
  outline: 0;
  border-color: #a97b37;
  background: #fffdf8;
  box-shadow: 0 0 0 3px rgba(179, 132, 61, .16);
}

.inquiry-choice-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.inquiry-choice-row label {
  position: relative;
  min-height: 50px;
  display: flex;
  align-items: center;
  padding: 11px 12px 11px 38px;
  overflow: hidden;
  border: 1px solid rgba(43, 52, 47, .22);
  border-radius: 12px;
  color: #4b554f;
  background: rgba(255, 253, 247, .58);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}

.inquiry-choice-row input {
  position: absolute;
  left: 13px;
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #a97936;
}

.inquiry-choice-row label:has(input:checked) {
  border-color: #a97936;
  color: #2b332e;
  background: rgba(202, 165, 95, .12);
  box-shadow: inset 0 0 0 1px rgba(169, 121, 54, .13);
}

.inquiry-privacy {
  margin: -3px 0 0;
  color: #737b76;
  font-size: 11px;
  line-height: 1.6;
}

.inquiry-status {
  min-height: 0;
  color: #5e6862;
  font-size: 13px;
  line-height: 1.55;
}

.inquiry-status:empty { display: none; }
.inquiry-status.is-failure {
  padding: 12px 14px;
  border-left: 3px solid #b87442;
  border-radius: 4px 10px 10px 4px;
  color: #704b32;
  background: rgba(184, 116, 66, .08);
}

.inquiry-fallback {
  margin-top: -10px;
}

.inquiry-fallback a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid #9f7438;
  border-radius: 999px;
  color: #755021;
  background: rgba(255, 253, 247, .52);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.inquiry-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.inquiry-primary,
.inquiry-secondary {
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 999px;
  font: 700 13px/1.2 inherit;
  cursor: pointer;
}

.inquiry-primary {
  border: 1px solid #0c2b20;
  color: #f7f2e8;
  background: #0c2b20;
}

.inquiry-secondary {
  border: 1px solid rgba(43, 52, 47, .25);
  color: #4e5852;
  background: transparent;
}

.inquiry-primary:disabled { cursor: wait; opacity: .64; }
.inquiry-dialog button:focus-visible,
.inquiry-dialog a:focus-visible,
.inquiry-choice-row input:focus-visible + span {
  outline: 2px solid #bd8f4a;
  outline-offset: 3px;
}

.inquiry-success {
  display: grid;
  justify-items: start;
  gap: 22px;
  padding: 8px clamp(24px, 5vw, 54px) clamp(36px, 6vw, 64px);
}

.inquiry-success[hidden] { display: none; }
.inquiry-success-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #a97936;
  border-radius: 50%;
  color: #8e642d;
  font-size: 22px;
}

.inquiry-success p {
  max-width: 520px;
  margin: 0;
  color: #344039;
  font-family: Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.35;
}

@media (prefers-reduced-motion: no-preference) {
  .inquiry-dialog[open] .inquiry-shell { animation: inquiry-enter .2s ease-out both; }
  @keyframes inquiry-enter {
    from { opacity: 0; transform: translateY(8px) scale(.99); }
    to { opacity: 1; transform: none; }
  }
}

@media (max-width: 600px) {
  .inquiry-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 18px;
  }
  .inquiry-shell {
    max-height: calc(100dvh - 16px);
    border-radius: 18px;
  }
  .inquiry-header { gap: 14px; padding: 28px 20px 20px; }
  .inquiry-header h2 { font-size: clamp(32px, 10vw, 44px); }
  .inquiry-form { gap: 19px; padding: 6px 20px 26px; }
  .inquiry-choice-row { grid-template-columns: 1fr; gap: 8px; }
  .inquiry-choice-row label { min-height: 46px; }
  .inquiry-actions { position: sticky; bottom: -26px; margin: 0 -20px -26px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(244,239,229,.78), #f4efe5 34%); }
  .inquiry-actions button { flex: 1; }
  .inquiry-success { padding: 6px 20px 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .inquiry-dialog *, .inquiry-dialog *::before, .inquiry-dialog *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
