/* ===== FONT SETUP ===== */
@font-face {
  font-family: "FKScreamer";
  src: url("assets/fonts/FKScreamer-Upright.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Balto Thin";
  src: url("assets/fonts/Balto-Thin.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Balto Light";
  src: url("assets/fonts/Balto-Light.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Balto Book";
  src: url("assets/fonts/Balto-Book.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Balto Medium";
  src: url("assets/fonts/Balto-Medium.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Balto Bold";
  src: url("assets/fonts/Balto-Bold.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Balto Black";
  src: url("assets/fonts/Balto-Black.otf") format("opentype");
  font-display: swap;
}

:root {
  --pink: #ec0b8c;
  --cream: #f8eed5;
  --salt: #ffd768;
  --crab: #ef8b2c;
  --black: #111;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Balto Medium", Arial, sans-serif;
  color: var(--black);
}

/* APP */
.phone-frame {
  position: relative;
  width: min(100vw, calc(100vh * 0.5625));
  height: 100vh;
  overflow: hidden;
  background: #000;
}

/* SCREENS */
.screen {
  display: none;
  position: absolute;
  inset: 0;
  padding: 18px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.screen.active {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* BACKGROUNDS */
.bg-stars {
  background-image: url("assets/images/VB Stars Background.png");
}

.bg-orange {
  background-image: url("assets/images/VB Quiz Backgrounds.png");
}

.bg-photo {
  background-image: url("assets/images/VB Photo Background.png");
}

/* ─── SCREEN 1: IDLE ───
   Reference: h1 top-center, p below, START QUIZ button below p
   Hero card sits slightly above center */
.hero-card {
  width: 95%;
  text-align: center;
  margin-top: -35px; /* pull slightly above center */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-card h1 {
  width: 100%;
  margin: 0;
  padding: 18px 14px 16px;
  background: #f6ecd4;
  font-family:
    "Balto Black",
    Arial Black,
    sans-serif;
  font-size: clamp(54px, 7.4vh, 82px);
  line-height: 0.88;
  letter-spacing: 0px;
  text-align: center;
  border-radius: 7px;
}

.hero-card p {
  width: 72%;
  margin: 18px 0 0;
  padding: 14px 18px;
  background: #f6ecd4;
  font-family:
    "Balto Bold",
    Arial Black,
    sans-serif;
  font-size: clamp(22px, 2.8vh, 30px);
  line-height: 0.98;
  letter-spacing: 0px;
  text-align: center;
  border-radius: 7px;
}

.hero-card .pink-btn {
  margin-top: 24px;
  padding: 18px 44px;
  font-family:
    "Balto Black",
    Arial Black,
    sans-serif;
  font-size: 26px;
  line-height: 1;
  border-radius: 7px;
}

/* ─── SCREEN 2: DATA CAPTURE ───
   Reference: panel starts near top (~15% from top), h2 at top of panel,
   then form fields stacked, keyboard below fields, SUBMIT at bottom */
.orange-panel {
  position: relative;
  width: 94%;
  /* fill most of screen height so keyboard fits */
  min-height: 80%;
  margin-top: 0;
  padding: 22px 28px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.orange-panel h2 {
  margin: 0 0 10px;
  font-family:
    "Balto Black",
    Arial Black,
    sans-serif;
  font-size: clamp(38px, 5.5vh, 54px);
  line-height: 0.88;
  text-align: center;
}

.data-panel {
  padding-top: 8px;
}

#leadForm {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* INPUTS — tighter margin so keyboard fits */
.data-panel input[type="text"],
.data-panel input[type="email"],
.data-panel input:not([type="checkbox"]) {
  width: 100%;
  height: 36px;
  margin: 4px 0;
  padding: 0 12px;
  border: 0;
  border-radius: 5px;
  background: #f4f4f4;
  font-size: 11px;
  font-weight: 700;
  color: #222;
}

/* TERMS */
.terms-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  margin: 4px 0 2px;
  font-size: 8px;
  line-height: 1.1;
  flex-wrap: nowrap;
  font-family: "Balto Book", Arial, sans-serif;
  font-weight: 800;
}

.terms-row input {
  width: 12px;
  height: 12px;
  margin: 0;
  accent-color: var(--crab);
  flex-shrink: 0;
}

.terms-row button,
.link-btn {
  border: 0;
  padding: 0;
  background: transparent;
  color: #111;
  font-size: 9px;
  font-weight: 900;
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}

/* KEYBOARD — sits right below the terms row */
.screen-keyboard {
  width: 100%;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: "Balto Book", Arial, sans-serif;
}

.kb-row {
  display: flex;
  justify-content: center;
  gap: 3px;
}

.kb-row button {
  min-width: 24px;
  height: 24px;
  border: 0;
  border-radius: 3px;
  background: #f2f2f2;
  font-size: 8px;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-family: "Balto Book", Arial, sans-serif;
}

.kb-row button.wide {
  min-width: 42px;
}

.kb-row button.return {
  min-width: 44px;
  background: #2788de;
  color: #fff;
}

.kb-row button.space {
  min-width: 138px;
}

/* SUBMIT — centered, below keyboard */
.data-panel .pink-btn {
  margin-top: 10px;
  padding: 12px 56px;
  font-size: 20px;
}

/* CANCEL — small link below submit */
.cancel-btn {
  margin-top: 6px;
  font-size: 12px;
}

/* BUTTON */
.pink-btn {
  border: 0;
  border-radius: 5px;
  background: var(--pink);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  padding: 14px 48px;
  cursor: pointer;
  /* box-shadow: 0 5px 0 #b5086f; */
  font-family: "Balto Medium", Arial, sans-serif;
}

/* ─── SCREEN 3: QUIZ ───
   Reference: question title near top of orange panel, 4 answer buttons,
   SUBMIT below answers, dot indicators at bottom */
.quiz-panel {
  padding-top: 36px;
  justify-content: flex-start;
}

.quiz-panel h2 {
  margin: 0 0 22px;
  font-family:
    "Balto Black",
    Arial Black,
    sans-serif;
  font-size: clamp(30px, 4.7vh, 44px);
  line-height: 1;
  text-align: center;

  /* add */
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.answers {
  width: 100%;
  display: grid;
  gap: 12px;

  /* add */
  min-height: 180px;
}

.answer {
  min-height: 36px;
  border: 0;
  border-radius: 4px;
  background: var(--cream);
  padding: 9px 14px;
  font-size: clamp(11px, 1.7vh, 14px);
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  text-align: left;
  font-family: "Balto Book", Arial, sans-serif;
}

.answer.selected {
  background: var(--pink);
  color: #fff;
}

.quiz-panel .pink-btn {
  margin-top: 22px;
  padding: 13px 55px;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;

  /* add */
  height: 12px;
}
.dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  display: block;
}

.dots i.on {
  background: var(--salt);
}

/* ─── SCREEN 3b: PRE-PHOTO ───
   Reference: "Thank you!" large, subtitle below, TAKE PHOTO button centered */
.thanks-panel {
  padding-top: 0;
  justify-content: center;
  text-align: center;
  gap: 0;
}

.thanks-panel h2 {
  font-family:
    "Balto Black",
    Arial Black,
    sans-serif;
  font-size: clamp(48px, 7vh, 64px);
  margin: 0 0 14px;
  line-height: 0.9;
}

.thanks-panel p {
  margin: 0 0 26px;
  font-size: clamp(18px, 2.8vh, 28px);
  line-height: 1.05;
  text-align: center;
  font-weight: 400;
  font-family:
    "Balto Bold",
    Arial Black,
    sans-serif;
}

/* ─── SCREEN 4: PHOTO ───
   Reference: poster top aligned, buttons at bottom */
.photo-screen.active {
  padding: 0;
  overflow: hidden;
  background-image: url("assets/images/backgound\ screen.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.photo-poster {
  width: 100%;
  height: calc(100vh - 110px);
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}

.output-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.camera-actions {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 20px;
  height: 80px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
}

.input-video {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.camera-actions .pink-btn {
  width: 46%;
  max-width: 230px;
  height: 64px;
  padding: 0;
  font-size: 22px;
  font-family:
    "Balto Black",
    Arial Black,
    sans-serif;
}

.camera-actions .link-btn {
  font-family: "Balto Bold", Arial, sans-serif;
  font-size: 15px;
  font-weight: 900;
  text-decoration: underline;
}
.review-actions{
  justify-content:center !important;
  gap:22px;
}

.review-actions .pink-btn{
  width:42% !important;
  max-width:180px !important;
  height:56px !important;
  font-size:18px !important;
  padding:0 !important;
}
/* COUNTDOWN — overlay centered on canvas */
.countdown {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: grid;
  place-content: center;
  text-align: center;
  color: #fff;
  z-index: 5;
}

.countdown b {
  width: 68px;
  height: 68px;
  margin: 0 auto 6px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 7px solid #fff;
  background: var(--crab);
  font-size: 32px;
}

.countdown span {
  font-size: 56px;
  font-weight: 900;
  display: block;
  line-height: 1;
}

.countdown small {
  font-size: 30px;
  font-weight: 900;
  display: block;
}

/* ─── SCREEN 5: FINAL ───
   Reference: "Thank you!" + subtitle at top-center on star bg,
   poster preview large below — takes most of remaining space */
#screen-final {
  justify-content: flex-start;
  padding-top: 20px;
  align-items: center;
  gap: 6px;
}

.final-title {
  margin: 0 0 2px;
  font-family:
    "Balto Black",
    Arial Black,
    sans-serif;
  font-size: clamp(38px, 6vh, 56px);
  line-height: 0.9;
  text-align: center;
}

.screen h3 {
  margin: 0 0 8px;
  text-align: center;
  font-family:
    "Balto Black",
    Arial Black,
    sans-serif;
  font-size: clamp(18px, 3vh, 28px);
  line-height: 0.95;
}

.poster-small {
  width: 75%;
  max-width: 360px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.poster-small img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
/* ─── MODAL ─── */
.hidden {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: grid;
  place-items: center;
  z-index: 50;
}

.modal-card {
  position: relative;
  width: min(92vw, 460px);
  padding: 28px;
  background: #fff;
  text-align: center;
}

.modal-card h2 {
  font-family: "FKScreamer", sans-serif;
  font-size: 42px;
  margin: 0 0 14px;
}

.modal-card p {
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 20px;
}

.x {
  position: absolute;
  top: 14px;
  right: 18px;
  border: 0;
  background: transparent;
  font-size: 32px;
  cursor: pointer;
}
.email-screen {
  background: #1d6d67;
  justify-content: center;
  align-items: center;
  padding: 40px 25px;
}

.email-card {
  width: 85%;
  background: #1f6b65;
  color: white;
  text-align: center;
  padding: 30px;
  border-radius: 10px;
}

.email-header {
  margin-bottom: 30px;
  font-size: 14px;
  font-weight: 700;
}

.email-card h2 {
  font-family: "Balto Black";
  font-size: 34px;
  margin-bottom: 10px;
}

.email-card p {
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 30px;
}

.email-poster {
  width: 100%;
  display: flex;
  justify-content: center;
}

.email-poster img {
  width: 75%;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .phone-frame {
    width: 100vw;
    height: 100vh;
  }
}

@media (max-width: 480px) {
  .photo-poster {
    height: 78vh;
  }

  .camera-actions {
    left: 20px;
    right: 20px;
    bottom: 22px;
  }

  .camera-actions .pink-btn {
    width: 56%;
    height: 62px;
    font-size: 21px;
  }

  .hero-card h1 {
    font-size: 13vw;
  }

  .hero-card p {
    font-size: 5vw;
  }

  .orange-panel {
    padding: 18px 22px 12px;
  }

  .orange-panel h2 {
    font-size: 12vw;
  }

  .data-panel input:not([type="checkbox"]) {
    height: 34px;
    font-size: 10px;
  }

  .terms-row {
    font-size: 7px;
  }

  .quiz-panel h2 {
    font-size: 8.5vw;
  }

  .answer {
    font-size: 3vw;
  }

  .poster-small {
    width: 88%;
    max-width: 380px;
  }

  .final-title {
    font-size: 13vw;
  }

  .screen h3 {
    font-family:
      "Balto Black",
      Arial Black,
      sans-serif;
    font-size: 6.5vw;
  }

  .kb-row button {
    min-width: 21px;
    height: 21px;
    font-size: 7px;
  }

  .kb-row button.wide {
    min-width: 38px;
  }

  .kb-row button.return {
    min-width: 38px;
  }

  .kb-row button.space {
    min-width: 120px;
  }
  @media (max-width: 380px) {
  .camera-actions .pink-btn {
    font-size: 18px;
  }

  .review-actions .pink-btn {
    font-size: 16px !important;
  }

  .quiz-panel h2 {
    font-size: 8vw;
  }
}
}
