/* Citizen Toolkit - Style Sheet */

/* Root Theme Variables */
:root {
  /* Dark Theme variables (default) */
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: #374151;
  --card-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  --modal-backdrop: rgba(3, 7, 18, 0.8);
  --glass-bg: rgba(17, 24, 39, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);

  /* Shared Accents */
  --accent-indigo: #6366f1;
  --accent-indigo-glow: rgba(99, 102, 241, 0.15);
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.15);
  --accent-violet: #8b5cf6;
  --accent-youtube: #ef4444;
  
  /* Status Colors */
  --status-pending: #f59e0b;
  --status-contacted: #3b82f6;
  --status-inprogress: #8b5cf6;
  --status-completed: #10b981;
  --status-rejected: #ef4444;

  /* Font Families */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout Constants */
  --container-max-width: 1200px;
  --header-height: 80px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

/* Light Theme overrides */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --card-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  --modal-backdrop: rgba(15, 23, 42, 0.5);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(15, 23, 42, 0.08);
  --accent-indigo-glow: rgba(99, 102, 241, 0.08);
  --accent-cyan-glow: rgba(6, 182, 212, 0.08);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Header styling */
header {
  height: var(--header-height);
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.navbar {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-decoration: none;
  padding: 4px 0;
  margin-right: 24px;
}

.logo-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius-sm);
  object-fit: cover;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.logo-text {
  font-family: var(--font-headings);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  line-height: 1;
}

.logo-text span {
  color: var(--accent-indigo);
}

.logo-tagline {
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 3px;
  padding-left: 46px; /* Indents directly beneath title text starting under 'C' */
  line-height: 1;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  font-size: 15px;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-indigo);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-indigo);
  transition: width 0.3s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--accent-indigo);
  color: var(--accent-indigo);
}

/* Button styling */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 22px;
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet));
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--border-color);
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}

/* Mobile Drawer & Overlay */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background-color: var(--bg-secondary);
  z-index: 1000;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 24px;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.close-drawer {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.drawer-link {
  font-family: var(--font-headings);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-link:hover {
  color: var(--accent-indigo);
}

.drawer-divider {
  border: 0;
  height: 1px;
  background-color: var(--border-color);
  margin: 12px 0;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-indigo-glow) 0%, rgba(0,0,0,0) 70%);
  top: -200px;
  left: -200px;
  z-index: 0;
  pointer-events: none;
}

/* 3D Animated Ambient Floating Orbs */
.orb-3d {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  opacity: 0.45;
  z-index: 0;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.orb-1 {
  width: 320px;
  height: 320px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.6), rgba(168, 85, 247, 0.6));
  top: 10%;
  right: 5%;
  animation-duration: 10s;
}

.orb-2 {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.5), rgba(99, 102, 241, 0.5));
  bottom: 15%;
  left: 20%;
  animation-duration: 14s;
  animation-delay: -3s;
}

.orb-3 {
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.4), rgba(168, 85, 247, 0.4));
  top: 40%;
  left: 45%;
  animation-duration: 8s;
  animation-delay: -5s;
}

@keyframes floatOrb {
  0% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(-30px) rotate(180deg) scale(1.1);
  }
  100% {
    transform: translateY(20px) rotate(360deg) scale(0.95);
  }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.badge-glow {
  display: inline-flex;
  align-items: center;
  background-color: var(--accent-indigo-glow);
  color: var(--accent-indigo);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-content p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 600px;
}

/* Search Bar in Hero */
.search-bar {
  display: flex;
  align-items: center;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 8px 8px 8px 20px;
  border-radius: var(--border-radius-sm);
  max-width: 580px;
  margin-bottom: 40px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.search-bar:focus-within {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 3px var(--accent-indigo-glow);
}

.search-icon {
  color: var(--text-muted);
  font-size: 18px;
  margin-right: 12px;
}

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

/* Social Proof Stats */
.stats-row {
  display: flex;
  gap: 48px;
}

.stat-item h3 {
  font-size: 32px;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* Hero Visual card */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-card-glow {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 16 / 10;
  border-radius: var(--border-radius-md);
  padding: 3px;
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.video-card-glow:hover {
  transform: translateY(-5px);
}

.video-thumbnail-container {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--border-radius-md) - 3px);
  position: relative;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  filter: grayscale(20%);
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn {
  width: 64px;
  height: 64px;
  background-color: #ffffff;
  color: #ff0000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.play-btn:hover {
  transform: scale(1.15);
}

.video-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0));
  color: #ffffff;
}

.video-card-info h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.video-card-info p {
  font-size: 12px;
  opacity: 0.8;
  margin: 0;
}

/* Service Section */
.services-section {
  background-color: var(--bg-secondary);
  padding: 100px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

.sub-heading {
  font-family: var(--font-headings);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-indigo);
  display: block;
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 16px;
}

/* Filter tabs styling */
.filters-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-tab {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tab:hover {
  border-color: var(--accent-indigo);
  color: var(--text-primary);
}

.filter-tab.active {
  background-color: var(--accent-indigo);
  border-color: var(--accent-indigo);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--accent-indigo-glow);
}

.qualification-filter-wrap {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 4px 16px;
  border-radius: 50px;
  transition: all 0.2s ease;
}

.qualification-filter-wrap:focus-within {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 3px var(--accent-indigo-glow);
}

.qualification-filter-wrap select {
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 14px;
  outline: none;
  padding: 6px 0;
  cursor: pointer;
}

/* Service cards grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  min-height: 200px;
}

.service-card-img {
  width: 100%;
  height: 180px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  margin-bottom: 18px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* Grievance Section */
.grievances-section {
  padding: 100px 0;
  background-color: var(--bg-primary);
}

.grievance-card-container {
  max-width: 720px;
  margin: 0 auto;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 40px;
  box-shadow: var(--card-shadow);
}

.grievance-form select {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 16px;
  outline: none;
  width: 100%;
}

.service-card {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-indigo);
  box-shadow: 0 15px 35px var(--accent-indigo-glow);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-indigo), var(--accent-violet));
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.service-badge {
  font-family: var(--font-headings);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.job-badge {
  background-color: rgba(99, 102, 241, 0.12);
  color: var(--accent-indigo);
}

.sch-badge {
  background-color: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
}

.scheme-badge {
  background-color: rgba(139, 92, 246, 0.12);
  color: var(--accent-violet);
}

.posted-date {
  font-size: 12px;
  color: var(--text-muted);
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.service-card p.desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex: 1;
}

.meta-details {
  border-top: 1px solid var(--border-color);
  padding: 16px 0 0;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta-item {
  display: flex;
  font-size: 13px;
}

.meta-label {
  width: 100px;
  font-weight: 600;
  color: var(--text-muted);
}

.meta-value {
  flex: 1;
  color: var(--text-primary);
}

/* About Section */
.about-section {
  padding: 100px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  display: flex;
  justify-content: center;
}

.about-logo-wrapper {
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
  padding: 8px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--card-shadow);
  max-width: 360px;
}

.about-logo-wrapper img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--border-radius-lg) - 8px);
  display: block;
}

.about-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.about-content p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 30px;
}

.about-bullets {
  list-style: none;
  margin-bottom: 36px;
}

.about-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}

.about-bullets li i {
  color: var(--accent-indigo);
  margin-top: 4px;
}

.youtube-btn {
  background-color: var(--accent-youtube);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.youtube-btn:hover {
  background-color: #dc2626;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

/* Video Guides Grid */
.youtube-feed-section {
  background-color: var(--bg-secondary);
  padding: 100px 0;
  border-top: 1px solid var(--border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.video-feed-card {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.video-feed-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-indigo);
}

.thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000000;
}

.thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: transform 0.3s ease;
}

.video-feed-card:hover .thumb-wrap img {
  transform: scale(1.05);
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.play-icon-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #ffffff;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.3);
  transition: opacity 0.2s ease;
}

.video-feed-card:hover .play-icon-wrap {
  opacity: 1;
}

.video-feed-details {
  padding: 24px;
}

.video-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.job-tag { background-color: rgba(99, 102, 241, 0.12); color: var(--accent-indigo); }
.scholarship-tag { background-color: rgba(6, 182, 212, 0.12); color: var(--accent-cyan); }
.scheme-tag { background-color: rgba(139, 92, 246, 0.12); color: var(--accent-violet); }

.video-feed-details h3 {
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.video-feed-details p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Modal styling */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--modal-backdrop);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 600px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow-y: auto;
  max-height: calc(100vh - 32px);
  -webkit-overflow-scrolling: touch;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 36px;
}

.modal-backdrop.open .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s ease;
}

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

.modal-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.modal-icon {
  font-size: 32px;
  color: var(--accent-indigo);
  background-color: var(--accent-indigo-glow);
  padding: 16px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-header h2 {
  font-size: 24px;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.modal-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Form Styles */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 580px) {
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.required {
  color: #ef4444;
}

.form-group input, .form-group textarea {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 16px;
  outline: none;
  transition: all 0.2s ease;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 3px var(--accent-indigo-glow);
}

/* Country code mobile prefix */
.input-prefix-container {
  display: flex;
  align-items: stretch;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  transition: all 0.2s ease;
}

.input-prefix-container:focus-within {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 3px var(--accent-indigo-glow);
}

.input-prefix {
  display: flex;
  align-items: center;
  padding: 0 16px;
  background-color: var(--border-color);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  border-right: 1px solid var(--border-color);
}

.input-prefix-container input {
  flex: 1;
  border: none;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

.validation-message {
  font-size: 12px;
  color: #ef4444;
  height: 16px;
  display: block;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

/* Submission Loading and Button Spinner */
.btn-spinner {
  display: none;
}

.btn.loading .btn-text {
  display: none;
}

.btn.loading .btn-spinner {
  display: inline-block;
}

.btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

/* Success modal screen */
.success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.success-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.success-icon-box {
  font-size: 64px;
  color: var(--status-completed);
  margin-bottom: 24px;
  animation: scaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleUp {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.success-overlay h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.success-overlay p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 440px;
  margin-bottom: 30px;
}

.ref-box {
  background-color: var(--bg-tertiary);
  border: 1px dashed var(--border-color);
  padding: 12px 24px;
  border-radius: var(--border-radius-sm);
  font-size: 15px;
  margin-bottom: 30px;
}

.ref-box strong {
  color: var(--accent-indigo);
}

/* Footer layout */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin: 20px 0 24px;
  max-width: 320px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 50%;
  font-size: 16px;
  transition: all 0.2s ease;
}

.social-links a:hover {
  color: #ffffff;
  background-color: var(--accent-indigo);
  border-color: var(--accent-indigo);
  transform: translateY(-3px);
}

.footer-links h4 {
  font-family: var(--font-headings);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a:hover {
  color: var(--accent-indigo);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 30px 0;
  text-align: center;
  font-size: 13px;
}

/* Loading helper states */
.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Responsive breakdowns */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .search-bar {
    margin-left: auto;
    margin-right: auto;
  }
  .stats-row {
    justify-content: center;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .about-bullets li {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .nav-actions {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-content h1 {
    font-size: 28px;
    line-height: 1.3;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .container {
    padding: 0 16px;
  }
  .navbar {
    padding: 12px 16px;
  }
  .logo-text {
    font-size: 18px;
  }
  .logo-tagline {
    font-size: 10px;
  }
  .hero-content p {
    font-size: 14px;
  }
  .stats-row {
    flex-wrap: wrap;
    gap: 14px;
  }
  .stat-item {
    flex: 1 1 40%;
    min-width: 110px;
    padding: 12px;
  }
  .modal-backdrop {
    padding: 10px !important;
    align-items: flex-start !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .modal-box {
    width: 96vw !important;
    max-width: 96vw !important;
    padding: 20px 14px !important;
    max-height: calc(100vh - 20px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin: auto 0 !important;
  }
  .form-group-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .btn {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 24px;
  }
  .sub-heading {
    font-size: 12px;
  }
  .section-header h2 {
    font-size: 22px;
  }
}
