:root {
  --green: #40bf49;
  --dark: #0b0e0c;
  --cream: #f7f5ed;
  --line: #dfe5dd;
  --muted: #5d665f;
  --red: #ad2d10;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f3f5f1;
  color: var(--dark);
  font-family: Inter, Arial, sans-serif;
}
.shell {
  width: min(1180px, calc(100% - 36px));
  margin: auto;
}
.purchase-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.purchase-header__inner {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand img {
  width: 72px;
  display: block;
}
.back-link {
  color: var(--dark);
  font-weight: 800;
  text-decoration: none;
}
.purchase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(310px, 0.7fr);
  gap: 34px;
  align-items: start;
  padding: 48px 0 80px;
}
.eyebrow {
  margin: 0 0 10px;
  color: #148023;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.purchase-main > h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1;
  margin: 0 0 14px;
  letter-spacing: -2px;
}
.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 30px;
}
.form-card,
.result-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  margin-bottom: 22px;
  box-shadow: 0 14px 35px rgba(26, 42, 30, 0.06);
}
.section-title {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.section-title > span {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--green);
  display: grid;
  place-items: center;
  font-weight: 900;
}
.section-title h2 {
  margin: 0 0 5px;
  font-size: 23px;
}
.section-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.field-full {
  grid-column: 1/-1;
}
label > span {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
}
input,
select {
  width: 100%;
  min-height: 52px;
  border: 1px solid #ccd4cb;
  border-radius: 12px;
  padding: 0 15px;
  background: #fff;
  font: inherit;
}
input:focus,
select:focus {
  outline: 3px solid rgba(64, 191, 73, 0.18);
  border-color: var(--green);
}
.honeypot {
  position: absolute !important;
  left: -10000px !important;
}
.payment-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.payment-option {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
}
.payment-option[hidden] {
  display: none !important;
}
.payment-option input {
  position: absolute;
  opacity: 0;
}
.payment-option.is-selected {
  border-color: var(--green);
  background: #f2fbf2;
}
.payment-option__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: #dff4e0;
  border-radius: 12px;
  font-size: 21px;
}
.payment-option span {
  margin: 0;
}
.payment-option strong,
.payment-option small {
  display: block;
}
.payment-option small {
  font-weight: 500;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.35;
}
.payment-option > i {
  margin-left: auto;
  font-style: normal;
  color: var(--green);
  opacity: 0;
}
.payment-option.is-selected > i {
  opacity: 1;
}
.terms {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.45;
}
.terms input {
  width: 19px;
  min-height: 19px;
  margin-top: 1px;
}
.terms span {
  margin: 0;
  font-weight: 500;
}
.terms a {
  color: #116f1b;
}
.button {
  border: 0;
  border-radius: 13px;
  min-height: 54px;
  padding: 0 22px;
  font: inherit;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}
.button--primary {
  background: var(--green);
  color: #061008;
}
.button--whatsapp {
  margin-bottom: 12px;
  background: #1f9539;
  color: #fff;
}
.button--outline {
  border: 1px solid #bfc8bf;
  background: #fff;
  color: var(--dark);
}
.button--full {
  width: 100%;
}
.button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.form-error,
.error-box {
  color: var(--red);
  font-weight: 800;
  line-height: 1.45;
}
.error-box {
  padding: 18px;
  border-radius: 14px;
  background: #fff1ec;
  border: 1px solid #f3c4b5;
}
.summary-card {
  position: sticky;
  top: 24px;
  background: #0d7431;
  color: #fff;
  border-radius: 26px;
  padding: 31px;
  box-shadow: 0 24px 55px rgba(6, 64, 27, 0.2);
}
.summary-card .eyebrow {
  color: #9ce5a4;
}
.summary-card h2 {
  font-size: 30px;
  line-height: 1.1;
  margin: 0 0 12px;
}
.summary-plan {
  display: inline-block;
  background: #40bf49;
  color: #061008;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 900;
  font-size: 13px;
}
.summary-card > p:not(.eyebrow):not(.summary-method) {
  color: #d5ecda;
  line-height: 1.55;
}
.summary-total {
  display: flex;
  align-items: end;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 21px 0;
  margin: 22px 0;
}
.summary-total strong {
  font-size: 31px;
  color: #60df69;
}
.summary-card ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
.summary-card li {
  padding: 8px 0 8px 26px;
  position: relative;
  line-height: 1.35;
}
.summary-card li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #67e170;
  font-weight: 900;
}
.summary-method {
  background: rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.4;
}
.card-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
}
.payFormTilopay > label {
  display: block;
  margin-bottom: 15px;
}
.secure-note,
.sinpe-note {
  background: #eef9ee;
  padding: 14px 16px;
  border-radius: 12px;
  color: #315236;
  line-height: 1.5;
}
.sinpe-details {
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
}
.sinpe-details div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.sinpe-details div:last-child {
  border: 0;
}
.sinpe-details dt {
  color: var(--muted);
}
.sinpe-details dd {
  margin: 0;
  font-weight: 900;
  text-align: right;
}
.result-card {
  text-align: center;
  padding: 42px;
}
.result-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: var(--green);
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  font-size: 36px;
  font-weight: 900;
}
.result-card h2 {
  font-size: 34px;
  margin: 8px 0 12px;
}
.result-card > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}
.result-card dl {
  margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
}
.result-card dl div {
  display: flex;
  justify-content: space-between;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}
.result-card dl div:last-child {
  border: 0;
}
.result-card dd {
  margin: 0;
  font-weight: 800;
}
.result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
#result-package-guide[hidden] { display: none; }
@media (max-width: 850px) {
  .purchase-layout {
    grid-template-columns: 1fr;
    padding-top: 30px;
  }
  .summary-card {
    position: static;
    grid-row: 1;
  }
  .form-grid,
  .payment-choice {
    grid-template-columns: 1fr;
  }
  .field-full {
    grid-column: auto;
  }
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
  .card-number {
    grid-column: 1/-1;
  }
}
@media (max-width: 520px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }
  .form-card,
  .result-card,
  .summary-card {
    padding: 22px;
    border-radius: 18px;
  }
  .purchase-main > h1 {
    font-size: 40px;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .card-number {
    grid-column: auto;
  }
  .purchase-header__inner {
    height: 70px;
  }
  .brand img {
    width: 58px;
  }
}
.platform-access-fields {
  margin-top: 8px;
  padding: 20px;
  border: 1px solid #b8dcb9;
  border-radius: 16px;
  background: #f2fbf2;
}
.platform-access-heading {
  margin-bottom: 16px;
}
.platform-access-heading strong {
  font-size: 1.05rem;
}
.platform-access-heading p {
  margin: 5px 0 0;
  color: #5f6961;
  font-size: 0.92rem;
}
.included-courses {
  padding: 16px 18px;
  border: 1px solid #b8dcb9;
  border-radius: 13px;
  background: #fff;
}
.included-courses > strong {
  display: block;
  margin-bottom: 10px;
}
.included-courses ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}
.included-courses li {
  padding: 7px 10px;
  border-radius: 999px;
  background: #dff4e0;
  color: #143d1a;
  font-size: 0.84rem;
  font-weight: 800;
}
.included-courses small {
  color: #5f6961;
  line-height: 1.4;
}
.tilopay-sinpe-warning {
  display: grid;
  gap: 14px;
  margin: 16px 0;
  padding: 18px;
  border: 2px solid #e3a51b;
  border-radius: 14px;
  background: #fff7d6;
  color: #4d3500;
}
.tilopay-sinpe-warning[hidden] {
  display: none;
}
.tilopay-sinpe-warning__heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.tilopay-sinpe-warning__heading > span {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e3a51b;
  color: #211700;
  font-weight: 900;
}
.tilopay-sinpe-warning__heading strong {
  display: block;
  font-size: 1rem;
}
.tilopay-sinpe-warning__heading p {
  margin: 6px 0 0;
  line-height: 1.55;
}
.tilopay-sinpe-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 13px;
  border-top: 1px solid rgba(120, 79, 0, 0.22);
  cursor: pointer;
}
.tilopay-sinpe-confirmation input {
  width: 20px;
  min-height: 20px;
  flex: 0 0 20px;
  margin: 1px 0 0;
  accent-color: #16822c;
}
.tilopay-sinpe-confirmation span {
  margin: 0;
  font-weight: 800;
  line-height: 1.45;
}

.selected-subjects { border: 1px solid #ccd7ce; border-radius: 12px; padding: 16px; min-width: 0; }
.selected-subjects legend { font-size: 1rem; font-weight: 750; padding: 0 6px; }
#selected-subjects-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#selected-subjects-list label { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px; border: 1px solid #d5ddd6; border-radius: 8px; font-size: .9375rem; cursor: pointer; }
#selected-subjects-list input { width: 18px; height: 18px; min-height: 0; flex-shrink: 0; accent-color: #278b35; }
#selected-subjects-list label:has(input:checked) { background: #eaf9ed; border-color: #278b35; }
#selected-subjects-help, .selected-subjects a { font-size: .9375rem; line-height: 1.5; }
@media (max-width: 480px) { #selected-subjects-list { grid-template-columns: 1fr; } }
