/* ============================================================
   Template cards
   Two-up grid of picture-led options (step 2). Selection shows
   a filled check in the top-right rather than a radio.
   ============================================================ */

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 680px;
}

.template-card {
  text-align: left;
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: 13px;
  padding: 18px;
  cursor: pointer;
  font: inherit;
  transition: all .15s;
}

.template-card:hover {
  border-color: #3d4f60;
}

.template-card.is-selected {
  background: rgba(20, 184, 166, .06);
  border-color: var(--accent);
}

.template-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.template-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1b2734;
  color: var(--text-3);
}

.template-card.is-selected .template-card__icon {
  background: rgba(20, 184, 166, .14);
  color: var(--accent-lt);
}

/* Hidden until selected — display flips to flex below */
.template-card__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  display: none;
  align-items: center;
  justify-content: center;
}

.template-card.is-selected .template-card__check {
  display: flex;
}

.template-card__name {
  display: block;
  font-size: 15.5px;
  font-weight: 400;
  margin-top: 14px;
  color: var(--text-2);
}

.template-card__desc {
  display: block;
  font-size: 13px;
  color: var(--text-3);
  margin-top: 4px;
  line-height: 1.45;
  text-wrap: pretty;
}
