/* =========================
   EraVolve Shared Page Styles
   Used by: contact, signin, signup,
   privacy-policy, terms-of-service
   ========================= */

body {
  background: #f6f7fb;
}

/* Shared header / nav */
.topbar {
  background: #23408e;
  color: #fff;
  padding: 16px 0;
}

.nav-container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 220px;
}


.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  margin-left: 24px;
  font-size: 15px;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
  text-decoration: underline;
}

/* Shared hero section */
.page-hero {
  background: linear-gradient(rgba(42, 67, 146, 0.9), rgba(66, 90, 170, 0.88));
  color: #fff;
  text-align: center;
  padding: 80px 20px 100px;
}

.page-hero h1 {
  font-size: 46px;
  margin-bottom: 10px;
  font-weight: 800;
  color: #fff;
}

.page-hero p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.7;
  color: #fff;
}

/* Shared content card */
.page-card {
  max-width: 1000px;
  margin: -45px auto 80px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 40px;
}

.page-card.narrow {
  max-width: 620px;
}

.page-title {
  text-align: center;
  color: #23408e;
  margin-bottom: 26px;
  font-size: 30px;
  font-weight: 800;
}

/* Shared form styling */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  margin-bottom: 8px;
  font-weight: 700;
  color: #23408e;
}

.form-control {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #d7def0;
  font-size: 15px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

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

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  line-height: 1.7;
  font-size: 15px;
  color: #44546c;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.consent-box {
  background: #f3f6ff;
  border: 1px solid #dbe4ff;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: #3a4b68;
}

.page-card a,
.consent-box a,
.checkbox-group a {
  color: #2f6fed;
  text-decoration: none;
  font-weight: 600;
}

.page-card a:hover,
.consent-box a:hover,
.checkbox-group a:hover {
  text-decoration: underline;
}

.primary-btn {
  display: inline-block;
  width: 100%;
  background: #4285f4;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 6px 16px rgba(66, 133, 244, 0.3);
}

.primary-btn:hover {
  background: #2f6fed;
}

.helper-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 14px;
  color: #55657f;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-note {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  color: #5b6b84;
}

.policy-content {
  line-height: 1.8;
  color: #1f2d3d;
}

.policy-content h2 {
  color: #23408e;
  margin-top: 28px;
}

.policy-content ul {
  padding-left: 20px;
}

/* Shared footer */
.site-footer {
  background: #23408e;
  color: #fff;
  text-align: center;
  padding: 28px 20px;
}

.footer-links {
  margin-bottom: 10px;
}

.footer-links a {
  margin: 0 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    justify-content: center;
  }

  .nav-links a {
    margin: 0 10px;
  }

  .page-hero h1 {
    font-size: 38px;
  }

  .page-card {
    margin: -30px 16px 50px;
    padding: 24px;
  }

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

  .helper-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
