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

body {
  margin: 0;
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1f2933;
}

/* =========================
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;
}

/* FEATURES */

.public-page .features {
  list-style: none;
  padding: 0;
  margin: 10px 0 20px;
}

.public-page .features li {
  margin-bottom: 6px;
  font-size: 15px;
}

/* 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); }
}

/* =========================
AMBASSADOR / PROGRAM PAGE
========================= */

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

.public-page .program-hero {
  background: #5EBCBC;
  color: #ffffff;
  padding: 40px 24px;
  border-radius: 12px;
  margin-bottom: 50px;
}

.public-page .program-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 5vw, 2.6rem);
}

.public-page .program-section {
  margin-bottom: 50px;
}

.public-page .program-section h2 {
  margin-bottom: 16px;
}

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

/* FORM */

.public-page input,
.public-page textarea,
.public-page select {
  width: 100%;
  padding: 14px;
  margin-bottom: 22px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.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;
}

/* =========================
MULTI SELECT (AMBASSADOR)
========================= */

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

.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;
  position: absolute;
  width: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: 6px;
  padding: 10px;
  z-index: 1000;
  max-height: 240px;
  overflow-y: auto;
}

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

.public-page .multi-select-dropdown input[type="checkbox"] {
  margin: 0;
  width: auto;
}

.public-page .multi-select-container {
  position: relative;
  z-index: 10;
}

.public-page button[type="submit"] {
  background: #5EBCBC;
}

.public-page button[type="submit"]:hover {
  background: #4aa5a5;
}

.public-page .multi-select-container {
  position: relative;
  z-index: 10;
}

/* =========================
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) {
  .public-page .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .public-page .footer-links a {
    margin-left: 0;
    margin-right: 12px;
  }
}

/* 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;
}

/* =========================
SHARE BLOCK
========================= */

.public-page .share-block {
  margin: 30px 0 10px;
}

/* BUTTON */

.public-page .share-btn {
  background: #5EBCBC;
  color: #ffffff;

  border: none;
  border-radius: 8px;

  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
  display: inline-block;
}

/* HOVER */

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

/* CONFIRM TEXT */

.public-page .share-confirm {
  margin-top: 6px;
  font-size: 13px;
  color: #5EBCBC;
  display: 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
)