.card {
  margin-bottom: 28px;
  padding: 36px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(28, 27, 25, 0.04);
}

.card h1,
.card h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.25;
}

.card h3 {
  margin: 24px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 600;
}

.section-label,
.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--stone);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.section-label { margin-bottom: 12px; }
.tag.success { background: var(--success-bg); color: var(--success); }
.tag.warning { background: var(--warning-bg); color: var(--warning); }
.tag.dark { background: var(--ink); color: var(--white); }

.field-label {
  display: block;
  margin: 19px 0 8px;
  font-size: 12.5px;
  font-weight: 600;
}

.text-input,
.select-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid #d6d0c7;
  border-radius: 999px;
  outline: 0;
  background: var(--white);
  font-size: 14px;
}

.text-input:focus,
.select-input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(28, 27, 25, 0.08);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 4px;
}

.chip {
  min-height: 41px;
  padding: 9px 18px;
  border: 1px solid #d6d0c7;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 13.5px;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.chip:hover { border-color: var(--ink); }
.chip.is-selected { border-color: var(--ink); background: var(--ink); color: var(--white); font-weight: 500; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 30px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: background 160ms ease, color 160ms ease;
}

.button:hover { background: var(--ink-soft); }
.button.secondary { background: transparent; color: var(--ink); }
.button.secondary:hover { background: var(--ink); color: var(--white); }
.button.small { min-height: 38px; padding: 8px 18px; font-size: 12px; }
.button:disabled { cursor: not-allowed; opacity: 0.4; }

.notice {
  margin-top: 14px;
  padding: 15px 18px;
  border-radius: var(--radius);
  background: var(--warning-bg);
  color: #6b5a28;
  font-size: 12.5px;
  line-height: 1.65;
}

.notice.neutral { background: var(--paper); color: var(--stone); }
.notice.success { background: var(--success-bg); color: var(--success); }

.metric-bar {
  height: 6px;
  margin: 6px 0 13px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--ice);
}

.metric-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
}

.metric-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
}

.product-card,
.choice-card,
.name-card {
  position: relative;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.product-card,
.choice-card { cursor: pointer; }
.product-card.is-selected,
.choice-card.is-selected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }

.product-card img,
.choice-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  border-radius: 4px;
  object-fit: cover;
  background: var(--ice);
}

.product-card h3,
.choice-card h3,
.name-card h3 {
  margin: 10px 0 6px;
  padding: 0;
  border: 0;
  font-size: 16px;
}

.price {
  margin-top: 12px;
  font-size: 13px;
}

.price strong { font-size: 18px; font-weight: 600; }

.data-table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table td,
.data-table th {
  padding: 10px 6px;
  border-bottom: 1px solid var(--ice);
  text-align: left;
}

.data-table td:last-child,
.data-table th:last-child { text-align: right; }
.data-table .total td { border-top: 1.5px solid var(--ink); color: var(--ink); font-size: 14.5px; font-weight: 700; }

.progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--ice);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
  transition: width 400ms ease;
}

.timeline { list-style: none; }
.timeline li { display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--ice); font-size: 13.5px; }
.timeline-number { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--stone); font-size: 12px; font-weight: 600; }
.timeline li.is-current .timeline-number { border-color: var(--ink); background: var(--ink); color: var(--white); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(28, 27, 25, 0.56);
}

.modal {
  width: min(100%, 440px);
  padding: 26px;
  border-radius: 8px;
  background: var(--white);
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  background: rgba(242, 238, 235, 0.92);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.loading-overlay::before {
  content: "";
  width: 26px;
  height: 26px;
  margin-right: 12px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.inquiry-modal { z-index: 250; padding: 20px; overflow-y: auto; }
.inquiry-dialog { width: min(640px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; }
.inquiry-dialog h2 { font-size: 24px; line-height: 1.4; margin: 12px 0 24px; }
.inquiry-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.inquiry-dialog label { display: block; font-size: 13px; }
.inquiry-dialog input:not([type="checkbox"]), .inquiry-dialog textarea { display: block; width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 5px; padding: 12px; margin-top: 7px; font: inherit; color: var(--ink); background: var(--white); }
.inquiry-message { margin-top: 16px; }
.inquiry-dialog textarea { resize: vertical; }
.inquiry-dialog .inquiry-consent { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0 0; line-height: 1.7; color: var(--muted); font-size: 12px; }
.inquiry-consent input { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 3px; accent-color: var(--ink); }
.inquiry-status { min-height: 24px; margin: 16px 0; font-size: 13px; overflow-wrap: anywhere; }
.inquiry-dialog .button-row { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
@media (max-width: 480px) { .inquiry-fields { grid-template-columns: minmax(0, 1fr); } .inquiry-dialog h2 { font-size: 21px; } }

@media (max-width: 800px) {
  .card { padding: 24px 20px; }
  .card h1, .card h2 { font-size: 23px; }
  .button-row .button { width: 100%; }
}
