/* =========================
GLOBAL
========================= */

.public-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================
NAV SPACING
========================= */

.public-page main {
  margin-top: 20px;
}

/* =========================
REFERRAL PAGE
========================= */

.public-page .referral-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 18px 60px;
  text-align: center;
}

/* HERO */

.public-page .hero h1 {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.public-page .subheadline {
  font-size: 14px;
  color: #6B7280;
}

/* IMAGE */

.public-page .hero-image img {
  width: 100%;
  max-width: 480px;
  margin: 20px auto;
  border-radius: 14px;
}

/* CARD */

.public-page .code-card {
  background: #f4f5f7;
  border-radius: 16px;
  padding: 22px;
  margin: 24px 0;
  box-shadow: 0 4px 12px rgba(168, 167, 167, 0.05);
  border: 1px solid #e5e7eb;
  text-align: center;
}

.public-page .code-label {
  font-size: 10px;
  letter-spacing: 1px;
  color: #62656b;
}

.public-page .promo-code {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 2px;
  background: #ffffff;
  border: 2px dashed #5EBCBC;
  border-radius: 12px;
  padding: 18px 12px;
  margin-bottom: 12px;
}

/* BUTTONS */

.public-page .copy-btn {
  background: #5EBCBC;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  margin: 4px;
}

.public-page .copy-btn:hover {
  background: #4aa5a5;
}

.public-page .copy-btn.secondary {
  background: #000;
}

.public-page .copy-btn.secondary:hover {
  background: #2c2e2e;
}

/* PRIMARY BUTTON (SCOPED — SAFE) */

.public-page .btn-primary {
  width: 100%;
  padding: 12px;
  background: #5EBCBC;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

/* COUNTDOWN */

.public-page .countdown {
  text-align: center;
  font-size: 14px;
  margin-top: 10px;
  color: #D4A85A;
  font-weight: 600;
}


/* AMAZON CTA */

.public-page .amazon-btn {
  display: block;
  width: 100%;
  background: #ff9900;
  color: #000;
  font-size: 24px;
  font-weight: 700;
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  margin-top: 16px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}


/* =========================
COMPACT HERO BANNER
========================= */
/* =========================
COMPACT HERO — FINAL FIX
========================= */

.public-page .program-hero {
    background: linear-gradient(135deg, #5EBCBC 0%, #3FAE9C 100%);
    border-radius: 15px;
    padding: 24px 20px;
    text-align: center;
    color: #fff;

    max-width: 720px;
    margin: 10px auto 40px auto;   /* ← unified spacing */
}

.program-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 10px;
    letter-spacing: -0.4px;
}

/* SUBTEXT */
.hero-subtext {
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    margin-bottom: 12px;
    opacity: 0.95;
}

/* CTA BAR */
.hero-cta {
    display: inline-block;
    background: rgba(2, 2, 2, 0.9);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 1.1 rem;
    font-weight: 500;   /* ← FIXED */
}

.program-hero .hero-cta {
    color: #ffffff !important;
}


.public-page .apply-box {
  background: #f3f3f3;
  padding: 35px 25px;
  border-radius: 12px;
  margin-bottom: 30px;
}

/* FORM */


.public-page textarea {
  min-height: 120px;
}

.public-page button[type="submit"] {
  width: 100%;
  padding: 16px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.public-page button[type="submit"]:hover {
  opacity: 0.9;
}


/* =========================
FOOTER
========================= */

.public-page .petitek-footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  margin-top: 60px;
  padding: 30px 20px;
}

.public-page .footer-inner {
  max-width: 900px;
  margin: 0 auto;

  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* LEFT SIDE */

.public-page .footer-brand {
  font-weight: 600;
  font-size: 1rem;
}

.public-page .footer-tagline {
  display: block;
  font-size: 12px;
  color: #6B7280;
  margin-top: 2px;
}

/* LINKS */

.public-page .footer-links a {
  margin-left: 16px;
  font-size: 14px;
  color: #1f2933;
  text-decoration: none;
}

.public-page .footer-links a:hover {
  color: #5EBCBC;
}

/* MOBILE */

@media (max-width: 600px) {

  /* SECTION WIDTH + PADDING */
  .why-section {
    padding: 0 12px 20px;
  }

  /* HEADER FIX */
  .why-section h2 {
    font-size: 22px;
    line-height: 1.3;
    word-break: break-word;
  }

  /* LIST TEXT */
  .why-section li {
    font-size: 16px;
    line-height: 1.7;
  }

  /* CTA WRAPPER */
  .why-section-cta {
    padding: 0 12px;
  }

  /* BUTTON */
  .amazon-btn {
    font-size: 18px;
    padding: 14px;
    border-radius: 10px;
  }

  /* DISCLOSURE TEXT */
  .amazon-disclosure {
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    margin-top: 8px;
  }
}
/* NAVBAR */
.amb-nav {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #eee;
    padding: 14px 20px;
    margin-bottom: 20px;   /* 🔥 THIS prevents layout break */
}

.amb-nav-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* BRAND */
.amb-brand {
    font-size: 16px;
    font-weight: 500;
}

.amb-brand .petitek {
    color: #5EBCBC;
    font-weight: 600;
}

.amb-brand .portal {
    color: #333;
    margin-left: 4px;
}

/* LOGIN BUTTON */
.btn-outline-teal {
    border: 1.5px solid #5EBCBC;
    color: #5EBCBC;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
}

.btn-outline-teal:hover {
    background: #5EBCBC;
    color: #fff;
}

/* =========================
FIX NAVBAR LIST
========================= */

.public-page .navbar-nav {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.public-page .navbar-nav li {
  list-style: none;
}




/* =========================
PRIMARY ACTION BUTTON (SHARED STYLE)
========================= */

.public-page .primary-action {
  width: 100%;
  padding: 16px;

  background: #5EBCBC;
  color: #ffffff;

  border: none;
  border-radius: 10px;

  font-size: 16px;
  font-weight: 600;

  cursor: pointer;
  display: block;
}

/* HOVER */

.public-page .primary-action:hover {
  background: #4aa5a5;
}

return render_template(
    "referral.html",
    hide_nav=True,
    hide_footer=True
)

.footer-share {
  margin-top: 6px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-share-btn {
  background: #5EBCBC;
  border: none;
  color: white;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
  line-height: 1.4;
}

.footer-share-btn:hover {
  background: #3FAE9C;
}

.footer-share span {
  font-weight: 500;
}

.share-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.share-btn-black {
  background: #000000;
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0px;
}

.share-btn-black:hover {
  background: #222222;
}

.share-confirm {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  color: #6c757d;
}

/* =========================
CHECKBOX FIX (FORCE CORRECT LAYOUT)
========================= */

.checkbox-group {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.checkbox-group label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin: 0;
}

/* Form spacing rhythm */
.public-page .apply-box > * {
    margin-bottom: 12px;
}

.checkbox-group input[type="checkbox"] {
  margin: 0;
  flex-shrink: 0;
}


/* =========================
GLOBAL PAGE GRID
========================= */

.public-page .program-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 10px;
}

/* =========================
HERO
========================= */


/* =========================
VIDEO
========================= */
.video-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;

  margin-bottom: 30px;  /* ← THIS is what you want */
}

.video-frame {
    margin-top: 20px;   /* ← add this */
}

.video-frame iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 0;
}


/* FORCE CONSISTENT PAGE WIDTH */

.container {
    max-width: 760px;
}


.apply-box {
    margin-bottom: 20px;   /* tighten this */
}

.apply-box h2,
.designed-for h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: -0.4px;
}


/* =========================
DESIGNED FOR SECTION
========================= */

.designed-for {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

.hero-subtext {
    max-width: 620px;
    margin: 0 auto 14px auto;
    text-align: left;
}


/* Heading */
.designed-for h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    margin-bottom: 14px;
}


/* Inputs / Select / Textarea */
.public-page input,
.public-page textarea,
.public-page select {
    width: 100%;

    padding: clamp(10px, 1.6vw, 14px);
    margin-bottom: clamp(14px, 2vw, 20px);

    font-size: clamp(0.9rem, 1.6vw, 1rem);

    border-radius: 8px;
    border: 1px solid #ccc;
}

/* =========================
BENEFITS / FEATURES
========================= */

.public-page .program-section .benefits-header {
    max-width: 620px;
    margin: 0 0 10px 20px;
    text-align: left;
}

.public-page .program-section .features {
    list-style: none;
    padding-left: 0;

    margin-top: 16px;
    margin-bottom: 16px;   /* 🔥 THIS FIXES YOUR ISSUE */
    margin-left: 20px;
}

.public-page .program-section .features li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    line-height: 1.45;
    font-size: 15px;
}

.public-page .program-section .features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.08em;
    color: #3FAE9C;
    font-weight: 700;
}

.public-page .program-section .features li:last-child {
    margin-bottom: 0;
}

/* =========================
MOBILE
========================= */

@media (max-width: 768px) {

  .public-page .program-section .features {
      margin-left: 20px;   /* same indent as desktop */
  }

  .public-page .program-section .features li {
      font-size: 14.5px;
      line-height: 1.4;
  }

}

/* =========================
WHY SECTION FIX
========================= */

.why-section {
  max-width: 600px;
  margin: 0 auto 24px auto;   /* bottom spacing added */
  text-align: left;
}

.why-section h3 {
  text-align: left;
  margin-bottom: 10px;
}

.why-section {
  max-width: 600px;
  margin: 0 auto;
  padding-bottom: 20px;
  padding-top: 20px;
}

.why-section ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 12px;
}

.why-section li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
  line-height: 1.5;
  text-align: left;
}

/* Teal checkmark */
.why-section li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #5EBCBC;  /* brand teal */
  font-weight: bold;
}

/* =========================
   MODAL
========================= */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 5000;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 12px;
  max-width: 700px;
  width: 95%;
  text-align: center;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
}

.modal-close:hover {
  color: black;
}

/* Image styling */
.earnings-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
}


/* =========================
PROGRAM OVERVIEW PAGE (FINAL)
========================= */


.program-overview-page .program-header h1 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  margin-bottom: 8px;
  color: #1f2933;
}

.program-overview-page .program-header p {
  font-size: 16px;
  color: #555;
  max-width: 600px;
  margin: 0;
  line-height: 1.5;
}

.program-overview-page .program-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 16px;
}

/* HERO (clean doc style) */
.program-overview-page .program-hero {
  background: none;
  padding: 0;
  margin-bottom: 30px;
  text-align: left;
}

.program-overview-page .program-hero h1 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  margin-bottom: 8px;
  color: #1f2933;
}

.program-overview-page .hero-subtext {
  font-size: 16px;
  color: #555;
  max-width: 600px;
  margin: 0;
}

/* SECTION LAYOUT */
.program-overview-page .program-section {
  margin: 34px 0;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.program-overview-page .program-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.program-overview-page .program-section h2 {
  font-size: clamp(22px, 3vw, 26px);
  font-weight: 600;
  margin-bottom: 8px;
  color: #1f2933;
}

.program-overview-page .program-section p {
  margin-bottom: 12px;
  line-height: 1.6;
  color: #444;
}

/* FEATURE LIST */
.program-overview-page .features {
  list-style: none;
  padding-left: 0;
  margin-top: 14px;
}

.program-overview-page .features li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.program-overview-page .features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #5EBCBC;
  font-weight: bold;
}

/* BUTTON */
.program-overview-page .cta-center {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.program-overview-page .primary-btn {
  background: #5EBCBC;
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  min-width: 220px;
}

.program-overview-page .primary-btn:hover {
  background: #3FAE9C;
}

/* =========================
MODAL (ISOLATED)
========================= */

.earnings-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);

  display: none;
  justify-content: center;
  align-items: center;

  z-index: 5000;
}

.earnings-modal-overlay.active {
  display: flex;
}

.earnings-modal-box {
  max-width: 900px;
  width: 90%;
  max-height: 85vh;
  overflow: auto;

  background: #fff;
  border-radius: 12px;
  padding: 16px;
  position: relative;

  display: flex;
  justify-content: center;
}

.earnings-modal-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 22px;
  cursor: pointer;
}

/* SUBSECTION HEADERS */

.program-overview-page .subsection-title {
  font-size: 18px;
  font-weight: 600;

  margin-top: 20px;     /* 🔥 THIS creates space above */
  margin-bottom: 10px;

  color: #1f2933;
}

.program-overview-page .subsection-title {
  border-left: 3px solid #5EBCBC;
  padding-left: 10px;
}

.program-overview-page a {
  color: #5EBCBC;
  text-decoration: none;
  font-weight: 500;
}

.program-overview-page a:hover {
  text-decoration: underline;
}

.no-link {
  cursor: default;
}

.why-section-cta {
  margin-top: 24px;
  text-align: center;
}

.public-page .multi-select-container {
  position: relative;
  margin-bottom: 22px;
  z-index: 1000;
}

.public-page .multi-select-display {
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  position: relative;
}

.public-page .multi-select-display::after {
  content: "▼";
  position: absolute;
  right: 14px;
  font-size: 0.8rem;
}

.public-page .multi-select-dropdown {
  display: none;            /* hidden by default */
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;

  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;

  z-index: 9999;

  max-height: 240px;
  overflow-y: auto;

  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.public-page .multi-select-dropdown label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  cursor: pointer;
}

.public-page .multi-select-dropdown input[type="checkbox"] {
  width: auto !important;
  margin: 0;
  flex-shrink: 0; /* prevents weird stretching */
}

select,
.multi-select-display {
    font-size: .85rem;
    line-height: 1.2;
    font-weight: 400;
    font-family: inherit;
}

.video-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

/* Clean, predictable sizing */
.video-wrapper iframe {
  width: 100%;
  height: clamp(300px, 50vw, 500px);
  border: 0;
}

.unmute-overlay {
  position: absolute;

  /* START CENTERED */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  background: rgba(0,0,0,0.75);
  color: #fff;

  padding: 16px 20px;
  border-radius: 12px;

  font-size: 16px;
  cursor: pointer;
  z-index: 20;

  transition: all 0.4s ease;
}

/* SHRINK TO CORNER */
.unmute-overlay.corner {
  top: auto;
  left: 20px;
  bottom: 20px;
  transform: none;

  padding: 10px 14px;
  font-size: 14px;
}

input.error {
  border: 2px solid #D46A6A;
  background: #fff5f5;
}

.program-audio-overview{
  margin: 28px 0 34px;
}

.audio-card{
  background:#f7f9f9;
  border:1px solid rgba(0,0,0,0.08);
  border-radius:18px;
  padding:22px;
}

.audio-title{
  font-size:1.05rem;
  font-weight:700;
  margin-bottom:8px;
}

.audio-subtitle{
  color:#666;
  font-size:.95rem;
  margin-bottom:18px;
  line-height:1.5;
}

.program-audio-player{
  width:100%;
}

.milestone-banner{
    width:100%;
    margin:8px auto 14px;
    padding:10px 0;
    display:flex;
    justify-content:center;
    align-items:center;
}

.milestone-banner-img{
    width:100%;
    max-width:900px;
    height:auto;
    display:block;
    border-radius:5px;
}

/* =========================
NOT INTERESTED PAGE
========================= */

.not-interested-wrap{
    min-height:80vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:32px 18px;
    background:#f4f7f7;
}

.not-interested-card{
    max-width:560px;
    width:100%;
    background:#ffffff;
    border-radius:22px;
    padding:38px 32px;
    text-align:center;
    border:1px solid #d7e5e5;
    box-shadow:0 12px 34px rgba(0,0,0,0.06);
}

.not-interested-icon{
    font-size:42px;
    margin-bottom:16px;
    color:#5EBCBC;
    font-weight:700;
}

.not-interested-card h1{
    margin:0 0 14px;
    font-size:30px;
    color:#14385f;
    font-weight:800;
}

.not-interested-card p{
    font-size:18px;
    line-height:1.6;
    color:#475569;
    margin:0 0 20px;
}

.not-interested-card a{
    color:#5EBCBC;
    text-decoration:none;
    font-weight:600;
}

.not-interested-btn{
    display:inline-block;
    margin-top:14px;
    padding:14px 24px;
    background:#5EBCBC;
    color:#ffffff !important;
    text-decoration:none;
    border-radius:999px;
    font-weight:700;
}

@media(max-width:600px){

    .not-interested-card{
        padding:30px 22px;
    }

    .not-interested-card h1{
        font-size:25px;
    }

    .not-interested-card p{
        font-size:16px;
    }

}

.referral-code-label {
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  color: #5EBCBC;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.referral-code-label::before,
.referral-code-label::after {
  display: none;
}

.earnings-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.86);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 18px;
}

.earnings-lightbox-overlay.active {
  display: flex;
}

.earnings-lightbox-inner {
  position: relative;
  width: 100%;
  max-width: 1500px;
}

.earnings-lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

.earnings-lightbox-image {
  display: block;
  width: 100%;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
}



@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
}


