*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Hind Madurai", Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #4f4f4f;
  background: #000;
  min-height: 100vh;
}
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Background ---------- */
.clp-bg {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.clp-shadow-drop {
  position: absolute; top: 0; left: 0; right: 0;
  height: 512px;
  background: linear-gradient(rgba(0,0,0,.75) 0%, rgba(0,0,0,.5) 30%, rgba(0,0,0,0) 100%);
  z-index: -1;
}

/* ---------- Navbar ---------- */
.clp-navbar {
  max-width: 1152px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.clp-navbar-cta {
  display: flex; align-items: center; gap: 12px;
  background: rgba(204,204,204,.16);
  color: #fff;
  border: 0;
  border-radius: 500px;
  padding: 10px 16px 10px 10px;
  font-size: 16px; font-weight: 600; line-height: 22px; letter-spacing: .16px;
}
.clp-avatar { width: 36px; height: 36px; border-radius: 50%; display: block; }
.clp-start-page-cta {
  display: flex; align-items: center; gap: 6px;
  color: #fff; opacity: .8;
  text-decoration: none;
  font-size: 14px; font-weight: 500; line-height: 20px; letter-spacing: .16px;
}

/* ---------- Main container ---------- */
.clp-container {
  max-width: 1152px;
  margin: 0 auto 48px;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
}
.pplp-content { padding: 24px 24px 32px; }
.pplp-container { display: flex; gap: 48px; align-items: flex-start; }
.pplp-container-left {
  flex: 1; min-width: 0; max-width: 630px;
  display: flex; flex-direction: column; gap: 40px;
}
.pplp-container-right {
  width: 378px; max-width: 378px; flex-shrink: 0;
  align-self: stretch;
}
.pplp-fixed-section {
  position: sticky; top: 32px;
  display: flex; flex-direction: column; gap: 32px;
}

.clp-cover img { width: 100%; display: block; border-radius: 8px; }

.pplp-title {
  margin: 0;
  color: #0f0f0f;
  font-size: 32px; font-weight: 600; line-height: 40px;
}

.pplp-section { display: flex; flex-direction: column; gap: 16px; }
.pplp-section-heading {
  color: #808080;
  font-size: 14px; font-weight: 500; line-height: 20px; letter-spacing: .16px;
  text-transform: uppercase;
}

.pplp-about-section {
  color: #0f0f0f;
  font-size: 16px; line-height: 22px; letter-spacing: .16px;
}
.pplp-about-section p { margin: 0 0 16px; }
.pplp-about-section ul, .pplp-about-section ol { margin: 0 0 16px; padding-left: 24px; }
.pplp-about-section li p { margin-bottom: 12px; }
.pplp-about-section strong { font-weight: 600; }
.pplp-about-section figure { margin: 0 0 16px; }
.pplp-about-section figure img { width: 100%; display: block; }

/* ---------- FAQ ---------- */
.faq-container { display: flex; flex-direction: column; gap: 12px; }
.faq {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 16px;
  display: flex; flex-direction: column;
  cursor: pointer;
  outline: none;
}
.faq:focus-visible { border-color: #0f0f0f; }
.faq-question-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.faq-question { color: #0f0f0f; font-size: 16px; font-weight: 500; line-height: 22px; letter-spacing: .16px; }
.faq-icon { flex-shrink: 0; transition: transform .25s; }
.faq.open .faq-icon { transform: rotate(180deg); }
.collapse { height: 0; overflow: hidden; transition: height .25s ease; }
.faq-answer { padding-top: 10px; color: #666; font-size: 16px; line-height: 22px; letter-spacing: .16px; }

.already-paid {
  border-left: 4px solid #0f0f0f;
  background: #f5f5f5;
  padding: 10px 14px;
  color: #0f0f0f;
  font-size: 16px; line-height: 22px;
}
.already-paid a { color: #1a73e8; }

.pplp-section-content { display: flex; flex-direction: column; gap: 12px; }
.support-row {
  display: flex; align-items: center; gap: 10px;
  color: #0f0f0f; text-decoration: none;
  font-size: 16px; line-height: 22px;
}

/* ---------- Checkout card ---------- */
.clp-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: 0 5px 14px 0 #e5e5e5, 0 2px 6px 0 #e5e5e5;
  padding: 24px 20px;
  display: flex; flex-direction: column; gap: 24px;
}
.checkout-flow { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.body-regular { color: #0f0f0f; font-size: 14px; line-height: 20px; }

.field { position: relative; }
.field input {
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  padding: 12px;
  font: inherit; font-size: 16px; line-height: 22px; letter-spacing: .16px;
  color: #0f0f0f; background: #fff;
  outline: none;
  transition: border-color .15s;
}
.field input:focus { border-color: #0f0f0f; }
.field label {
  position: absolute; left: 12px; top: 12px;
  color: #808080; font-size: 16px; line-height: 22px;
  pointer-events: none;
  background: #fff; padding: 0 4px; margin-left: -4px;
  transition: all .15s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  top: -10px; font-size: 12px; color: #0f0f0f;
}
.field.phone input { padding-left: 64px; }
.field.phone label { left: 64px; }
.field.phone .cc {
  position: absolute; left: 12px; top: 12px;
  display: flex; align-items: center; gap: 4px;
  color: #0f0f0f; font-size: 16px; line-height: 22px;
  z-index: 1;
}
.field.invalid input { border-color: #d93025; }
.field-error { color: #d93025; font-size: 12px; line-height: 16px; min-height: 0; margin-top: 4px; }
.field-error:empty { display: none; }

.preview { display: flex; flex-direction: column; gap: 12px; }
.preview-row {
  display: flex; justify-content: space-between;
  color: #0f0f0f; font-size: 14px; line-height: 20px; letter-spacing: .16px;
}
.preview-row.bold { font-weight: 600; }
.sep { height: 1px; background: #e5e5e5; }

.pay-button {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #000; color: #fff;
  border: 1px solid #000;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 16px; font-weight: 600; line-height: 22px; letter-spacing: .16px;
  transition: background .15s, transform .1s;
}
.pay-button span { flex: 1; text-align: left; }
.pay-button:hover { background: #262626; }
.pay-button:active { transform: scale(.99); }
.pay-button[disabled] { opacity: .6; cursor: wait; }
.pay-status { font-size: 13px; color: #d93025; line-height: 18px; }
.pay-status:empty { display: none; }

.clp-card-top { display: flex; flex-direction: column; gap: 12px; }
.clp-item { display: flex; align-items: center; gap: 16px; }
.clp-text { color: #0f0f0f; font-weight: 500; font-size: 16px; line-height: 22px; }

.terms { margin: 0; font-size: 14px; line-height: 20px; color: #4f4f4f; }
.terms a { color: #0f0f0f; }

.clp-copy-link {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; color: #0f0f0f;
  border: 1px solid #e5e5e5; border-radius: 10px;
  box-shadow: 0 1px 2px 0 #f2f2f2;
  padding: 18px;
  font-size: 14px; font-weight: 500; line-height: 20px; letter-spacing: .16px;
}
.clp-copy-link:hover { background: #fafafa; }

/* ---------- Mobile bar ---------- */
.mobile-bar { display: none; }
.mobile-only { display: none; }

/* ---------- Success overlay ---------- */
.success {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.success[hidden] { display: none; }
.success-card {
  background: #fff; border-radius: 12px; padding: 32px 24px;
  max-width: 380px; width: 100%; text-align: center;
}
.success-card h2 { margin: 12px 0 8px; color: #0f0f0f; font-size: 22px; }
.success-card p { margin: 0 0 12px; }
.success-card .pid { font-size: 13px; color: #808080; word-break: break-all; }
.success-card .pay-button span { text-align: center; }
.tick {
  width: 56px; height: 56px; margin: 0 auto;
  border-radius: 50%; background: #e8f5e9; color: #1e8e3e;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700;
}

.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px);
  background: #0f0f0f; color: #fff; padding: 10px 16px; border-radius: 8px;
  font-size: 14px; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .clp-navbar { padding: 16px; }
  .clp-start-page-cta { display: none; }
  .clp-container { border-radius: 16px 16px 0 0; padding: 0; margin-bottom: 0; }
  .pplp-content { padding: 24px 24px 120px; }
  .pplp-container { flex-direction: column; gap: 40px; }
  .pplp-container-left { max-width: none; width: 100%; }
  .pplp-container-right { width: 100%; max-width: none; }
  .pplp-fixed-section { position: static; }
  .pplp-title { font-size: 24px; line-height: 32px; }
  .desktop-only { display: none; }
  .mobile-only { display: flex; }
  .pplp-container-right { display: none; } /* card opens as a bottom sheet from the bar */
  .pplp-container-right.sheet-open { display: block; }

  .mobile-bar {
    display: flex; flex-direction: column; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: #fff;
    padding: 12px 24px 16px;
    box-shadow: 0 -4px 14px rgba(0,0,0,.08);
  }
  .mobile-bar .label { font-size: 13px; color: #808080; line-height: 18px; }
  .mobile-bar .value { font-size: 16px; color: #0f0f0f; line-height: 22px; }

  /* Bottom sheet holding the checkout form */
  .pplp-container-right.sheet-open {
    position: fixed; inset: 0; z-index: 30;
    background: rgba(0,0,0,.5);
    display: flex; align-items: flex-end;
  }
  .pplp-container-right.sheet-open .pplp-fixed-section { width: 100%; }
  .pplp-container-right.sheet-open .clp-card {
    border-radius: 16px 16px 0 0; box-shadow: none; border: 0;
    max-height: 90vh; overflow: auto;
    animation: sheet-up .25s ease;
  }
  .pplp-container-right.sheet-open .clp-card-top { display: none; }
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
