.hcd-cq {
  --hcd-cq-ink: #17251f;
  --hcd-cq-muted: #5f6f67;
  --hcd-cq-green: #184f39;
  --hcd-cq-green-dark: #103b2a;
  --hcd-cq-gold: #c9a54b;
  --hcd-cq-line: #dce4df;
  --hcd-cq-soft: #f5f8f6;
  box-sizing: border-box;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--hcd-cq-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(23, 37, 31, .08);
  color: var(--hcd-cq-ink);
}

.hcd-cq *,
.hcd-cq *::before,
.hcd-cq *::after {
  box-sizing: inherit;
}

.hcd-cq__eyebrow {
  margin: 0 0 8px;
  color: var(--hcd-cq-green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hcd-cq h2 {
  margin: 0 0 12px;
  color: var(--hcd-cq-ink);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.12;
}

.hcd-cq p {
  color: var(--hcd-cq-muted);
  line-height: 1.65;
}

.hcd-cq__intro {
  margin-bottom: 28px;
}

.hcd-cq__intro > p:last-child,
.hcd-cq--notice > p {
  margin-bottom: 0;
}

.hcd-cq__form {
  display: grid;
  gap: 20px;
}

.hcd-cq__field {
  display: grid;
  gap: 8px;
}

.hcd-cq__field label {
  color: var(--hcd-cq-ink);
  font-weight: 750;
}

.hcd-cq__field label span {
  color: var(--hcd-cq-muted);
  font-size: .84em;
  font-weight: 500;
}

.hcd-cq input[type="text"],
.hcd-cq input[type="file"],
.hcd-cq select,
.hcd-cq textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #bdc9c2;
  border-radius: 11px;
  background: #fff;
  color: var(--hcd-cq-ink);
  font: inherit;
}

.hcd-cq textarea {
  min-height: 130px;
  resize: vertical;
}

.hcd-cq input:focus,
.hcd-cq select:focus,
.hcd-cq textarea:focus,
.hcd-cq button:focus,
.hcd-cq a:focus {
  outline: 3px solid rgba(201, 165, 75, .42);
  outline-offset: 2px;
  border-color: var(--hcd-cq-green);
}

.hcd-cq__hint,
.hcd-cq__fineprint {
  margin: 0;
  font-size: 13px;
}

.hcd-cq__assurance {
  padding: 16px 18px;
  border-left: 4px solid var(--hcd-cq-gold);
  border-radius: 10px;
  background: var(--hcd-cq-soft);
}

.hcd-cq__assurance p {
  margin: 5px 0 0;
}

.hcd-cq__status {
  display: none;
  padding: 13px 15px;
  border-radius: 10px;
  background: var(--hcd-cq-soft);
  color: var(--hcd-cq-ink);
  line-height: 1.5;
}

.hcd-cq__status.is-visible {
  display: block;
}

.hcd-cq__status.is-error {
  border: 1px solid #d9a4a4;
  background: #fff4f4;
  color: #7a2020;
}

.hcd-cq__status.is-success {
  border: 1px solid #99c5ab;
  background: #f0faf4;
  color: #174c31;
}

.hcd-cq__receipt {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #b9d2c2;
  border-radius: 10px;
  background: #f3f9f5;
  color: var(--hcd-cq-ink);
}

.hcd-cq__receipt[hidden] {
  display: none;
}

.hcd-cq__receipt span {
  color: var(--hcd-cq-muted);
  font-size: 14px;
  line-height: 1.5;
}

.hcd-cq__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.hcd-cq__button--primary {
  background: var(--hcd-cq-green);
  color: #fff;
}

.hcd-cq__button--primary:hover {
  background: var(--hcd-cq-green-dark);
  color: #fff;
  transform: translateY(-1px);
}

.hcd-cq__button--secondary {
  border-color: var(--hcd-cq-line);
  background: #fff;
  color: var(--hcd-cq-green);
}

.hcd-cq__button[disabled] {
  cursor: wait;
  opacity: .65;
  transform: none;
}

.hcd-cq__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hcd-cq--notice .hcd-cq__fineprint {
  margin-top: 16px;
}

@media (max-width: 560px) {
  .hcd-cq {
    border-radius: 16px;
  }

  .hcd-cq__actions,
  .hcd-cq__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hcd-cq__button {
    transition: none;
  }
}
