/* Format step: chosen cover on the left, two sends on the right. */

.choose-format-grid {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 40px 56px;
  align-items: start;
}

.choose-format-preview {
  position: sticky;
  top: 96px;
  width: 100%;
}

.choose-format-preview .cover {
  width: 100%;
}

.choose-format-pick .compose-steps {
  margin-bottom: 22px;
}

.choose-format-pick h1 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 8px;
}

.choose-format-pick .lede {
  margin-bottom: 28px;
}

.choose-format-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.choose-format-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.choose-format-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.choose-format-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 168px;
  padding: 28px 22px 26px;
  border: 2px solid rgba(58, 24, 79, 0.12);
  border-radius: 18px;
  background: var(--white);
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.choose-format-option:hover .choose-format-card {
  border-color: rgba(54, 28, 73, 0.35);
}

.choose-format-option:has(input:checked) .choose-format-card,
.choose-format-option input:focus-visible + .choose-format-card {
  border-color: var(--purple);
  background: #f6f1fb;
  box-shadow: 0 0 0 3px rgba(54, 28, 73, 0.08);
}

.choose-format-card strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.choose-format-card em {
  font-style: normal;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}

.choose-format-pick .compose-nav {
  margin-top: 24px;
}

@media (max-width: 800px) {
  .choose-format-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .choose-format-preview {
    position: static;
    width: min(220px, 100%);
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  .choose-format-options {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .choose-format-card {
    min-height: 0;
    padding: 22px 18px 20px;
    align-items: flex-start;
    text-align: left;
  }

  .choose-format-card strong {
    font-size: 18px;
  }

  .choose-format-card em {
    font-size: 15px;
  }
}
