.hddd-wrap {
  --hddd-accent: #3155e7;
  --hddd-ink: #233751;
  --hddd-muted: #6f8095;
  --hddd-line: #dbe3ee;
  --hddd-soft: #f6f8fb;
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--hddd-ink);
  font-family: inherit;
}

.hddd-wrap [hidden],
.hddd-form [hidden] {
  display: none !important;
}

.hddd-form {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hddd-estimate {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  color: var(--hddd-muted);
  font-size: 14px;
}

.hddd-estimate span,
.hddd-draft-note span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--hddd-accent) 12%, white);
  color: var(--hddd-accent);
  font-weight: 900;
}

.hddd-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  padding: 0;
  margin: 0 0 38px;
  list-style: none;
}

.hddd-progress li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: #91a0b2;
  font-size: 14px;
  font-weight: 750;
}

.hddd-progress li::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -12px;
  left: 0;
  height: 3px;
  border-radius: 4px;
  background: #e6ebf2;
}

.hddd-progress b {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border-radius: 50%;
  background: #edf1f6;
  color: #8795a8;
  font-size: 14px;
}

.hddd-progress .is-active,
.hddd-progress .is-done {
  color: var(--hddd-ink);
}

.hddd-progress .is-active b,
.hddd-progress .is-done b,
.hddd-progress .is-active::after,
.hddd-progress .is-done::after {
  background: var(--hddd-accent);
  color: #fff;
}

.hddd-step {
  display: none;
  width: 100%;
  animation: hddd-in .22s ease;
}

.hddd-step.is-active {
  display: block;
}

.hddd-step h3 {
  margin: 0 0 6px;
  color: var(--hddd-ink);
  font-size: clamp(22px, 3vw, 29px);
  line-height: 1.2;
}

.hddd-help {
  margin: 0 0 24px;
  color: var(--hddd-muted);
  font-size: 15px;
}

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

.hddd-grid > label,
.hddd-form > section > label {
  display: block;
  min-width: 0;
  margin: 0;
  color: var(--hddd-ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}

.hddd-grid > label > small {
  float: right;
  color: var(--hddd-muted);
  font-size: 14px;
  font-weight: 500;
}

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

.hddd-form em {
  display: inline !important;
  margin: 0 0 0 2px !important;
  color: #d43d47;
  font-style: normal;
  line-height: inherit;
  vertical-align: baseline;
}

.hddd-form input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.hddd-form select,
.hddd-form textarea {
  display: block;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 7px 0 0;
  border: 1px solid #cdd7e4;
  border-radius: 8px;
  background: #fff;
  color: var(--hddd-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  outline: none;
  box-shadow: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.hddd-form input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.hddd-form select {
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 13px !important;
}

.hddd-form textarea {
  min-height: 170px;
  padding: 12px 13px !important;
  resize: vertical;
}

.hddd-form input:focus,
.hddd-form select:focus,
.hddd-form textarea:focus {
  border-color: var(--hddd-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hddd-accent) 14%, transparent);
}

.hddd-form .has-error input:not([type="radio"]),
.hddd-form .has-error select,
.hddd-form .has-error textarea,
.hddd-form .hddd-space-grid.has-error .hddd-space-card {
  border-color: #d43d47;
}

.hddd-space-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0 0 24px;
  border: 0;
}

.hddd-space-grid > label {
  display: block;
  margin: 0;
  cursor: pointer;
}

.hddd-space-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.hddd-space-card {
  position: relative;
  display: flex;
  min-height: 148px;
  height: 100%;
  box-sizing: border-box;
  flex-direction: column;
  align-items: flex-start;
  padding: 17px;
  border: 1px solid var(--hddd-line);
  border-radius: 12px;
  background: #fff;
  color: var(--hddd-ink);
  transition: border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.hddd-space-card svg {
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  color: var(--hddd-accent);
}

.hddd-space-card strong {
  display: block;
  font-size: 17px;
  line-height: 1.25;
}

.hddd-space-card small {
  display: block;
  margin-top: 5px;
  color: var(--hddd-muted);
  font-size: 14px;
  font-weight: 450;
  line-height: 1.35;
}

.hddd-space-card i {
  position: absolute;
  top: 10px;
  right: 10px;
  display: none;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--hddd-accent);
  color: #fff;
  font-size: 14px;
  font-style: normal;
}

.hddd-space-grid label:hover .hddd-space-card {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--hddd-accent) 45%, var(--hddd-line));
  box-shadow: 0 8px 24px rgba(28, 47, 76, .08);
}

.hddd-space-grid input:focus-visible + .hddd-space-card {
  outline: 3px solid color-mix(in srgb, var(--hddd-accent) 25%, transparent);
  outline-offset: 2px;
}

.hddd-space-grid input:checked + .hddd-space-card {
  border-color: var(--hddd-accent);
  background: color-mix(in srgb, var(--hddd-accent) 6%, white);
  box-shadow: inset 0 0 0 1px var(--hddd-accent);
}

.hddd-space-grid input:checked + .hddd-space-card i {
  display: grid;
}

.hddd-space-grid .hddd-space-other {
  grid-column: 1 / -1;
}

.hddd-space-other span {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid var(--hddd-line);
  border-radius: 999px;
  color: var(--hddd-muted);
  font-size: 15px;
  font-weight: 650;
}

.hddd-space-other input:checked + span {
  border-color: var(--hddd-accent);
  background: color-mix(in srgb, var(--hddd-accent) 8%, white);
  color: var(--hddd-accent);
}

.hddd-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0 0 22px;
  border: 0;
}

.hddd-choice legend {
  width: 100%;
  margin: 0 0 7px;
  color: var(--hddd-ink);
  font-size: 14px;
  font-weight: 750;
}

.hddd-choice label {
  display: block;
  margin: 0;
  cursor: pointer;
}

.hddd-choice input {
  position: absolute;
  opacity: 0;
}

.hddd-choice span {
  display: block;
  padding: 10px 15px;
  border: 1px solid var(--hddd-line);
  border-radius: 999px;
  background: #fff;
  color: #53647a;
  font-size: 14px;
  font-weight: 700;
}

.hddd-choice input:checked + span {
  border-color: var(--hddd-accent);
  background: var(--hddd-accent);
  color: #fff;
}

.hddd-drop {
  position: relative;
  display: flex !important;
  min-height: 118px;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 22px 0 12px !important;
  padding: 22px;
  overflow: hidden;
  border: 2px dashed #c9d4e2;
  border-radius: 10px;
  background: var(--hddd-soft);
  text-align: center;
  cursor: pointer;
}

.hddd-drop:hover {
  border-color: var(--hddd-accent);
}

.hddd-drop input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.hddd-drop-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: var(--hddd-accent);
  font-size: 22px;
}

.hddd-drop b {
  color: var(--hddd-ink);
  font-size: 15px;
}

.hddd-drop > span:last-child {
  color: var(--hddd-muted);
  font-size: 12px;
  font-weight: 450;
}

.hddd-files {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.hddd-file {
  position: relative;
  display: flex;
  min-width: 0;
  height: 88px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--hddd-line);
  border-radius: 9px;
  background: #eef2f7;
}

.hddd-file img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hddd-file > b {
  color: var(--hddd-accent);
}

.hddd-file small {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  padding: 5px 7px;
  background: rgba(20, 33, 61, .82);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hddd-file button {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  width: 25px;
  height: 25px;
  min-height: 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 33, 61, .88);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.hddd-draft-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0 0;
  color: var(--hddd-muted);
  font-size: 12px;
}

.hddd-consent {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px !important;
  margin: 24px 0 0 !important;
  font-size: 13px !important;
  font-weight: 450 !important;
  line-height: 1.55 !important;
}

.hddd-consent input {
  width: 17px !important;
  height: 17px !important;
  min-height: 0 !important;
  flex: 0 0 17px;
  margin: 2px 0 0 !important;
}

.hddd-summary {
  margin-top: 22px;
  padding: 18px;
  border-radius: 10px;
  background: var(--hddd-soft);
}

.hddd-summary h4 {
  margin: 0 0 10px;
  font-size: 16px;
}

.hddd-summary p {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 12px;
  margin: 6px 0;
  font-size: 13px;
}

.hddd-summary b {
  color: var(--hddd-muted);
}

.hddd-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
}

.hddd-actions button {
  min-height: 46px;
  appearance: none;
  padding: 0 22px;
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}

.hddd-actions button:hover {
  transform: translateY(-1px);
}

.hddd-actions button:disabled {
  opacity: .6;
  cursor: wait;
}

.hddd-back {
  background: #edf1f6;
  color: var(--hddd-ink);
}

.hddd-next,
.hddd-submit {
  margin-left: auto;
  background: var(--hddd-accent);
  color: #fff;
}

.hddd-submit.is-loading::after {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-left: 9px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -2px;
  animation: hddd-spin .7s linear infinite;
}

.hddd-alert {
  margin: 0 0 20px;
  padding: 11px 13px;
  border: 1px solid #f1c0c4;
  border-radius: 8px;
  background: #fff2f3;
  color: #a42c35;
  font-size: 14px;
}

.hddd-success {
  width: 100%;
  box-sizing: border-box;
  padding: 48px 24px;
  background: transparent;
  text-align: center;
}

.hddd-success > span {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #dcf7e8;
  color: #16854c;
  font-size: 32px;
  font-weight: 900;
}

.hddd-success h2 {
  margin: 20px 0 8px;
  color: var(--hddd-ink);
  font-size: 30px;
}

.hddd-success p {
  max-width: 650px;
  margin: 7px auto;
  color: var(--hddd-muted);
}

.hddd-hp {
  position: absolute !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes hddd-spin { to { transform: rotate(360deg); } }
@keyframes hddd-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hddd-space-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .hddd-estimate { align-items: flex-start; font-size: 12px; }
  .hddd-progress { gap: 7px; margin-bottom: 34px; }
  .hddd-progress li { justify-content: center; }
  .hddd-progress li span { display: none; }
  .hddd-grid { grid-template-columns: 1fr; gap: 16px; }
  .hddd-wide { grid-column: auto; }
  .hddd-space-grid { gap: 9px; }
  .hddd-space-card { min-height: 116px; padding: 13px; }
  .hddd-space-card svg { width: 26px; height: 26px; margin-bottom: 10px; }
  .hddd-space-card small { display: none; }
  .hddd-space-card strong { font-size: 14px; }
  .hddd-summary p { grid-template-columns: 1fr; gap: 1px; }
  .hddd-actions button { flex: 1; padding: 0 12px; }
  .hddd-choice { display: grid; grid-template-columns: 1fr; }
  .hddd-choice span { text-align: center; }
}

@media (max-width: 360px) {
  .hddd-space-grid { grid-template-columns: 1fr; }
}
