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

:root {
  /* Blue theme derived from logo */
  --primary: #0056b3; /* Deep royal blue */
  --primary-light: #1e74d8; /* Medium accent blue */
  --primary-lighter: #e3f2fd; /* Very light blue background */
  --text-dark: #1f2a38; /* Adjusted for better contrast on light blues */
  --text-light: #4d5b6b; /* Muted secondary text */
  --white: #ffffff;
  --shadow: 0 8px 32px rgba(0, 86, 179, 0.15);
  --shadow-hover: 0 12px 48px rgba(0, 86, 179, 0.25);
  --error-color: #d32f2f;
  --success-color: #2e7d32;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, var(--primary-lighter) 0%, #d9ecfb 100%);
  color: var(--text-dark);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
}

/* Screen Reader Only Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus Styles for Accessibility */
*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  z-index: 1000;
  padding: 1rem 5%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Logo image override */
.logo img {
  height: 52px;
  width: auto;
  display: block;
  max-width: 100%;
  transition: height 0.3s ease;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

/* Visible logo text beside emblem */
.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .logo img {
    height: 42px;
  }
  .logo-text {
    font-size: 1.2rem;
  }
}

@media (max-width: 600px) {
  .logo img {
    height: 38px;
  }
  .logo-text {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 34px;
  }
  .logo-text {
    font-size: 1rem;
  }
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  transition: 0.3s;
}

/* Glass Card */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* Button */
.btn {
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
  font-family: inherit;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.btn-primary:hover:not(:disabled),
.btn-primary:focus:not(:disabled) {
  box-shadow: 0 6px 25px rgba(0, 86, 179, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover:not(:disabled),
.btn-secondary:focus:not(:disabled) {
  background: var(--primary);
  color: white;
}

/* Page Container */
.page {
  display: none;
  padding-top: 80px;
  min-height: 100vh;
  animation: fadeIn 0.5s ease-in;
}

.page.active {
  display: block;
}

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

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

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 5%;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 4rem 5%;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  padding-top: 0.2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content .nepali-text {
  font-size: 1.8rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

.hero-illustration {
  width: 100%;
  max-width: 500px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 86, 179, 0.2));
}

/* (Removed circular logo wrapper; reverted to direct image) */

/* How It Works */
.how-it-works {
  padding: 5rem 5%;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  text-align: center;
  padding: 2rem;
}

.step-icon {
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
  box-shadow: 0 8px 24px rgba(0, 86, 179, 0.3);
}

/* Rights Section */
.rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.right-card {
  position: relative;
  overflow: hidden;
}

.right-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Form Styles */
.form-container {
  max-width: 900px;
  margin: 2rem auto;
}

.report-toggle {
  display: inline-flex;
  gap: 0.5rem;
  margin: 0 auto 1.5rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
}

.report-toggle-btn {
  border: none;
  background: transparent;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.25s ease;
}

.report-toggle-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 86, 179, 0.3);
}

.report-toggle-btn:not(.active):hover {
  color: var(--primary);
}

/* Icon badge for form labels */
.icon-badge {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(11, 95, 182, 0.12);
}

.icon-badge i {
  font-size: 16px;
}

/* Top note banner */
.top-note {
  max-width: 900px;
  margin: 0 auto 20px;
  background: linear-gradient(90deg, #8b0000, #b71c1c);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(183, 28, 28, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-note img {
  height: 28px;
  width: auto;
  border-radius: 3px;
}

.form-step {
  display: none;
  animation: slideIn 0.5s ease-out;
}

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

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

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

.form-group label {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}
/* Inline checkbox with professional styling */
.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.checkbox-inline input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.checkbox-label {
  font-weight: 600;
  color: var(--text-dark);
}

.form-help {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.required {
  color: #d32f2f;
  font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--primary-lighter);
  border-radius: 12px;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown) {
  border-color: #d32f2f;
}

.error-message {
  display: block;
  color: #d32f2f;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  min-height: 1.2rem;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.step-indicator {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-lighter);
  transition: all 0.3s;
}

.step-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

/* Chatbot */
.chatbot-container {
  max-width: 900px;
  margin: 2rem auto;
  height: 70vh;
  display: flex;
  flex-direction: column;
}

.chat-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 1.5rem;
  border-radius: 24px 24px 0 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.chat-messages {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  background: white;
}

.message {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.message.user {
  flex-direction: row-reverse;
}

.message-bubble {
  padding: 1rem 1.5rem;
  border-radius: 20px;
  max-width: 70%;
}

.message.bot .message-bubble {
  background: var(--primary-lighter);
  color: var(--text-dark);
}

.message.user .message-bubble {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
}

.chat-input-container {
  padding: 1.5rem;
  background: white;
  border-radius: 0 0 24px 24px;
  display: flex;
  gap: 1rem;
}

.chat-input {
  flex: 1;
  padding: 1rem;
  border: 2px solid var(--primary-lighter);
  border-radius: 50px;
  font-family: "Inter", sans-serif;
}

.chat-input:focus {
  outline: none;
  border-color: var(--primary);
}

.followup-suggestions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
  padding: 0 1rem;
}

/* Voice button listening state */
.btn-voice.listening,
button[aria-label="Start voice input"].listening {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(0, 86, 179, 0.6);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 86, 179, 0.6);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(0, 86, 179, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 86, 179, 0);
  }
}

/* ================= Auth Pages ================= */
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.auth-hero {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  color: #fff;
  padding: 4rem 6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.auth-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.auth-brand .brand-text {
  font-weight: 700;
  font-size: 1.25rem;
}

.auth-hero h1 {
  font-size: 3rem;
  margin: 0 0 1rem;
}
.auth-hero p {
  max-width: 560px;
  opacity: 0.9;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    var(--primary) 100%
  );
}

.auth-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  width: 100%;
  max-width: 460px;
  padding: 2rem;
}
.auth-card h2 {
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  text-align: center;
}
.auth-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 1.5rem;
}

.auth-form .form-group {
  margin-bottom: 1rem;
}
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"],
.auth-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  outline: none;
}
.auth-form input:focus,
.auth-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.25rem 0 1rem;
}
.auth-actions a {
  color: var(--primary);
  text-decoration: none;
}

.auth-submit {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 999px;
}

.auth-or {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #999;
  gap: 0.75rem;
  margin: 1rem 0;
}
.auth-or::before,
.auth-or::after {
  content: "";
  height: 1px;
  background: #eee;
}

.auth-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.auth-social button {
  background: #f6f8fb;
  border: 1px solid #e6edf7;
  border-radius: 12px;
  padding: 0.75rem 1rem;
}
.auth-foot {
  text-align: center;
  margin-top: 1rem;
}
.auth-foot a {
  color: var(--primary);
  text-decoration: none;
}

@media (max-width: 980px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-hero {
    padding: 3rem 2rem;
  }
  .auth-panel {
    padding: 2rem 1rem;
  }
}

.followup-suggestions .btn-secondary {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}
/* Accordion */
.accordion-item {
  margin-bottom: 1rem;
  border-radius: 16px;
  overflow: hidden;
}

.accordion-header {
  background: linear-gradient(135deg, var(--primary-lighter), white);
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.accordion-header:hover {
  background: var(--primary-lighter);
}

.accordion-header[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: white;
  padding: 0 1.5rem;
}

.accordion-content.active {
  max-height: 1000px;
  padding: 1.5rem;
}

/* Dashboard */
.dashboard {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  min-height: calc(100vh - 80px);
}

.sidebar {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2rem;
  height: fit-content;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-menu li {
  padding: 1rem;
  margin-bottom: 0.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s;
}

.sidebar-menu li:hover,
.sidebar-menu li.active {
  background: var(--primary-lighter);
  color: var(--primary);
}

.case-card {
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  cursor: pointer;
}

.case-card:hover {
  transform: translateX(5px);
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-new {
  background: #ffe5e5;
  color: #ff4444;
}

.badge-pending {
  background: #fff4e5;
  color: #ffa500;
}

.badge-resolved {
  background: #e5f9e5;
  color: #00aa00;
}

/* Risk Indicator */
.risk-indicator {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 1rem 0;
}

.risk-level {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
}

.risk-low {
  background: #e5f9e5;
  color: #00aa00;
}

.risk-medium {
  background: #fff4e5;
  color: #ffa500;
}

.risk-high {
  background: #ffe5e5;
  color: #ff4444;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 3rem 5%;
  margin-top: 5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-section h3 {
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 1;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: background 0.3s;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.3);
}
/* Success Message */
.success-screen {
  text-align: center;
  padding: 4rem 2rem;
}

.success-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #00aa00, #00dd00);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 3rem;
  color: white;
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

/* Team Cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-card {
  text-align: center;
}

.team-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 2rem;
    transition: left 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    left: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content .nepali-text {
    font-size: 1.3rem;
  }

  .cta-buttons {
    justify-content: center;
  }

  .dashboard {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .steps,
  .rights-grid {
    grid-template-columns: 1fr;
  }

  .message-bubble {
    max-width: 85%;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  gap: 5px;
  padding: 1rem;
}

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-10px);
  }
}
/* File Upload */
.file-upload {
  border: 2px dashed var(--primary-lighter);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
}

.file-upload:hover,
.file-upload:focus {
  border-color: var(--primary);
  background: rgba(0, 86, 179, 0.05);
}

.file-upload input {
  display: none;
}

.file-list {
  margin-top: 1rem;
  text-align: left;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: rgba(0, 86, 179, 0.1);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.file-item-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.file-remove {
  background: none;
  border: none;
  color: #d32f2f;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  font-size: 1.2rem;
}

/* Emergency Banner */
.emergency-banner {
  background: linear-gradient(135deg, #ff4444, #ff6666);
  color: white;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 999;
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.search-bar {
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.5rem;
  border: 2px solid var(--primary-lighter);
  border-radius: 50px;
  font-size: 1rem;
}

.search-bar i {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
}
/* Professional Terms & Conditions Checkbox Styling */
.terms-checkbox-group {
  padding: 14px 16px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f2fe 100%);
  border: 1.5px solid #cbd5f5;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.terms-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.terms-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  cursor: pointer;
  border: 2px solid #cbd5f5;
  border-radius: 6px;
  background: white;
  transition: all 0.2s ease;
  position: relative;
}

.terms-label input[type="checkbox"]:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.terms-label input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 86, 179, 0.2);
}

.terms-label input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  color: white;
  font-size: 14px;
  font-weight: bold;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.terms-label input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.terms-text {
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.5;
}

.terms-text a {
  transition: all 0.2s ease;
}

.terms-text a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

#termsError {
  margin-left: 32px;
}
