.hdm-lead-form {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 65px rgba(6, 106, 171, 0.12);
  padding: 32px;
  color: #0c0d0e;
  font-family: "Poppins", "Montserrat", Arial, sans-serif;
}

.hdm-lead-form__form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hdm-step {
  display: none;
  animation: fadeIn 200ms ease;
}

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

.hdm-step__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #5ec6e8;
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.hdm-step__title {
  margin: 0 0 20px;
  font-size: 1.4rem;
  line-height: 1.35;
  color: #0c0d0e;
}

.hdm-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.hdm-card-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.hdm-card {
  border: 1px solid rgba(12, 13, 14, 0.15);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  background: #f9fbfc;
  position: relative;
  overflow: hidden;
}

.hdm-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.hdm-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  min-height: 170px;
  text-align: center;
}

.hdm-card__media img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.hdm-card__text {
  font-weight: 600;
  font-size: 1rem;
  color: #0c0d0e;
}

.hdm-card__text small {
  display: block;
  font-weight: 400;
  color: rgba(12, 13, 14, 0.6);
  margin-top: 4px;
}

.hdm-card input:focus-visible + .hdm-card__body,
.hdm-card input:checked + .hdm-card__body {
  outline: none;
  border-radius: 12px;
  box-shadow: 0 0 0 3px rgba(6, 106, 171, 0.25);
}

.hdm-card input:checked + .hdm-card__body {
  background: rgba(6, 106, 171, 0.06);
}

.hdm-card--compact .hdm-card__body {
  min-height: 110px;
  padding: 12px;
  gap: 8px;
}

.hdm-card--compact .hdm-card__media img {
  width: 48px;
  height: 48px;
}

.hdm-card--compact .hdm-card__text {
  font-size: 0.9rem;
}

.hdm-card--compact .hdm-card__text small {
  font-size: 0.75rem;
}

.hdm-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hdm-field__label {
  font-weight: 600;
  color: #0c0d0e;
}

.hdm-field__hint {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: rgba(12, 13, 14, 0.65);
}

.hdm-field input {
  border: 1px solid rgba(12, 13, 14, 0.2);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.hdm-field input:focus {
  outline: none;
  border-color: #066aab;
  box-shadow: 0 0 0 3px rgba(6, 106, 171, 0.2);
}

.hdm-step__legal {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(12, 13, 14, 0.7);
}

.hdm-step__notice {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(228, 146, 52, 0.12);
  color: #e49234;
  font-weight: 600;
}

.hdm-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hdm-form__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.hdm-btn {
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.hdm-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.hdm-btn--primary {
  background: #066aab;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(6, 106, 171, 0.2);
}

.hdm-btn--ghost {
  background: transparent;
  color: #066aab;
  border: 1px solid rgba(6, 106, 171, 0.4);
}

.hdm-btn:not(:disabled):hover {
  transform: translateY(-1px);
}

.hdm-form__error {
  background: rgba(214, 54, 55, 0.1);
  color: #d63637;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
}

@media (max-width: 767px) {
  .hdm-lead-form {
    padding: 24px;
  }

  .hdm-card__body {
    min-height: 150px;
  }

  .hdm-form__actions {
    justify-content: stretch;
  }

  .hdm-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

