/* Base and Variables */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors based on Logo and Marketing theme */
  --primary: #0327A1; /* Blue from logo */
  --primary-hover: #021C75;
  --secondary: #07FB5B; /* Green from logo */
  --cta: #07FB5B; /* Green CTA */
  --cta-hover: #05D94C;
  --bg-color: #F8FAFC; /* Slate 50 background */
  --surface: #ffffff;
  --text-color: #0F172A; /* Slate 900 */
  --text-light: #475569; /* Slate 600 */
  --border: #e2e8f0;
  
  --font-heading: 'Lexend', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  --shadow-sm: 0 1px 2px 0 rgba(131, 24, 67, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(131, 24, 67, 0.1), 0 2px 4px -1px rgba(131, 24, 67, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(131, 24, 67, 0.1), 0 4px 6px -2px rgba(131, 24, 67, 0.05);
}

/* Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-color);
  font-weight: 600;
  line-height: 1.2;
}

p {
  color: var(--text-light);
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn-primary, .btn-outline, .btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background-color: rgba(219, 39, 119, 0.05);
}

.btn-cta {
  background-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-cta:hover {
  background-color: var(--cta-hover);
  color: #0F172A; /* Dark text for better contrast on bright green */
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Pulse animation for CTA */
.pulse-btn {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(7, 251, 91, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(7, 251, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(7, 251, 91, 0); }
}

/* Navbar */
.navbar {
  background-color: rgba(253, 242, 248, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(3, 39, 161, 0.1);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
}

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

.navbar nav a:not(.btn-outline) {
  font-weight: 500;
  color: var(--text-color);
}

.navbar nav a:not(.btn-outline):hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.hero-container {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

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

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(3, 39, 161, 0.1);
  color: var(--primary);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

.trust-indicators {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(3, 39, 161, 0.1);
}

.indicator .stat, .indicator span {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--primary);
}

.indicator p {
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Glass Card */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s ease;
}

.glass-card:hover {
  transform: perspective(1000px) rotateY(0deg);
}

/* Dashboard Mockup */
.dashboard-mock {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.dash-header {
  background-color: var(--primary);
  color: white;
  padding: 1.5rem;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dash-header h3 {
  color: white;
  font-size: 1.25rem;
  margin: 0;
}

.tag {
  background-color: var(--cta);
  color: #0F172A;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.dash-body {
  padding: 2rem;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  height: 120px;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.bar {
  flex: 1;
  background-color: rgba(3, 39, 161, 0.2);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: height 1s ease-out;
}

.bar:hover {
  background-color: var(--primary);
}

.dash-stats {
  display: flex;
  justify-content: space-between;
}

.stat-box p {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.stat-box strong {
  font-size: 1.5rem;
  color: var(--primary);
  font-family: var(--font-heading);
}

/* Services Section */
.services {
  padding: 6rem 0;
  background-color: var(--surface);
}

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: var(--bg-color);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(3, 39, 161, 0.05);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(3, 39, 161, 0.2);
}

.service-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(3, 39, 161, 0.1);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* Form Section */
.form-section {
  padding: 6rem 0;
}

.form-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.form-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.credentials-box {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cred-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

.form-wrapper {
  background: var(--surface);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #CCCCCC;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(3, 39, 161, 0.1);
}

.privacy-note {
  font-size: 0.75rem;
  text-align: center;
  margin-top: 1rem;
}

/* Loader */
.loader {
  border: 2px solid rgba(255,255,255,0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-left: 0.5rem;
}

.hidden {
  display: none !important;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.success-msg {
  background-color: rgba(22, 163, 74, 0.1);
  color: #16A34A;
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

/* Footer */
footer {
  background-color: var(--surface);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
}

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

.footer-links a {
  color: var(--text-light);
  font-weight: 500;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Animations / Reveal */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-container, .form-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-content h1 {
    font-size: 2.75rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 4rem 0;
  }

  .navbar nav {
    display: none; /* In a real app, add a hamburger menu */
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    flex-direction: column;
    gap: 2rem;
  }
  
  .trust-indicators {
    flex-direction: column;
    gap: 1.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-left h2 {
    font-size: 2.5rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
}

/* About Section */
.about-section {
  padding: 8rem 0;
  background-color: var(--primary);
  color: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-left h2 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.about-left .highlight-text {
  font-size: 1.5rem;
  color: var(--secondary);
  font-weight: 600;
  font-family: var(--font-body);
}

.about-desc {
  color: rgba(255,255,255,0.85);
  font-size: 1.125rem;
  line-height: 1.7;
}

.mt-4 {
  margin-top: 1rem;
}

.about-features {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: white;
}

/* Why Us Section */
.why-us-section {
  padding: 4rem 0;
  background-color: var(--bg-color);
}

.why-us-content {
  background: var(--surface);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  border-top: 4px solid var(--secondary);
}

.why-us-content h2 {
  margin-bottom: 1rem;
}

.why-us-content p {
  font-size: 1.125rem;
  color: var(--text-color);
}


/* New Form Styles */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group select, .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #CCCCCC;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
  background: white;
}

.form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(3, 39, 161, 0.1);
}

textarea {
  resize: vertical;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.custom-checkbox input {
  width: auto;
  margin: 0;
  cursor: pointer;
  accent-color: var(--primary);
}
