:root {
  /* Light Mode Colors */
  --primary: #4CAF50;
  --primary-dark: #3d8b40;
  --primary-light: #e8f5e9;
  --text-dark: #333333;
  --text-light: #f5f5f5;
  --bg-light: #f9f9f9;
  --bg-dark: #1a1a1a;
  --card-light: #ffffff;
  --card-dark: #2d2d2d;
  --shadow: rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;

  /* Dark Mode Colors - Default */
  --bg-color: var(--bg-dark);
  --text-color: var(--text-light);
  --card-bg: var(--card-dark);
  --border-color: #444;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --hover-bg: rgba(255, 255, 255, 0.05);
  --input-bg: #333;
  --input-border: #555;
  --modal-bg: #2d2d2d;
  --dropdown-bg: #2d2d2d;
}

.light-mode {
  --bg-color: var(--bg-light);
  --text-color: var(--text-dark);
  --card-bg: var(--card-light);
  --border-color: #e0e0e0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --hover-bg: rgba(0, 0, 0, 0.02);
  --input-bg: #ffffff;
  --input-border: #ddd;
  --modal-bg: #ffffff;
  --dropdown-bg: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  overflow-x: hidden;
  background-color: var(--bg-color);
  color: var(--text-color);
}

/* Dark mode is now default */
.dark-mode {
  background: linear-gradient(135deg, #1a3c1e 0%, var(--bg-dark) 100%);
  background-attachment: fixed;
}

.light-mode {
  background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%);
  background-attachment: fixed;
}

.container {
  width: 100%;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Top Bar Styles */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 70px;
}

#landing-screen .logo-container {
  display: none;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo {
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.2rem;
}

.logo-container img {
  width: 50px;
  height: 50px;
}

.fineprint,
.title {
  font-style: italic;
}

.fineprint {
  font-size: 1rem !important;
}

.company-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  font-family: "Arial Rounded MT Bold", "Arial Rounded", Arial, sans-serif;
}

.nav-links {
  display: flex;
  width: 50;
  gap: 1.5rem;
  align-items: center;
  position: relative;
}

.nav-link {
  background: none;
  border: none;
  color: white;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.dropdown-container {
  position: relative;
}

.pitch-dropdown,
.faq-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--dropdown-bg);
  box-shadow: 0 10px 30px var(--shadow-color);
  border-radius: 12px;
  padding: 0.5rem 0;
  min-width: 250px;
  z-index: 1001;
  display: none;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.pitch-dropdown.show,
.faq-dropdown.show {
  display: block;
}

.pitch-option,
.faq-option {
  padding: 0.8rem 1.5rem;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition);
  display: block;
}

.pitch-option:hover,
.faq-option:hover {
  background-color: rgba(76, 175, 80, 0.2);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  margin-left: 1rem;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(30deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background-color: var(--primary);
  z-index: 999;
  display: none;
  flex-direction: column;
  padding: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu.show {
  display: flex;
}

.mobile-nav-link {
  padding: 1rem;
  color: white;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: var(--transition);
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  padding-left: 1.5rem;
}

.mobile-chevron {
  font-size: 0.8rem;
}

.mobile-pitch-dropdown,
.mobile-faq-dropdown {
  display: none;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin: 0.5rem 0;
  overflow: hidden;
}

.mobile-pitch-dropdown.show,
.mobile-faq-dropdown.show {
  display: flex;
}

.mobile-pitch-option,
.mobile-faq-option {
  padding: 0.8rem 1.5rem;
  color: white;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-pitch-option:hover,
.mobile-faq-option:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.mobile-pitch-option:last-child,
.mobile-faq-option:last-child {
  border-bottom: none;
}

/* Main Content - Landing Screen */
.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  min-height: calc(100vh - 70px);
  text-align: center;
  flex: 1 0 auto;
  width: 100%;
}

/* Hide landing screen when other screens are active */
body:not(.showing-landing) .main-content:not(.active) {
  display: none !important;
}

.main-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

.main-logo img {
  width: 110px;
  height: 110px;
  border: 4px solid var(--primary);
  box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

.tagline {
  font-size: 1.5rem;
  max-width: 800px;
  margin-bottom: 2rem;
  line-height: 1.5;
  font-weight: 300;
}

.cta-button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
  margin-top: 1rem;
}

.cta-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(76, 175, 80, 0.5);
}

/* Screens - Centered vertically and horizontally */
.screen {
  display: none;
  width: 100%;
  min-height: calc(100vh - 70px);
  position: relative;
  flex: 1 0 auto;
  width: 100%;
  padding-bottom: 150px;
}

/* Grouped screen styles for consistent positioning */
#building-screen.active,
#about-screen.active,
#primary-pitch-screen.active,
#investor-pitch-screen.active,
#advertiser-pitch-screen.active,
#parent-pitch-screen.active,
#question-screen.active,
#expanded-faq.active,
#minimal-faq.active,
#founder-story-screen.active,
#contact-screen.active,
#draftPromisory-note.active,
#promisory-note.active,
#terms-of-use.active,
#privacy-policy.active,
#community-standards.active,
#nda-nca-form.active,
#promisory-note-form.active {
  position: absolute;
  top: 1rem;
  display: flex !important;
  justify-content: center;
  align-items: flex-start;
  padding-top: 2rem;
  overflow-y: auto;
  min-height: calc(100vh - 70px);
}


/* Adjust the screen wrapper to account for bottom navigation */
.screen-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 180px;
  /* Increased padding for bottom buttons */
}

/* Ensure the screen wrapper has proper padding */
#minimal-faq .screen-wrapper,
#expanded-faq .screen-wrapper {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 2rem !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding-bottom: 250px !important;
  /* Space for bottom buttons */
}

/* Back button positioned absolutely in top-left corner under header */
.back-button {
  top: auto;
  left: auto;
  margin: 0;
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.back-button:hover {
  background-color: var(--primary);
  color: white;
}

.palkeeper,
.screen-header {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  margin-top: 2rem;
  color: var(--primary);
  text-align: center;
  width: 100%;
}

.palkeeper {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  margin-top: 0.1rem;
}

/* Grouped back button styles for all screens */
#building-screen .back-button,
#about-screen .back-button,
#primary-pitch-screen .back-button,
#investor-pitch-screen .back-button,
#advertiser-pitch-screen .back-button,
#parent-pitch-screen .back-button {
  /* position: fixed;
  bottom: 145px;*/
  left: 50%;
  transform: translateX(-50%);
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  z-index: 100;
  margin: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#building-screen .back-button:hover,
#about-screen .back-button:hover,
#primary-pitch-screen .back-button:hover,
#investor-pitch-screen .back-button:hover,
#advertiser-pitch-screen .back-button:hover,
#parent-pitch-screen .back-button:hover {
  background-color: var(--primary);
  color: white;
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

/* What We're Building Screen */
.building-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 2rem 0;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.section {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 30px var(--shadow-color);
  transition: var(--transition);
  width: 100%;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-weight: 700;
}

.section-text {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.highlight-list {
  list-style-type: none;
  margin-top: 1.5rem;
}

.highlight-item {
  padding: 0.8rem 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.light-mode .highlight-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.highlight-item:last-child {
  border-bottom: none;
}

.slide {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 30px var(--shadow-color);
  transition: var(--transition);
  display: none;
  animation: fadeIn 0.5s ease;
  width: 100%;
}

.slide.active {
  display: block;
}

.slide-content {
  font-size: 1.3rem;
  line-height: 1.7;
  font-weight: 500;
  text-align: center;
  width: 100%;
  color: var(--text-color);
}

.slide-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  width: 100%;
}

.slide-nav-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #666;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.light-mode .slide-nav-btn {
  background-color: #cccccc;
}

/* Grouped active slide navigation button styles */
#about-screen .slide-nav-btn.active,
#primary-pitch-screen .slide-nav-btn.active,
#investor-pitch-screen .slide-nav-btn.active,
#advertiser-pitch-screen .slide-nav-btn.active,
#parent-pitch-screen .slide-nav-btn.active,
.slide-nav-btn.active {
  background-color: #4CAF50 !important;
  transform: scale(1.3);
  border-color: white;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.8);
}

.dark-mode .slide-nav-btn.active,
.light-mode .slide-nav-btn.active {
  background-color: #4CAF50 !important;
}

/* Add a glowing effect for active buttons */
.slide-nav-btn.active::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }

  100% {
    opacity: 0.5;
    transform: scale(1);
  }
}

/* Hover effect for slide navigation buttons */
.slide-nav-btn:hover {
  transform: scale(1.2);
  background-color: #999;
}

.slide-nav-btn.active:hover {
  transform: scale(1.4);
  background-color: #4CAF50 !important;
}

.light-mode .slide-nav-btn:hover {
  background-color: #999;
}

.light-mode .slide-nav-btn.active:hover {
  background-color: #4CAF50 !important;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------------------------------------------ */
/* QUESTION & ANSWERS SCREEN - FIXED STYLES */
/* ------------------------------------------------------------------ */

/* Question Screen Specific Styles */
#question-screen .building-content,
#expanded-faq .building-content {
  padding-bottom: 100px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hide bottom navigation in non-active question sections */
.question-section:not(.active) .bottom-navigation {
  display: none !important;
}

/* Show only the bottom navigation in active question section */
.question-section.active .bottom-navigation {
  display: flex !important;
}

/* Background overlay for better visibility */
.bottom-navigation::before {
  content: '';
  position: fixed;
  bottom: 120px;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to top,
      rgba(26, 26, 26, 0.95) 0%,
      rgba(26, 26, 26, 0.8) 50%,
      rgba(26, 26, 26, 0) 100%);
  z-index: -1;
  pointer-events: none;
}

.light-mode .bottom-navigation::before {
  background: linear-gradient(to top,
      rgba(249, 249, 249, 0.95) 0%,
      rgba(249, 249, 249, 0.8) 50%,
      rgba(249, 249, 249, 0) 100%);
}

/* Main categories section */
#main-categories {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* When a sub-question section is active, hide main categories */
#main-categories:not(.active) {
  display: none !important;
  opacity: 0;
  transform: translateY(-20px);
}

#main-categories .section {
  background-color: transparent;
  box-shadow: none;
  padding: 0;
}

/* Question Section Title */
.question-section-title {
  text-align: center;
  color: #4CAF50;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  font-weight: 700;
}

/* Answer Title */
.answer-title {
  text-align: center;
  color: #4CAF50;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

/* All question sections - hidden by default */
.question-section {
  display: none !important;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  width: 100%;
}

/* Show active question section */
.question-section.active {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ensure proper spacing when showing sub-questions */
.question-section.active .section {
  padding-top: 2rem;
}

/* Main Categories Grid - GRID 1 */
#main-categories .question-buttons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
  margin-bottom: 2rem;
}

/* Sub-questions grid - only show when parent section is active */
.sub-questions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
  margin: 1.5rem 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.5s ease, max-height 0.5s ease;
}

.question-section.active .sub-questions-grid {
  opacity: 1;
  max-height: 500px;
  /* Adjust based on your content height */
}


/* Question Button Styling - APPLIES TO ALL BUTTONS */
.question-button {
  background-color: var(--card-bg);
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 1rem 0.8rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  word-break: break-word;
  white-space: normal;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.3;
  position: relative;
  overflow: hidden;
}

.question-button:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* ACTIVE QUESTION BUTTON STYLING */
.question-button.active {
  background-color: var(--primary) !important;
  color: white !important;
  border-color: var(--primary-dark);
  box-shadow:
    0 5px 20px rgba(76, 175, 80, 0.4),
    inset 0 0 0 2px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Active indicator dot */
.question-button.active::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

/* Pulsing animation for active button */
@keyframes pulseActive {
  0% {
    box-shadow:
      0 5px 20px rgba(76, 175, 80, 0.4),
      inset 0 0 0 2px rgba(255, 255, 255, 0.2);
  }

  50% {
    box-shadow:
      0 5px 25px rgba(76, 175, 80, 0.6),
      inset 0 0 0 2px rgba(255, 255, 255, 0.3);
  }

  100% {
    box-shadow:
      0 5px 20px rgba(76, 175, 80, 0.4),
      inset 0 0 0 2px rgba(255, 255, 255, 0.2);
  }
}

.question-button.active {
  animation: pulseActive 2s infinite ease-in-out;
}

/* Special styling for main category active buttons */
#main-categories .question-button.active {
  border-width: 3px;
  border-color: white;
  transform: translateY(-4px);
  box-shadow:
    0 8px 25px rgba(76, 175, 80, 0.5),
    inset 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Special styling for sub-question active buttons */
.sub-questions-grid .question-button.active {
  border-width: 3px;
  border-color: var(--primary-dark);
}

/* Ensure hover works even on active buttons */
.question-button.active:hover {
  background-color: var(--primary-dark) !important;
  border-color: white;
}

/* Answer sections */

.answer-section {
  display: none !important;
}

.expanded-answer-section,
.answer-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: rgba(76, 175, 80, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(76, 175, 80, 0.2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.expanded-answer-section {
  margin-top: 0rem;
}

.expanded-answer-section,
.answer-section.active {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
  animation: fadeIn 0.5s ease;
}

.expanded-answer-section .section-text,
.answer-section .section-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-color);
}

/* Back button for question sections */
.back-to-questions {
  display: flex;
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  margin-top: 2rem;
  opacity: 0.9;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
  align-self: center;
  justify-self: center !important;
}

.back-to-questions:hover {
  background-color: var(--primary);
  color: white;
  opacity: 1;
  transform: translateX(-5px);
}

/* Bullet list styling */
.bullet-list {
  list-style-type: none;
  margin: 1.5rem 0;
  padding-left: 0;
}

.bullet-list li {
  padding: 0.5rem 0;
  padding-left: 2rem;
  position: relative;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.bullet-list li:before {
  content: '⦁';
  position: absolute;
  left: 0.5rem;
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: bold;
}

/* Summary Styling */
.summary {
  margin-top: 3rem;
  padding: 1.5rem;
  background-color: rgba(76, 175, 80, 0.1);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}

.light-mode .summary {
  background-color: var(--primary-light);
}

.summary p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  margin: 0;
  text-align: center;
}

.summary h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  text-align: center;
  color: var(--text-color);
}

/* New Footnote Styling */
.footnote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  background-color: var(--primary);
  color: white;
  padding: 1.5rem 2rem;
  z-index: 10;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  margin-top: auto;
  width: 100%;
  height: 60px;
  visibility: hidden;
  order: 9999;
}

.footnote.visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.footnote h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  text-align: center;
  color: white;
}

.footnote p {
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.foot-note-right {
  display: flex;
  align-items: center;
  justify-self: end;
}

@media (max-width: 768px) {
  .foot-note-right {
    display: none;
  }
}

/* Copyright text */
.copyright-text {
  font-size: 0.9rem;
  opacity: 0.7;
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* ------------------------------------------------------------------ */
/* RESPONSIVE STYLES */
/* ------------------------------------------------------------------ */

/* Responsive grid adjustments for Question Screens */
@media (max-width: 1200px) {

  #main-categories .question-buttons-grid,
  .sub-questions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .summary h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    text-align: center;
    color: white;
  }

  .summary p {
    font-size: 0.6rem;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    text-align: start;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .top-bar {
    padding: 1rem;
  }

  .tagline {
    font-size: 1.2rem;
  }

  .main-logo {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
  }

  .section {
    padding: 1.5rem;
  }

  .slide {
    padding: 2rem;
  }

  .screen-wrapper {
    padding: 1rem;
    padding-bottom: 180px;
  }

  .back-button {
    margin: 0.5rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  /* Question Screen Responsive */
  #main-categories .question-buttons-grid {
    grid-template-columns: 1fr;
  }

  .question-button {
    min-height: 65px;
    padding: 0.8rem 0.6rem;
    font-size: 0.95rem;
  }

  .footnote h3 {
    font-size: 1.1rem;
  }

  .footnote p {
    font-size: 0.9rem;
  }

  .screen-wrapper {
    padding-bottom: 180px;
  }

  .summary {
    padding: 1.5rem;
  }

  .summary p {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .bottom-navigation {
    bottom: 110px;
  }

  .tagline {
    font-size: 1.1rem;
  }

  .screen-header {
    font-size: 1rem;
    margin-top: 2rem;
  }

  .slide-content {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-text {
    font-size: 1rem;
  }

  .company-name {
    font-size: 1.2rem;
  }

  .back-button {
    margin: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .bottom-navigation button {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }

  .screen-wrapper {
    padding: 1rem;
    padding-bottom: 180px;
  }

  .question-button {
    min-height: 60px;
    padding: 0.7rem 0.5rem;
    font-size: 0.9rem;
  }

  .question-section-title {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .answer-title {
    font-size: 1.3rem;
  }
}

/* Specific grid adjustments for mobile */
@media (max-width: 768px) {

  /* All sub-grids become single column on mobile */
  #getting-started .sub-questions-grid,
  #contribution-structure .sub-questions-grid,
  #returns-repayment .sub-questions-grid,
  #risk-legal-structure .sub-questions-grid,
  #transparency-communication .sub-questions-grid,
  #taxes-practical-matters .sub-questions-grid,
  #exit-end-of-investment .sub-questions-grid,
  #trust-relationship .sub-questions-grid,
  #additional-faq .sub-questions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sub-questions-grid {
    max-height: 1000px;
    /* Allow more height on mobile */
  }
}

/* Hide by default, show on mobile */
#promisory-btn {
  justify-self: center;
  display: block;
  margin: 5rem;
}

/* Show on mobile (typically screens ≤ 768px) */
@media only screen and (max-width: 768px) {
  #promisory-btn {
    justify-self: center;
    margin: 3rem;
    display: block;
    /* or inline, inline-block, flex, etc. */
  }

  .cta-button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

/* Ensure question sections have proper spacing */
.question-section .section {
  padding-bottom: 120px;
  /* Space for bottom navigation */
}

/* New bottom navigation styles */
.bottom-navigation {
  position: fixed;
  bottom: 140px;
  /* Position above the footnote */
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 2rem;
  background: linear-gradient(to top,
      var(--card-bg) 0%,
      rgba(45, 45, 45, 0.9) 50%,
      rgba(45, 45, 45, 0) 100%);
  z-index: 99;
  pointer-events: none;
}

.light-mode .bottom-navigation {
  background: linear-gradient(to top,
      var(--card-bg) 0%,
      rgba(255, 255, 255, 0.9) 50%,
      rgba(255, 255, 255, 0) 100%);
}

/* Single button container */
.bottom-navigation.single-button {
  justify-content: center;
}

/* Dual buttons container */
.bottom-navigation.dual-buttons {
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

/* Button styles within bottom navigation */
.bottom-navigation button {
  pointer-events: auto;
  min-width: 200px;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none;
  text-align: center;
}

/* Back button styling */
.bottom-navigation .back-button {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.bottom-navigation .back-button:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

/* Back to questions button styling */
.bottom-navigation .back-to-questions {
  background-color: var(--primary);
  color: white;
  border: 2px solid var(--primary);
}

.bottom-navigation .back-to-questions:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

/* Left and right button positioning */
.bottom-navigation .left-button {
  margin-right: auto;
}

.bottom-navigation .right-button {
  margin-left: auto;
}

/* Left and right button positioning for dual buttons */
.bottom-navigation.dual-buttons .left-button {
  margin-right: auto;
  margin-left: 0;
}

.bottom-navigation.dual-buttons .right-button {
  margin-left: auto;
  margin-right: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .bottom-navigation {
    padding: 1rem;
    bottom: 120px;
    /* Adjust for smaller screens */
  }

  .bottom-navigation.dual-buttons {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .bottom-navigation button {
    min-width: 150px;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
  }

  .bottom-navigation .left-button,
  .bottom-navigation .right-button {
    margin: 0;
  }

  .bottom-navigation.dual-buttons .left-button,
  .bottom-navigation.dual-buttons .right-button {
    margin: 0;
    width: 100%;
  }

  .screen-wrapper {
    padding-bottom: 200px;
    /* More padding on mobile */
  }

  .question-section .section {
    padding-bottom: 140px;
    /* More space on mobile */
  }
}

/* Image Container Styles */
.img-container {
  width: 100%;
  max-width: 1200px;
  height: 400px;
  margin: 2rem auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px var(--shadow-color);
  position: relative;
  background-color: var(--card-bg);
  transition: var(--transition);
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.img-container:hover img {
  transform: scale(1.05);
}

/* Responsive adjustments for image container */
@media (max-width: 1200px) {
  .img-container {
    max-width: 100%;
    margin: 2rem 1rem;
    height: 350px;
  }
}

@media (max-width: 768px) {
  .img-container {
    height: 300px;
    margin: 1.5rem 0.5rem;
    border-radius: 8px;
  }
}

@media (max-width: 576px) {
  .img-container {
    height: 250px;
    margin: 1rem 0;
    border-radius: 6px;
  }
}

/* Specific positioning for different sections */
.building-content .img-container {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.question-section .img-container {
  margin: 1.5rem 0;
}

/* Optional: Add a caption below the image */
.img-caption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.8;
  margin-top: 1rem;
  font-style: italic;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

/* Mobile-specific adjustments for summary sections */
@media only screen and (max-width: 768px) {

  /* Reduce vertical margins between consecutive summary sections */
  .summary+.summary {
    margin-top: 0.1rem !important;
    /* Reduced from default */
  }

  /* Target specific summary sections in FAQ screens */
  #minimal-faq .summary+.summary,
  #expanded-faq .summary+.summary {
    margin-top: 0.1rem !important;
  }

  /* Reduce padding within each summary section on mobile */
  .summary {
    padding: 1rem !important;
    /* Reduced from 1.5rem */
    margin-top: 0.1rem !important;
    /* Reduced from 3rem */
  }

  /* Make the last summary section have normal bottom spacing */
  .summary:last-of-type {
    margin-bottom: 0.1rem !important;
  }


  /* For screens with multiple consecutive summaries */
  #minimal-faq .building-content .summary,
  #expanded-faq .building-content .summary {
    margin-top: 0.1rem !important;
    margin-bottom: 0.1rem !important;
  }

  #minimal-faq .building-content .summary:first-of-type,
  #expanded-faq .building-content .summary:first-of-type {
    margin-top: 0.1rem !important;
    /* Slightly more space for first summary */
  }
}

/* Promissory Note Button Styles */
.promisory-btn {
  background-color: transparent !important;
  color: var(--primary) !important;
  border: 2px solid var(--primary) !important;
  padding: 0.6rem 1.5rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  border-radius: 50px !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  margin-left: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.promisory-btn:hover {
  background-color: var(--primary) !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4) !important;
}

/* Button Container for positioning */
.button-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
}

/* Form Styles */
.contact-form,
.promisory-form {
  max-width: 650px;
  margin: 2rem auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid rgba(76, 175, 80, 0.3);
  border-radius: 8px;
  font-size: 1rem;
  background-color: var(--input-bg) !important;
  color: var(--text-color) !important;
  transition: var(--transition);
  border-color: var(--input-border);
}

/* Match hover state with dropdowns */
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: var(--primary) !important;
  background-color: rgba(76, 175, 80, 0.1) !important;
}

/* Match focus state */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2) !important;
  background-color: rgba(76, 175, 80, 0.15) !important;
}

/* Match select dropdown styling */
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234CAF50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

/* Custom Checkbox Styling - NO default blue! */
.checkbox-group input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary);
  border-radius: 4px;
  background-color: transparent;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.checkbox-group input[type="checkbox"]:hover {
  background-color: rgba(76, 175, 80, 0.1);
  border-color: var(--primary-dark);
}

/* Checked state - Green background */
.checkbox-group input[type="checkbox"]:checked {
  background-color: var(--primary) !important;
  border-color: var(--primary-dark) !important;
}

/* Checkmark - White check on green background */
.checkbox-group input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
}

/* Focus state for accessibility */
.checkbox-group input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3);
}

/* Ensure checkbox and label stay on same line */
.checkbox-group {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.8rem !important;
  margin-bottom: 1rem !important;
  flex-wrap: nowrap !important;
}

.checkbox-group label {
  flex: 1 !important;
  white-space: normal !important;
  word-break: break-word !important;
  line-height: 1.4 !important;
  margin-top: 0.1rem !important;
  min-width: 0 !important;
  /* Allows text to wrap properly */
}

/* Prevent label from wrapping to next line */
.checkbox-group {
  max-width: 100% !important;
}

.checkbox-group label {
  color: var(--text-color);
}

/* Hover effect on entire checkbox group */
.checkbox-group:hover label {
  color: var(--primary);
}

/* Disabled state */
.checkbox-group input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.checkbox-group input[type="checkbox"]:disabled+label {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Mobile adjustments for checkbox alignment */
@media (max-width: 768px) {
  .checkbox-group {
    gap: 0.6rem !important;
    align-items: center !important;
  }

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

  .checkbox-group label {
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
  }
}

/* For very small screens */
@media (max-width: 480px) {
  .checkbox-group {
    gap: 0.5rem !important;
  }

  .checkbox-group label {
    font-size: 0.9rem !important;
  }
}


/* Form submit button - match CTA button styling */
.form-submit-btn {
  background-color: var(--primary) !important;
  color: white !important;
  border: none !important;
  padding: 1rem 2.5rem !important;
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  border-radius: 50px !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.8rem !important;
  width: 100% !important;
  margin-top: 2rem !important;
}

.form-submit-btn:hover {
  background-color: var(--primary-dark) !important;
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 20px rgba(76, 175, 80, 0.5) !important;
}

/* Disabled state */
.form-submit-btn:disabled {
  background-color: #666 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Placeholder styling */
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
  opacity: 0.7 !important;
}

.light-mode .form-group input::placeholder,
.light-mode .form-group textarea::placeholder {
  color: rgba(0, 0, 0, 0.5) !important;
}

/* Validation states */
.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
  border-color: #ff6b6b !important;
}

.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
  border-color: rgba(76, 175, 80, 0.5) !important;
}

/* Required field indicator */
.form-group label[required]::after {
  content: " *";
  color: #ff6b6b;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--modal-bg);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.5rem;
  color: var(--text-color);
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #999;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.modal-close:hover {
  background-color: var(--hover-bg);
  color: var(--text-color);
}

.modal-body {
  padding: 1.5rem;
}

.modal-body p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--text-color);
}

.modal-body ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.modal-body li {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile adjustments for form */
@media (max-width: 768px) {
  .button-row {
    flex-direction: column-reverse !important;
    /* This puts Request Promisory Note first */
    gap: 1.5rem !important;
    width: 80% !important;
    justify-self: center;
  }

  .button-row .back-button,
  .button-row .promisory-btn {
    width: 100%;
    justify-content: center;
    margin: 0 !important;
  }

  .contact-form,
  .promisory-form {
    margin: 1rem auto;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .modal-content {
    width: 95%;
    margin: 1rem;
  }
}

/* Promissory Note Form positioning fix */
#contact-screen,
#draftPromisory-note,
#nda-nca-form,
#promisory-note,
#terms-of-use,
#privacy-policy,
#community-standards,
#promisory-note-form {
  position: absolute !important;
  top: 3rem !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  min-height: calc(100vh - 3rem) !important;
  z-index: 10 !important;
}

/* Ensure proper scrolling */
#contact-screen .screen-wrapper,
#draftPromisory-note .screen-wrapper,
#terms-of-use .screen-wrapper,
#privacy-policy .screen-wrapper,
#community-standards .screen-wrapper,
#promisory-note .screen-wrapper,
#promisory-note-form .screen-wrapper {
  padding-bottom: 120px;
  /* Space for footnote */
  min-height: calc(100vh - 3rem - 70px);
  /* Account for top positioning */
}

/* Mobile adjustment */
@media (max-width: 768px) {

  #contact-screen,
  #draftPromisory-note,
  #promisory-note,
  #terms-of-use,
  #privacy-policy,
  #community-standards,
  #promisory-note-form {
    top: 2rem !important;
    min-height: calc(100vh - 2rem) !important;
  }

  #contact-screen .screen-wrapper,
  #draftPromisory-note .screen-wrapper,
  #promisory-note .screen-wrapper,
  #terms-of-use .screen-wrapper,
  #privacy-policy .screen-wrapper,
  #community-standards .screen-wrapper,
  #promisory-note-form .screen-wrapper {
    padding-bottom: 140px;
    /* Extra space for mobile footnote */
  }
}

/* Form section background to match dropdowns */
#contact-screen .section,
#draftPromisory-note .section,
#terms-of-use .section,
#privacy-policy .section,
#community-standards .section,
#promisory-note .section,
#promisory-note-form .section {
  background-color: var(--card-bg) !important;
  border-radius: 16px !important;
  padding: 2rem !important;
  box-shadow: 0 8px 30px var(--shadow-color) !important;
  border: 1px solid rgba(76, 175, 80, 0.3) !important;
  position: relative;
  z-index: 1;
  /* Base z-index for form sections */
}

/* Form title styling to match dropdown headers */
#contact-screen .section-title,
#draftPromisory-note .section-title,
#promisory-note .section-title,
#terms-of-use .section-title,
#privacy-policy .section-title,
#community-standards .section-title,
#promisory-note-form .section-title {
  color: var(--primary) !important;
  font-weight: 700 !important;
  margin-bottom: 1.5rem !important;
}

/* Form text color matching */
#contact-screen .section-text,
#promisory-note .section-text,
#terms-of-use .section-text,
#privacy-policy .section-text,
#community-standards .section-text,
#draftPromisory-note .section-text,
#promisory-note-form .section-text {
  color: var(--text-color) !important;
  margin-bottom: 1.5rem !important;
}

/* When a dropdown is open within a section, bring that section forward */
#contact-screen .section:has(.select-selected.open),
#draftPromisory-note .section:has(.select-selected.open),
#promisory-note .section:has(.select-selected.open),
#promisory-note-form .section:has(.select-selected.open) {
  z-index: 999 !important;
}

/* Form label color matching */
.form-group label {
  color: var(--primary) !important;
  font-weight: 600 !important;
}

/* Fix for select dropdown options - remove default blue background */
.form-group select option {
  background-color: var(--input-bg) !important;
  color: var(--text-color) !important;
  padding: 0.8rem !important;
}

/* Hover state for options - use green theme */
.form-group select option:hover,
.form-group select option:focus,
.form-group select option:checked,
.form-group select option:active {
  background-color: var(--primary) !important;
  color: white !important;
}

/* For Firefox specific styling */
@-moz-document url-prefix() {
  .form-group select option {
    background-color: var(--input-bg) !important;
    color: var(--text-color) !important;
  }

  .form-group select option:checked {
    background-color: var(--primary) !important;
    color: white !important;
  }
}

/* Additional method for stubborn browsers */
.form-group select * {
  background-color: var(--input-bg) !important;
  color: var(--text-color) !important;
}

/* Specific styling for investmentAmount and paymentPlan selects */
#investmentAmount,
#paymentPlan {
  background-color: var(--input-bg) !important;
  color: var(--text-color) !important;
  border: 2px solid rgba(76, 175, 80, 0.4) !important;
}

/* Ensure proper contrast in dropdown */
#investmentAmount option,
#paymentPlan option {
  background-color: var(--input-bg) !important;
  color: var(--text-color) !important;
  padding: 12px !important;
  font-size: 1rem !important;
}

/* Selected option styling */
#investmentAmount option:checked,
#paymentPlan option:checked,
#investmentAmount option:selected,
#paymentPlan option:selected {
  background-color: var(--primary) !important;
  color: white !important;
  font-weight: 600 !important;
}

/* Hover states */
#investmentAmount option:hover,
#paymentPlan option:hover {
  background-color: var(--primary) !important;
  color: white !important;
}

/* Mobile adjustments for form submit button */
@media (max-width: 768px) {
  .form-submit-btn {
    padding: 0.9rem 1.5rem !important;
    font-size: 1rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    gap: 0.5rem !important;
  }

  /* Specific text reduction for mobile */
  .form-submit-btn .fa-file-contract+span {
    font-size: 0.95rem !important;
  }
}

/* For very small screens */
@media (max-width: 480px) {
  .form-submit-btn {
    font-size: 0.9rem !important;
    padding: 0.8rem 1rem !important;
  }

  .form-submit-btn i {
    font-size: 0.9rem !important;
  }
}

/* Ensure icon and text stay on same line */
.form-submit-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
}

/* Alternative: If button text is too long, reduce it */
@media (max-width: 360px) {
  .form-submit-btn span:not(.icon-only) {
    display: none !important;
  }

  .form-submit-btn .fa-file-contract::after {
    content: " Request" !important;
    margin-left: 0.3rem !important;
    font-size: 0.9rem !important;
  }
}

/* Custom Dropdown Styling - Replacement for native select */
.custom-select {
  position: relative;
  width: 100%;
  margin-bottom: 1.5rem;
  z-index: 1;
}

/* Adjust z-index based on which dropdown is open */
.custom-select:has(.select-selected.open) {
  z-index: 1000 !important;
  /* Bring entire select to front when open */
}

.select-selected {
  background-color: var(--input-bg);
  color: var(--text-color);
  padding: 0.8rem 1rem;
  border: 2px solid var(--input-border);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  position: relative;
  z-index: 10;
  /* Higher than parent but lower than items */
}

.select-selected:hover {
  border-color: var(--primary);
  background-color: rgba(76, 175, 80, 0.1);
}

.select-selected i {
  transition: transform 0.3s ease;
  font-size: 0.9rem;
}

.select-selected.open i {
  transform: rotate(180deg);
}

.select-items {
  position: absolute;
  background-color: var(--input-bg);
  border: 2px solid var(--input-border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  width: 100%;
  z-index: 1001 !important;
  /* Highest z-index for dropdown items */
  max-height: 300px;
  overflow-y: auto;
  display: none;
  box-shadow: 0 10px 30px var(--shadow-color);
  margin-top: -2px;
  /* Overlap border */
}

/* When dropdown is open, ensure it's above everything */
.select-selected.open+.select-items {
  display: block;
  z-index: 1001 !important;
}

.select-items div {
  color: var(--text-color);
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--border-color);
}

.select-items div:last-child {
  border-bottom: none;
}

/* Hover state - Green background */
.select-items div:hover {
  background-color: var(--primary) !important;
  color: white !important;
}

/* Selected option */
.select-items div.selected,
.select-items div.selected:hover {
  background-color: var(--primary) !important;
  color: white !important;
  font-weight: 600;
}

/* For the hidden input (still needed for form submission) */
.custom-select input[type="hidden"] {
  display: none;
}

/* Custom amount group */
#customAmountGroup {
  margin-top: 1rem;
}

/* Hide the original select if it still exists */
select.native-select {
  display: none !important;
}

/* Ensure dropdown appears above other elements */
#contact-screen .custom-select,
#draftPromisory-note .custom-select,
#promisory-note .custom-select,
#promisory-note-form .custom-select {
  z-index: 100;
}

/* Fix for additional-faq sub-questions grid on mobile */
@media only screen and (max-width: 768px) {

  /* Ensure sub-questions-grid doesn't have height limits on mobile */
  #additional-faq .sub-questions-grid {
    max-height: none !important;
    /* Remove height restriction */
    overflow: visible !important;
    /* Allow all items to show */
    display: grid !important;
    grid-template-columns: 1fr !important;
    /* Single column on mobile */
    gap: 0.8rem !important;
    opacity: 1 !important;
    /* Ensure it's visible */
    height: auto !important;
    /* Auto height */
  }

  /* Specifically target the 9th button (or any hidden buttons) */
  #additional-faq .sub-questions-grid .question-button:nth-child(9),
  #additional-faq .sub-questions-grid .question-button:nth-child(10),
  #additional-faq .sub-questions-grid .question-button:nth-child(11) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 60px !important;
    transform: none !important;
  }

  /* Remove any transition that might be hiding elements */
  #additional-faq .sub-questions-grid .question-button {
    transition: none !important;
    animation: none !important;
  }

  /* Ensure parent section shows all content */
  #additional-faq.question-section.active {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
  }

  /* Fix the button styling for all buttons */
  #additional-faq .question-button {
    width: 100% !important;
    margin: 0 !important;
    word-break: break-word !important;
    white-space: normal !important;
    text-align: center !important;
    padding: 0.8rem 0.5rem !important;
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
  }

  /* Ensure the container doesn't clip content */
  #additional-faq .section {
    overflow: visible !important;
    min-height: auto !important;
  }
}

/* ====================== */
/* FORM-FOOTER RESPONSIVE */
/* ====================== */
.form-footer {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  width: 100%;
}

.form-footer .btn-prev,
.form-footer .btn-next {
  flex: 0 0 auto;
  min-width: 120px;
  white-space: nowrap;
  padding: 0.8rem 1.5rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.form-footer .btn-prev {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.form-footer .btn-prev:hover {
  background-color: rgba(76, 175, 80, 0.1);
}

.form-footer .btn-next:hover {
  background-color: var(--primary-dark);
}

/* Ensure buttons stay in single row on all devices */
@media (max-width: 768px) {
  .form-footer {
    gap: 0.8rem;
    padding: 0 0.5rem;
  }

  .form-footer .btn-prev,
  .form-footer .btn-next {
    min-width: 110px;
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .form-footer {
    gap: 0.6rem;
    padding: 0;
  }

  .form-footer .btn-prev,
  .form-footer .btn-next {
    min-width: 100px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 360px) {
  .form-footer {
    gap: 0.5rem;
  }

  .form-footer .btn-prev,
  .form-footer .btn-next {
    min-width: 90px;
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }
}

/* ======================== */
/* STEP-INDICATOR RESPONSIVE */
/* ======================== */
.step-indicator {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem auto;
  width: 100%;
  overflow-x: auto;
  padding: 1rem 0;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

.step-indicator::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.step-circle {
  flex: 0 0 auto;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: var(--card-bg);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border: 2px solid rgba(76, 175, 80, 0.3);
  transition: var(--transition);
}

.step-circle.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: scale(1.1);
}

/* Responsive adjustments for step-indicator */
@media (max-width: 768px) {
  .step-indicator {
    gap: 0.4rem;
    padding: 0.8rem 0.5rem;
  }

  .step-circle {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .step-indicator {
    gap: 0.3rem;
  }

  .step-circle {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }
}

@media (max-width: 360px) {
  .step-circle {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
}

/* ============================ */
/* NAME INPUTS ROW RESPONSIVE */
/* ============================ */
#firstName,
#middleName,
#lastName {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  width: 100%;
  margin-bottom: 1rem;
}

#firstName input,
#middleName input,
#lastName input {
  flex: 1 1 0;
  min-width: 0;
  /* Important for flexbox shrinking */
}

/* Ensure inputs stay in single row on all devices */
@media (max-width: 768px) {

  #firstName,
  #middleName,
  #lastName {
    gap: 0.8rem;
  }

  #firstName input,
  #middleName input,
  #lastName input {
    font-size: 0.95rem;
    padding: 0.7rem 0.8rem;
  }
}

@media (max-width: 480px) {

  #firstName,
  #middleName,
  #lastName {
    gap: 0.5rem;
  }

  #firstName input,
  #middleName input,
  #lastName input {
    font-size: 0.9rem;
    padding: 0.6rem 0.7rem;
  }

  #firstName input::placeholder,
  #middleName input::placeholder,
  #lastName input::placeholder {
    font-size: 0.85rem;
  }
}

/* For very small screens, reduce gap further */
@media (max-width: 360px) {

  #firstName,
  #middleName,
  #lastName {
    gap: 0.4rem;
  }

  #firstName input,
  #middleName input,
  #lastName input {
    font-size: 0.85rem;
    padding: 0.5rem 0.6rem;
  }
}

/* ======================= */
/* FORM STEP FUNCTIONALITY */
/* ======================= */
.form-step {
  display: none;
  animation: fadeIn 0.5s ease;
}

.form-step.active {
  display: block;
}

/* ======================= */
/* ENHANCED FORM STYLING */
/* ======================= */
/* Center align the entire form content */
.contact-form,
.promisory-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Ensure form-group contents are properly centered */
.contact-form .form-group,
.promisory-form .form-group {
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hide submit button initially */
.form-submit-btn {
  display: none;
  margin-top: 2rem;
}

/* Show submit button only on last step */
.form-step[data-step="10"] .form-submit-btn {
  display: flex;
}

/* Hide next button on last step */
.form-step[data-step="10"] .btn-next {
  display: none;
}

/* ========================= */
/* RESPONSIVE FORM CONTAINER */
/* ========================= */
@media (max-width: 768px) {

  .contact-form .form-group,
  .promisory-form .form-group {
    padding: 0 0.5rem;
  }

  .section {
    padding: 1.5rem !important;
  }

  .section-text {
    font-size: 1rem !important;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {

  .contact-form .form-group,
  .promisory-form .form-group {
    padding: 0;
  }

  .section {
    padding: 1.2rem !important;
  }

  .section-text {
    font-size: 0.95rem !important;
  }

  .form-footer {
    margin-top: 1.5rem;
  }
}

/* Ensure form doesn't overflow on small screens */
.contact-form,
.promisory-form {
  overflow-x: hidden;
}

/* Fix for custom selects on small screens */
@media (max-width: 480px) {
  .custom-select {
    margin-bottom: 1rem;
  }

  .select-selected,
  .select-items div {
    padding: 0.7rem 0.8rem;
    font-size: 0.9rem;
  }
}

/* ======================= */
/* SUBMIT BUTTON STYLING */
/* ======================= */
#promisory-submit {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

#promisory-submit:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

#promisory-submit:disabled {
  background-color: #666;
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

#promisory-submit i {
  font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #promisory-submit {
    min-width: 110px;
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  #promisory-submit {
    min-width: 100px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

/* Ensure submit button is only visible on last step */
.form-step:not([data-step="10"]) #promisory-submit {
  display: none;
}

.form-step[data-step="10"] .btn-next:not(#promisory-submit) {
  display: none;
}

/* Show submit button only on last step */
.form-step[data-step="10"] #promisory-submit {
  display: flex;
}

/* Hide the old form submit button */
.form-submit-btn {
  display: none !important;
}

/* Target the exact form-group with the inline style */
#contactUs .form-group[style*="gap: 20px"],
#draftPromisory-note .form-group[style*="gap: 20px"],
#promisory-note .form-group[style*="gap: 20px"] {
  display: block !important;
}

/* Reset the inline gap style */
#contactUs .form-group[style*="gap: 20px"],
#draftPromisory-note .form-group[style*="gap: 20px"],
#promisory-note .form-group[style*="gap: 20px"] {
  gap: 0 !important;
}

/* Make the label a block element that takes full width */
#contactUs .form-group[style*="gap: 20px"] label[for="fullName"],
#draftPromisory-note .form-group[style*="gap: 20px"] label[for="fullName"],
#promisory-note .form-group[style*="gap: 20px"] label[for="fullName"] {
  display: block !important;
  width: 100% !important;
  margin-bottom: 10px !important;
}

/* Create a container for the name inputs */
#contactUs .name-inputs-row,
.name-inputs-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 1rem !important;
  width: 100% !important;
  margin-top: 5px !important;
}

#contactUs .name-inputs-row input,
.name-inputs-row input {
  flex: 1 !important;
  min-width: 0 !important;
}

/* ============================ */
/* MAILING ADDRESS STYLING */
/* ============================ */

/* Address container styling */
.address-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
}

/* Street address - full width */
#streetAddress {
  width: 100%;
  min-width: 0;
}

/* Address row for city, state, zip */
.address-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.8rem;
  width: 100%;
}

/* City - takes more space */
#city {
  flex: 2 !important;
  min-width: 0;
}

/* State - medium width */
#state {
  flex: 1 !important;
  min-width: 0;
}

/* ZIP Code - fixed width */
#zipCode {
  flex: 1 !important;
  min-width: 0;
  max-width: 120px;
}

/* Country - full width */
#country {
  width: 100%;
  min-width: 0;
}

/* Address validation styling */
.address-inputs input:invalid {
  border-color: #ff6b6b !important;
}

.address-inputs input:valid {
  border-color: rgba(76, 175, 80, 0.5) !important;
}

/* Required field indicator */
.form-group label[for="mailingAddress"]::after {
  content: " *";
  color: #ff6b6b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .address-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  #city,
  #state,
  #zipCode {
    flex: 1 1 calc(33.333% - 0.5rem) !important;
    min-width: 0;
  }

  #zipCode {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .address-row {
    flex-direction: column;
  }

  #city,
  #state,
  #zipCode {
    flex: 1 1 100% !important;
    width: 100%;
  }
}

/* Ensure all address inputs have consistent styling */
.address-inputs input {
  padding: 0.8rem 1rem !important;
  border: 2px solid rgba(76, 175, 80, 0.3) !important;
  border-radius: 8px !important;
  font-size: 1rem !important;
  background-color: var(--input-bg) !important;
  color: var(--text-color) !important;
  transition: var(--transition) !important;
  margin-bottom: 0 !important;
  border-color: var(--input-border);
}

.address-inputs input:hover {
  border-color: var(--primary) !important;
  background-color: rgba(76, 175, 80, 0.1) !important;
}

.address-inputs input:focus {
  outline: none;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2) !important;
  background-color: rgba(76, 175, 80, 0.15) !important;
}

/* Placeholder styling */
.address-inputs input::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
  opacity: 0.7 !important;
}

.light-mode .address-inputs input::placeholder {
  color: rgba(0, 0, 0, 0.5) !important;
}

/* Phone number validation styling */
#phone:invalid {
  border-color: #ff6b6b !important;
  background-color: rgba(255, 107, 107, 0.05) !important;
}

#phone:valid {
  border-color: rgba(76, 175, 80, 0.5) !important;
}

/* Custom validation message styling */
#phone:invalid+.phone-validation-message {
  display: block;
}

.phone-validation-message {
  display: none;
  color: #ff6b6b;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  font-style: italic;
}

/* Add to your existing CSS */
#contactUs .form-submit-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 2rem auto !important;
  width: 250px !important;
  background-color: var(--primary) !important;
  color: white !important;
  border: none !important;
  padding: 1rem 2.5rem !important;
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  border-radius: 50px !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4) !important;
  gap: 0.8rem !important;
}

#contactUs .form-submit-btn:hover {
  background-color: var(--primary-dark) !important;
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 20px rgba(76, 175, 80, 0.5) !important;
}

/* Ensure it's centered within the form */
#contactUs {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

#contactUs .form-submit-btn {
  align-self: center !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #contactUs .form-submit-btn {
    width: 40% !important;
    max-width: 250px !important;
    padding: 0.9rem 1.5rem !important;
    font-size: 1rem !important;
  }
}

@media (max-width: 480px) {
  #contactUs .form-submit-btn {
    max-width: 200px !important;
    padding: 0.8rem 1.2rem !important;
    font-size: 0.95rem !important;
  }
}

/* Mobile-specific styling for contact form name inputs */
@media (max-width: 768px) {

  /* Match the promissory form mobile styling */
  #contactUs .name-inputs-row {
    flex-wrap: wrap !important;
    gap: 0.8rem !important;
  }

  #contactUs .name-inputs-row input {
    flex: 1 1 calc(50% - 0.4rem) !important;
    min-width: 0 !important;
    font-size: 0.95rem !important;
    padding: 0.7rem 0.8rem !important;
  }

  /* Specifically target the middle name input to match promissory form behavior */
  #contactUs .name-inputs-row input#contactMiddleName {
    flex: 1 1 100% !important;
    order: 3;
    /* Ensure middle name appears after first and last on mobile */
  }
}

/* For very small screens, match promissory form styling */
@media (max-width: 480px) {
  #contactUs .name-inputs-row {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  #contactUs .name-inputs-row input {
    flex: 1 1 100% !important;
    width: 100% !important;
    font-size: 0.9rem !important;
    padding: 0.6rem 0.7rem !important;
  }

  #contactUs .name-inputs-row input::placeholder {
    font-size: 0.85rem !important;
  }
}

/* For extra small screens */
@media (max-width: 360px) {
  #contactUs .name-inputs-row {
    gap: 0.4rem !important;
  }

  #contactUs .name-inputs-row input {
    font-size: 0.85rem !important;
    padding: 0.5rem 0.6rem !important;
  }
}

/* Email validation error styling */
.email-validation-error {
  color: #ff6b6b !important;
  font-size: 0.85rem !important;
  margin-top: 0.3rem !important;
  padding: 0.3rem 0.5rem !important;
  background-color: rgba(255, 107, 107, 0.1) !important;
  border-radius: 4px !important;
  border-left: 3px solid #ff6b6b !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  animation: fadeIn 0.3s ease !important;
}

.email-validation-error i {
  font-size: 0.9rem !important;
}

/* Invalid input styling */
#noteRequestEmail:invalid,
#noteRequestEmail.invalid {
  border-color: #ff6b6b !important;
  background-color: rgba(255, 107, 107, 0.05) !important;
}

#noteRequestEmail:focus:invalid {
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2) !important;
}

/* Animation for error appearance */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Add a shake animation for invalid input */
@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-3px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(3px);
  }
}

.shake {
  animation: shake 0.5s ease-in-out;
}

/* ====================== */
/* DRAFT PROMISSORY NOTE SCREEN - COMPLETE CONTRAST FIX */
/* ====================== */

/* Dark Mode (default) */
.dark-mode #draftPromisory-note {
  background: linear-gradient(135deg, #0a1f0e 0%, #121212 100%);
  color: #f0f0f0 !important;
}

.dark-mode #draftPromisory-note .screen-header {
  color: #4CAF50 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dark-mode #draftPromisory-note .screen-wrapper {
  background-color: transparent;
}

.dark-mode #draftPromisory-note .building-content {
  background: transparent;
}

.dark-mode #draftPromisory-note .section {
  background-color: #1e1e1e !important;
  border: 1px solid #333 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  color: #e0e0e0 !important;
}

/* Text contrast for dark mode */
.dark-mode #draftPromisory-note .section-text {
  color: #e0e0e0 !important;
  line-height: 1.6;
}

.dark-mode #draftPromisory-note .section-text strong {
  color: #4CAF50 !important;
  font-weight: 600;
}

.dark-mode #draftPromisory-note .section-text em {
  color: #cccccc !important;
}

.dark-mode #draftPromisory-note .fineprint {
  color: #aaaaaa !important;
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.8;
}

/* Category options in dark mode */
.dark-mode #draftPromisory-note .form-step[data-step="1"] .section-text br+span {
  color: #bbbbbb !important;
}

/* Form elements in dark mode */
.dark-mode #draftPromisory-note .form-step {
  background-color: transparent;
  color: #e0e0e0 !important;
}

.dark-mode #draftPromisory-note .form-group {
  background-color: transparent;
}

.dark-mode #draftPromisory-note .form-group p {
  color: #e0e0e0 !important;
}

/* Bullet points and lists */
.dark-mode #draftPromisory-note ul,
.dark-mode #draftPromisory-note ol {
  color: #e0e0e0 !important;
}

.dark-mode #draftPromisory-note li {
  color: #e0e0e0 !important;
}

/* Form controls */
.dark-mode #draftPromisory-note .btn-prev,
.dark-mode #draftPromisory-note .btn-next {
  background-color: transparent;
  color: #4CAF50 !important;
  border: 2px solid #4CAF50 !important;
  font-weight: 600;
}

.dark-mode #draftPromisory-note .btn-prev:hover,
.dark-mode #draftPromisory-note .btn-next:hover {
  background-color: #4CAF50 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.dark-mode #draftPromisory-note .btn-prev:disabled,
.dark-mode #draftPromisory-note .btn-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Step indicator */
.dark-mode #draftPromisory-note .step-indicator {
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 1rem;
  margin: 1.5rem 0;
}

.dark-mode #draftPromisory-note .step-circle {
  background-color: #333 !important;
  color: #e0e0e0 !important;
  border: 2px solid #444 !important;
  font-weight: 600;
}

.dark-mode #draftPromisory-note .step-circle.active {
  background-color: #4CAF50 !important;
  color: #ffffff !important;
  border-color: #4CAF50 !important;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

/* Back button */
.dark-mode #draftPromisory-note .back-to-questions {
  background-color: transparent;
  color: #4CAF50 !important;
  border: 2px solid #4CAF50 !important;
  font-weight: 600;
}

.dark-mode #draftPromisory-note .back-to-questions:hover {
  background-color: #4CAF50 !important;
  color: #ffffff !important;
}

/* Signature section */
.dark-mode #draftPromisory-note #sign {
  background-color: rgba(76, 175, 80, 0.1) !important;
  border-left: 4px solid #4CAF50 !important;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.dark-mode #draftPromisory-note #sign .section-text {
  color: #e0e0e0 !important;
}

.dark-mode #draftPromisory-note #sign .section-text strong {
  color: #4CAF50 !important;
}

/* Highlighted text */
.dark-mode #draftPromisory-note mark,
.dark-mode #draftPromisory-note .highlight {
  background-color: rgba(76, 175, 80, 0.2);
  color: #ffffff;
  padding: 0 2px;
  border-radius: 2px;
}

/* ====================== */
/* LIGHT MODE */
/* ====================== */

.light-mode #draftPromisory-note {
  background: linear-gradient(135deg, #e8f5e9 0%, #f5f5f5 100%);
  color: #333333 !important;
}

.light-mode #draftPromisory-note .screen-header {
  color: #2e7d32 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.light-mode #draftPromisory-note .screen-wrapper {
  background-color: transparent;
}

.light-mode #draftPromisory-note .building-content {
  background: transparent;
}

.light-mode #draftPromisory-note .section {
  background-color: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  color: #333333 !important;
}

/* Text contrast for light mode */
.light-mode #draftPromisory-note .section-text {
  color: #333333 !important;
  line-height: 1.6;
}

.light-mode #draftPromisory-note .section-text strong {
  color: #2e7d32 !important;
  font-weight: 600;
}

.light-mode #draftPromisory-note .section-text em {
  color: #555555 !important;
}

.light-mode #draftPromisory-note .fineprint {
  color: #666666 !important;
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.9;
}

/* Category options in light mode */
.light-mode #draftPromisory-note .form-step[data-step="1"] .section-text br+span {
  color: #555555 !important;
}

/* Form elements in light mode */
.light-mode #draftPromisory-note .form-step {
  background-color: transparent;
  color: #333333 !important;
}

.light-mode #draftPromisory-note .form-group {
  background-color: transparent;
}

.light-mode #draftPromisory-note .form-group p {
  color: #333333 !important;
}

/* Bullet points and lists */
.light-mode #draftPromisory-note ul,
.light-mode #draftPromisory-note ol {
  color: #333333 !important;
}

.light-mode #draftPromisory-note li {
  color: #333333 !important;
}

/* Form controls */
.light-mode #draftPromisory-note .btn-prev,
.light-mode #draftPromisory-note .btn-next {
  background-color: transparent;
  color: #2e7d32 !important;
  border: 2px solid #2e7d32 !important;
  font-weight: 600;
}

.light-mode #draftPromisory-note .btn-prev:hover,
.light-mode #draftPromisory-note .btn-next:hover {
  background-color: #2e7d32 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.light-mode #draftPromisory-note .btn-prev:disabled,
.light-mode #draftPromisory-note .btn-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Step indicator */
.light-mode #draftPromisory-note .step-indicator {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 1rem;
  margin: 1.5rem 0;
  border: 1px solid #e0e0e0;
}

.light-mode #draftPromisory-note .step-circle {
  background-color: #f0f0f0 !important;
  color: #333333 !important;
  border: 2px solid #ddd !important;
  font-weight: 600;
}

.light-mode #draftPromisory-note .step-circle.active {
  background-color: #2e7d32 !important;
  color: #ffffff !important;
  border-color: #2e7d32 !important;
  box-shadow: 0 0 10px rgba(46, 125, 50, 0.3);
}

/* Back button */
.light-mode #draftPromisory-note .back-to-questions {
  background-color: transparent;
  color: #2e7d32 !important;
  border: 2px solid #2e7d32 !important;
  font-weight: 600;
}

.light-mode #draftPromisory-note .back-to-questions:hover {
  background-color: #2e7d32 !important;
  color: #ffffff !important;
}

/* Signature section */
.light-mode #draftPromisory-note #sign {
  background-color: rgba(76, 175, 80, 0.08) !important;
  border-left: 4px solid #2e7d32 !important;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.light-mode #draftPromisory-note #sign .section-text {
  color: #333333 !important;
}

.light-mode #draftPromisory-note #sign .section-text strong {
  color: #2e7d32 !important;
}

/* Highlighted text */
.light-mode #draftPromisory-note mark,
.light-mode #draftPromisory-note .highlight {
  background-color: rgba(76, 175, 80, 0.15);
  color: #000000;
  padding: 0 2px;
  border-radius: 2px;
}

/* ====================== */
/* RESPONSIVE ADJUSTMENTS */
/* ====================== */

@media (max-width: 768px) {

  .dark-mode #draftPromisory-note,
  .light-mode #draftPromisory-note {
    padding-top: 1rem !important;
  }

  .dark-mode #draftPromisory-note .section,
  .light-mode #draftPromisory-note .section {
    padding: 1.2rem !important;
    margin: 0.5rem !important;
  }

  .dark-mode #draftPromisory-note .section-text,
  .light-mode #draftPromisory-note .section-text {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }

  .dark-mode #draftPromisory-note .fineprint,
  .light-mode #draftPromisory-note .fineprint {
    font-size: 0.85rem !important;
  }

  .dark-mode #draftPromisory-note .step-indicator,
  .light-mode #draftPromisory-note .step-indicator {
    padding: 0.8rem;
    margin: 1rem 0;
    overflow-x: auto;
  }

  .dark-mode #draftPromisory-note .step-circle,
  .light-mode #draftPromisory-note .step-circle {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {

  .dark-mode #draftPromisory-note .section,
  .light-mode #draftPromisory-note .section {
    padding: 1rem !important;
    margin: 0.2rem !important;
  }

  .dark-mode #draftPromisory-note .section-text,
  .light-mode #draftPromisory-note .section-text {
    font-size: 0.9rem !important;
  }

  .dark-mode #draftPromisory-note .btn-prev,
  .dark-mode #draftPromisory-note .btn-next,
  .light-mode #draftPromisory-note .btn-prev,
  .light-mode #draftPromisory-note .btn-next {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .dark-mode #draftPromisory-note .back-to-questions,
  .light-mode #draftPromisory-note .back-to-questions {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* ====================== */
/* ACCESSIBILITY ENHANCEMENTS */
/* ====================== */

/* Focus states for accessibility */
.dark-mode #draftPromisory-note .btn-prev:focus,
.dark-mode #draftPromisory-note .btn-next:focus,
.dark-mode #draftPromisory-note .back-to-questions:focus,
.light-mode #draftPromisory-note .btn-prev:focus,
.light-mode #draftPromisory-note .btn-next:focus,
.light-mode #draftPromisory-note .back-to-questions:focus {
  outline: 3px solid rgba(76, 175, 80, 0.5);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .dark-mode #draftPromisory-note .section-text {
    color: #ffffff !important;
  }

  .dark-mode #draftPromisory-note .section-text strong {
    color: #00ff00 !important;
  }

  .light-mode #draftPromisory-note .section-text {
    color: #000000 !important;
  }

  .light-mode #draftPromisory-note .section-text strong {
    color: #006400 !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

  .dark-mode #draftPromisory-note .btn-prev:hover,
  .dark-mode #draftPromisory-note .btn-next:hover,
  .dark-mode #draftPromisory-note .back-to-questions:hover,
  .light-mode #draftPromisory-note .btn-prev:hover,
  .light-mode #draftPromisory-note .btn-next:hover,
  .light-mode #draftPromisory-note .back-to-questions:hover {
    transform: none;
    transition: none;
  }
}

/* Print styles */
@media print {

  .dark-mode #draftPromisory-note .section,
  .light-mode #draftPromisory-note .section {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
    box-shadow: none;
  }

  .dark-mode #draftPromisory-note .section-text,
  .light-mode #draftPromisory-note .section-text {
    color: #000000 !important;
  }

  .dark-mode #draftPromisory-note .section-text strong,
  .light-mode #draftPromisory-note .section-text strong {
    color: #000000 !important;
  }

  .btn-prev,
  .btn-next,
  .back-to-questions,
  .step-indicator {
    display: none !important;
  }
}

/* Contact Link Styling */
.contact-link {
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
  padding: 0 4px;
  border-radius: 4px;
  position: relative;
}

.contact-link:hover {
  color: var(--primary-dark);
  background-color: rgba(76, 175, 80, 0.15);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(76, 175, 80, 0.2);
}

.contact-link:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(76, 175, 80, 0.2);
}

.contact-link:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Modal overlay for better closing */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  display: none;
}

/* Make sure modals stay on top of everything */
.modal.show {
  display: flex;
}

/* Modal content styling */
.modal-content {
  position: relative;
  z-index: 2001;
  max-height: 85vh;
  overflow-y: auto;
}

/* Close button styling */
.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  z-index: 2002;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.3);
  color: white;
  transform: rotate(90deg);
}

/* Animation for modal and screen transitions */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal.show {
  animation: fadeIn 0.3s ease;
}

.modal-content {
  animation: slideUp 0.3s ease;
}

/* Transition for screen changes */
.screen.active {
  animation: fadeIn 0.5s ease;
}

/* Simple solution - hide logo on landing */
body.showing-landing .logo-container {
  display: none;
}

/* Ensure top-bar still looks good */
body.showing-landing .top-bar {
  justify-content: flex-end;
}

/* ============================================ */
/* ABOUT SCREEN RESPONSIVE TWO-COLUMN LAYOUT */
/* ============================================ */

/* Two-column container */
.about-columns-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto 0;
  align-items: stretch;
  /* Ensure columns have equal height */
}

/* Individual columns - base styles */
.about-column-left,
.about-column-right {
  flex: 1;
  min-width: 300px;
  /* Minimum width before wrapping */
}

/* Left column specific styles */
.about-column-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Add vertical centering */
  min-height: 500px;
  /* Ensure enough height for centering */
}

/* Right column specific styles */
.about-column-right {
  display: flex;
  flex-direction: column;
}

/* Hero image container */
.hero-image-container {
  width: 100%;
  max-width: 500px;
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px var(--shadow-color);
  transition: var(--transition);
  position: relative;
}

/* Hero image styling */
.hero-image {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.hero-image-container:hover .hero-image {
  transform: scale(1.05);
}

/* Optional: Add overlay effect on hover */
.hero-image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.hero-image-container:hover::before {
  opacity: 1;
}

/* Image caption for hero image */
.hero-image-container .img-caption {
  text-align: center;
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--text-color);
  opacity: 0.8;
  font-style: italic;
  padding: 0 1rem 1rem;
}

/* Ensure slides container fills the left column and is vertically centered */
.about-column-left .slides-container {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Center content vertically */
  align-items: center;
  /* Center content horizontally */
  margin: auto 0;
  /* Push to center */
}

/* ============================================ */
/* DESKTOP LAYOUT (default) - WITH VERTICAL CENTERING */
/* ============================================ */
@media (min-width: 769px) {
  .about-columns-container {
    flex-direction: row;
    /* Side by side on desktop */
    align-items: center;
    /* Vertically align both columns */
    min-height: 500px;
    /* Ensure minimum height for centering */
  }

  .about-column-left {
    order: 1;
    /* Left column first */
    display: flex;
    justify-content: center;
    /* Center slides container vertically */
    align-items: center;
    /* Center horizontally */
    height: 100%;
    /* Take full height of container */
  }

  .about-column-right {
    order: 2;
    /* Right column second */
    height: 100%;
    /* Take full height of container */
  }

  /* Adjust slides container for desktop with perfect centering */
  .about-column-left .slides-container {
    margin: 0;
    /* Remove any margin */
    padding: 2rem 0;
    /* Add vertical padding for breathing room */
    height: auto;
    max-height: 100%;
    /* Don't exceed column height */
  }

  /* Ensure slide content is properly centered */
  .about-column-left .slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
    /* Ensure slide has enough height */
  }

  /* Center slide content text */
  .about-column-left .slide-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    /* Ensure content area has height */
  }
}

/* Tablet and smaller desktop */
@media (max-width: 1024px) {
  .hero-image-container {
    height: 300px;
    max-width: 450px;
  }
}

/* Tablet portrait */
@media (max-width: 900px) {
  .hero-image-container {
    height: 280px;
    max-width: 100%;
    margin-top: 1rem;
  }
}

/* ============================================ */
/* MOBILE LAYOUT */
/* ============================================ */
@media (max-width: 768px) {
  .about-columns-container {
    flex-direction: column;
    /* Stack vertically on mobile */
    gap: 2rem;
    margin-top: 1.5rem;
    min-height: auto;
    /* Remove fixed height on mobile */
  }

  .about-column-left {
    order: 1;
    /* Slides container above on mobile */
    min-height: auto;
    /* Remove fixed height on mobile */
    justify-content: flex-start;
    /* Align to top on mobile */
  }

  .about-column-right {
    order: 2;
    /* Hero image below on mobile */
  }

  /* Reset slides container for mobile (no vertical centering) */
  .about-column-left .slides-container {
    margin-top: 0;
    padding: 0;
    justify-content: flex-start;
    /* Align to top on mobile */
  }

  /* Adjust hero image for mobile */
  .hero-image {
    min-height: 300px;
    max-height: 400px;
  }

  .hero-image-container {
    height: 250px;
    border-radius: 8px;
  }

  .hero-image-container:hover .hero-image {
    transform: scale(1.03);
    /* Slightly less zoom on mobile */
  }

  /* Adjust caption for mobile */
  .hero-image-container .img-caption {
    font-size: 0.85rem;
    padding: 0.8rem 0.8rem 1rem;
  }
}

/* ============================================ */
/* EXTRA SMALL MOBILE DEVICES */
/* ============================================ */
@media (max-width: 480px) {
  .about-columns-container {
    gap: 1.5rem;
  }

  .hero-image {
    min-height: 250px;
    max-height: 350px;
  }

  .hero-image-container {
    border-radius: 10px;
  }

  .hero-image-container .img-caption {
    font-size: 0.8rem;
    padding: 0.7rem 0.7rem 0.9rem;
  }
}

/* ============================================ */
/* LARGE DESKTOPS */
/* ============================================ */
@media (min-width: 1201px) {
  .about-columns-container {
    max-width: 1400px;
    min-height: 550px;
    /* Slightly taller on large screens */
  }

  .hero-image {
    min-height: 500px;
  }

  .about-column-left .slides-container {
    padding: 2.5rem 0;
    /* More padding on larger screens */
  }
}

/* ============================================ */
/* ENSURE COMPATIBILITY WITH EXISTING STYLES */
/* ============================================ */

/* Remove any existing margin-top from slides-container when inside columns */
#about-screen .slides-container {
  margin-top: 0;
}

/* Ensure back button stays at the bottom */
#about-screen .back-to-questions {
  margin-top: 2rem;
  align-self: center;
}

/* Fix any potential overflow issues */
.about-column-left,
.about-column-right {
  overflow: hidden;
}

/* Ensure smooth transitions */
.about-columns-container,
.hero-image-container,
.hero-image {
  transition: var(--transition);
}

/* Dark/Light mode adjustments for hero image container */
.dark-mode .hero-image-container {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.light-mode .hero-image-container {
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Hover effects */
.hero-image-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px var(--shadow-color);
}

/* Accessibility improvements */
.hero-image {
  alt: "PalKeeper Team Collaboration.";
}

/* Ensure slide navigation is properly centered */
.about-column-left .slide-nav {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

/* Ensure CTA button is properly positioned */
.about-column-left .cta-button {
  margin-top: 1.5rem;
  align-self: center;
}

/* Adjust slide height for better centering */
.about-column-left .slide {
  display: flex !important;
  /* Force flex display */
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 2rem !important;
}

/* Center the "Click the dots to navigate" text */
.about-column-left .slides-container>p {
  text-align: center;
  margin-top: 1rem;
  width: 100%;
}

/* Print styles */
@media print {
  .about-columns-container {
    display: block;
  }

  .about-column-left,
  .about-column-right {
    page-break-inside: avoid;
  }

  .hero-image-container {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* ======================== */
/* ABOUT SCREEN - RESPONSIVE */
/* ======================== */

/* About columns container */
.about-columns-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin: 3rem auto 2rem;
  width: 100%;
  max-width: 1200px;
}

/* Left column - Slides container */
.left-column {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: relative;
  padding-top: 1rem;
}

/* Adjust slides container to accommodate the title */
.slides-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Changed from center to flex-start */
  justify-content: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem 2rem 2rem;
  /* Adjusted padding */
  min-height: 350px;
  /* Reduced height since title is now above */
}

/* Right column - Hero image */
.right-column {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

/* About screen specific slide styling */
#about-screen .slide {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 30px var(--shadow-color);
  transition: var(--transition);
  display: none;
  animation: fadeIn 0.5s ease;
  width: 100%;
  min-height: 200px;
}

#about-screen .slide.active {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}

#about-screen .slide-content {
  display: block;
  font-size: 1.3rem;
  line-height: 1.7;
  font-weight: 500;
  text-align: left;
  width: 100%;
  color: var(--text-color);
}

/* Navigation instructions */
#about-screen .slides-container>p {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-color);
  opacity: 0.7;
  font-size: 0.9rem;
}

/* About screen CTA button */
#about-screen .cta-button {
  margin-top: 2rem;
  align-self: center;
}

/* ======================== */
/* RESPONSIVE ADJUSTMENTS */
/* ======================== */

/* Tablet and smaller desktop */
@media (max-width: 1024px) {
  .about-columns-container {
    gap: 2rem;
    margin: 2rem auto;
  }

  .slides-container {
    min-height: 350px;
    padding: 1.5rem;
  }

  #about-screen .slide {
    padding: 2rem;
    min-height: 180px;
  }

  .column-title {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
  }

  #about-screen .slide-content {
    font-size: 1.2rem;
  }
}

/* Tablet portrait */
@media (max-width: 900px) {
  .about-columns-container {
    flex-direction: column;
    align-items: center;
  }

  .left-column,
  .right-column {
    width: 100%;
    max-width: 600px;
  }

  .slides-container {
    min-height: 300px;
    max-width: 100%;
  }

  .hero-image-container {
    max-width: 100%;
    margin-top: 1rem;
  }

  .column-title {
    text-align: center;
    max-width: 100%;
    margin: 0 auto 1.5rem;
    padding: 0;
  }

  #about-screen .slide-content {
    text-align: center;
    padding: 0 0.5rem;
  }

  #about-screen .slide .slide-content {
    justify-content: center;
  }
}

/* Mobile landscape */
@media (max-width: 768px) {
  .about-columns-container {
    margin: 1.5rem auto;
    gap: 1.5rem;
  }

  .slides-container {
    padding: 1rem;
    min-height: 250px;
  }

  #about-screen .slide {
    padding: 1.5rem;
    min-height: 150px;
  }

  .column-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  #about-screen .slide-content {
    font-size: 1.1rem;
    line-height: 1.6;
  }

  #about-screen .slides-container>p {
    font-size: 0.85rem;
    margin-top: 1rem;
  }

  .hero-image-container {
    border-radius: 8px;
  }

  .img-caption {
    font-size: 0.85rem;
    margin-top: 0.5rem;
  }
}

/* Mobile portrait */
@media (max-width: 576px) {
  .about-columns-container {
    margin: 1rem auto;
    gap: 1rem;
  }

  .slides-container {
    min-height: 200px;
    padding: 0.5rem;
  }

  #about-screen .slide {
    padding: 1.2rem;
    min-height: 120px;
    border-radius: 12px;
  }

  .column-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
  }

  #about-screen .slide-content {
    font-size: 1rem;
    line-height: 1.5;
  }

  /* Slide navigation buttons smaller on mobile */
  #about-screen .slide-nav {
    gap: 0.8rem;
    margin-top: 1.5rem;
  }

  #about-screen .slide-nav-btn {
    width: 10px;
    height: 10px;
  }

  /* CTA button adjustments */
  #about-screen .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    margin-top: 1.5rem;
  }

  .hero-image-container {
    height: 220px;
  }

  .img-caption {
    font-size: 0.85rem;
    margin-top: 0.5rem;
  }
}

/* Extra small screens */
@media (max-width: 400px) {
  .slides-container {
    min-height: 180px;
  }

  #about-screen .slide {
    padding: 1rem;
    min-height: 100px;
  }

  .column-title {
    font-size: 1.3rem;
  }

  #about-screen .slide-content {
    font-size: 0.95rem;
  }

  #about-screen .slides-container>p {
    font-size: 0.8rem;
  }

  #about-screen .cta-button {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* ======================== */
/* ENHANCED VERTICAL CENTERING */
/* ======================== */

/* Use flexbox for perfect vertical centering */
.left-column>.slides-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
}

/* Additional centering for slide content */
#about-screen .slide .slide-content {
  display: flex;
  text-align: left;
  justify-content: flex-start;
  height: 100%;
}

/* ======================== */
/* ANIMATION ENHANCEMENTS */
/* ======================== */

/* Smooth slide transitions */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#about-screen .slide.active {
  animation: slideIn 0.5s ease forwards;
}

/* Hover effects for better interactivity */
#about-screen .slide-nav-btn:hover {
  transform: scale(1.2);
}

#about-screen .cta-button:hover {
  transform: translateY(-3px);
}

/* ======================== */
/* ACCESSIBILITY IMPROVEMENTS */
/* ======================== */

/* Focus states for keyboard navigation */
#about-screen .slide-nav-btn:focus,
#about-screen .cta-button:focus {
  outline: 3px solid rgba(76, 175, 80, 0.5);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  #about-screen .slide {
    border: 2px solid var(--primary);
  }

  #about-screen .slide-nav-btn.active {
    border: 2px solid white;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

  #about-screen .slide.active,
  #about-screen .cta-button,
  #about-screen .slide-nav-btn {
    animation: none;
    transition: none;
  }

  #about-screen .cta-button:hover {
    transform: none;
  }
}

/* ======================== */
/* PRINT STYLES */
/* ======================== */

@media print {
  .about-columns-container {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .slides-container {
    min-height: auto;
  }

  #about-screen .slide.active {
    display: block !important;
    border: 1px solid #000;
    box-shadow: none;
  }

  .slide-nav,
  .cta-button {
    display: none !important;
  }
}

.column-title {
  font-family: inherit;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  text-transform: none;
  margin-bottom: 1.5rem;
  color: var(--primary);
  text-align: left;
  width: 100%;
  max-width: 600px;
  margin-left: 0;
  margin-right: auto;
  padding: 0 1rem;
}

/* Dark/light mode consistency */
.dark-mode .column-title {
  color: #4CAF50;
}

.light-mode .column-title {
  color: #2e7d32;
}

/* ======================== */
/* THREE COLUMNS SECTION */
/* ======================== */

/* Three columns container */
.three-columns-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 2rem auto 2rem;
  width: 100%;
  max-width: 1200px;
  padding: 0 1rem;
}

/* Individual column */
.column-card {
  flex: 1;
  min-width: 300px;
  max-width: 350px;
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 5px 20px var(--shadow-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(76, 175, 80, 0.1);
}

/* Hover effect for column cards */
.column-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(76, 175, 80, 0.2);
  border-color: rgba(76, 175, 80, 0.3);
}

/* Green themed icon container */
.icon-container {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.2) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* Icon styling */
.icon-container i {
  font-size: 2.5rem;
  color: var(--primary);
  transition: var(--transition);
  z-index: 2;
  position: relative;
}

/* Hover animation for icon */
.column-card:hover .icon-container {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  transform: scale(1.1) rotate(5deg);
}

.column-card:hover .icon-container i {
  color: white;
  transform: scale(1.1);
}

/* Pulsing animation effect */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(76, 175, 80, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

.column-card:hover .icon-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  animation: pulseGlow 1.5s ease-out infinite;
  z-index: 1;
}

/* Column title */
.column-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.column-card:hover h3 {
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* Column paragraph text */
.column-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  opacity: 0.9;
  margin-top: 0.5rem;
  transition: var(--transition);
}

.column-card:hover p {
  opacity: 1;
}

/* Optional decorative element */
.column-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  border-radius: 0 0 16px 16px;
}

.column-card:hover::after {
  transform: scaleX(1);
}

/* ======================== */
/* RESPONSIVE ADJUSTMENTS */
/* ======================== */

/* Tablet landscape */
@media (max-width: 1024px) {
  .three-columns-container {
    gap: 1.5rem;
    margin: 3rem auto 2rem;
  }

  .column-card {
    min-width: 280px;
    padding: 2rem;
  }

  .icon-container {
    width: 70px;
    height: 70px;
  }

  .icon-container i {
    font-size: 2.2rem;
  }

  .column-card h3 {
    font-size: 1.4rem;
  }

  .column-card p {
    font-size: 0.95rem;
  }
}

/* Tablet portrait */
@media (max-width: 900px) {
  .three-columns-container {
    gap: 2rem;
    max-width: 600px;
  }

  .column-card {
    min-width: 250px;
    max-width: 100%;
    flex: 0 0 calc(50% - 1rem);
  }

  /* On tablet, ensure only 2 columns per row */
  .column-card:nth-child(3) {
    flex: 0 0 100%;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* Mobile landscape */
@media (max-width: 768px) {
  .three-columns-container {
    gap: 1.5rem;
    margin: 2.5rem auto 1.5rem;
  }

  .column-card {
    padding: 1.8rem;
    min-width: 220px;
  }

  .icon-container {
    width: 65px;
    height: 65px;
    margin-bottom: 1.2rem;
  }

  .icon-container i {
    font-size: 2rem;
  }

  .column-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }

  .column-card p {
    font-size: 0.92rem;
    line-height: 1.5;
  }
}

/* Mobile portrait - single column */
@media (max-width: 576px) {
  .three-columns-container {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem auto 1rem;
    padding: 0 0.5rem;
  }

  .column-card {
    width: 100%;
    max-width: 320px;
    min-width: unset;
    padding: 1.5rem;
  }

  .icon-container {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }

  .icon-container i {
    font-size: 1.8rem;
  }

  .column-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
  }

  .column-card p {
    font-size: 0.9rem;
  }

  /* Reduce hover effects on mobile for better performance */
  .column-card:hover {
    transform: translateY(-5px);
  }

  .column-card:hover .icon-container {
    transform: scale(1.05);
  }
}

/* Extra small screens */
@media (max-width: 400px) {
  .column-card {
    padding: 1.2rem;
    max-width: 280px;
  }

  .icon-container {
    width: 55px;
    height: 55px;
  }

  .icon-container i {
    font-size: 1.6rem;
  }

  .column-card h3 {
    font-size: 1.1rem;
  }

  .column-card p {
    font-size: 0.85rem;
  }
}

/* ======================== */
/* DARK/LIGHT MODE ADJUSTMENTS */
/* ======================== */

.dark-mode .column-card {
  background-color: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.light-mode .column-card {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-mode .column-card:hover {
  background-color: rgba(76, 175, 80, 0.03);
}

.light-mode .column-card:hover {
  background-color: rgba(76, 175, 80, 0.03);
}

/* ======================== */
/* ACCESSIBILITY IMPROVEMENTS */
/* ======================== */

.column-card:focus-within {
  outline: 3px solid rgba(76, 175, 80, 0.5);
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

  .column-card,
  .icon-container,
  .icon-container i,
  .column-card h3,
  .column-card p {
    transition: none;
    animation: none;
  }

  .column-card:hover {
    transform: none;
  }

  .column-card:hover .icon-container {
    transform: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  }

  .column-card:hover .icon-container i {
    color: white;
    transform: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .column-card {
    border: 2px solid var(--primary);
  }

  .icon-container {
    border: 2px solid var(--primary);
  }

  .column-card:hover {
    border: 2px solid var(--primary-dark);
  }
}

/* ======================== */
/* FOUNDER'S STORY LINK */
/* ======================== */

.founder-story-link {
  text-align: center;
  margin: 2rem auto 3rem;
  width: 100%;
  max-width: 1200px;
  padding: 0 1rem;
}

.founder-story-text {
  font-size: 1.1rem;
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.founder-story-highlight {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  transition: var(--transition);
  position: relative;
  background: transparent;
  border: none;
  font-size: inherit;
  font-family: inherit;
}

/* Hover effects for founder's story link */
.founder-story-highlight:hover {
  color: var(--primary-dark);
  background-color: rgba(76, 175, 80, 0.1);
  transform: translateY(-2px);
  /* text-decoration: underline; */
}

/* Underline animation on hover */
.founder-story-highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.founder-story-highlight:hover::after {
  width: 100%;
}

/* Focus state for accessibility */
.founder-story-highlight:focus {
  outline: 3px solid rgba(76, 175, 80, 0.3);
  outline-offset: 2px;
}

/* Arrow icon animation */
.founder-story-highlight i {
  margin-left: 0.5rem;
  font-size: 0.9em;
  transition: transform 0.3s ease;
  display: inline-block;
}

.founder-story-highlight:hover i {
  transform: translateX(4px);
}

/* Decorative line above the text */
.founder-story-link::before {
  content: '';
  display: block;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
  margin: 0 auto 1.5rem;
  opacity: 0.5;
}

/* ======================== */
/* RESPONSIVE ADJUSTMENTS */
/* ======================== */

/* Tablet and smaller desktop */
@media (max-width: 1024px) {
  .founder-story-link {
    margin: 1.5rem auto 2.5rem;
  }

  .founder-story-text {
    font-size: 1.05rem;
  }
}

/* Mobile landscape */
@media (max-width: 768px) {
  .founder-story-link {
    margin: 1.2rem auto 2rem;
    padding: 0 0.5rem;
  }

  .founder-story-text {
    font-size: 1rem;
    line-height: 1.5;
  }

  .founder-story-highlight {
    padding: 0.2rem 0.4rem;
  }
}

/* Mobile portrait */
@media (max-width: 576px) {
  .founder-story-link {
    margin: 1rem auto 1.5rem;
  }

  .founder-story-text {
    font-size: 0.95rem;
  }

  .founder-story-highlight {
    font-size: 0.95rem;
  }

  .founder-story-highlight i {
    margin-left: 0.3rem;
  }
}

/* Extra small screens */
@media (max-width: 400px) {
  .founder-story-text {
    font-size: 0.9rem;
  }

  .founder-story-highlight {
    font-size: 0.9rem;
    padding: 0.1rem 0.3rem;
  }

  .hero-image-container {
    height: 200px;
  }

  .img-caption {
    font-size: 0.8rem;
  }
}

/* ======================== */
/* DARK/LIGHT MODE SPECIFIC */
/* ======================== */

.dark-mode .founder-story-text {
  opacity: 0.8;
}

.light-mode .founder-story-text {
  opacity: 0.9;
}

.dark-mode .founder-story-highlight {
  color: #4CAF50;
}

.light-mode .founder-story-highlight {
  color: #2e7d32;
}

.dark-mode .founder-story-highlight:hover {
  background-color: rgba(76, 175, 80, 0.15);
}

.light-mode .founder-story-highlight:hover {
  background-color: rgba(76, 175, 80, 0.08);
}

/* ======================== */
/* REDUCED MOTION SUPPORT */
/* ======================== */

@media (prefers-reduced-motion: reduce) {

  .founder-story-highlight,
  .founder-story-highlight i,
  .founder-story-highlight::after {
    transition: none;
  }

  .founder-story-highlight:hover {
    transform: none;
  }

  .founder-story-highlight:hover i {
    transform: none;
  }
}

/* ======================== */
/* TECH STARTUP SECTION - COMPLETE CSS */
/* ======================== */

.tech-startup-section {
  position: relative;
  width: 100%;
  margin: 4rem 0;
  overflow: hidden;
}

/* Two-column container - full width */
.startup-columns-container {
  display: flex;
  flex-wrap: wrap;
  min-height: 600px;
  width: 100%;
  position: relative;
  margin: 0;
  padding: 0;
}

/* Left column - takes 50% width */
.startup-left-column {
  flex: 0 0 50%;
  width: 50%;
  padding: 4rem 5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--card-bg);
  position: relative;
  z-index: 2;
}

/* Right column - takes 50% width */
.startup-right-column {
  flex: 0 0 50%;
  width: 50%;
  position: relative;
  background-image: url('/assets/images/palKeeperHero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0;
  padding: 0;
}

/* For retina/high DPI displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
  .startup-right-column {
    background-image: url('/assets/images/palKeeperHero.png');
  }
}

/* Fallback for different image formats */
@supports (background-image: url('/assets/images/palKeeperHero.png')) {
  .startup-right-column {
    background-image: url('/assets/images/palKeeperHero.png');
  }

  @media (-webkit-min-device-pixel-ratio: 2),
  (min-resolution: 192dpi) {
    .startup-right-column {
      background-image: url('/assets/images/palKeeperHero.png');
    }
  }
}

/* Dark overlay for right column */
.startup-right-column::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}

/* Left column icon */
.startup-icon {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.startup-icon i {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Left column paragraph above title */
.startup-intro-text {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.6;
  color: var(--text-color);
  opacity: 0.9;
  margin-bottom: 1.5rem;
  text-align: left;
  max-width: 500px;
}

/* Column title */
.startup-column-title {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-align: left;
  line-height: 1.2;
  max-width: 500px;
}

/* Dark/light mode specific title colors */
.dark-mode .startup-column-title {
  color: #4CAF50;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.light-mode .startup-column-title {
  color: #2e7d32;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Left column paragraph below title */
.startup-description {
  font-size: clamp(1rem, 1.3vw, 1.05rem);
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 2.5rem;
  text-align: left;
  max-width: 500px;
  opacity: 0.85;
}

/* CTA button - no border radius */
.startup-cta-button {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 0;
  width: auto;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.startup-cta-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

.startup-cta-button:active {
  transform: translateY(-1px);
}

/* ======================== */
/* OVERLAY CTA CARD - FIXED CENTER POSITIONING */
/* ======================== */

/* Overlay CTA Card - ALWAYS centered in startup-right-column */
.overlay-cta-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.95);
  padding: 2.5rem;
  width: min(400px, 85%);
  max-width: 400px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  z-index: 10;
  border-left: 5px solid var(--primary);
  text-align: left;
  animation: cardFadeIn 0.6s ease-out;
}

.dark-mode .overlay-cta-card {
  background-color: rgba(45, 45, 45, 0.95);
  border-left: 5px solid #4CAF50;
}

.light-mode .overlay-cta-card {
  background-color: rgba(255, 255, 255, 0.95);
  border-left: 5px solid #2e7d32;
}

/* CTA Card heavy weight text */
.cta-card-title {
  font-size: clamp(1.5rem, 2vw, 1.8rem);
  font-weight: 900;
  color: var(--text-color);
  margin-bottom: 0.8rem;
  line-height: 1.2;
  text-align: left;
}

.dark-mode .cta-card-title {
  color: #ffffff;
}

.light-mode .cta-card-title {
  color: #000000;
}

/* CTA Card subtext */
.cta-card-subtext {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: var(--text-color);
  opacity: 0.8;
  line-height: 1.5;
  text-align: left;
  margin-bottom: 1.5rem;
}

.dark-mode .cta-card-subtext {
  opacity: 0.9;
}

/* CTA Card button */
.cta-card-button {
  display: inline-block;
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.8rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cta-card-button:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Card glow effect */
.overlay-cta-card::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
  border-radius: 12px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay-cta-card:hover::before {
  opacity: 1;
}

/* Animation for card appearance */
@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ======================== */
/* RESPONSIVE ADJUSTMENTS */
/* ======================== */

/* Large desktop */
@media (max-width: 1600px) {
  .startup-left-column {
    padding: 4rem 8vw;
  }

  .overlay-cta-card {
    width: min(380px, 80%);
    padding: 2.2rem;
  }
}

/* Desktop */
@media (max-width: 1400px) {
  .startup-left-column {
    padding: 3rem 6vw;
  }

  .startup-columns-container {
    min-height: 550px;
  }

  .overlay-cta-card {
    width: min(350px, 75%);
  }
}

/* Tablet landscape */
@media (max-width: 1200px) {
  .startup-columns-container {
    min-height: 500px;
  }

  .startup-left-column {
    padding: 3rem 5vw;
  }

  .overlay-cta-card {
    width: min(320px, 70%);
    padding: 2rem;
  }
}

/* Tablet portrait - stack columns */
@media (max-width: 992px) {
  .tech-startup-section {
    margin: 3rem 0;
  }

  .startup-left-column,
  .startup-right-column {
    flex: 0 0 100%;
    width: 100%;
  }

  .startup-left-column {
    padding: 3rem 10vw;
    order: 2;
  }

  .startup-right-column {
    min-height: 400px;
    order: 1;
    background-attachment: scroll;
  }

  /* On mobile/tablet, overlay card stays centered in the right column */
  .startup-right-column .overlay-cta-card {
    position: absolute;
    /* STILL ABSOLUTE for centering */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: min(350px, 85%);
    background-color: var(--card-bg);
    border: 1px solid rgba(76, 175, 80, 0.3);
    box-shadow: 0 10px 30px var(--shadow-color);
  }

  .startup-columns-container {
    min-height: auto;
  }

  /* Center text on tablet/mobile */
  .startup-intro-text,
  .startup-column-title,
  .startup-description,
  .startup-cta-button {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 600px;
  }

  .startup-icon {
    justify-content: center;
  }
}

/* Mobile landscape */
@media (max-width: 768px) {
  .tech-startup-section {
    margin: 2.5rem 0;
  }

  .startup-left-column {
    padding: 2.5rem 8vw;
  }

  .startup-right-column {
    min-height: 350px;
  }

  .startup-right-column .overlay-cta-card {
    width: min(320px, 80%);
    padding: 1.8rem;
  }
}

/* Mobile portrait */
@media (max-width: 576px) {
  .tech-startup-section {
    margin: 2rem 0;
  }

  .startup-left-column {
    padding: 2rem 6vw;
  }

  .startup-right-column {
    min-height: 300px;
  }

  .startup-right-column .overlay-cta-card {
    width: min(300px, 85%);
    padding: 1.5rem;
  }

  .startup-cta-button {
    padding: 0.9rem 1.8rem;
    font-size: 0.95rem;
    width: 100%;
    max-width: 280px;
  }

  .cta-card-button {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Extra small screens */
@media (max-width: 400px) {
  .startup-left-column {
    padding: 1.5rem 5vw;
  }

  .startup-right-column {
    min-height: 250px;
  }

  .startup-right-column .overlay-cta-card {
    width: min(280px, 90%);
    padding: 1.2rem;
  }

  .cta-card-title {
    font-size: 1.2rem;
  }

  .cta-card-subtext {
    font-size: 0.85rem;
  }
}

/* Small height screens */
@media (max-height: 700px) {
  .startup-right-column .overlay-cta-card {
    padding: 1.5rem;
    width: min(350px, 80%);
  }

  .cta-card-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }

  .cta-card-subtext {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
}

/* ======================== */
/* ACCESSIBILITY & PERFORMANCE */
/* ======================== */

/* Focus states */
.startup-cta-button:focus,
.cta-card-button:focus {
  outline: 3px solid rgba(76, 175, 80, 0.5);
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

  .startup-cta-button,
  .cta-card-button,
  .startup-icon i,
  .overlay-cta-card,
  .overlay-cta-card::before {
    transition: none;
    animation: none;
  }

  .startup-cta-button:hover,
  .cta-card-button:hover {
    transform: none;
  }

  .startup-right-column {
    background-attachment: scroll;
  }

  .overlay-cta-card:hover::before {
    opacity: 0;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .startup-left-column {
    border-right: 2px solid var(--primary);
  }

  .startup-cta-button,
  .cta-card-button {
    border: 2px solid var(--primary);
  }

  .overlay-cta-card {
    border: 3px solid var(--primary);
    background-color: var(--card-bg) !important;
  }

  .cta-card-title {
    color: var(--primary) !important;
  }
}

/* Print styles */
@media print {
  .tech-startup-section {
    break-inside: avoid;
    width: 100%;
    margin: 2rem 0;
  }

  .startup-right-column {
    display: none;
  }

  .overlay-cta-card {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin: 1rem 0;
    box-shadow: none;
    border: 1px solid #000;
    page-break-inside: avoid;
  }
}

/* ======================== */
/* CONTAINER OVERRIDE FOR FULL WIDTH */
/* ======================== */

/* If placed inside a container with max-width, override it */
#about-screen .tech-startup-section,
.screen-wrapper .tech-startup-section {
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  left: 0 !important;
  right: 0 !important;
  position: relative !important;
}

/* Ensure body doesn't overflow */
body {
  overflow-x: hidden;
}

/* Ensure startup-right-column has proper positioning context */
.startup-right-column {
  position: relative !important;
}

/* ======================== */
/* OUR TEAM SECTION - COMPLETE CSS WITH LEFT-ALIGNED HEADER */
/* ======================== */

/* Main container - 100% viewport width with no margins */
.our-team-section {
  width: 100vw;
  position: relative;
  min-height: 700px;
  background: transparent;
  border: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  left: 0;
  right: 0;
}

/* Ensure it breaks out of parent containers */
body .our-team-section {
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  width: 100vw !important;
  max-width: 100vw !important;
}

/* Footer - 35% height, bottom aligned, 100% width */
.our-team-section-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 35%;
  background-color: var(--card-bg);
  z-index: 1;
  margin: 0;
  padding: 0;
  display: block;
  visibility: visible;
  opacity: 1;
}

/* ======================== */
/* TEAM HEADER - 100% width, no background, no border */
/* ======================== */

.team-header {
  width: 100%;
  background: transparent;
  border: none;
  margin: 0;
  padding: 0 0 3rem 0;
  /* Bottom padding only */
  text-align: left;
  /* Changed from center to left */
}

/* Team header title - LEFT ALIGNED with first column */
.team-header .column-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  padding: 0;
  text-align: left;
  /* Changed from center to left */
  width: 100%;
  max-width: 350px;
  /* Same max-width as team columns */
  margin-left: 3rem;
  /* Ensure it starts at left edge */
}

#team-toggle-btn {
  margin-left: 3rem;
  padding: 0.8rem 2rem;
  font-size: 1rem;
}

/* Dark/light mode adjustments for header */
.dark-mode .team-header .column-title {
  color: #4CAF50;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.light-mode .team-header .column-title {
  color: #2e7d32;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ======================== */
/* THREE-COLUMN CONTAINER */
/* ======================== */

.team-columns-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Changed from center to flex-start for left alignment */
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  /* This creates the 50% overlap into footer */
  margin-bottom: 6%;
}

/* Three columns wrapper */
.team-columns-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
}

.team-fade-in {
  /* Container animation removed to allow staggered child animations */
}

/* Staggered animation for team members */
.team-fade-in .team-column {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.team-fade-in .team-column:nth-child(1) { animation-delay: 0.1s; }
.team-fade-in .team-column:nth-child(2) { animation-delay: 0.2s; }
.team-fade-in .team-column:nth-child(3) { animation-delay: 0.3s; }
.team-fade-in .team-column:nth-child(4) { animation-delay: 0.4s; }
.team-fade-in .team-column:nth-child(5) { animation-delay: 0.5s; }
.team-fade-in .team-column:nth-child(6) { animation-delay: 0.6s; }
.team-fade-in .team-column:nth-child(7) { animation-delay: 0.7s; }
.team-fade-in .team-column:nth-child(8) { animation-delay: 0.8s; }
.team-fade-in .team-column:nth-child(9) { animation-delay: 0.9s; }

/* Individual team column */
.team-column {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--card-bg);
  box-shadow: 0 10px 30px var(--shadow-color);
  transition: var(--transition);
  height: 450px;
}

/* Hover effect */
.team-column:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(76, 175, 80, 0.2);
}

/* Team portrait - 70% of column height */
.team-portrait {
  position: relative;
  height: 315px;
  /* 70% of 450px */
  overflow: hidden;
  flex-shrink: 0;
}

/* Team portrait image - perfectly fitted */
.team-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.5s ease;
}

.team-column:hover .team-portrait img {
  transform: scale(1.05);
}

/* Title caption - left and bottom aligned */
.title-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: rgba(76, 175, 80, 0.95);
  color: white;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 0 4px 0 0;
  text-transform: uppercase;
  z-index: 3;
  min-width: 60px;
  text-align: center;
}

/* Team info - 30% of column height */
.team-info {
  height: 135px;
  /* 30% of 450px */
  padding: 1.5rem;
  background-color: var(--card-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border-top: 3px solid var(--primary);
  flex-shrink: 0;
}

/* Team name */
.team-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.3rem;
  width: 100%;
  text-align: left;
}

/* Team role */
.team-role {
  font-size: 0.95rem;
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 1rem;
  width: 100%;
  text-align: left;
  font-weight: 500;
}

/* Team about button - matches founder-story-highlight */
.team-about-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: var(--transition);
  background: transparent;
  border: none;
  font-size: 0.95rem;
  font-family: inherit;
  margin-top: 0.5rem;
  text-align: left;
  position: relative;
}

.team-about-button:hover {
  color: var(--primary-dark);
  background-color: rgba(76, 175, 80, 0.1);
  transform: translateY(-2px);
}

.team-about-button i {
  margin-left: 0.3rem;
  font-size: 0.8em;
  transition: transform 0.3s ease;
}

.team-about-button:hover i {
  transform: translateX(4px);
}

/* ======================== */
/* RESPONSIVE ADJUSTMENTS */
/* ======================== */

/* Tablet */
@media (max-width: 1024px) {
  .team-columns-container {
    gap: 1.5rem;
    padding: 3rem 1.5rem;
    margin-bottom: -15%;
  }

  .team-columns-wrapper {
    gap: 1.5rem;
  }

  .team-header {
    padding-bottom: 2rem;
  }

  .team-header .column-title {
    font-size: 2.2rem;
    max-width: 300px;
    /* Adjust for tablet */
  }

  #team-toggle-btn {
    margin-left: 1.5rem;
  }

  .team-column {
    min-width: 250px;
    height: 400px;
  }

  .team-portrait {
    height: 280px;
    /* 70% of 400px */
  }

  .team-info {
    height: 120px;
    /* 30% of 400px */
    padding: 1.2rem;
  }

  .team-name {
    font-size: 1.2rem;
  }

  .team-role {
    font-size: 0.9rem;
  }
}

/* MOBILE: Hide footer and adjust layout */
@media (max-width: 768px) {

  /* Hide the footer completely on mobile */
  .our-team-section-footer {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
  }

  /* Remove the negative margin since there's no footer to overlap */
  .team-columns-container {
    margin-bottom: 0 !important;
    padding: 2rem 1rem;
    align-items: center;
    /* Center everything on mobile */
  }

  /* Team header adjustments for mobile */
  .team-header {
    padding-bottom: 1.5rem;
    text-align: center;
    /* Center on mobile */
    width: 100%;
  }

  .team-header .column-title {
    font-size: 1.8rem;
    /*text-align: center;  Center on mobile */
  }

  #team-toggle-btn {
    margin-left: 0;
  }

  /* Stack columns on mobile */
  .team-columns-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center columns on mobile */
    gap: 2rem;
    width: 100%;
  }

  /* Adjust section height since footer is gone */
  .our-team-section {
    min-height: auto !important;
    padding-bottom: 3rem !important;
  }

  .team-column {
    width: 100%;
    max-width: 350px;
    min-width: unset;
    height: 380px;
  }

  .team-portrait {
    height: 266px;
    /* 70% of 380px */
  }

  .team-info {
    height: 114px;
    /* 30% of 380px */
    padding: 1.2rem;
  }
}

/* Mobile portrait */
@media (max-width: 576px) {
  .team-columns-container {
    padding: 1.5rem 0.5rem;
  }

  .team-header .column-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .team-columns-wrapper {
    gap: 1.5rem;
  }

  .team-column {
    max-width: 320px;
    height: 360px;
  }

  .team-portrait {
    height: 252px;
    /* 70% of 360px */
  }

  .team-info {
    height: 108px;
    /* 30% of 360px */
    padding: 1rem;
  }

  .team-name {
    font-size: 1.1rem;
  }

  .team-role {
    font-size: 0.85rem;
  }

  .team-about-button {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Extra small screens */
@media (max-width: 400px) {
  .team-columns-container {
    padding: 1rem 0.25rem;
  }

  .team-header .column-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .team-columns-wrapper {
    gap: 1rem;
  }

  .team-column {
    max-width: 280px;
    height: 340px;
  }

  .team-portrait {
    height: 238px;
    /* 70% of 340px */
  }

  .team-info {
    height: 102px;
    /* 30% of 340px */
    padding: 0.8rem;
  }

  .team-name {
    font-size: 1rem;
  }

  .team-role {
    font-size: 0.8rem;
  }

  .title-caption {
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
  }
}

/* ======================== */
/* FIXES FOR PARENT CONTAINERS */
/* ======================== */

/* Ensure parent containers don't clip the section */
.container .our-team-section,
.screen-wrapper .our-team-section,
#about-screen .our-team-section {
  overflow: visible !important;
}

/* Prevent body horizontal scroll */
body {
  overflow-x: hidden;
}

/* Ensure section doesn't get cut off */
#our-team-section {
  box-sizing: border-box;
}

/* Print styles */
@media print {
  .our-team-section {
    min-height: auto;
  }

  .team-columns-container {
    margin-bottom: 0;
    gap: 1rem;
  }

  .team-column {
    box-shadow: none;
    border: 1px solid #000;
    height: auto;
    page-break-inside: avoid;
  }

  .team-about-button {
    display: none;
  }

  .our-team-section-footer {
    display: none;
  }
}

/* Ensure modals stay above footnote */
.modal {
  z-index: 2000 !important;
}

.modal-content {
  z-index: 2001 !important;
}

/* Ensure dropdowns stay above footnote */
.pitch-dropdown,
.faq-dropdown,
.custom-select .select-items {
  z-index: 100 !important;
}

/* Fix for mobile menu to stay above footnote */
.mobile-menu {
  z-index: 999 !important;
}

/* Ensure bottom navigation stays above footnote when visible */
.bottom-navigation {
  z-index: 99 !important;
  position: fixed;
  bottom: 0;
}

/* Mobile adjustments for footnote */
@media (max-width: 480px) {

  .footnote h3 {
    font-size: 1rem;
  }

  .footnote p {
    font-size: 0.85rem;
  }

  .icon-container {
    width: 40px;
    height: 40px;
  }

  .icon-container i {
    font-size: 1.2rem;
  }
}


/* ====================== */
/* NDA FORM SPECIFIC STYLES */
/* ====================== */

/* Name inputs spacing for NDA form */
#nda-nca-form .name-inputs-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px !important;
  /* Adequate spacing between fields */
  width: 100%;
  margin-top: 5px;
}

#nda-nca-form .name-inputs-row input {
  flex: 1;
  min-width: 0;
}

/* Responsive adjustments for NDA name inputs */
@media (max-width: 768px) {
  #nda-nca-form .name-inputs-row {
    flex-wrap: wrap;
    gap: 15px !important;
  }

  #nda-nca-form .name-inputs-row input {
    flex: 1 1 calc(50% - 7.5px);
    min-width: 0;
  }

  #nda-nca-form .name-inputs-row input#nda-middleName {
    flex: 1 1 100%;
    order: 3;
  }
}

@media (max-width: 480px) {
  #nda-nca-form .name-inputs-row {
    flex-direction: column;
    gap: 10px !important;
  }

  #nda-nca-form .name-inputs-row input {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* NDA full name display styling */
#nda-fullName span {
  text-decoration: underline !important;
  text-decoration-thickness: 3px !important;
  text-underline-offset: 3px !important;
  font-weight: 700 !important;
  display: inline !important;
  white-space: nowrap !important;
  line-height: 1.5 !important;
}

/* NDA date display styling */
#nda-effectiveDate span span {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 2px !important;
  display: inline !important;
}

/* NDA form validation styles */
#nda-nca-form input.invalid {
  border-color: #ff6b6b !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2) !important;
}

#nda-nca-form input.valid {
  border-color: rgba(76, 175, 80, 0.5) !important;
}

#nda-nca-form .invalid-checkbox {
  border-color: #ff6b6b !important;
}

/* NDA submit button disabled state */
#nda-submit:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  background-color: #666 !important;
}

#nda-submit:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* NDA phone validation message */
.nda-phone-validation-message,
.nda-email-validation-message {
  display: none;
  color: #ff6b6b;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  font-style: italic;
}

/* Ensure NDA form fields have proper spacing */
#nda-nca-form .form-group {
  margin-bottom: 1.5rem;
}

#nda-nca-form .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary);
}

/* NDA address inputs spacing */
#nda-nca-form .address-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
}

#nda-nca-form .address-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.8rem;
  width: 100%;
}

#nda-nca-form .address-row input {
  flex: 1;
  min-width: 0;
}

/* Ensure NDA modal appears on top */
#nda-SubmitSuccessModal {
  z-index: 2002 !important;
}

/* Responsive adjustments for NDA form */
@media (max-width: 768px) {
  #nda-nca-form .address-row {
    flex-wrap: wrap;
  }

  #nda-nca-form .address-row input {
    flex: 1 1 calc(50% - 0.4rem);
  }

  #nda-nca-form .address-row input#nda-zipCode {
    flex: 1 1 calc(50% - 0.4rem);
  }
}

@media (max-width: 480px) {
  #nda-nca-form .address-row {
    flex-direction: column;
  }

  #nda-nca-form .address-row input {
    flex: 1 1 100%;
    width: 100%;
  }
}
