/* =============================================== */
/* === Global Reset & Base === */
/* =============================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  min-height: 100vh;
  padding-top: 100px;  /* fixed header */
  padding-bottom: 60px; /* fixed footer */
}

/* Generic container for landing page */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Card container for inner pages (Disclaimer, State, Violation, Chat) */
.card-container {
  max-width: 900px;
  width: 100%;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin: 0 auto;
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================== */
/* === Header & Navigation === */
/* =============================================== */
header {
    background: rgb(255, 255, 255); /* Semi-transparent gray for glass effect */
    backdrop-filter: blur(10px); /* Frosted glass blur */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    color: #000000;
    padding: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle glass edge */
  }
  
  .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .logo {
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
  }
  
  .logo-icon {
    margin-right: 10px;
    font-size: 32px;
  }
  
  .nav-container {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  nav ul {
    list-style: none;
    display: flex;
    align-items: center;
  }
  
  nav ul li {
    margin-right: 25px;
  }
  
  nav ul li:last-child {
    margin-right: 0;
  }
  
  nav ul li a {
    color: rgb(46, 126, 82);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
  }
  
  nav ul li a:hover {
    color: #ffd700;
  }

/* Buttons */
#login-btn, #signup-btn, #nav-toggle-btn {
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  color: white;
  transition: all 0.3s ease;
  white-space: nowrap;
}

#login-btn { background-color: #007bff; }
#login-btn:hover { background-color: #0056b3; }

#signup-btn { background-color: #28a745; }
#signup-btn:hover { background-color: #218838; }

#nav-toggle-btn { background-color: #0f57b4; font-size: 20px; }
#nav-toggle-btn:hover { background-color: #0d4a99; }

/* Hidden Navigation Menu */
#main-nav {
  display: none;
  position: absolute;
  top: 60px;
  right: 20px;
  background: white;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 1001;
}

#main-nav ul { list-style: none; margin: 0; padding: 0; }
#main-nav ul li { padding: 5px 0; }
#main-nav ul li a {
  color: #333;
  text-decoration: none;
  display: block;
  padding: 5px 10px;
  border-radius: 3px;
  transition: background-color 0.3s;
}
#main-nav ul li a:hover { background-color: #f0f0f0; }

/* =============================================== */
/* === Hero Section (Landing Page) === */
.hero {
  padding: 80px 0;
  text-align: center;
  background: #f8f9fa;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: #2c3e50;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  color: #555;
}

/* =============================================== */
/* === Buttons === */
.btn {
  display: inline-block;
  background: #5195f7;
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 600;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary { background: #6c757d; }
.btn-danger { background: #dc3545; }
.btn-light { background: white; color: #2c3e50; }
.btn-light:hover { background: #f8f9fa; }

/* =============================================== */
/* === Features Section === */
.features { padding: 80px 0; background-color: white; }
.section-title { text-align: center; margin-bottom: 50px; color: #2c3e50; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.feature-card {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.feature-icon { font-size: 40px; margin-bottom: 20px; color: #5195f7; }
.feature-card h3 { margin-bottom: 15px; color: #5195f7; }

/* =============================================== */
/* === How It Works Section === */
.how-it-works { padding: 80px 0; background-color: #f8f9fa; }
.steps { display: flex; justify-content: space-around; flex-wrap: wrap; margin-top: 50px; }
.step { text-align: center; max-width: 250px; margin: 20px; }
.step-number {
  width: 50px; height: 50px; background: #5195f7; color: white;
  border-radius: 50%; display: flex; justify-content: center; align-items: center;
  margin: 0 auto 20px; font-size: 24px; font-weight: bold;
}

/* =============================================== */
/* === Testimonials === */
.testimonials { padding: 80px 0; background-color: white; overflow: hidden; }
.testimonials-track { display: flex; animation: scroll 20s linear infinite; width: 200%; }
.testimonial {
  flex: 0 0 50%; padding: 40px; text-align: center; background: #f8f9fa;
  margin: 0 20px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.testimonial-quote { font-size: 1.2rem; font-style: italic; color: #2c3e50; margin-bottom: 20px; }
.testimonial-author { font-weight: 600; color: #5195f7; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* =============================================== */
/* === CTA Section === */
.cta-section {
  padding: 80px 0; text-align: center;
  background: linear-gradient(135deg, #1877F2 0%, #5195f7 100%);
  color: white;
}
.cta-section h2 { margin-bottom: 20px; }
.cta-section p { max-width: 700px; margin: 0 auto 30px; font-size: 1.1rem; }

/* =============================================== */
/* === Footers === */
footer.original-footer {
  background: #2c3e50;
  color: white;
  padding: 40px 0;
  text-align: center;
  margin-bottom: 60px;
}
footer.legal-disclaimer {
  width: 100%; text-align: center; padding: 15px 0;
  font-size: 0.7em; color: grey; background-color: #f8f9fa;
  border-top: 1px solid #dee2e6; position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 999;
}

/* =============================================== */
/* === Disclaimer Page Specific === */
.content { padding: 40px; }
.checkbox-container { margin: 20px 0; display: flex; align-items: center; gap: 10px; }
.checkbox-container input[type="checkbox"] { width: 20px; height: 20px; cursor: pointer; }
.disclaimer-box {
  background: #fff3cd; border: 2px solid #ffc107;
  border-radius: 10px; padding: 20px; margin-bottom: 30px;
}
.disclaimer-box h2 { color: #856404; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.disclaimer-box ul { margin-left: 20px; color: #856404; }
.disclaimer-box li { margin: 10px 0; }
.warning-icon {
  display: inline-block; width: 24px; height: 24px;
  background: #ffc107; border-radius: 50%;
  text-align: center; line-height: 24px; font-weight: bold; color: #856404;
}

/* =============================================== */
/* === Chat, State, Violation Pages === */
.state-selector, .violation-selector { margin: 20px 0; }
.select-box {
  width: 100%; padding: 15px; border: 2px solid #e0e0e0; border-radius: 10px; font-size: 16px;
}
.select-box:focus { outline: none; border-color: #5195f7; }

.violation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-top: 20px; }
.violation-card {
  background: #f8f9fa; border: 2px solid #e0e0e0; border-radius: 10px; padding: 20px; cursor: pointer; text-align: center;
  transition: all 0.3s ease;
}
.violation-card:hover {
  background: linear-gradient(135deg, #1877F2 0%, #5195f7 100%);
  color: white; transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Chat */
.chat-container { border: 2px solid #e0e0e0; border-radius: 10px; height: 500px; display: flex; flex-direction: column; }
.chat-header { background: #f8f9fa; padding: 15px; border-bottom: 2px solid #e0e0e0; }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; background: #fafafa; }
.message { margin: 10px 0; padding: 10px 15px; border-radius: 10px; }
.message.user { background: linear-gradient(135deg, #1877F2 0%, #5195f7 100%); color: white; margin-left: auto; max-width: 70%; }
.message.bot { background: white; border: 1px solid #e0e0e0; max-width: 70%; }

.chat-input-container { padding: 15px; border-top: 2px solid #e0e0e0; display: flex; gap: 10px; }
.chat-input { flex: 1; padding: 10px; border: 2px solid #e0e0e0; border-radius: 20px; font-size: 14px; }
.chat-input:focus { outline: none; border-color: #1877F2; }

/* Common Questions */
.common-questions { background: #f8f9fa; border-radius: 10px; padding: 15px; margin: 20px 0; }
.common-questions h3 { margin-bottom: 15px; color: #1877F2; }
#commonQuestionsList { max-height: 190px; overflow-y: auto; padding-right: 10px; }
.question-btn { display: block; width: 100%; text-align: left; padding: 10px; margin: 5px 0; background: white; border: 1px solid #e0e0e0; border-radius: 5px; cursor: pointer; font-size: 14px; font-family: sans-serif; }
.question-btn:hover { background: #1877F2; color: white; }

/* Lawyer Referral */
.lawyer-referral { background: #f8d7da; border: 2px solid #f5c6cb; border-radius: 10px; padding: 20px; margin: 20px 0; }
.lawyer-referral h2 { color: #721c24; margin-bottom: 15px; }
.lawyer-referral ul { margin-left: 20px; color: #721c24; }

/* =============================================== */
/* === Responsive === */
@media (max-width: 768px) {
  body { padding-top: 120px; }
  .header-content { flex-direction: column; text-align: center; }
  .nav-container { flex-wrap: wrap; justify-content: center; margin-top: 20px; gap: 10px; }
  nav ul { justify-content: center; flex-wrap: wrap; }
  nav ul li { margin: 5px 10px; }
  #login-btn, #signup-btn, #nav-toggle-btn { margin: 5px; }
  #main-nav { right: 50%; transform: translateX(50%); }
  .hero h1 { font-size: 2.2rem; }
  .steps { flex-direction: column; align-items: center; }
  .testimonial { padding: 30px 20px; }
  .testimonial-quote { font-size: 1.1rem; }
}


.card-container .header {
    background: linear-gradient(135deg, #1877F2 0%, #5195f7 100%);
    color: white;
    padding: 30px 20px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    text-align: center;
  }
  
  .card-container .header h1 {
    margin-bottom: 10px;
  }
  
  .card-container .header p {
    font-size: 1rem;
    color: #f0f0f0;
  }

  .btn-nav {
    padding: 8px 15px;
    background: #5195f7;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
  }
  .btn-nav:hover {
    background: #1877F2;
  }
  
  /* Modal */
.modal {
  display: none; 
  position: fixed; 
  z-index: 2000; 
  left: 0; top: 0; 
  width: 100%; height: 100%; 
  background: rgba(0,0,0,0.5);
}
.modal-content {
  background: #fff; 
  padding: 30px; 
  margin: 15% auto; 
  border-radius: 10px; 
  width: 300px; 
  text-align: center;
}

.disclaimer-text {
  font-size: 10px;
  color: #6c757d; /* A muted gray color */
  margin-top: 20px;
  font-family: Inter;
  /* font-style: italic; */
  max-width: 800px; /* Optional: keeps the line from getting too long */
  margin-left: auto;
  margin-right: auto;
}