/* JETLIST CSS STYLESHEET */
/* FONT IMPORT */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;700&display=swap');

/* GLOBAL RESET & OVERFLOW CONTROL */
/* overflow-x prevents horizontal scrolling;
/* 100vw is 100% viewport width*/
html {
  overflow-x: hidden; /* Prevent horizontal scroll */
  min-width: 375px;;
}

body {
  overflow-x: hidden; /* Double protection against horizontal scroll */
  min-width: 375px; /* Minimum width for mobile devices */
  font-family: 'EB Garamond', Garamond, serif; /* Primary font */
  background-color: #f8f7f5; /* Light beige background */
  color: #111; /* Dark text */
  width: 100%; /*was previously 100vw*/
  margin: 0;
  padding: 0;
}

/* NAVIGATION BAR */
.navbar {
  position: fixed; /* Stays at top when scrolling */
  top: 0;
  left: 0;
  inline-size: 100%; /* Changed from width to inline-size for better compatibility */
  /*inline-size is a CSS property that defines the width of an element in a way that is more compatible with different writing modes and languages.*/
  /*width: 100%; /* Full viewport width */
  margin: 0;
  padding: 1rem 0; /* Only vertical padding to avoid overflow */
  display: flex;
  justify-content: space-between; /* Logo left, links right */
  align-items: center;
  background-color: rgba(17, 17, 17, 0.9); /* Semi-transparent dark */
  backdrop-filter: blur(10px); /* Modern glass effect */
  z-index: 10; /* Above everything else */
}

.navbar a {
  color: #f8f7f5; /* Light color for navbar links */
  text-decoration: none; /* Remove underlines in navbar */
}

/* NAVBAR CONTENT SPACING */
.logo {
  padding-left: 2rem; /* Spacing for logo */
}

.nav-links {
  padding-right: 2rem; /* Spacing for navigation links */
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'EB Garamond', Garamond, serif;
  margin-top: 0; /* Remove default top margin */
}

/* LINKS */
a {
  color: #111; /* Dark color */
  text-decoration: underline;
  transition: color 0.2s; /* Smooth color change on hover */
}

a:hover {
  color: #444; /* Lighter color on hover */
}

.hero-section {
  position: absolute; /* Positioned independently */
  top: 0;
  left: 0;
  width: 100%; 
  height: 100vh; 
  margin: 0;
  padding: 0;
  background-image: url('Flight-card-mockup.jpg'); 
  background-size: cover; /* Scale image to cover entire area */
  background-position: 50% 45%; /* X% Y% - adjust to anchor the seat *; /* Changed from center to %x %y...*/
  background-repeat: no-repeat; /* Don't repeat image */
  display: flex;
  align-items: center; /* Center content vertically */
  justify-content: center; /* Center content horizontally */
  text-align: center;
  z-index: 1; /* Below navbar, above other content */
}

/* HERO DARK OVERLAY */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2); /* Semi-transparent dark overlay */
}

/* HERO CONTENT STYLING */
.hero-content {
  position: relative;
  z-index: 2; /* Above the dark overlay */
  color: white;
  max-width: 600px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-top: 2rem;
  margin-bottom: 20rem; /* intentionally 20rem */
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
}

/* CONTENT WRAPPER - PUSHES CONTENT BELOW HERO */
.content-wrapper {
  margin-top: 100vh; /* Push content down by full viewport height */
}

/* >>>REMOVED IN FAVOUR OF A GRID...<<< CONTAINER FOR CARDS/CONTENT */
/*.container {
  width: 100%;
  max-width: 400px; /* Mobile-first approach 
  margin: 1rem auto;
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}*/

.card-container {
  /* Create a single-cell grid */
  display: grid;
  grid-template-columns: 1fr;    /* One column that takes full width */
  grid-template-rows: 1fr;       /* One row that takes full height */
  grid-template-areas: "card";   /* Name the area "card" */
  place-items: center;           /* Centers the grid cell */
  width: 100%;
  height: 100%;

  /* Optional: Add some padding */
  padding: 1rem;
  box-sizing: border-box;
}

/* LARGER SCREENS - RESPONSIVE BREAKPOINT */
@media (max-width: 768px) {
  .card-container {
    padding: 0.5rem;
  }
  
  .signup-card {
    width: min(400px, 95vw);
    height: min(700px, 95vh);
    padding: 1.5rem;
  }
}

@media (max-height: 600px) {
  .signup-card {
    height: min(600px, 95vh);
    padding: 1rem;
  }

  .hero-section {
    background-position: 40% 60%; /* Adjust for mobile */
  }}


/* APPLY BUTTON */
#applyButton {
  background: #92f300a1; /* Green with transparency */
  color: #f8f7f5;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-family: Garamond, serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

/* BUTTON HOVER - NOTE: This targets .button class, but button has ID */
.button:hover {
  background: #333;
}

/* PHONE DEMO SECTION */
.phone-demo {
  height: 100vh; /* Full height section */
  overflow-x: hidden; /* Prevent horizontal scroll */
  padding: 50px 0;
}

.phone-container {
  display: flex;
  gap: 50px; /* Space between phone images */
  transform: translateX(-100%); /* Start hidden to the left */
  transition: transform 1.5s ease; /* Smooth slide animation */
}

.phone-slide {
  width: 250px;
  height: auto;
  flex-shrink: 0; /* Don't shrink images */
}

/* TRIGGER PHONE ANIMATION WHEN VISIBLE */
.phone-container.visible {
  transform: translateX(0); /* Slide into view */
}

/* QUESTION CARDS */
.question-card {
  opacity: 0; /* Start invisible */
  transform: translateX(100px); /* Start offset to the right */
  transition: all 0.3s ease; /* Smooth transition */
}

.question-card.active {
  opacity: 1; /* Fully visible */
  transform: translateX(0); /* In final position */
}

/* What exactly is this doing and is it at all necessary?*/ 
#cardOverlay {
  display: none;
}

 .card-overlay {
  position: fixed ;
  top: 0 ;
  left: 0 ;
  width: 100% ;
  height: 100vh ;
  background: rgba(0, 0, 0, 0.8) ;
  display: none ;
  justify-content: center ;
  align-items: center;
  z-index: 9999;
}

.signup-card {
  /* All cards occupy the same grid area */
  grid-area: card;
  
  /* Card styling */
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  
  /* Responsive sizing */
  width: min(500px, 90vw);       /* Max 500px, but 90% viewport on small screens */
  height: min(750px, 90vh);      /* Max 750px, but 90% viewport height */
  max-width: 500px;
  max-height: 750px;
  
  /* Flexbox for internal layout */
  display: flex;
  flex-direction: column;
  
  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  
  /* Smooth transitions */
  transition: 
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease;
  
  /* Slight transform for entrance effect */
  transform: translateY(20px);
}


.card-header {
  flex-shrink: 0;
  position: relative;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 1rem;
}

/* Main content area that can expand/contract */
.card-content {
  flex: 1; /* Initially commented out then changed from one to zero... Takes up available space */
  height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Always start from top */
  gap: 1.5rem;
  overflow-y: auto; /* Scroll if content overflows */
  overflow-x: hidden; /* Prevent horizontal scroll */
  padding: 1.5rem 0 0 0; /* Top padding only */
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #c1c1c1 #f1f1f1; /* Firefox */
}

/* Custom scrollbar for webkit browsers */
.card-content::-webkit-scrollbar {
  width: 6px;
}

.card-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.card-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.card-content::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* Footer are... replaced continue button footer*/
.progress-footer {
  flex-shrink: 0;
  height: 80px; /* Slightly shorter than button footer */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  border-top: 1px solid #f0f0f0; /* Subtle separator */
}

/* Form actions no longer needed as flexbox - just for single button */
.form-actions {
  width: 100%; /* Take full width for centering */
  display: flex;
  justify-content: center;
}

/* Mobile responsive heights */
@media (max-width: 768px) {
  .signup-card {
    height: 700px; /* Increased from 600px */
    min-height: 700px;
    padding: 1.5rem 1rem;
  }
}

@media (max-height: 700px) {
  .signup-card {
    height: 650px; /* Increased from 550px */
    min-height: 650px;
  }
}

/* Mobile landscape */
@media (max-height: 500px) and (orientation: landscape) {
  .signup-card {
    height: 450px;
    min-height: 450px;
    padding: 1rem;
  }
  
  .card-content {
    gap: 1rem; /* Tighter spacing */
  }
}

/* Close button - top right */
.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  width: 44px; /* Better touch target */
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10; /* Above other content */
}

/* Style the next button to match back button */
.next-btn {
  background: #000;
  color: white;
  border: 1px solid #000;
  font-size: 0.9rem;
  cursor: pointer;
  width: 80px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.next-btn:enabled:hover {
  background: #333;
  border-color: #333;
}

.next-btn:disabled {
  background: #f5f5f5;
  color: #999;
  border-color: #ddd;
  cursor: not-allowed;
}

/* Ensure back button stays consistent */
.back-btn {
  background: none;
  border: 1px solid #ddd;
  color: #666;
  font-size: 0.9rem;
  cursor: pointer;
  width: 80px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.back-btn:hover {
  background: #f9f9f9;
}

/* Back button - top left */
.back-btn {
  background: none;
  border: 1px solid #ddd;
  color: #666;
  font-size: 0.9rem;
  cursor: pointer;
  width: 80px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.back-btn:hover {
  background: #f9f9f9;
}

/* Button improvements */
.btn-primary {
  background: #000;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  max-width: 300px; /* Prevent button from getting too wide */
  min-height: 50px;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background: #333;
}

.signup-card.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

#cardOverlay.show{
  display: flex;
}


.card-overlay.show {
  display: flex !important;
}


/* Clean input styling */
.input-group {
  margin-bottom: 2rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #666;
  font-size: 0.9rem;
}

.signup-card input {
  width: 100%;
  padding: 0.75rem 0;
  border: none;
  border-bottom: 1px solid #ddd;
  background: transparent;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.signup-card input:focus {
  border-bottom-color: #000;
}

.radio-option {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  cursor: pointer;
  padding: 0.75rem 0;
  transition: background-color 0.2s;
}

.radio-option:hover {
  background-color: #f9f9f9;
}

.radio-option input[type="radio"] {
  margin-right: 1rem;
  width: 18px;
  height: 18px;
}

.radio-option label {
  cursor: pointer;
  color: #333;
  margin: 0;
}

/* Clean button styling */
.btn-primary {
  background: #000;
  position-anchor: fixed; /* position anchor SOUNDS right...*/
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background: #333;
}

.btn-secondary {
  background: transparent;
  color: #666;
  border: 1px solid #ddd;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  margin-right: 1rem;
}

.btn-secondary:hover {
  background: #f9f9f9;
}

/* Progress indicator */
.progress-container {
  width: 100%;
  text-align: center;
}

.progress-bar {
  width: 100%;
  height: 6px; /* Slightly thicker since it's more prominent */
  background: #e0e0e0;
  border-radius: 3px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #000;
  border-radius: 3px;
  transition: width 0.5s ease;
  width: 10%; /* Start at 10% for question 1 */
}

.progress-text {
  font-size: 0.875rem; /* Slightly larger since it's more prominent */
  color: #666;
  font-weight: 500;
}

/* Selection animation */
.signup-card.selection-made {
  transform: translateY(-5px);
  transition: transform 0.3s ease;
}

/* Subtle highlight for selected option */
.radio-option input[type="radio"]:checked + label {
  color: #000;
  font-weight: 500;
}

/* Disabled state during transition */
.radio-option input[type="radio"]:disabled {
  opacity: 0.6;
}

.radio-option:has(input:disabled) {
  pointer-events: none;
  opacity: 0.7;
}

/* Create a button group for Back and Next */
.button-group {
  display: flex;
  gap: 0.5rem; /* Small gap between Back and Next buttons */
}