/* =====================================================
   RESET & BASE
===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Arial, sans-serif;

  /* Subtle molecular/network background */
  background:
    linear-gradient(rgba(245, 247, 250, 0.95), rgba(235, 240, 246, 0.95)),
    url("/static/images/bg-light.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;

  color: #1f2937;
  min-height: 100vh;
}

/* =====================================================
   NAVIGATION BAR
===================================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #d1d5db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.logo {
  font-size: 22px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8f0ff, #ffffff);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  color: #1e3a8a;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: #4b5563;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #2563eb;
}

/* =====================================================
   HERO / INTRO SECTION
===================================================== */
.hero {
  max-width: 900px;
  margin: 50px auto 40px;
  background: #ffffff;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.hero h1 {
  font-size: 36px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 12px;
}

.hero p {
  font-size: 17px;
  color: #6b7280;
}

/* =====================================================
   FORM CONTAINER
===================================================== */
.form-container {
  max-width: 1100px;
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  padding: 0 20px;
}

/* =====================================================
   FORM BOX / SECTIONS
===================================================== */
.form-box {
  background: #ffffff;
  padding: 36px;
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.08);
}

.form-box h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1f2937;
}

.form-box p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 10px;
}

.form-box small {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: #9ca3af;
}

/* =====================================================
   INPUTS & SELECTS
===================================================== */
input,
select {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* =====================================================
   SUBMIT BUTTON
===================================================== */
.submit-btn {
  grid-column: 1 / -1;
  margin: 20px auto 0;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
  transition: background 0.2s ease, transform 0.1s ease;
}

.submit-btn:hover {
  background: #1e40af;
  transform: translateY(-1px);
}

/* =====================================================
   FOOTER
===================================================== */
.footer {
  margin-top: 80px;
  padding: 30px 20px;
  background: #f3f4f6;
  text-align: center;
  border-top: 1px solid #e5e7eb;
}

.footer p {
  font-size: 14px;
  color: #374151;
}

.footer a {
  color: #2563eb;
  text-decoration: none;
}

/* =====================================================
   GLOBAL CENTERING FOR ALL PAGES
===================================================== */
.container {
    max-width: 900px;       /* width of the content box */
    margin: 40px auto;      /* centers horizontally and adds top/bottom margin */
    padding: 20px 30px;     /* spacing inside box */
    background: rgba(255, 255, 255, 0.95); /* light background to contrast with page bg */
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    text-align: center;     /* center text content */
}

.card h2 {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.5em;
    color: #2c3e50;
}

.card ul {
    margin-bottom: 20px; /* space after list */
    padding-left: 20px;  /* indent bullets nicely */
    line-height: 1.6;    /* makes list easier to read */
}

.card p {
    margin-bottom: 15px; /* space after paragraphs */
    line-height: 1.6;
}

.card {
    padding: 25px 30px;  /* ensure inner spacing */
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    margin-bottom: 25px; /* space between stacked cards */
}

/* =====================================================
   RESPONSIVE DESIGN
===================================================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero {
    margin: 30px 20px;
    padding: 30px;
  }

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

  .submit-btn {
    width: 100%;
  }
}
