/* ==========================================================================
   FLEX FITNESS | CINEMATIC PT QUESTIONNAIRE STYLESHEET
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Oswald:wght@500;700&family=Inter:wght@400;600&display=swap');

:root {
  --bg-color: #000000;
  --bg-card: #0c0e12;
  --flex-gold: #f2c94c;
  --flex-gold-glow: rgba(242, 201, 76, 0.4);
  --flex-red: #A51C30;
  --text-white: #ffffff;
  --text-gray: #8b92a5;
  --success-green: #27ae60;
  
  --font-impact: 'Anton', sans-serif;
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Zero Scroll Base Layout */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden; /* Lock scroll completely */
  background: var(--bg-color);
  color: var(--text-white);
  font-family: var(--font-body);
  user-select: none;
}

/* Radial energy glow in the background */
.app-viewport {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: clamp(20px, 4vh, 30px) clamp(16px, 3vw, 20px);
  background: radial-gradient(circle at center, #141722 0%, #000000 80%);
  z-index: 1;
}

/* Diagonal scanning hazard line effect */
.app-viewport::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
              linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 4px, 6px 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.4;
}

/* ==========================================================================
   TOP BAR & HEADER
   ========================================================================== */
.header-bar {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo img {
  height: clamp(80px, 9vw, 110px);
  display: block;
}

/* ==========================================================================
   ACTIVE CONSOLE / VIEWPANEL
   ========================================================================== */
.console-panel {
  flex: 1;
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
}

/* Universal Screen States */
.screen-state {
  width: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.screen-state.active {
  display: flex;
  animation: premiumFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Oswald Section Title styles */
.screen-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 4.2vw, 32px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.8);
  white-space: nowrap;
}

.screen-title span.accent {
  color: var(--flex-gold);
  text-shadow: 0 0 15px rgba(242, 201, 76, 0.4);
}

/* Opening Line / Tag Badge */
.opening-line {
  font-family: var(--font-display);
  font-size: clamp(12px, 2vw, 13px);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--flex-gold);
  text-transform: uppercase;
  margin-top: clamp(20px, 4vh, 24px);
  margin-bottom: 0;
  transform: skewX(-6deg);
  background: rgba(242, 201, 76, 0.06);
  border: 1px solid var(--flex-gold);
  padding: 6px clamp(12px, 2vw, 14px);
  display: inline-block;
  text-shadow: 0 0 8px rgba(242, 201, 76, 0.4);
  box-shadow: 0 0 15px rgba(242, 201, 76, 0.05);
}

/* Sub-instructions */
.screen-desc {
  font-size: 15px;
  color: var(--text-gray);
  margin-top: -12px;
  margin-bottom: 24px;
  max-width: 540px;
}

/* ==========================================================================
   MASSIVE CHOICE BUTTONS (WARNING STYLE)
   ========================================================================== */
.choice-stack {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 2vh, 12px);
}

.choice-btn {
  width: 100%;
  background: rgba(22, 26, 34, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px clamp(16px, 3vw, 24px);
  color: var(--text-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 2.5vw, 21px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  cursor: pointer;
  transform: skewX(-6deg);
  box-shadow: 5px 5px 0px #000000;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.choice-btn::after {
  content: '\f061';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, color 0.2s ease;
}

.choice-btn:hover {
  background: var(--flex-gold);
  color: #000000;
  border-color: var(--flex-gold);
  transform: skewX(-6deg) translate(-2px, -2px);
  box-shadow: 8px 8px 0px #000000, 0 0 20px rgba(242, 201, 76, 0.35);
}

.choice-btn:hover::after {
  color: #000000;
  transform: translateX(4px);
}

.choice-btn:active {
  transform: skewX(-6deg) translate(2px, 2px);
  box-shadow: 2px 2px 0px #000000;
}

/* ==========================================================================
   HEAVY SLAMMING PLAQUES (RESEARCH POPUPS)
   ========================================================================== */
.plaque-wrapper {
  perspective: 1000px;
  width: 100%;
  max-width: 620px;
  display: flex;
  justify-content: center;
}

.industrial-plaque {
  width: 100%;
  background: var(--bg-card);
  border: 4px solid var(--flex-gold);
  box-shadow: 15px 15px 0px #000000;
  padding: 30px clamp(20px, 4vw, 40px);
  transform: skewX(-4deg) rotate(-1deg);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  position: relative;
  text-align: center;
}

/* Hazard top/bottom borders */
.plaque-hazard {
  height: 8px;
  width: 100%;
  background: repeating-linear-gradient(
    -45deg,
    #000,
    #000 8px,
    var(--flex-gold) 8px,
    var(--flex-gold) 16px
  );
  margin-bottom: 20px;
}

.plaque-hazard.bottom {
  margin-top: 24px;
  margin-bottom: 0;
}

.cit-badge {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-white);
  background: var(--flex-red);
  padding: 4px 14px;
  display: inline-block;
  letter-spacing: 0.1em;
  transform: skewX(-8deg);
  margin-bottom: 20px;
}

.plaque-statement {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--text-white);
  margin-bottom: 12px;
}

.plaque-stat {
  font-family: var(--font-impact);
  font-size: clamp(70px, 10vw, 110px);
  line-height: 1;
  color: var(--flex-gold);
  margin-bottom: 15px;
  text-shadow: 0 0 25px rgba(242, 201, 76, 0.4);
}

.plaque-note {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto 24px auto;
}

.proceed-btn {
  background: var(--flex-gold);
  color: #000;
  border: none;
  padding: 16px 40px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transform: skewX(-6deg);
  box-shadow: 4px 4px 0px #000000;
  transition: var(--transition-smooth);
}

.proceed-btn:hover {
  transform: skewX(-6deg) translateY(-2px);
  box-shadow: 6px 6px 0px #000000, 0 0 15px rgba(242, 201, 76, 0.4);
}

.proceed-btn:active {
  transform: skewX(-6deg) translateY(1px);
  box-shadow: 2px 2px 0px #000000;
}

/* ==========================================================================
   FINAL LEAD CAPTURE SCREEN (DOCKET STYLE)
   ========================================================================== */
.lead-plaque {
  width: 100%;
  max-width: 620px;
  background: var(--bg-card);
  border: 4px solid var(--flex-gold);
  box-shadow: 15px 15px 0px #000000;
  padding: 36px clamp(20px, 4vw, 40px);
  transform: skewX(-4deg) rotate(-1deg);
  text-align: left;
}

@media (max-width: 576px) {
  .lead-plaque {
    padding: 24px 20px;
  }
}

.lead-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--flex-gold);
  margin-bottom: 6px;
  text-shadow: 0 0 10px rgba(242, 201, 76, 0.2);
}

.lead-desc {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 24px;
  line-height: 1.5;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-block {
  display: flex;
  background: #12141a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition-smooth);
  width: 100%;
}

.input-block:focus-within {
  border-color: var(--flex-gold);
  box-shadow: 0 0 15px rgba(242, 201, 76, 0.2);
}

.input-badge {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--flex-gold);
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px clamp(12px, 2vw, 18px);
  width: clamp(115px, 25vw, 140px);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.form-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px 16px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  width: 100%;
}

.form-input:focus {
  outline: none;
}

.submit-btn {
  background: var(--flex-gold);
  color: #000;
  border: none;
  padding: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transform: skewX(-4deg);
  transition: var(--transition-smooth);
  box-shadow: 4px 4px 0px #000000;
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.submit-btn:hover {
  transform: skewX(-4deg) translateY(-2px);
  box-shadow: 6px 6px 0px #000000, 0 0 20px rgba(242, 201, 76, 0.45);
}

.submit-btn:active {
  transform: skewX(-4deg) translateY(1px);
  box-shadow: 2px 2px 0px #000000;
}

.form-privacy {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  margin-top: 10px;
}

.form-privacy i {
  color: var(--flex-gold);
}

/* ==========================================================================
   SUCCESS TICKET STATE
   ========================================================================== */
.ticket-wrapper {
  background: var(--bg-card);
  border: 3px dashed var(--flex-gold);
  padding: 40px;
  box-shadow: 12px 12px 0px #000000;
  max-width: 520px;
  width: 100%;
}

.ticket-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(39, 174, 96, 0.1);
  border: 2px solid var(--success-green);
  color: var(--success-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px auto;
}

.ticket-title {
  font-family: var(--font-display);
  font-size: 32px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}

.ticket-subtitle {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 24px;
}

.ticket-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(242, 201, 76, 0.08);
  border: 1px dashed var(--flex-gold);
  color: var(--flex-gold);
  padding: 10px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   PROGRESS FOOTER
   ========================================================================== */
.footer-bar {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 15px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-quote {
  font-size: clamp(10px, 1.2vw, 13px);
  color: var(--text-gray);
  max-width: 650px;
  flex: 1;
  min-width: 250px;
  line-height: 1.4;
  text-align: left;
}

.footer-quote strong {
  color: var(--text-gray);
  font-weight: 600;
}

.step-tracker {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-gray);
}

.step-tracker span.highlight {
  color: var(--flex-gold);
}

/* Premium Fade-In Keyframes */
@keyframes premiumFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Countdown Timer UI Element */
.header-timer-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.timer-badge-label {
  font-family: var(--font-body);
  font-size: clamp(9px, 1.2vw, 10px);
  font-weight: 600;
  color: var(--text-gray);
  text-transform: none;
  letter-spacing: 0.01em;
  line-height: 1.3;
  max-width: 320px;
  padding-left: 2px;
}

.header-timer {
  font-family: var(--font-display);
  font-size: clamp(12px, 1.8vw, 14px);
  font-weight: 700;
  color: var(--flex-gold);
  border: 1px solid var(--flex-gold);
  background: rgba(242, 201, 76, 0.05);
  padding: 5px clamp(10px, 2vw, 12px);
  transform: skewX(-6deg);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 20;
  letter-spacing: 0.05em;
  box-shadow: 0 0 10px rgba(242, 201, 76, 0.1);
  text-shadow: 0 0 5px rgba(242, 201, 76, 0.4);
}

/* Success Ticket Special Bonus Card styling */
.bonus-card {
  margin-top: 20px;
  background: rgba(39, 174, 96, 0.08);
  border: 1px solid var(--success-green);
  padding: 16px 20px;
  text-align: left;
  transform: skewX(-4deg);
  box-shadow: 0 0 15px rgba(39, 174, 96, 0.1);
}

.bonus-badge {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--success-green);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bonus-text {
  font-size: 13px;
  color: var(--text-white);
  line-height: 1.4;
}

.bonus-text strong {
  color: var(--flex-gold);
}

/* Mobile Scroll Support Override & Layout Enhancements */
@media (max-width: 768px) {
  html, body {
    overflow-y: auto; /* Enable vertical scroll bar dynamically on mobile height limitations */
  }
  
  .app-viewport {
    height: auto;
    min-height: 100vh;
    padding: 20px 16px;
  }

  /* Stack header bar elements vertically to prevent side-by-side squishing */
  .header-bar {
    flex-direction: column-reverse;
    gap: 16px;
    align-items: center;
    text-align: center;
    padding-bottom: 16px;
  }

  .header-timer-group {
    align-items: center;
    text-align: center;
  }

  .timer-badge-label {
    text-align: center;
    max-width: 100%;
    padding: 0 10px;
  }

  .logo img {
    height: 70px; /* Keep logo readable but reasonably sized */
  }

  /* Center and stack footer elements */
  .footer-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding-top: 15px;
    margin-top: 20px;
  }

  .footer-quote {
    text-align: center;
    min-width: 0;
  }

  /* Prevent choice button clipping */
  .choice-btn {
    transform: skewX(-3deg);
  }
  
  .choice-btn:hover {
    transform: skewX(-3deg) translate(-2px, -2px);
  }
  
  .choice-btn:active {
    transform: skewX(-3deg) translate(2px, 2px);
  }
}

@media (max-width: 576px) {
  /* Prevent title truncation/overflow on narrow mobile screens */
  .screen-title {
    white-space: normal;
    font-size: clamp(20px, 6vw, 26px);
    line-height: 1.2;
    padding: 0 10px;
  }

  /* Prevent plaque/ticket overflow and clipping due to skew & heavy shadow */
  .industrial-plaque, .lead-plaque, .ticket-wrapper {
    width: calc(100% - 16px);
    margin-left: 8px;
    margin-right: 8px;
    transform: skewX(-2deg) rotate(-0.5deg);
    box-shadow: 8px 8px 0px #000000;
  }

  /* Stack form input badges and text inputs vertically for ample breathing room */
  .input-block {
    flex-direction: column;
    align-items: stretch;
  }

  .input-badge {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 14px;
  }

  .form-input {
    padding: 12px 14px;
    font-size: 15px;
  }

  /* Adjust ticket padding */
  .ticket-wrapper {
    padding: 30px 20px;
  }
}
