/* E.ON answer-card visual – matches eon-ui-answer-card */

.hea-form {
  --hea-ink: #262626;
  --hea-muted: #39393a;
  --hea-line: #e5e5e5;
  --hea-border: #262626;
  --hea-border-hover: #0075c2;
  --hea-blue: #0075c2;
  --hea-blue-dark: #00568f;
  --hea-red: #eb1d0a;
  --card-width: 240px;
  max-width: 640px;
  margin: 0;
  padding: 8px 0 24px;
  font-family: "EONBrixSans", Arial, Geneva, Helvetica, sans-serif;
  color: var(--hea-ink);
}

.hea-form__title {
  margin: 0 0 12px;
  font-family: "EONBrixSans", Arial, Geneva, Helvetica, sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--hea-ink);
  letter-spacing: 0;
}

.hea-form__lead {
  margin: 0 0 40px;
  font-family: "EONBrixSans", Arial, Geneva, Helvetica, sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
  font-weight: 400;
  color: var(--hea-ink);
}

.hea-form__error {
  background: #fde8ea;
  color: #8a1018;
  border: 1px solid #f3b4ba;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 1rem;
}

.hea-form__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(148px, var(--card-width)));
  gap: 32px;
  margin-bottom: 40px;
  align-items: stretch;
}

@media (max-width: 560px) {
  .hea-form__cards {
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hea-form__card {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  width: 100%;
  min-height: 220px;
  margin: 0;
  padding: 24px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  outline: 2px solid var(--hea-border);
  outline-offset: -2px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: center;
  transition: outline-color 0.15s ease, outline-width 0.15s ease;
}

.hea-form__card:hover {
  outline: 3px solid var(--hea-border-hover);
  outline-offset: -3px;
}

.hea-form__card.is-selected {
  outline: 3px solid var(--hea-blue);
  outline-offset: -3px;
}

.hea-form__card.is-selected:hover {
  outline-color: var(--hea-blue-dark);
}

.hea-form__card-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--hea-blue);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  z-index: 1;
}

.hea-form__card.is-selected .hea-form__card-check {
  display: flex;
}

.hea-form__card-check svg {
  width: 14px;
  height: 14px;
  display: block;
}

.hea-form__card-icon {
  position: relative;
  min-width: 96px;
  min-height: 96px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--hea-ink);
  flex-shrink: 0;
}

.hea-form__card-icon img,
.hea-form__card-icon svg {
  width: 72px;
  height: 72px;
  display: block;
}

.hea-form__card-divider {
  width: 100%;
  height: 1px;
  background: var(--hea-line);
  flex-shrink: 0;
  border: 0;
  margin: 0;
}

.hea-form__card-label {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "EONBrixSans", Arial, Geneva, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  color: var(--hea-ink);
  text-align: center;
}

.hea-form__card.is-selected .hea-form__card-label {
  font-weight: 700;
}

.hea-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hea-form__btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;
  min-height: 48px;
  padding: 12px 28px;
  font-family: "EONBrixSans", Arial, Geneva, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  background: var(--hea-red);
  color: #fff;
}

.hea-form__btn:hover {
  filter: brightness(0.95);
}

.hea-form__btn-chevron {
  display: inline-flex;
  margin-left: 2px;
}

.hea-form__btn-chevron svg {
  width: 18px;
  height: 18px;
  display: block;
}
