:root {
  --pb-red: #e1111a;
  --pb-red-dark: #bd0e16;
  --ink: #1d1d1f;
  --muted: #66666b;
  --line: #e7e7e8;
  --soft-red: #fff8f8;
  color-scheme: light;
  font-family: Arial, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 0;
  background: #fff;
  color: var(--ink);
}

body {
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

.inquiry-page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
}

.page-heading {
  margin: 0 0 22px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--pb-red);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.page-heading h1 span {
  color: #55555a;
  font-size: 0.64em;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

.page-heading > p:last-child {
  max-width: 720px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.inquiry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.86fr) minmax(270px, 1fr);
  gap: 26px;
  align-items: stretch;
}

.form-panel {
  min-width: 0;
  border: 1px solid var(--pb-red);
  border-radius: 12px;
  background: #fff;
  padding: 26px;
  box-shadow: 0 10px 26px rgba(75, 19, 22, 0.05);
}

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

.field {
  min-width: 0;
}

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

.field label {
  display: block;
  margin: 0 0 7px;
  color: #29292c;
  font-size: 0.9rem;
  font-weight: 700;
}

.field label span {
  color: var(--pb-red);
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--pb-red);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field input,
.field select {
  height: 45px;
  padding: 0 12px;
}

.field textarea {
  min-height: 132px;
  padding: 12px;
  line-height: 1.55;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #99999e;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--pb-red-dark);
  box-shadow: 0 0 0 3px rgba(225, 17, 26, 0.11);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  background: #fffafa;
  box-shadow: 0 0 0 2px rgba(225, 17, 26, 0.11);
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-status {
  margin: 18px 0 0;
  border: 1px solid #e8b9bb;
  border-radius: 7px;
  background: #fff7f7;
  padding: 11px 13px;
  color: #8c1116;
  font-size: 0.9rem;
  line-height: 1.5;
}

.submit-button {
  width: 100%;
  min-height: 48px;
  margin: 18px 0 0;
  border: 1px solid var(--pb-red);
  border-radius: 7px;
  background: var(--pb-red);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.submit-button:hover:not(:disabled) {
  border-color: var(--pb-red-dark);
  background: var(--pb-red-dark);
}

.submit-button:focus-visible {
  outline: 3px solid rgba(225, 17, 26, 0.2);
  outline-offset: 2px;
}

.submit-button:active:not(:disabled) {
  transform: translateY(1px);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.recaptcha-note {
  margin: 10px 0 0;
  color: #85858a;
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: center;
}

.recaptcha-note a {
  color: #68686c;
}

/* Hide reCAPTCHA badge while retaining Google's required disclosure below the form. */
.grecaptcha-badge {
  visibility: hidden !important;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  border: 1px solid var(--pb-red);
  border-radius: 12px;
  background: linear-gradient(145deg, #fff 18%, var(--soft-red) 100%);
  padding: 26px;
  box-shadow: 0 10px 26px rgba(75, 19, 22, 0.07);
}

.pb-brand {
  display: flex;
  min-width: 0;
  margin: 0 0 24px;
  align-items: center;
  gap: 13px;
}

.pb-logo {
  display: block;
  flex: 0 0 auto;
  width: 114px;
  max-width: 36%;
  height: auto;
  object-fit: contain;
}

.pb-brand-copy,
.hanna-brand-copy {
  min-width: 0;
}

.pb-brand-copy {
  max-width: 9.5rem;
}

.hanna-brand-copy {
  max-width: 15rem;
}

.pb-brand-copy strong,
.pb-brand-copy span,
.hanna-brand-copy strong,
.hanna-brand-copy span {
  display: block;
}

.pb-brand-copy strong {
  color: #27272a;
  font-size: 0.78rem;
  line-height: 1.2;
  letter-spacing: 0.075em;
  white-space: nowrap;
}

.pb-brand-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.service-card h2 {
  margin: 0;
  font-size: 1.28rem;
}

.service-card ul {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-evenly;
  min-height: 0;
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  margin: 0;
  padding: 8px 0 8px 19px;
  border-bottom: 1px solid rgba(225, 17, 26, 0.1);
  color: #3f3f43;
  font-size: 0.91rem;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.service-card li::before {
  position: absolute;
  top: 15px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pb-red);
  content: "";
}

.hanna-brand {
  display: flex;
  min-width: 0;
  border-top: 1px solid rgba(225, 17, 26, 0.18);
  padding-top: 18px;
  align-items: center;
  gap: 14px;
}

.hanna-logo-wrap {
  position: relative;
  display: inline-flex;
  flex: 0 0 48px;
  width: 48px;
  align-items: center;
}

.hanna-logo {
  display: block;
  width: 48px;
  height: auto;
  object-fit: contain;
}

.hanna-registered {
  position: absolute;
  top: 0;
  right: -5px;
  transform: translate(35%, -35%);
  color: #343438;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.hanna-brand-copy strong {
  margin-bottom: 4px;
  color: #29292c;
  font-size: 0.82rem;
  line-height: 1.35;
  white-space: nowrap;
}

.hanna-brand-copy span {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.success-panel {
  border: 1px solid #b9d9bf;
  border-radius: 12px;
  background: #f7fcf8;
  padding: 38px 24px;
  text-align: center;
}

.success-mark {
  display: grid;
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #21853a;
  color: #fff;
  font-size: 1.5rem;
  place-items: center;
}

.success-panel h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.success-panel p {
  max-width: 530px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.65;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 820px) {
  .inquiry-page {
    padding: 20px;
  }

  .inquiry-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-panel,
  .service-card {
    padding: 23px;
  }

  .service-card {
    height: auto;
  }

  .service-card ul {
    gap: 4px;
  }

}

@media (max-width: 560px) {
  .inquiry-page {
    padding: 16px;
  }

  .page-heading {
    margin-bottom: 18px;
  }

  .page-heading h1 span {
    display: block;
    margin-top: 4px;
    white-space: normal;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

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

  .form-panel,
  .service-card {
    padding: 19px;
  }

  .pb-brand {
    margin-bottom: 20px;
  }
}

@media (max-width: 360px) {
  .pb-brand {
    gap: 10px;
  }

  .pb-logo {
    width: 113px;
    max-width: none;
  }

  .hanna-brand {
    gap: 10px;
  }

  .hanna-brand-copy strong {
    font-size: 0.78rem;
  }

  .hanna-brand-copy span {
    font-size: 0.57rem;
  }
}

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