:root {
  --ink: #142124;
  --muted: #647174;
  --line: #dfe7e2;
  --paper: #fff6e7;
  --white: #ffffff;
  --teal: #0f766e;
  --teal-dark: #082f32;
  --amber: #f6a623;
  --coral: #e85d4f;
  --sky: #29a8df;
  --mint: #59c98f;
  --violet: #7161ef;
  --green: #20a36a;
  --dark: #071719;
  --shadow: 0 22px 70px rgba(7, 23, 25, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fff4da 0%, #ebfbf5 34%, #fff1ef 68%, #f4f5ff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
  color: white;
  background: linear-gradient(90deg, rgba(7, 23, 25, 0.94), rgba(8, 47, 50, 0.94), rgba(116, 73, 0, 0.88));
  border-bottom: 1px solid rgba(255, 218, 135, 0.25);
  backdrop-filter: blur(16px);
}

.brand,
nav,
.hero-actions,
.hero-stats,
.price-row,
.inline-head,
.admin-head,
.product-topline {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--dark);
  background: linear-gradient(135deg, #ffd35c, #ff7a59);
  box-shadow: 0 8px 26px rgba(246, 166, 35, 0.3);
}

nav {
  gap: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  font-size: 14px;
}

nav a:hover {
  color: white;
}

.hero {
  position: relative;
  min-height: calc(100vh - 67px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(60px, 8vw, 112px) clamp(18px, 5vw, 72px);
  color: white;
  background:
    linear-gradient(90deg, rgba(7, 23, 25, 0.88) 0%, rgba(0, 107, 112, 0.62) 44%, rgba(255, 140, 66, 0.26) 100%),
    url("/assets/exam-voucher-hero.png") center right / cover no-repeat,
    var(--dark);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  background: linear-gradient(180deg, #ffd35c, #ff5f6d 42%, #29a8df 72%, #59c98f);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, #fff4da);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: #ffcf5a;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 13px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(42px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
  margin-bottom: 22px;
}

.price-highlight {
  color: #ffd35c;
  text-shadow: 0 0 28px rgba(255, 211, 92, 0.35);
}

h2 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: 0;
  margin-bottom: 12px;
}

h3 {
  font-size: 20px;
  line-height: 1.2;
}

.hero-text,
.section-heading p,
.checkout-panel p,
.trust p,
.process p,
.faq p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-text {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.83);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.primary-btn,
.secondary-btn,
.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  min-height: 48px;
  padding: 0 20px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: var(--dark);
  background: linear-gradient(135deg, #ffd35c, #ff8c42 52%, #ff5f6d);
  box-shadow: 0 16px 38px rgba(255, 126, 66, 0.34);
}

.secondary-btn {
  color: var(--teal-dark);
  background: white;
  border: 1px solid var(--line);
}

.hero .secondary-btn {
  color: white;
  background: linear-gradient(135deg, rgba(41, 168, 223, 0.28), rgba(15, 118, 110, 0.28));
  border-color: rgba(255, 255, 255, 0.32);
}

.danger-btn {
  color: white;
  background: #c24135;
}

.primary-btn:hover,
.secondary-btn:hover,
.danger-btn:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.hero-stats {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-stats div {
  min-width: 140px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 211, 92, 0.24), rgba(41, 168, 223, 0.22));
  backdrop-filter: blur(14px);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  color: white;
  font-size: 22px;
}

.hero-stats span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 800;
}

.hero-visual {
  position: absolute;
  z-index: 3;
  right: clamp(18px, 5vw, 72px);
  bottom: clamp(34px, 6vw, 72px);
  display: grid;
  gap: 10px;
  width: min(360px, calc(100% - 36px));
  pointer-events: none;
}

.hero-price-card,
.status-card {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, rgba(7, 23, 25, 0.88), rgba(15, 118, 110, 0.82));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-price-card {
  display: grid;
  gap: 5px;
  width: 260px;
  padding: 18px;
}

.hero-price-card span,
.hero-price-card small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.hero-price-card strong {
  color: #ffd35c;
  font-size: 42px;
  line-height: 1;
}

.status-card {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 260px;
  padding: 15px 16px;
  font-weight: 900;
}

.pulse {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(32, 163, 106, 0.18);
}

.section {
  padding: 76px clamp(18px, 5vw, 72px);
}

#vouchers {
  background:
    linear-gradient(135deg, rgba(255, 211, 92, 0.28), rgba(89, 201, 143, 0.18) 46%, rgba(41, 168, 223, 0.16));
}

.certifications {
  background:
    linear-gradient(135deg, #f4f5ff 0%, #effcff 48%, #fff4da 100%);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 1060px;
}

.product-card,
.trust article,
.process article,
.admin-card,
.admin-login,
.checkout-panel,
.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 40px rgba(20, 33, 36, 0.08);
}

.product-card {
  position: relative;
  display: grid;
  gap: 16px;
  min-height: 300px;
  overflow: hidden;
  padding: 28px;
  border-top: 5px solid var(--teal);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 118px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(255, 211, 92, 0.34));
  pointer-events: none;
}

.product-card::after {
  content: "INR 3,000";
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--dark);
  background: linear-gradient(135deg, #ffd35c, #ff8c42);
  font-size: 13px;
  font-weight: 900;
}

.product-card > * {
  position: relative;
  z-index: 1;
}

.product-card.selected {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12), 0 22px 60px rgba(20, 33, 36, 0.15);
}

.product-card:nth-child(2) {
  border-top-color: var(--coral);
}

.product-card:nth-child(2)::before {
  background: linear-gradient(135deg, rgba(232, 93, 79, 0.16), rgba(41, 168, 223, 0.24));
}

.product-card:nth-child(2) .product-value {
  background: linear-gradient(135deg, var(--coral), var(--violet));
}

.product-topline {
  justify-content: space-between;
  gap: 12px;
  padding-right: 92px;
}

.product-value {
  display: grid;
  place-items: center;
  width: fit-content;
  min-width: 92px;
  height: 52px;
  padding: 0 14px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--sky));
  font-weight: 900;
}

.product-badge {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card h3 {
  margin-bottom: 0;
  font-size: 26px;
}

.product-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.cert-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 22px;
  max-width: 1120px;
}

.cert-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: white;
  box-shadow: 0 14px 40px rgba(20, 33, 36, 0.08);
}

.cert-card.foundational {
  border-top: 5px solid var(--teal);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(255, 211, 92, 0.2)),
    white;
}

.cert-card.associate {
  border-top: 5px solid var(--violet);
  background:
    linear-gradient(135deg, rgba(113, 97, 239, 0.1), rgba(41, 168, 223, 0.17)),
    white;
}

.cert-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--dark);
  background: linear-gradient(135deg, #ffd35c, #59c98f);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cert-card.associate span {
  color: white;
  background: linear-gradient(135deg, var(--coral), var(--violet));
}

.cert-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.cert-card li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 12px 12px 38px;
  border: 1px solid rgba(20, 33, 36, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 800;
}

.cert-card li strong {
  font-size: 15px;
}

.cert-card li em {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 8px;
  color: white;
  background: var(--teal-dark);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.cert-card li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 17px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(32, 163, 106, 0.12);
}

.portal-note {
  max-width: 1120px;
  margin: 18px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--teal-dark);
  font-weight: 900;
}

.secondary-note {
  margin-top: 10px;
  border-color: rgba(113, 97, 239, 0.18);
  color: #332c74;
}

.price-row {
  justify-content: space-between;
  gap: 18px;
  margin-top: 6px;
  color: var(--muted);
}

.price-row strong {
  color: var(--ink);
  font-size: 32px;
}

.price-row span {
  max-width: 210px;
  text-align: right;
  font-weight: 800;
}

.enquiry-line {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--teal-dark) !important;
  font-weight: 900;
}

.enquiry-line a {
  color: var(--coral);
}

.checkout-panel {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 32px;
  margin: 30px clamp(18px, 5vw, 72px);
  padding: clamp(24px, 4vw, 46px);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(255, 211, 92, 0.28) 52%, rgba(232, 93, 79, 0.12)),
    white;
}

.checkout-form,
.stacked-form,
#loginForm {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
  font: inherit;
}

input:focus,
select:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(15, 118, 110, 0.15);
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.form-message.error {
  color: #b42318;
}

.form-message.success {
  color: var(--green);
}

.notice {
  max-width: 1060px;
  padding: 16px;
  margin-bottom: 18px;
  border: 1px solid #ffd471;
  border-radius: 8px;
  background: #fff7dc;
  color: #744800;
  font-weight: 800;
}

.process {
  background:
    linear-gradient(135deg, #e7fbff 0%, #f4fff2 48%, #fff3df 100%);
}

.process-grid,
.trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process article,
.trust article {
  padding: 24px;
}

.process article {
  background: linear-gradient(180deg, white, #f8fbfa);
}

.process article span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: var(--dark);
  background: linear-gradient(135deg, #ffd35c, #59c98f);
  font-weight: 900;
}

.trust {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background:
    linear-gradient(135deg, #fff4da, #fff0f0 52%, #edf7ff);
}

.trust article {
  border-top: 4px solid var(--amber);
}

.trust article:nth-child(2) {
  border-top-color: var(--sky);
}

.trust article:nth-child(3) {
  border-top-color: var(--coral);
}

.trust article:nth-child(4) {
  border-top-color: var(--mint);
}

.trust a {
  color: var(--teal);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.faq {
  background:
    linear-gradient(135deg, rgba(255, 211, 92, 0.2), rgba(113, 97, 239, 0.08));
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  padding: 18px 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(90deg, var(--dark), var(--teal-dark), #4c2d00);
}

.whatsapp-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 22px rgba(7, 23, 25, 0.25);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 26px rgba(7, 23, 25, 0.32);
}

.whatsapp-fab svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.hidden {
  display: none !important;
}

.admin-body {
  background: #eef5f3;
}

.admin-shell {
  min-height: 100vh;
  padding: 28px;
}

.admin-login {
  max-width: 430px;
  margin: 9vh auto;
  padding: 28px;
}

.admin-dashboard {
  max-width: 1280px;
  margin: 0 auto;
}

.admin-head {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(380px, 1.15fr);
  gap: 18px;
}

.admin-card {
  padding: 22px;
}

.inline-head {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.product-editor {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.editor-row {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.7fr 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.editor-row label:nth-child(5) {
  grid-column: span 2;
}

.check-row {
  display: flex;
  align-items: center;
}

.check-row input {
  width: auto;
  min-height: auto;
}

.orders-card {
  margin-top: 18px;
}

.orders-table {
  display: grid;
  gap: 10px;
}

.order-row {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1.1fr 0.9fr 0.8fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.order-row div {
  display: grid;
  gap: 4px;
}

.order-row span,
.muted {
  color: var(--muted);
  font-size: 13px;
}

.status {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 8px;
  background: #e7f3ee;
  color: var(--green) !important;
  font-weight: 900;
}

.status.signature_failed {
  background: #fff0ed;
  color: #b42318 !important;
}

@media (max-width: 1180px) {
  .trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding-bottom: 210px;
    background:
      linear-gradient(180deg, rgba(7, 23, 25, 0.9) 0%, rgba(0, 107, 112, 0.68) 52%, rgba(255, 140, 66, 0.24) 100%),
      url("/assets/exam-voucher-hero.png") center bottom / cover no-repeat,
      var(--dark);
  }

  .hero-visual {
    left: 18px;
    right: 18px;
    bottom: 42px;
    width: auto;
  }

  .checkout-panel,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .cert-grid,
  .process-grid,
  .trust {
    grid-template-columns: 1fr;
  }

  .order-row,
  .editor-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
  }

  h1 {
    font-size: 42px;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-stats div {
    width: 100%;
  }

  .hero-price-card,
  .status-card {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 10px;
  }

  .hero-visual {
    min-height: 0;
  }

  .checkout-panel {
    margin-inline: 18px;
  }

  .whatsapp-fab {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }

  .whatsapp-fab svg {
    width: 24px;
    height: 24px;
  }

  .product-topline {
    align-items: flex-start;
    flex-direction: column;
    padding-right: 0;
  }

  .product-card::after {
    position: static;
    width: fit-content;
    order: -1;
  }

  .price-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .price-row span {
    text-align: left;
  }
}
