.inquiry-section {
  background: var(--field);
}

.inquiry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 960px;
  align-items: start;
  gap: clamp(40px, 7vw, 96px);
}

.inquiry-guide {
  position: sticky;
  top: 112px;
}

.inquiry-guide h2 {
  max-width: 13ch;
  margin: 0 0 var(--space-6);
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.process-steps {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--carbon);
  list-style: none;
  counter-reset: process;
}

.process-steps li {
  display: grid;
  grid-template-columns: 32px minmax(110px, 150px) 1fr;
  gap: var(--space-4);
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: process;
}

.process-steps li::before {
  color: var(--brand-red);
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-weight: 700;
  content: "0" counter(process);
}

.process-steps span {
  color: var(--steel);
}

.boundary-note {
  margin-top: var(--space-6);
  padding: var(--space-5);
  color: var(--paper);
  background: var(--carbon);
  border-left: 4px solid var(--brand-red);
}

.boundary-note p {
  margin: 6px 0 0;
  color: #d5d8da;
}

.inquiry-form-wrap {
  background: var(--paper);
  border-top: 4px solid var(--brand-red);
}

.inquiry-form {
  padding: clamp(24px, 5vw, 56px);
}

.inquiry-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0 0 var(--space-7);
  border: 0;
}

.inquiry-form fieldset + fieldset {
  padding-top: var(--space-6);
  border-top: 1px solid var(--carbon);
}

.inquiry-form legend {
  width: 100%;
  margin-bottom: var(--space-5);
  padding: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5) var(--space-4);
}

.form-field {
  display: grid;
  align-content: start;
  gap: 7px;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label,
.choice-fieldset legend {
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--carbon);
  background: var(--paper);
  border: 1px solid #7c8388;
  border-radius: 2px;
}

.form-field textarea {
  min-height: 132px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--brand-red);
}

.form-field [aria-invalid="true"] {
  border-color: var(--brand-red-dark);
  border-left-width: 4px;
}

.field-hint,
.field-error {
  margin: 0;
  font-size: .88rem;
  line-height: 1.5;
}

.field-hint {
  color: var(--steel);
}

.field-error {
  color: var(--brand-red-dark);
  font-weight: 700;
}

.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.choice-row label {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--paper);
  cursor: pointer;
}

.choice-row input,
.consent-field input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  accent-color: var(--brand-red);
}

.choice-fieldset .field-hint {
  margin-top: 10px;
}

.consent-field {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.consent-field > label {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
}

.form-submit-row {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.form-submit-row > span {
  max-width: 26em;
  color: var(--steel);
  font-size: .88rem;
}

.form-error-summary {
  margin-bottom: var(--space-6);
  padding: var(--space-5);
  color: var(--carbon);
  background: #f8e9eb;
  border-left: 4px solid var(--brand-red);
}

.form-error-summary h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.form-error-summary ul {
  margin: 0;
  padding-left: 22px;
}

.form-error-summary a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.demo-success {
  padding: clamp(28px, 5vw, 56px);
  border-top: 1px solid var(--line);
}

.demo-success h2 {
  max-width: 15ch;
  margin: 0 0 var(--space-4);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.12;
}

.demo-success .actions {
  align-items: center;
  margin-top: var(--space-5);
}

.internal-demo-page {
  background: #e5e7e8;
}

.internal-demo-shell {
  min-height: 100vh;
  padding: var(--space-6) 0 var(--space-9);
}

.internal-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.internal-toolbar h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.internal-toolbar p {
  max-width: 48em;
  margin: 10px 0 0;
  color: var(--steel);
}

.rfq-internal-meta {
  display: grid;
  grid-template-columns: 1fr;
  width: min(100%, 1080px);
  margin: 0 auto var(--space-5);
  color: var(--paper);
  background: var(--carbon);
  border-left: 4px solid var(--brand-red);
}

.rfq-internal-meta span {
  display: grid;
  gap: 4px;
  padding: 14px 18px;
}

.rfq-internal-meta strong {
  color: #bfc4c7;
  font: 700 .7rem/1.3 Bahnschrift, "Arial Narrow", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rfq-internal-meta b {
  font-size: .9rem;
}

.quotation-sheet {
  position: relative;
  width: min(100%, 1080px);
  min-height: 1180px;
  margin-inline: auto;
  padding: clamp(30px, 5vw, 62px);
  overflow: hidden;
  background: var(--paper);
  color: #111;
  box-shadow: 0 20px 60px rgb(15 23 42 / .12);
}

.quotation-brand {
  display: grid;
  grid-template-columns: 92px auto;
  justify-content: end;
  align-items: center;
  gap: 14px;
  min-height: 96px;
}

.quotation-brand img {
  width: 82px;
  max-height: 92px;
  object-fit: contain;
}

.quotation-brand-copy {
  display: grid;
  gap: 3px;
}

.quotation-brand-copy strong {
  font-size: 1.22rem;
}

.quotation-brand-copy b {
  font-size: 1rem;
}

.quotation-brand-copy span {
  font-size: .84rem;
}

.quotation-title {
  margin: 10px 0 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid #111;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  letter-spacing: .24em;
  text-align: center;
}

.quotation-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 8vw, 110px);
  margin: 0 0 8px;
}

.quotation-meta dl {
  margin: 0;
}

.quotation-meta dl > div {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  min-height: 30px;
  align-items: baseline;
  border-bottom: 0;
}

.quotation-meta dt {
  font-family: Georgia, "Times New Roman", serif;
  font-size: .93rem;
}

.quotation-meta dd {
  margin: 0;
  min-width: 0;
  font-size: .91rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.manual-placeholder {
  color: #777;
  font-weight: 400 !important;
}

.quotation-table-wrap {
  overflow-x: auto;
  border-block: 2px solid #111;
}

.quotation-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  table-layout: fixed;
}

.quotation-table th,
.quotation-table td {
  height: 54px;
  padding: 9px 8px;
  border: 0;
  border-bottom: 1px solid #c8c8c8;
  text-align: center;
}

.quotation-table tbody tr:first-child td {
  height: 92px;
  vertical-align: top;
}

.quotation-table thead th {
  height: 34px;
  color: #111;
  background: transparent;
  font-size: .95rem;
}

.quotation-table th:nth-child(1),
.quotation-table td:nth-child(1) { width: 8%; }
.quotation-table th:nth-child(2),
.quotation-table td:nth-child(2) { width: 48%; text-align: left; }
.quotation-table th:nth-child(3),
.quotation-table td:nth-child(3) { width: 9%; }
.quotation-table th:nth-child(4),
.quotation-table td:nth-child(4) { width: 10%; }
.quotation-table th:nth-child(5),
.quotation-table td:nth-child(5) { width: 12%; }
.quotation-table th:nth-child(6),
.quotation-table td:nth-child(6) { width: 13%; }

.quotation-table tfoot th,
.quotation-table tfoot td {
  height: 38px;
  border-bottom: 3px double #111;
  font-weight: 800;
}

.quotation-table tfoot th {
  text-align: right;
}

.quotation-table .manual-cell {
  background: #fffceb;
}

.quotation-terms {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px;
  padding: 14px 0 18px;
  border-bottom: 3px double #111;
  font-size: .82rem;
}

.quotation-terms ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 1.4rem;
}

.quotation-terms .term-important {
  color: #c40000;
  font-weight: 800;
}

.quotation-footer {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: 20px;
  padding-top: 10px;
  color: #333;
  border-top: 1px solid #999;
  font-size: .78rem;
  font-weight: 700;
}

@media (max-width: 820px) {
  .inquiry-layout,
  .internal-toolbar,
  .rfq-internal-meta {
    grid-template-columns: 1fr;
  }

  .inquiry-guide {
    position: static;
  }

  .internal-toolbar {
    align-items: start;
  }

}

@media (max-width: 560px) {
  .process-steps li,
  .form-grid,
  .choice-row,
  .quotation-meta {
    grid-template-columns: 1fr;
  }

  .process-steps li {
    gap: 4px;
  }

  .form-submit-row,
  .quotation-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .form-submit-row .button {
    width: 100%;
  }

  .quotation-brand {
    grid-template-columns: 58px auto;
    justify-content: start;
  }

  .quotation-brand img {
    width: 54px;
    height: 64px;
  }

  .quotation-meta {
    gap: 0;
  }

  .quotation-meta dl + dl {
    margin-top: 10px;
  }

  .quotation-terms {
    grid-template-columns: 1fr;
  }
}

@media print {
  .internal-demo-page {
    background: var(--paper);
  }

  .internal-toolbar,
  .skip-link {
    display: none !important;
  }

  .internal-demo-shell,
  .quotation-sheet {
    min-height: auto;
    padding: 0;
  }

  .quotation-sheet {
    width: 100%;
    border-top: 0;
    box-shadow: none;
  }

}
