/* Champions Club Design System - Stock Market Luxury Dark Theme */
:root {
  --bg-color: #000000;
  --text-color: #ffffff; /* White for dark theme contrast */
  --text-muted: #94a3b8; /* Soft slate grey */
  --accent-color: #F1B33B; /* Premium Gold */
  --accent-text: #ffffff;
  --accent-hover: #d6972a;
  --border-color: rgba(255, 255, 255, 0.15);
  --border-focus: #F1B33B;
  --card-bg: rgba(255, 255, 255, 0.05); /* Glassmorphic dark input base */
  --card-bg-selected: rgba(241, 179, 59, 0.15); /* Gold glassmorphic highlight */
  --card-bg-hover: rgba(255, 255, 255, 0.12);
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --border-radius: 12px;
  --transition-smooth: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35);
  --glass-border: 1px solid rgba(255, 255, 255, 0.12);
  --glass-highlight: inset 0 1px 1px 0 rgba(255, 255, 255, 0.05);
}

/* Base resets & screen locking */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* Screen background (Mint-Green to Blue stock gradient + watermark) */
.form-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: #000000;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' opacity='0.03'%3E%3Cpath fill='%23F1B33B' fill-opacity='1' d='M0,192L80,197.3C160,203,320,213,480,186.7C640,160,800,96,960,80C1120,64,1280,96,1360,112L1440,128L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320C0,320,0,320,0,320Z'%3E%3C/path%3E%3Cpath fill='%23F1B33B' fill-opacity='0.5' d='M0,224L80,218.7C160,213,320,203,480,170.7C640,139,800,85,960,85C1120,85,1280,139,1360,165L1440,192L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320C0,320,0,320,0,320Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  background-position: bottom;
  transition: var(--transition-smooth);
}

.form-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  opacity: 0.02;
  transition: opacity 0.5s ease;
}

/* App Header Logo */
.app-logo-header {
  position: absolute;
  top: 32px;
  left: 48px;
  right: auto;
  z-index: 150;
  pointer-events: none;
}

.logo-img {
  height: 48px;
  width: auto;
  pointer-events: auto;
  display: block;
}

.logo-img.hidden {
  display: none;
}

/* Custom visual layouts */
.form-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 40px 100px 40px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
}

.form-screen.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 10;
}

.screen-content {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

/* Welcome page Centered Alignments */
#screen-welcome .screen-content {
  text-align: center;
  align-items: center;
}

#screen-welcome .cta-button {
  align-self: center;
}

/* Loading animations */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader-inner {
  text-align: center;
  width: 280px;
}

.loader-logo {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-logo-img {
  height: 64px;
  width: auto;
  display: block;
}

.progress-track {
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #F1B33B;
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(241, 179, 59, 0.6);
}

@keyframes loadingProgress {
  0% { width: 0%; transform: translateX(-100%); }
  50% { width: 40%; transform: translateX(50%); }
  100% { width: 100%; transform: translateX(200%); }
}

.loader-bar-anim {
  animation: loadingProgress 1.6s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main Form App Structure */
.app-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.app-container.hidden {
  opacity: 0;
  pointer-events: none;
}

.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 100;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background-color: var(--accent-color);
  transition: width 0.5s cubic-bezier(0.1, 0.8, 0.2, 1);
  box-shadow: 0 0 12px rgba(241, 179, 59, 0.4);
}

.screens-wrapper {
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Slide Transitions */
.slide-in-up {
  animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-out-up {
  animation: slideOutUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-in-down {
  animation: slideInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-out-down {
  animation: slideOutDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInUp {
  from { transform: translateY(120px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideOutUp {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-120px); opacity: 0; }
}

@keyframes slideInDown {
  from { transform: translateY(-120px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideOutDown {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(120px); opacity: 0; }
}

/* Screen Typography */
.welcome-title {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  text-align: center;
  width: 100%;
  color: var(--text-color);
  letter-spacing: -0.02em;
  display: block;
}

.welcome-subtitle {
  margin-bottom: 1.5rem;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 1.6rem;
  text-align: center;
}

.screen-title {
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 2.2rem;
  color: var(--text-color);
  letter-spacing: -0.01em;
  display: flex;
  align-items: flex-start;
}

.question-number {
  font-size: 1.15rem;
  color: var(--accent-color);
  margin-right: 16px;
  margin-top: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.question-number svg {
  margin-left: 4px;
}

.screen-subtitle {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--accent-color);
  line-height: 1.5;
  margin-bottom: 2rem;
}

.screen-description {
  font-size: 1.35rem; /* Restored to original size */
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.2rem;
}

.description-para {
  margin-bottom: 1.2rem; /* Increased spacing between text segments */
}

.description-para:last-child {
  margin-bottom: 0;
}

/* iPhone Glassmorphic Inputs */
.input-container {
  width: 100%;
  margin-bottom: 2.2rem;
  position: relative;
}

.form-input-text {
  width: 100%;
  background-color: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-color);
  padding: 16px 20px;
  outline: none;
  transition: var(--transition-smooth);
}

.form-input-text::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-input-text:focus {
  border-color: var(--border-focus);
  background-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px 0 rgba(241, 179, 59, 0.08), var(--glass-highlight);
}

/* Custom Text Area with Glass */
.form-input-textarea {
  width: 100%;
  min-height: 140px;
  background-color: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-color);
  padding: 16px 20px;
  outline: none;
  resize: none;
  transition: var(--transition-smooth);
}

.form-input-textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-input-textarea:focus {
  border-color: var(--border-focus);
  background-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px 0 rgba(241, 179, 59, 0.08), var(--glass-highlight);
}

/* WhatsApp Phone Input Glassmorphism */
.phone-wrapper {
  display: flex;
  gap: 16px;
  align-items: center;
  background-color: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  padding: 0 20px;
  transition: var(--transition-smooth);
}

.phone-wrapper:focus-within {
  border-color: var(--border-focus);
  background-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px 0 rgba(241, 179, 59, 0.08), var(--glass-highlight);
}

.country-select-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.country-select-display {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-color);
  padding: 16px 20px 16px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
  white-space: nowrap;
  width: 110px;
  min-width: 110px;
  max-width: 110px;
  box-sizing: border-box;
}

.select-arrow {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

.country-select {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
  outline: none;
}

.country-select option {
  background-color: #ffffff;
  color: #0c1a30;
}

.form-input-phone {
  flex: 1;
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-color);
  padding: 16px 0;
  outline: none;
}

.form-input-phone::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* Helper Tips */
.input-tip {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition-fast);
}

.form-input-text:focus ~ .input-tip,
.form-input-textarea:focus ~ .input-tip,
.phone-wrapper:focus-within ~ .input-tip {
  opacity: 1;
  transform: translateY(0);
}

.error-message {
  color: var(--danger-color);
  font-size: 0.9rem;
  margin-top: 12px;
  display: none;
  align-items: center;
  gap: 8px;
  animation: slideInUp 0.3s ease;
}

/* Multiple Choice Option Cards (iPhone Glass Effect) */
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 520px;
}

.option-card {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 56px;
  background-color: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  padding: 14px 20px;
  cursor: pointer;
  transition: var(--transition-fast);
  outline: none;
  color: var(--text-color);
}

.option-card:hover {
  background-color: var(--card-bg-hover);
  border-color: rgba(241, 179, 59, 0.25);
  transform: translateY(-1px);
}

.option-card.selected {
  background-color: var(--card-bg-selected);
  border-color: var(--border-focus);
  box-shadow: 0 10px 25px rgba(241, 179, 59, 0.2), var(--glass-highlight);
  transform: scale(1.015);
}

.option-card:active {
  transform: scale(0.985);
}

.option-card:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* Keyboard keys badges */
.option-key {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 26px;
  height: 26px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 14px;
  color: var(--text-color);
  text-transform: uppercase;
  transition: var(--transition-fast);
}

.option-card.selected .option-key {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--accent-text);
}

.option-label {
  font-size: 1.25rem;
  font-weight: 500;
  flex: 1;
}

.option-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  color: transparent;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.option-card.selected .option-check {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--accent-text);
}

/* Other text option inputs */
.other-input-container {
  width: 100%;
  margin-top: 10px;
  display: none;
  animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.other-input-container.active {
  display: block;
}

.form-input-other {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border-color);
  color: var(--text-color);
  font-size: 1.15rem;
  padding: 12px 0;
  outline: none;
  transition: var(--transition-smooth);
}

.form-input-other:focus {
  border-bottom-color: var(--border-focus);
}

/* OK button styling */
.cta-button {
  background-color: var(--accent-color);
  color: var(--accent-text);
  border: none;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 14px 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
  align-self: flex-start;
  min-height: 48px;
  box-shadow: 0 4px 12px rgba(241, 179, 59, 0.25);
}

.cta-button:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(241, 179, 59, 0.45);
}

.cta-button:active {
  transform: translateY(0);
}

.btn-confirm {
  font-size: 1rem;
  min-height: 40px;
  padding: 10px 24px;
}

.button-tip {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.button-tip kbd {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 3px 6px;
  font-family: inherit;
  font-size: 0.75rem;
  color: var(--text-color);
}

/* Bottom Navigation Controls */
.navigation-controls {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 24px 40px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 50;
  pointer-events: none;
}

.navigation-info {
  font-size: 0.9rem;
  color: var(--text-muted);
  pointer-events: auto;
  padding-bottom: 8px;
}

.curr-question {
  color: var(--text-color);
  font-weight: 600;
}

/* Vertical layout wrapping arrows and branding */
.navigation-buttons-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: auto;
}

.navigation-buttons {
  display: flex;
  gap: 2px;
}

.nav-btn {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-color);
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.nav-btn:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.12);
}

.nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.nav-btn-prev {
  border-radius: 6px 0 0 6px;
}

.nav-btn-next {
  border-radius: 0 6px 6px 0;
}



/* Thank You Screen Specific Centered Styling */
.thankyou-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(241, 179, 59, 0.1);
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 32px;
  animation: pulse 2s infinite;
  margin-left: auto;
  margin-right: auto;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(241, 179, 59, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(241, 179, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(241, 179, 59, 0); }
}

#screen-thankyou .screen-content {
  align-items: center;
  text-align: center;
}

.whatsapp-btn {
  background-color: #25D366;
  color: #ffffff;
  min-height: 52px;
  align-self: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

.whatsapp-btn:hover {
  background-color: #22c35e;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* Screen Responsiveness Rules */
@media (max-width: 768px) {
  /* Logo positioned at center-top on mobile */
  .app-logo-header {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 0 auto 32px auto;
    width: 100%;
    display: block;
    pointer-events: auto;
  }
  .logo-img {
    height: 40px;
    margin: 0 auto;
    display: block;
  }

  .form-screen {
    padding: 40px 24px 120px 24px;
  }
  
  .welcome-title {
    font-size: 2.1rem;
    margin-bottom: 0.5rem;
  }
  
  .welcome-subtitle {
    font-size: 1.35rem;
    margin-bottom: 1.2rem;
  }

  .screen-description {
    font-size: 1.25rem;
    margin-bottom: 1.8rem;
    line-height: 1.5;
  }

  .description-para {
    margin-bottom: 0.9rem;
  }

  .screen-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }
  
  .screen-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }
  
  .form-input-text {
    font-size: 1.25rem;
    padding: 12px 16px;
  }
  
  .form-input-textarea {
    font-size: 1.2rem;
    padding: 12px 16px;
  }
  
  .phone-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
  }
  
  .country-select-display {
    width: 95px;
    min-width: 95px;
    max-width: 95px;
    padding: 12px 12px 12px 0;
    font-size: 1.2rem;
  }
  
  .form-input-phone {
    font-size: 1.25rem;
    padding: 12px 0;
    flex: 1;
    width: auto;
  }

  .cta-button {
    font-size: 1.1rem;
    width: 100%;
    justify-content: center;
  }
  
  .button-tip {
    display: none;
  }
  
  .navigation-controls {
    padding: 16px 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0) 100%);
  }
  
  .nav-btn {
    width: 40px;
    height: 40px;
  }
}

@media (max-height: 520px) {
  .form-screen {
    padding-top: 80px;
    padding-bottom: 70px;
  }
  .screen-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
  }
  .screen-subtitle {
    font-size: 1.05rem;
    margin-bottom: 1rem;
  }
  .screen-description {
    margin-bottom: 1.5rem;
  }
}

/* ==========================================================================
   STATIC OUTER LAYOUT & DARK-GLASS CONTAINER BOX
   ========================================================================== */

.page-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 52px 20px 40px 20px; /* 52px top clears the 3px fixed progress bar */
  min-height: 100vh;
  width: 100%;
  background: #000000;
  overflow-y: auto;
}

.page-logo {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.page-logo img {
  height: 48px;
  width: auto;
}

.page-heading {
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 32px 0;
  padding: 0;
  max-width: 800px;
}

.form-container {
  /* Scoped dark-glass-theme variables */
  --text-color: #F0F0F0;
  --text-muted: #999999;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-bg-hover: rgba(255, 255, 255, 0.08);
  --card-bg-selected: rgba(241, 179, 59, 0.18);
  --border-color: rgba(255, 255, 255, 0.12);
  --border-focus: var(--accent-color);
  --glass-border: 1px solid rgba(241, 179, 59, 0.15);
  --glass-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  background: linear-gradient(145deg, rgba(14, 14, 14, 0.98) 0%, rgba(5, 5, 5, 0.99) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 16px;
  width: 100%;
  max-width: 800px;
  height: 560px;
  min-height: 560px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(241, 179, 59, 0.22);
  box-shadow:
    0 0 0 1px rgba(241, 179, 59, 0.06),
    0 0 55px rgba(241, 179, 59, 0.18),
    0 0 110px rgba(241, 179, 59, 0.08),
    0 30px 90px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
}

/* Scoped layout overrides for screens inside container */
.form-container .screens-wrapper {
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
}

.form-container .form-screen {
  padding: 40px 48px 48px 48px !important;
  display: flex;
  align-items: flex-start; /* flex-start prevents overflow clipping on tall questions */
  justify-content: center;
  overflow-y: auto;
  -ms-overflow-style: none;  /* hide scrollbar IE/Edge */
  scrollbar-width: none;     /* hide scrollbar Firefox */
}

.form-container .form-screen::-webkit-scrollbar {
  display: none; /* hide scrollbar Chrome/Safari */
}

.form-container .screen-content {
  min-height: auto;
  height: auto;
  width: 100%;
  margin: auto 0; /* centers vertically when content is short; collapses when content overflows */
}


/* Scoped text color adjustments — dark glass theme */
.form-container .welcome-title {
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  margin-bottom: 40px !important;
  text-align: center !important;
}

.form-container .screen-title {
  color: #F0F0F0 !important;
  font-weight: 600 !important;
}

.form-container .question-number {
  color: var(--accent-color) !important;
}

/* Underline-only inputs — dark glass */
.form-container .form-input-text,
.form-container .form-input-textarea,
.form-container .phone-wrapper {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 12px 0 !important;
  color: #F0F0F0 !important;
}

.form-container .form-input-text:focus,
.form-container .form-input-textarea:focus,
.form-container .phone-wrapper:focus-within {
  border-bottom-color: var(--border-focus) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.form-container .form-input-phone {
  color: #F0F0F0 !important;
  padding: 12px 0 !important;
}

.form-container ::placeholder {
  color: rgba(255, 255, 255, 0.32) !important;
}

.form-container .country-select-display {
  border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
  padding: 12px 12px 12px 0 !important;
  color: #F0F0F0 !important;
}

.form-container .input-tip {
  color: rgba(255, 255, 255, 0.42) !important;
}

/* Option cards — compact dark glass style to fit 5 options in 560px container */
.form-container .option-card {
  background-color: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  color: #F0F0F0 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  min-height: 44px !important;
  padding: 10px 16px !important;
}

.form-container .option-card:hover {
  background-color: rgba(255, 255, 255, 0.07) !important;
  border-color: var(--border-focus) !important;
}

.form-container .option-card.selected {
  background-color: rgba(241, 179, 59, 0.18) !important;
  border-color: var(--border-focus) !important;
  color: #FFFFFF !important;
}

.form-container .option-key {
  background-color: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #CCCCCC !important;
}

.form-container .option-card.selected .option-key {
  background-color: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
  color: var(--accent-text) !important;
}

.form-container .option-check {
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.form-container .option-card.selected .option-check {
  background-color: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
}

/* Tighter option label so more fit vertically */
.form-container .option-label {
  font-size: 1rem !important;
}

/* Buttons inside the container */
.form-container .cta-button {
  background: var(--accent-color) !important;
  color: var(--accent-text) !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  padding: 16px 48px !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 4px 16px rgba(241, 179, 59, 0.30) !important;
  align-self: center !important;
  min-height: 48px !important;
}

.form-container .cta-button:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px) !important;
}

/* Welcome screen specific */
.form-container .timer-text {
  margin-top: 16px !important;
  font-size: 0.9rem !important;
  color: rgba(255, 255, 255, 0.52) !important;
  text-align: center !important;
  display: block !important;
  width: 100%;
}

.form-container .button-tip {
  margin-top: 10px !important;
  font-size: 0.85rem !important;
  color: rgba(255, 255, 255, 0.42) !important;
}

.form-container .button-tip kbd {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #CCCCCC !important;
}

.form-container .privacy-tip {
  color: rgba(255, 255, 255, 0.38) !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .page-wrapper {
    padding: 40px 16px 32px 16px;
  }

  .page-heading {
    margin-bottom: 24px;
  }

  .form-container {
    height: auto;
    min-height: 500px;
    border-radius: 12px;
  }

  .form-container .form-screen {
    padding: 28px 20px 40px 20px !important;
    position: relative;
    height: auto;
    min-height: 500px;
    align-items: flex-start;
  }
}


/* ==========================================================================
   TWO-LINE WELCOME TITLE STYLING
   ========================================================================== */

.welcome-title-line1 {
  display: block;
  font-size: 1.1em;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1.2;
  margin-bottom: 0.15em;
  letter-spacing: -0.01em;
}

.welcome-title-line2 {
  display: block;
  font-size: 0.72em;
  font-weight: 500;
  color: #ffffff !important;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.3;
}

.form-container .welcome-title-line1 {
  color: var(--accent-color) !important;
}

.form-container .welcome-title-line2 {
  color: #ffffff !important;
}

/* ==========================================================================
   MOBILE FULLSCREEN MODAL
   ========================================================================== */

@keyframes formSlideUp {
  from { transform: translateY(100vh); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

body.form-fullscreen-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .form-container.mobile-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-width: 100%;
    border-radius: 0;
    z-index: 9999;
    border: none;
    box-shadow: none;
    background: #000000;
    display: flex;
    flex-direction: column;
    animation: formSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .form-container.mobile-fullscreen::before {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    flex-shrink: 0;
  }

  .form-container.mobile-fullscreen .screens-wrapper {
    flex: 1;
    /* Explicit height so position:absolute children (form-screen) inherit 100% correctly */
    height: calc(100dvh - 2px);
    overflow: hidden;
    position: relative;
  }

  .form-container.mobile-fullscreen .form-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    min-height: unset !important;
    padding: 60px 24px 100px 24px !important;
  }

  /* Nav controls and progress bar must sit ABOVE the fullscreen overlay */
  body.form-fullscreen-open .navigation-controls {
    z-index: 10002;
  }

  body.form-fullscreen-open .progress-container {
    z-index: 10003;
  }

  /* Center-align welcome, thank-you, and short answer question screens on mobile/tablet */
  .form-container #screen-welcome,
  .form-container #screen-thankyou,
  .form-container #screen-name,
  .form-container #screen-phone,
  .form-container #screen-email,
  .form-container #screen-age,
  .form-container #screen-profession,
  .form-container #screen-following_duration,
  .form-container #screen-capital,
  .form-container #screen-experience {
    align-items: center !important;
  }
}

/* ==========================================================================
   MOBILE CLOSE BUTTON
   ========================================================================== */

.mobile-close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 10001;
  background: transparent;
  border: 1px solid rgba(241, 179, 59, 0.2);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  min-width: 38px;
  min-height: 38px;
}

.mobile-close-btn:hover,
.mobile-close-btn:focus-visible {
  background: rgba(241, 179, 59, 0.12);
  color: var(--accent-color);
  border-color: var(--accent-color);
  outline: none;
}

.mobile-close-btn:active {
  background: rgba(241, 179, 59, 0.22);
}
