/* 
 * ANSIFLY - Style System (style.css)
 * Premium SaaS Style Sheet
 */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* CSS variables for Design System Tokens */
:root {
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Colors */
  --bg-dark: #070913;
  --bg-card: rgba(15, 22, 42, 0.65);
  --bg-card-hover: rgba(23, 33, 61, 0.85);
  --primary: #0D6EFD;
  --primary-hover: #0b5ed7;
  --primary-glow: rgba(13, 110, 253, 0.15);
  --primary-glow-bright: rgba(13, 110, 253, 0.4);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(13, 110, 253, 0.3);
  --text-main: #f8fafc;
  --text-sub: #94a3b8;
  --text-muted: #64748b;
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.15);
  --error: #ef4444;
  --error-glow: rgba(239, 68, 68, 0.15);

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #0d6efd 0%, #1e40af 100%);
  --grad-accent: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --grad-glow: radial-gradient(circle at 50% 50%, rgba(13, 110, 253, 0.12) 0%, rgba(0, 0, 0, 0) 70%);

  /* Transitions & Shadows */
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px rgba(13, 110, 253, 0.25);
  
  /* Scroll Snap & Margins */
  scroll-behavior: smooth;
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* Base Layout elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

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

/* Glow Background Effects */
.bg-glow-orb {
  position: absolute;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.12) 0%, rgba(6, 182, 212, 0.03) 50%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.glow-1 { top: -10%; right: -10%; }
.glow-2 { top: 40%; left: -10%; }
.glow-3 { bottom: 10%; right: -5%; }

/* Scroll Animation classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Navigation Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background-color: rgba(7, 9, 19, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

header.scrolled .nav-container {
  padding: 10px 24px;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #ffffff 30%, #a5c7f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo-text span {
  color: var(--primary);
  -webkit-text-fill-color: initial;
}

/* Nav Menu Links */
.nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-sub);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-cta-btn {
  background: var(--grad-primary);
  color: var(--text-main);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  background: var(--primary);
}

/* Hamburger Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* Mobile Nav Overlay Menu */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: rgba(11, 15, 25, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 999;
  }

  .nav-menu.active {
    right: 0;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Global Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Common Section Heading Styles */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 56px auto;
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
  padding: 6px 14px;
  background-color: var(--primary-glow);
  border: 1px solid rgba(13, 110, 253, 0.2);
  border-radius: 50px;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.section-desc {
  color: var(--text-sub);
  font-size: 1.1rem;
}

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

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-content {
  text-align: left;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  position: relative;
}

.badge-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-title {
  font-size: 2.75rem;
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 800;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

.gradient-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-sub);
  margin-bottom: 36px;
  max-width: 550px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--grad-primary);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
  background: var(--primary);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

/* Interactive Dashboard Preview container (Hero Right) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dashboard-wrapper {
  width: 100%;
  max-width: 500px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.dashboard-wrapper::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(13,110,255,0.4) 30%, rgba(6,182,212,0.4) 70%, rgba(255,255,255,0) 100%);
}

.dashboard-wrapper:hover {
  transform: translateY(-5px);
  border-color: var(--border-color-hover);
  box-shadow: 0 12px 40px rgba(13, 110, 253, 0.15);
}

.db-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.db-dots {
  display: flex;
  gap: 6px;
}

.db-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.db-dots span:nth-child(1) { background-color: #ef4444; }
.db-dots span:nth-child(2) { background-color: #f59e0b; }
.db-dots span:nth-child(3) { background-color: #10b981; }

.db-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Beautiful dynamic preview UI details */
.db-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 16px;
}

.db-main-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 16px;
}

.db-sales-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.db-sales-lbl {
  font-size: 0.75rem;
  color: var(--text-sub);
}

.db-chart-placeholder {
  height: 100px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 4px;
}

.chart-bar {
  flex: 1;
  background: var(--primary-glow-bright);
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  height: 10%;
  transition: height 1.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.chart-bar:nth-child(1) { height: 40%; }
.chart-bar:nth-child(2) { height: 65%; }
.chart-bar:nth-child(3) { height: 50%; }
.chart-bar:nth-child(4) { height: 85%; background: var(--grad-accent); }
.chart-bar:nth-child(5) { height: 70%; }
.chart-bar:nth-child(6) { height: 95%; background: var(--grad-primary); }

.db-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.db-side-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.db-side-num {
  font-size: 1.1rem;
  font-weight: 600;
}

.db-side-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.db-recent-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.db-recent-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  padding: 8px;
  background: rgba(255,255,255,0.015);
  border-radius: 6px;
  border-left: 3px solid var(--primary);
}

.db-item-name {
  font-weight: 500;
}

.db-item-price {
  color: var(--success);
}

/* Features Section */
.features-section {
  padding: 100px 0;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 32px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  bottom: -40px;
  right: -40px;
  pointer-events: none;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.08);
}

.feature-card:hover::after {
  background: radial-gradient(circle, rgba(13, 110, 253, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
  transform: scale(1.3);
}

.feature-icon-container {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--primary-glow);
  border: 1px solid rgba(13, 110, 253, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-container {
  background: var(--primary);
  color: var(--text-main);
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

.feature-icon-container svg {
  width: 24px;
  height: 24px;
  stroke-width: 2px;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.feature-desc {
  color: var(--text-sub);
  font-size: 0.92rem;
  line-height: 1.5;
}

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

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

@media (min-width: 1024px) {
  .about-layout {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.about-content {
  text-align: left;
}

.about-title {
  font-size: 2.25rem;
  margin-bottom: 24px;
  font-weight: 700;
}

.about-text {
  font-size: 1.1rem;
  color: var(--text-sub);
  margin-bottom: 32px;
  line-height: 1.7;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-f-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-f-icon {
  width: 20px;
  height: 20px;
  color: var(--success);
  flex-shrink: 0;
}

.about-f-text {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 500;
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.about-graphic {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
}

.about-graphic-icon {
  width: 80px;
  height: 80px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  margin: 0 auto 20px auto;
  box-shadow: var(--shadow-glow);
}

.about-graphic-icon svg {
  width: 40px;
  height: 40px;
}

.about-graphic-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.about-graphic-desc {
  font-size: 0.85rem;
  color: var(--text-sub);
}

/* Industries We Serve Section */
.industries-section {
  padding: 100px 0;
  position: relative;
}

.industries-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 500px) {
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .industries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.industry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: var(--transition-smooth);
}

.industry-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 8px 25px rgba(13, 110, 253, 0.05);
}

.industry-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px auto;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-glow);
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.industry-card:hover .industry-icon {
  background: var(--primary);
  color: var(--text-main);
  box-shadow: var(--shadow-glow);
}

.industry-icon svg {
  width: 22px;
  height: 22px;
}

.industry-title {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Timeline Section */
.timeline-section {
  padding: 100px 0;
  position: relative;
}

.timeline-container {
  max-width: 850px;
  margin: 0 auto;
  position: relative;
  padding: 20px 0;
}

/* Vertical line for desktop */
.timeline-container::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .timeline-container::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  margin-bottom: 50px;
  position: relative;
  width: 100%;
  padding-left: 50px;
}

@media (min-width: 768px) {
  .timeline-item {
    width: 50%;
    padding-left: 0;
    margin-bottom: 40px;
  }
  
  .timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
    text-align: right;
  }
  
  .timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
    text-align: left;
  }
}

.timeline-dot {
  position: absolute;
  left: 9px;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--bg-dark);
  border: 4px solid var(--border-color);
  z-index: 2;
  transition: var(--transition-smooth);
}

@media (min-width: 768px) {
  .timeline-dot {
    left: auto;
    right: -10px;
    top: 16px;
  }
  .timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
    right: auto;
  }
}

.timeline-item.completed .timeline-dot {
  background-color: var(--success);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 12px var(--success);
}

.timeline-item.in-progress .timeline-dot {
  background-color: var(--primary);
  border-color: rgba(13, 110, 253, 0.3);
  box-shadow: 0 0 12px var(--primary);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(13, 110, 253, 0); }
  100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  position: relative;
}

.timeline-content:hover {
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .timeline-item:nth-child(odd) .timeline-header {
    justify-content: flex-end;
  }
}

.timeline-status-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 50px;
  letter-spacing: 0.05em;
}

.timeline-status-badge.done {
  background-color: var(--success-glow);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.timeline-status-badge.current {
  background-color: var(--primary-glow);
  color: var(--primary);
  border: 1px solid rgba(13, 110, 253, 0.2);
}

.timeline-status-badge.pending {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.timeline-item-title {
  font-size: 1.2rem;
  font-weight: 600;
}

.timeline-item-desc {
  color: var(--text-sub);
  font-size: 0.9rem;
}

/* Form Section */
.form-section {
  padding: 100px 0;
  position: relative;
}

.form-wrapper {
  max-width: 750px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 40px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
}

@media (max-width: 480px) {
  .form-wrapper {
    padding: 24px;
  }
}

.form-wrapper::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-accent);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .span-2 {
    grid-column: span 2;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-sub);
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.form-label span.req {
  color: var(--error);
  margin-left: 2px;
}

/* Custom Styled Input Fields */
.form-control {
  background-color: rgba(7, 9, 19, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  outline: none;
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:focus {
  border-color: var(--primary);
  background-color: rgba(7, 9, 19, 0.9);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Dropdown styling */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Form Helper Error Styles */
.form-group.invalid .form-control {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-glow);
}

.form-group.valid .form-control {
  border-color: var(--success);
}

.form-error-msg {
  font-size: 0.78rem;
  color: var(--error);
  margin-top: 4px;
  display: none;
}

.form-group.invalid .form-error-msg {
  display: block;
}

.form-actions {
  margin-top: 12px;
  text-align: center;
}

.form-btn {
  width: 100%;
  padding: 14px;
  font-size: 1.05rem;
}

/* Contact Details Info Section */
.contact-section {
  padding: 80px 0;
  position: relative;
  background-color: rgba(7, 9, 19, 0.4);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.contact-item:hover {
  transform: translateY(-5px);
  border-color: var(--border-color-hover);
}

.contact-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-glow);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  transition: var(--transition-smooth);
}

.contact-item:hover .contact-icon {
  background: var(--primary);
  color: var(--text-main);
  box-shadow: var(--shadow-glow);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-val {
  color: var(--text-sub);
  font-size: 0.95rem;
  word-break: break-all;
}

.contact-val a:hover {
  color: var(--primary);
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(4, 5, 11, 0.85);
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 100%;
  max-width: 600px;
  background: #0b1120;
  border: 1px solid var(--border-color-hover);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease;
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

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

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-sub);
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: var(--text-main);
  transform: rotate(90deg);
}

.modal-close svg {
  width: 24px;
  height: 24px;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* Success Modal specific styling */
.success-graphic {
  width: 64px;
  height: 64px;
  background-color: var(--success-glow);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.success-graphic svg {
  width: 32px;
  height: 32px;
}

.success-title {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 12px;
}

.success-text {
  color: var(--text-sub);
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Template Codebox Container */
.template-box-wrapper {
  background-color: rgba(7, 9, 19, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 24px;
}

.template-box-header {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.template-box-content {
  padding: 16px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  color: var(--text-main);
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 180px;
  overflow-y: auto;
  line-height: 1.5;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 480px) {
  .modal-actions {
    grid-template-columns: 1fr 1fr;
  }
}

/* Legal text styling inside modals */
.legal-content h3 {
  font-size: 1.1rem;
  margin: 20px 0 10px 0;
  color: var(--text-main);
}

.legal-content h3:first-child {
  margin-top: 0;
}

.legal-content p {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-bottom: 16px;
  line-height: 1.6;
}

/* Footer Section */
footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  position: relative;
  background-color: #04060c;
}

.footer-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-layout {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-link:hover {
  color: var(--primary);
}

/* Toast Notification (Mini alerts) */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--success);
  border-radius: 8px;
  padding: 12px 24px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease;
}

.toast-notification.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-icon {
  color: var(--success);
}
