/* 來源 f8af83c；共用導覽／頁尾由 inquiry.php 引入。 */
.inquiry-shell {
  --ink: #050505;
  --paper: #e8e7e3;
  --gold: #b0a285;
  --white: #f3f1eb;
  --line: rgba(255, 255, 255, 0.18);
  --font-geist-mono: "Roboto", "Noto Sans TC", Arial, Helvetica, sans-serif;
  color: var(--white);
  font-family: "Roboto", "Noto Sans TC", Arial, Helvetica, sans-serif;
  line-height: normal;
}

.inquiry-shell {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 18% 34%, #3d3d3d 0, #2d2d2d 38%, #242424 75%);
  background-size: 72px 72px, 72px 72px, 100% 100%;
}

.inquiry-main {
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(330px, 0.68fr) minmax(620px, 1.32fr);
  min-height: 100svh;
}

.inquiry-intro {
  position: sticky;
  top: 0;
  min-height: 100svh;
  align-self: start;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 42%),
    rgba(0, 0, 0, 0.12);
}

.inquiry-intro::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 45%;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(18, 18, 18, 0.86));
}

.inquiry-index {
  display: none;
}

.inquiry-index span:first-child {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--white);
  color: #171717;
}

.intro-copy {
  position: relative;
  z-index: 5;
  width: min(82%, 600px);
  margin: 34vh 0 0 7vw;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--gold);
  font: 600 10px/1.4 var(--font-geist-mono);
  letter-spacing: 0.2em;
}

.intro-copy h1 {
  margin: 0;
  color: #f5f3ed;
  font-size: clamp(58px, 7vw, 122px);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.intro-note {
  width: min(100%, clamp(172px, 20.75vw, 362px));
  margin: 34px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font: 300 clamp(14px, 1.05vw, 17px)/1.7 var(--font-geist-mono);
  letter-spacing: 0.035em;
}

.inquiry-wheel {
  position: absolute;
  right: -29%;
  bottom: -25%;
  z-index: 1;
  width: min(78vh, 790px);
  aspect-ratio: 1;
  object-fit: contain;
  opacity: 0.2;
  filter: grayscale(1) contrast(1.1) drop-shadow(0 34px 40px rgba(0, 0, 0, 0.8));
  transform: rotate(-18deg);
  animation: wheel-arrive 1800ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.intro-footer {
  display: none;
}

.form-panel {
  min-width: 0;
  padding: clamp(240px, 27vh, 300px) clamp(34px, 5vw, 96px) 72px;
  background: rgba(14, 14, 14, 0.55);
}

.form-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.form-heading > div {
  display: flex;
  align-items: center;
  gap: 18px;
}

.form-heading p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font: 400 30px/1 "Roboto", "Noto Sans TC", Arial, Helvetica, sans-serif;
  letter-spacing: normal;
}

.form-heading .required-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font: 400 16px/1.4 "Roboto", "Noto Sans TC", Arial, Helvetica, sans-serif;
  letter-spacing: normal;
}

.wheel-form {
  position: relative;
}

.form-section {
  display: grid;
  grid-template-columns: minmax(120px, 0.26fr) 1fr;
  gap: clamp(24px, 4vw, 70px);
  margin: 0;
  padding: 32px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.form-section legend {
  float: left;
  width: auto;
  padding: 4px 0 0;
  color: var(--gold);
  font: 400 18px/1 "Roboto", "Noto Sans TC", Arial, Helvetica, sans-serif;
  letter-spacing: normal;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.field-grid.is-three-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
  position: relative;
  display: grid;
  gap: 10px;
}

.field > span {
  color: rgba(255, 255, 255, 0.72);
  font: 400 18px/1 "Roboto", "Noto Sans TC", Arial, Helvetica, sans-serif;
  letter-spacing: normal;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 0;
  outline: none;
  padding: 5px 0 13px;
  background: transparent;
  color: var(--white);
  font: 400 16px/1.4 "Roboto", "Noto Sans TC", Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  transition:
    border-color 420ms ease,
    color 420ms ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.field select {
  appearance: none;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.65) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.65) 50%, transparent 50%);
  background-position:
    calc(100% - 7px) 45%,
    100% 45%;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
}

.field select option {
  background: #242424;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.note-section {
  padding-bottom: 28px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
}

.field small {
  display: none;
  color: #dc4e51;
  font: 500 11px/1.4 var(--font-geist-mono);
  letter-spacing: 0.06em;
}

.field.is-invalid small {
  display: block;
}

.field.is-invalid input {
  border-color: #dc4e51;
}

.field-wide {
  grid-column: 1 / -1;
}

.wheel-selector {
  position: relative;
}

.wheel-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.wheel-option {
  position: relative;
  min-height: 150px;
  display: grid;
  align-content: space-between;
  padding: 20px;
  overflow: hidden;
  background: #222;
  cursor: pointer;
  transition:
    background-color 520ms ease,
    color 520ms ease;
}

.wheel-option::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(105deg, #b52228 0%, #651115 54%, #090909 100%);
  transform: translateX(-20%);
  transition:
    opacity 520ms ease,
    transform 680ms cubic-bezier(0.16, 1, 0.3, 1);
}

.wheel-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.wheel-option > span {
  position: relative;
  z-index: 1;
}

.option-number {
  color: rgba(255, 255, 255, 0.34);
  font: 600 9px/1 var(--font-geist-mono);
  letter-spacing: 0.16em;
}

.option-name {
  align-self: end;
  font-size: clamp(18px, 1.8vw, 28px);
  font-weight: 800;
  line-height: 0.92;
}

.option-mark {
  position: absolute !important;
  right: 18px;
  top: 17px;
  opacity: 0;
  transition: opacity 400ms ease;
}

.wheel-option:has(input:checked)::before {
  opacity: 1;
  transform: translateX(0);
}

.wheel-option:has(input:checked) .option-number {
  color: rgba(255, 255, 255, 0.72);
}

.wheel-option:has(input:checked) .option-mark {
  opacity: 1;
}

.wheel-option:focus-within {
  outline: 1px solid var(--gold);
  outline-offset: -1px;
}

.choice-error {
  position: absolute;
  right: 0;
  bottom: 24px;
  display: none;
  margin: 0;
  color: #dc4e51;
  font: 500 11px/1.3 var(--font-geist-mono);
}

.wheel-selector.is-invalid .choice-error {
  display: block;
}

.form-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 32px;
}

.consent {
  display: flex;
  max-width: 520px;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.48);
  font: 500 11px/1.65 var(--font-geist-mono);
  letter-spacing: 0.05em;
}

.consent input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: #b52228;
}

.consent.is-invalid {
  color: #dc4e51;
}

.submit-loader {
  position: absolute;
  top: calc(50% + 16px);
  right: 0;
  width: 40px;
  height: 40px;
  transform: translateY(-50%);
  pointer-events: none;
}

.wheel-form.is-submitting .submit-button {
  opacity: 0;
  pointer-events: none;
}

.submit-button {
  min-width: 230px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 0;
  padding: 22px 24px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  background: linear-gradient(105deg, #b52228, #76161a 64%, #130304);
  color: white;
  cursor: pointer;
  font: 700 13px/1 var(--font-geist-mono);
  letter-spacing: 0.16em;
  transition:
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 420ms ease;
}

.submit-button:hover {
  transform: translateX(5px);
  filter: brightness(1.16);
}

.form-result {
  display: none;
  min-height: 420px;
  align-content: center;
  padding: 70px 0;
}

.form-result > span {
  color: var(--white);
  font-size: clamp(38px, 5vw, 78px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.form-result p {
  max-width: 520px;
  margin: 22px 0 32px;
  color: rgba(255, 255, 255, 0.55);
  font: 500 13px/1.7 var(--font-geist-mono);
}

.reset-form {
  border: 0;
  border-bottom: 1px solid var(--gold);
  padding: 0 0 8px;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  font: 700 12px/1 var(--font-geist-mono);
  letter-spacing: 0.14em;
}

.wheel-form.is-submitted > :not(.form-result) {
  display: none;
}

.wheel-form.is-submitted .form-result {
  display: grid;
}

@keyframes wheel-arrive {
  from {
    opacity: 0;
    transform: translate3d(15%, 7%, 0) rotate(-28deg);
  }
}

@media (width < 1200px) {
  .inquiry-main {
    grid-template-columns: minmax(300px, 0.65fr) minmax(480px, 1.35fr);
  }

  .intro-copy {
    margin-left: 42px;
  }

  .form-section {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (width < 1200px) {
  .inquiry-shell {
    grid-template-rows: 1fr;
  }

  .inquiry-main {
    display: block;
  }

  .inquiry-intro {
    position: relative;
    min-height: 58svh;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .inquiry-index {
    top: 116px;
    left: 22px;
  }

  .intro-copy {
    width: calc(100% - 44px);
    margin: 0;
    padding: 27vh 22px 120px;
  }

  .intro-copy h1 {
    font-size: clamp(52px, 17vw, 86px);
  }

  .intro-note {
    width: min(100%, clamp(154px, 50.4vw, 255px));
    max-width: none;
  }

  .inquiry-wheel {
    right: -36%;
    bottom: -31%;
    width: min(72vh, 120vw);
  }

  .intro-footer {
    inset: auto 22px 20px;
  }

  .intro-footer span:first-child {
    display: none;
  }

  .form-panel {
    padding: 44px 22px 72px;
  }

  .form-heading {
    align-items: flex-start;
  }

  .required-note {
    text-align: right;
  }

  .form-section {
    padding: 38px 0;
  }

  .field-grid,
  .field-grid.is-three-column {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

  .wheel-options {
    grid-template-columns: 1fr;
  }

  .wheel-option {
    min-height: 96px;
  }

  .choice-error {
    position: static;
    margin-top: 12px;
  }

  .form-actions {
    grid-template-columns: 1fr;
  }

  .submit-button {
    width: 100%;
  }

  .submit-loader {
    right: 50%;
    width: 32px;
    height: 32px;
    transform: translate(50%, -50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .inquiry-wheel {
    animation: none;
  }
}

.form-error {
  margin-top: 16px;
  color: #dc4e51;
  font-size: 12px;
}

/* 繁中標題避免和必填提示互相擠壓。 */
.form-heading {
  flex-wrap: wrap;
  gap: 12px 20px;
}
.form-heading > div {
  min-width: 0;
}
.form-heading p {
  line-height: 1.4;
}
.form-heading .required-note {
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: auto;
}
