
/* BOOK SELECTION DESIGN */

.book-selection {
  --primary: #bd4b00;
  --primary-border: #d45200;
  --heading: #07152f;
  --muted: #405779;
  --border: #e1e5eb;

  background: #fff;
  color: var(--heading);
  font-family: inherit;
}

.book-selection *,
.book-selection *::before,
.book-selection *::after {
  box-sizing: border-box;
}

/* SECTIONS */

.book-selection .container {
  max-width: 1140px;
}

.selection-section {
  padding: 4px 0 32px;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2 {
  font-size: 25px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.7px;
  color: #07152f;
  margin: 0 0 10px;
}

.section-heading p {
  color: #405779;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* SELECTION CARDS */

.selection-card {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  min-height: 233px;
  height: 100%;
  padding: 24px;
  border: 2px solid #e2e5eb;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.selection-card:hover {
  border-color: #d45200;
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
}

.selection-card.selected {
  border-color: #d45200;
  background: #fffdf8;
}

.selection-card input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.selection-card:focus-within {
  outline: 3px solid rgba(212,82,0,.2);
  outline-offset: 3px;
}

/* CHECKMARK */

.selection-check {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #a7b0bd;
  font-size: 15px;
  font-weight: 700;
}

.selection-card.selected .selection-check {
  background: #bd4b00;
  color: #fff;
}

/* ICONS */

.selection-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 12px;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
}

.english-icon,
.paperback-icon {
  background: #bd4b00;
}

.hindi-icon {
  background: #ff4800;
}

.ebook-icon {
  background: #2059ff;
}

/* CARD CONTENT */

.selection-title {
  display: block;
  margin-bottom: 6px;
  color: #07152f;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.selection-description {
  display: block;
  margin-bottom: 16px;
  color: #405779;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
}

.selection-footer {
  display: block;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #e0e5eb;
  color: #a94000;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.65;
}

.ebook-card .selection-footer {
  color: #1642d9;
}

.mobile-only {
  display: none;
}

/* SECTION DIVIDER */

.section-divider {
  height: 1px;
  background: #eef0f3;
  margin: 0 0 26px;
}

/* PUBLICATION FORMAT */

.format-section {
  padding-top: 0;
}

.section-badge {
  display: inline-block;
  padding: 5px 14px;
  margin-bottom: 10px;
  background: #fff0bd;
  color: #a53b00;
  border-radius: 30px;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
}

.format-section .selection-card {
  min-height: 260px;
}

/* CONTINUE BUTTON */

.continue-wrapper {
  margin-top: 40px;
}

.continue-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 45px;
  padding: 12px 32px;
  border: none;
  border-radius: 9px;
  background: #bd4b00;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,.12);
  transition: background .2s ease;
}

.continue-btn:hover,
.continue-btn:focus {
  background: #fbb33c;
  color: #fff;
}

.continue-btn span {
  font-size: 18px;
  line-height: 1;
}

/* RESPONSIVE */

@media (max-width: 767px) {
  .selection-section {
    padding: 20px 0 30px;
  }

  .section-heading h2 {
    font-size: 21px;
  }

  .section-heading p {
    font-size: 13px;
  }

  .selection-card,
  .format-section .selection-card {
    min-height: 220px;
    padding: 20px;
  }

  .selection-icon {
    width: 44px;
    height: 44px;
  }

  .continue-wrapper {
    margin-top: 30px;
  }

  .continue-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .selection-card,
  .continue-btn {
    transition: none;
  }
}
