/* 
  Qentrixtech Labs - Premium SaaS Theme 
*/

:root {
  /* Colors */
  --primary-color: #4F46E5;
  --primary-hover: #4338ca;
  --secondary-color: #0EA5E9;
  --text-dark: #0f172a;
  --text-light: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --bg-dark: #020617;
  --border-color: #e2e8f0;
  
  --gradient-main: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-glow: linear-gradient(135deg, rgba(79, 70, 229, 0.4), rgba(14, 165, 233, 0.4));
  
  /* Typography */
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  /* Spacing */
  --section-padding: 6rem 0;
  --container-width: 1200px;
  
  /* Utilities */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.18);
  --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
  --shadow-hover: 0 20px 40px -10px rgba(79, 70, 229, 0.15);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-md: 12px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography Utilities */
.text-gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.text-white { color: #fff; }
.text-gray { color: #94a3b8; }
.text-green { color: #10b981; }
.text-purple { color: #8b5cf6; }

/* Layout Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: var(--section-padding);
}

.section-header {
  margin-bottom: 4rem;
  max-width: 700px;
}

.section-header.center {
  margin: 0 auto 4rem auto;
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-light);
}

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 1.5rem 0;
}

.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
  box-shadow: var(--shadow-glass);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 1001; /* Above mobile menu */
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

.logo-highlight {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-item {
  font-weight: 500;
  color: var(--bg-white);
  transition: var(--transition);
  font-size: 0.95rem;
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
  z-index: 1001;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 12rem 0 6rem 0;
  overflow: hidden;
  background-color: var(--bg-white);
}

.hero-bg-glow {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: var(--gradient-glow);
  filter: blur(100px);
  border-radius: 50%;
  z-index: 0;
  opacity: 0.5;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--primary-color);
  font-weight: 600;
  border-radius: 2rem;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}

.hero .subheadline {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 1;
}

.floating-card {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.floating-card.card-1 {
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.floating-card.card-2 {
  bottom: 15%;
  right: -5%;
  animation-delay: 2s;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* Trust Section */
.trust-section {
  padding: 4rem 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.trust-statement {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-family: var(--font-display);
}

.trust-subtitle {
  color: var(--text-light);
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
  font-weight: 600;
}

.logo-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
  opacity: 0.7;
}

.client-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* About Section */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.experience-badge {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  background: var(--primary-color);
  color: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 200px;
}

.experience-badge .number {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-display);
  line-height: 1;
}

.experience-badge .text {
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.differentiators {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.differentiators li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.icon-wrapper {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary-color);
  padding: 0.75rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.differentiators h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  font-family: var(--font-sans);
}

.differentiators p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(79, 70, 229, 0.1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(14, 165, 233, 0.1));
  color: var(--primary-color);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon i {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
  transition: var(--transition);
}

.service-link:hover {
  gap: 0.75rem;
}

/* Benefits (Why Choose Us) */
.benefits-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 200px;
}

.benefit-icon {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.25rem;
  color: var(--primary-color);
  transition: var(--transition);
}

.benefit-icon i {
  width: 32px;
  height: 32px;
}

.benefit-item:hover .benefit-icon {
  transform: scale(1.1);
  box-shadow: var(--shadow-hover);
  background: var(--primary-color);
  color: white;
}

.benefit-item h4 {
  font-size: 1.125rem;
}

/* Technology Specific Colors */
.tech-teal { background: rgba(16, 185, 129, 0.1) !important; color: #10b981 !important; }
.tech-green { background: rgba(5, 150, 105, 0.1) !important; color: #059669 !important; }
.tech-emerald { background: rgba(52, 211, 153, 0.1) !important; color: #34d399 !important; }
.tech-orange { background: rgba(249, 115, 22, 0.1) !important; color: #f97316 !important; }
.tech-sky { background: rgba(14, 165, 233, 0.1) !important; color: #0ea5e9 !important; }
.tech-blue { background: rgba(59, 130, 246, 0.1) !important; color: #3b82f6 !important; }
.tech-red { background: rgba(239, 68, 68, 0.1) !important; color: #ef4444 !important; }
.tech-purple { background: rgba(139, 92, 246, 0.1) !important; color: #8b5cf6 !important; }

/* Square Tiles & Benefit Colors */
.benefit-icon.square-tile {
  border-radius: 16px !important;
}

.color-blue { background: rgba(14, 165, 233, 0.1) !important; color: #0ea5e9 !important; }
.color-green { background: rgba(16, 185, 129, 0.1) !important; color: #10b981 !important; }
.color-amber { background: rgba(245, 158, 11, 0.1) !important; color: #f59e0b !important; }
.color-rose { background: rgba(244, 63, 94, 0.1) !important; color: #f43f5e !important; }
.color-indigo { background: rgba(99, 102, 241, 0.1) !important; color: #6366f1 !important; }

/* Process Section */
.process-wrapper {
  display: flex;
  justify-content: space-between;
  position: relative;
  overflow-x: auto;
  padding-bottom: 2rem;
}

.process-wrapper::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  width: 180px;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--bg-dark);
  border: 2px solid var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.process-step:hover .step-number {
  background: var(--primary-color);
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.5);
}

.process-step h4 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.process-step p {
  color: var(--primary-color);
  font-size: 0.9rem;
}

/* Impact Section */
.impact-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.impact-content {
  flex: 1;
  max-width: 500px;
}

.impact-stats {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-left: 4px solid var(--primary-color);
}

.stat-value {
  font-size: 3.5rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--text-dark);
  line-height: 1;
}

.stat-value .symbol {
  color: var(--primary-color);
  font-size: 2.5rem;
}

.stat-label {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-light);
}

/* CTA Section */
.cta-section {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.cta-container {
  background: var(--gradient-main);
  border-radius: var(--radius-lg);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.cta-content {
  position: relative;
  z-index: 2;
  color: white;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  color: white;
}

.cta-content p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.cta-content .btn-primary {
  background: white;
  color: var(--primary-color);
}

.cta-content .btn-primary:hover {
  background: var(--bg-light);
}

.cta-decoration .circle-1,
.cta-decoration .circle-2 {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.cta-decoration .circle-1 {
  width: 400px;
  height: 400px;
  top: -200px;
  left: -100px;
}

.cta-decoration .circle-2 {
  width: 300px;
  height: 300px;
  bottom: -150px;
  right: -50px;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: 5rem 0 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand .logo-text {
  color: white;
}

.footer-brand p {
  color: var(--text-gray);
  margin-top: 1.5rem;
  max-width: 350px;
}

.footer h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-gray);
  transition: var(--transition);
}

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

.footer-contact p {
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: white;
  transition: 0.3s ease;
}

.social-icons a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--text-gray);
  font-size: 0.875rem;
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-container,
  .about-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero {
    padding: 8rem 0 4rem;
  }
  
  .hero-content {
    text-align: center;
    margin: 0 auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .floating-card.card-1 {
    top: 5%;
    left: 5%;
  }
  
  .experience-badge {
    bottom: -1rem;
    right: 1rem;
  }
  
  .impact-container {
    flex-direction: column;
  }
  
  .impact-content {
    text-align: center;
    max-width: 100%;
  }
  
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-white);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: var(--transition);
    z-index: 1000;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-item {
    font-size: 1.25rem;
    padding: 1rem 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
  }
  
  .process-wrapper {
    flex-direction: column;
    gap: 2rem;
  }
  
  .process-wrapper::before {
    top: 0;
    left: 29px;
    width: 2px;
    height: 100%;
  }
  
  .process-step {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .step-number {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   Redesigned Hero Section & Logo
   ========================================= */

.nav-logo {
  max-height: 65px;
  width: auto;
  display: block;
}

.fullscreen-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('hero1_2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.75); /* Dark slate overlay for text contrast */
  z-index: 1;
}

.hero-container-centered {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-content-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-content-centered h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  letter-spacing: -1.5px;
  margin-bottom: 2rem;
  color: white;
}

.text-light-gray {
  color: #CBD5E1;
  font-size: 1.35rem;
  line-height: 1.7;
}

.hero-badge {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 2rem;
}

.centered-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.btn-secondary-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary-outline:hover {
  background: white;
  color: var(--primary-color);
}

/* =========================================
   Contact Form Modal
   ========================================= */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  width: 100%;
  max-width: 550px;
  border-radius: var(--radius-lg);
  padding: 3rem;
  position: relative;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.close-modal {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.modal-header {
  margin-bottom: 2rem;
  text-align: center;
}

.modal-header h3 {
  font-size: 1.75rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.modal-header p {
  color: var(--text-light);
  font-size: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-dark);
  background-color: var(--bg-light);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn-block {
  width: 100%;
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .modal-content {
    padding: 2.5rem 1.5rem;
    margin: 1rem;
  }
}

/* =========================================
   Captcha Styles
   ========================================= */

.captcha-group {
  margin-top: 0.5rem;
}

.captcha-input-wrapper {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem;
  background: var(--bg-light);
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: var(--transition);
  width: 100%;
}

.captcha-input-wrapper:focus-within {
  border-color: var(--primary-color);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

#captcha-question {
  font-weight: 700;
  color: var(--primary-color);
  font-family: var(--font-display);
  font-size: 1.1rem;
  white-space: nowrap;
  background: rgba(79, 70, 229, 0.05);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Higher specificity to override general form input styles */
.captcha-group .captcha-input-wrapper input#captcha {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  text-align: right !important;
  width: 100% !important;
  max-width: 100px !important;
  font-weight: 700 !important;
  font-size: 1.25rem !important;
  color: var(--text-dark) !important;
  margin: 0 !important;
}

/* Remove arrows from number input */
.captcha-input-wrapper input#captcha::-webkit-outer-spin-button,
.captcha-input-wrapper input#captcha::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.captcha-input-wrapper input#captcha[type=number] {
  -moz-appearance: textfield;
}

.captcha-error-msg {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  display: none;
  font-weight: 600;
  animation: shake 0.4s ease-in-out;
}

.captcha-group.error .captcha-input-wrapper {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.captcha-group.error .captcha-error-msg {
  display: block;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.loading-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-right: 0.5rem;
}

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