body {
  font-family: 'Poppins', sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  overflow-x: hidden;
}

.blueprint-grid {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image:
    linear-gradient(to right, #ffffff 1px, transparent 1px),
    linear-gradient(to bottom, #ffffff 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
}



.nav-scrolled {
  background-color: #ffffff !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.nav-scrolled .nav-text {
  color: #2e2c78 !important;
}

.custom-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.custom-modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(46, 44, 120, 0.9);
  backdrop-filter: blur(4px);
  z-index: 1;
}

.modal-content-wrapper {
  z-index: 20;
  position: relative;
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 32rem;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalZoom 0.2s ease-out forwards;
}

.modal-content-wrapper.md-large {
  max-width: 60rem;
}

@keyframes modalZoom {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Scroll Animation Keyframes */
@keyframes dashmove {
  to {
    stroke-dashoffset: -12;
  }
}

/* Animation Utility Class */
.animate-stitch {
  animation: dashmove 1s linear infinite;
}

/* Bento Card Hover Effect */
.bento-card {
  transition: all 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Header Scroll Styles (extracted from header.inc) */
#mainHeader.nav-scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.1);
}

#mainHeader.nav-scrolled .logo-white {
  display: none;
}

#mainHeader.nav-scrolled .logo-color {
  display: block;
}

#mainHeader.nav-scrolled .nav-text {
  color: #2e2c78 !important;
}

#mainHeader.nav-scrolled .nav-text:hover {
  color: #dc7053 !important;
}

#mainHeader.nav-scrolled button[onclick="toggleMobileMenu()"] {
  color: #2e2c78;
}

/* Terms Page Styles (extracted from terms/index.php) */
.terms-content h3 {
  color: #2e2c78;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.terms-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #475569;
}

.terms-content ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: #475569;
}

.terms-content li {
  margin-bottom: 0.5rem;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

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

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

/* Form Feedback Styles (Standardized) */
.form-feedback {
  display: none;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.form-feedback.success {
  display: flex;
  background-color: #dcfce7;
  color: #166534;
}

.form-feedback.error {
  display: flex;
  background-color: #fee2e2;
  color: #991b1b;
}