/* Scoped styles to avoid collisions with the theme */
.upskill-plans {
  --navy: #0a2a3f;
  --navy-deep: #08202f;
  --teal: #12a19a;
  --teal-deep: #0e7c7b;
  --green: #0f9d8f;
  --green-ink: #0b7c71;
  --amber: #e39a3b;
  --amber-ink: #9a6512;
  --paper: #f4f7f8;
  --card: #fff;
  --ink: #152530;
  --muted: #5a6c75;
  --line: #e2e9eb;
  --ring: rgba(15, 157, 143, 0.35);
  --shadow: 0 1px 2px rgba(10, 42, 63, 0.04), 0 12px 32px rgba(10, 42, 63, 0.08);
  --shadow-lg: 0 2px 6px rgba(10, 42, 63, 0.06), 0 24px 60px rgba(10, 42, 63, 0.14);
  --display: 'Fraunces', Georgia, serif;
  --body: 'Inter', system-ui, sans-serif;
  font-family: var(--body);
}

.upskill-plans .block {
  padding: 56px 0;
}

.upskill-plans .wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.upskill-plans .sec-head {
  max-width: 52em;
  margin-bottom: 26px;
}
.upskill-plans .sec-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.upskill-plans .sec-head h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.1;
  margin: 10px 0 8px;
}
.upskill-plans .sec-head p {
  color: var(--muted);
  font-size: 16px;
}
.upskill-plans .eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

/* Basic button look (uses theme classes but provides a safe fallback) */
.upskill-plans .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  padding: 12px 22px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  user-select: none;
}
.upskill-plans .btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 157, 143, 0.28);
  border-color: transparent;
}
.upskill-plans .btn-primary:hover {
  background: var(--green-ink);
  transform: translateY(-1px);
}
.upskill-plans .btn-outline {
  background: #fff;
  color: var(--green-ink);
  border-color: var(--green);
}
.upskill-plans .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.upskill-plans .plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 940px;
  margin: 0 auto;
}

.upskill-plans[data-show-header="0"] .sec-head {
  display: none;
}
.upskill-plans[data-show-note="0"] .plan-note {
  display: none;
}

.upskill-plans[data-full-width="1"] .wrap {
  max-width: none;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}
.upskill-plans[data-full-width="1"] .plans {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.upskill-plans .plan {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.upskill-plans .plan.feat {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--ring), var(--shadow-lg);
}

.upskill-plans .plan .flag {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.upskill-plans .plan h3 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}

.upskill-plans .plan .mo {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}

.upskill-plans .plan .mo small {
  font-family: var(--body);
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.upskill-plans .plan .bill {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 16px;
}

.upskill-plans .plan .save {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--amber-ink);
  background: #fdf3e5;
  border-radius: 6px;
  padding: 2px 9px;
  margin-bottom: 12px;
}

.upskill-plans .plan .btn {
  width: 100%;
  margin-top: auto;
}

.upskill-plans .plan-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 18px;
  max-width: 92ch;
  margin-left: auto;
  margin-right: auto;
}

/* Drawer + checkout */
.upskill-plans .overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 32, 47, 0.5);
  backdrop-filter: blur(2px);
  z-index: 100;
}
.upskill-plans .overlay[hidden] {
  display: none;
}

.upskill-plans .drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 380px;
  max-width: 92vw;
  background: #fff;
  box-shadow: var(--shadow-lg);
  z-index: 101;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s;
}
.upskill-plans .drawer[hidden] {
  display: none;
}
.upskill-plans .drawer.open {
  transform: none;
}

.upskill-plans .drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.upskill-plans .drawer-head h3 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
}
.upskill-plans .xbtn {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  padding: 0 6px;
  border-radius: 8px;
}
.upskill-plans .xbtn:hover {
  background: var(--paper);
  color: var(--ink);
}
.upskill-plans .drawer-body {
  flex: 1;
  overflow: auto;
  padding: 16px 20px;
}
.upskill-plans .citem {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.upskill-plans .citem .cn {
  font-weight: 600;
  font-size: 14px;
}
.upskill-plans .citem .cp {
  font-size: 12.5px;
  color: var(--muted);
}
.upskill-plans .citem .rm {
  background: none;
  border: none;
  color: #c0392b;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-top: 6px;
}
.upskill-plans .cart-empty {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 30px 0;
}
.upskill-plans .drawer-foot {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}
.upskill-plans .totrow.grand {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 18px;
  font-family: var(--display);
  color: var(--navy);
}
.upskill-plans .drawer-foot .btn {
  width: 100%;
  margin-top: 12px;
}
.upskill-plans .mini-note {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}

.upskill-plans .co-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 32, 47, 0.55);
  backdrop-filter: blur(3px);
  z-index: 110;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 16px;
  overflow: auto;
}
.upskill-plans .co-overlay[hidden] {
  display: none;
}

.upskill-plans .co-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 660px;
  margin: auto;
}

.upskill-plans .co-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
}
.upskill-plans .co-head h2 {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
}
.upskill-plans .steps-ind {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.upskill-plans .steps-ind b {
  color: var(--green-ink);
}

.upskill-plans .co-body {
  padding: 24px 26px;
}
.upskill-plans .summary {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.upskill-plans .summary .sr {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  padding: 4px 0;
}
.upskill-plans .summary .sr.tot {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 8px;
  font-weight: 700;
  color: var(--navy);
}

.upskill-plans fieldset {
  border: none;
  margin-bottom: 20px;
  padding: 0;
}
.upskill-plans legend {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  width: 100%;
}

.upskill-plans .fgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.upskill-plans .fld {
  display: flex;
  flex-direction: column;
}
.upskill-plans .fld.full {
  grid-column: 1 / -1;
}
.upskill-plans .fld label {
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 5px;
}
.upskill-plans .fld input,
.upskill-plans .fld select {
  font-family: var(--body);
  font-size: 14px;
  padding: 9px 11px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}
.upskill-plans .fld input:focus,
.upskill-plans .fld select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--ring);
}
.upskill-plans .fld.invalid input,
.upskill-plans .fld.invalid select {
  border-color: #c0392b;
}

.upskill-plans .app-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--muted);
}
.upskill-plans .app-consent input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--green);
  flex: none;
}
.upskill-plans .app-consent.invalid {
  color: #c0392b;
}

.upskill-plans .co-err {
  background: #fdecea;
  color: #c0392b;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}
.upskill-plans .co-err.show {
  display: block;
}

.upskill-plans .co-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.upskill-plans .paybox {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.upskill-plans .paybox .lock {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.upskill-plans .paybox .lock svg {
  width: 14px;
  height: 14px;
  color: var(--green);
}

.upskill-plans .co-success {
  text-align: center;
  padding: 16px;
}
.upskill-plans .co-success .tick {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #eef7f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.upskill-plans .co-success .tick svg {
  width: 28px;
  height: 28px;
  color: var(--green);
}
.upskill-plans .co-success h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}
.upskill-plans .co-success p {
  color: var(--muted);
  max-width: 34em;
  margin: 0 auto;
}
.upskill-plans .co-success .refno {
  display: inline-block;
  margin-top: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
}

/* Basic reveal support (matches the HTML mock) */
.upskill-plans .reveal {
  opacity: 1;
  transform: none;
}

/* Animate only when JS is active (front-end). Builder/admin stays visible. */
.upskill-plans.upskill-plans--animate .reveal:not(.in) {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s, transform 0.6s;
}

.upskill-plans.upskill-plans--animate .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .upskill-plans.upskill-plans--animate .reveal:not(.in) {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 960px) {
  .upskill-plans .plans {
    grid-template-columns: 1fr;
  }
}

