:root {
  /* Main Brand Colors */
  --white: #fff;
  --black: #000;
  --yellow: #FFDE00;
  --green: #1E5122;
  --brown: #705812;
  --peach: #FFC570;
  
  /* Extended Palette */
  --green-dark: #0f2a12;
  --green-light: #2a6e2f;
  --cream: #fcf9f2;
  --gray-muted: #7a7268;
  --border-light: #e0d6c0;
  --text-dark: #1a1a18;
  --text-mid: #4a4840;
  --red-500: #c0392b;
  
  /* Spacing & Radius */
  --radius-card: 24px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 0 rgba(30, 81, 34, 0.08);
}

.contact-sect {
  max-width: 960px;
  margin: 0 64px 0 64px;
  padding: 0 64px;
}

/* ---------- TYPOGRAPHY ---------- */
.contact-sect h1,
.contact-sect h2,
.contact-sect h3,
.contact-sect h4 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 600;
  color: var(--green-dark);
}

#cont-h1 {
  font-size: 3rem;
  color: var(--green);
  border-left: 8px solid var(--yellow);
  padding-left: 1.5rem;
  margin-bottom: 1.8rem;
  line-height: 1.2;
}

.contact-sect h2 {
  font-size: 2rem;
  border-bottom: 3px solid var(--peach);
  padding-bottom: 0.5rem;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.contact-sect h3 {
  font-size: 1.5rem;
  color: var(--brown);
  margin-top: 2rem;
}

.contact-sect p {
  margin-bottom: 1.2rem;
  color: var(--text-mid);
}

.contact-sect a {
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dotted var(--green-light);
  transition: all 0.2s;
}

.contact-sect a:hover {
  color: var(--brown);
  border-bottom-color: var(--brown);
}

small {
  color: var(--gray-muted);
  font-size: 0.9rem;
}

/* ---------- HERO / INTRO ---------- */
.contact-sect > .contact-sect p:first-of-type {
  font-size: 1.2rem;
  background: var(--white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 2rem;
}

/* ---------- GENERAL ENQUIRIES BLOCK ---------- */
.inquiries-notice {
  background: var(--white);
  padding: 1.2rem 1.8rem;
  border-radius: var(--radius-sm);
  border-left: 6px solid var(--yellow);
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

/* Optional: fine-tune the email link inside the notice */
.inquiries-notice a {
  font-weight: 600;
  color: var(--green);
}

/* ---------- TABLE STYLES (BOARD OF DIRECTORS) ---------- */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0 2.5rem;
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

th {
  background: var(--green-dark);
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.9rem;
  padding: 1rem 1.2rem;
  text-align: left;
}

td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--green);
  text-shadow: 1px 1px 2px var(--yellow);
  font-size: 16px;
  vertical-align: top;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background-color: #fbf6e8;
}

td a {
  font-weight: 500;
  color: var(--green);
  border-bottom: 1px dotted var(--green);
}

td a:hover {
  color: var(--brown);
}

/* ---------- FORM STYLES ---------- */
.form-content form {
  background: var(--white);
  padding: 2.2rem 2.2rem 2.5rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin: 2rem 0 1.5rem;
}

.form-content form p {
  margin-bottom: 1.6rem;
}

.form-content label {
  display: block;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.form-content input,
.form-content select,
.form-content textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  border: 2px solid var(--brown);
  border-bottom: 4px solid var(--brown);
  border-radius: 40px;
  background: var(--cream);
  color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-content textarea {
  border-radius: 24px;
  resize: vertical;
  min-height: 140px;
}

.form-content input:focus,
.form-content select:focus,
.form-content textarea:focus {
  border-color: var(--green-dark);
  border-bottom: 6px solid var(--green);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(30,81,34,0.2);
}

/* Buttons */
.form-content button {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 0.9rem 2.2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  border-radius: 40px;
  cursor: pointer;
  margin-right: 0.8rem;
  margin-bottom: 0.5rem;
  border: 2px solid var(--green);
  transition: all 0.2s;
  box-shadow: 0 2px 0 var(--green-dark);
}

.form-content button:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--green-dark);
}

.form-content button[type="reset"] {
  background: transparent;
  background-color: var(--red-500);
  color: var(--text-mid);
  border: 2px solid var(--border-light);
  box-shadow: none;
}

.form-content button[type="reset"]:hover {
  background: var(--cream);
  border-color: var(--gray-muted);
  color: var(--red-500);
  text-shadow: var(--yellow);
  transform: translateY(-1px);
}

/* ---------- PRIVACY / TRUST SECTION ---------- */

#privacy {
  background: var(--green-dark);
  color: var(--white);
  padding: 1.2rem 1.8rem;
  border-radius: 60px 20px 60px 20px;
  margin-top: 24px;
  margin-bottom: 16px;
  border-left: 6px solid var(--yellow);
}

#privacy h3 {
  color: var(--white);
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

#privacy p {
  color: var(--peach);
  margin-bottom: 0;
  font-size: 0.95rem;
}

#privacy a {
  color: var(--peach);
  border-bottom-color: var(--peach);
}

/* ---------- HELPER SPACING & RESPONSIVENESS ---------- */
@media(max-width: 930px) {
  .contact-sect {
    max-width: 880px;
    margin: 0 32px 0 32px;
    padding: 0 32px;
    font-size: 12px;
  }

  /* ---------- TYPOGRAPHY ---------- */
  #cont-h1 {
    font-size: 32px;
    padding-left: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .contact-sect h2 {
    font-size: 24px;
    margin-bottom: 1rem;
  }

  .contact-sect h3 {
    font-size: 16px;
    margin-top: 2rem;
  }

  small {
    font-size: 8px;
  }

  /* ---------- HERO / INTRO ---------- */
  .contact-sect > .contact-sect p:first-of-type {
    font-size: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
  }

  /* ---------- GENERAL ENQUIRIES BLOCK ---------- */
  .inquiries-notice {
    padding: 0.2rem 0.8rem;
    margin-bottom: 2rem;
    font-size: 12px;
  }

  /* ---------- TABLE STYLES (BOARD OF DIRECTORS) ---------- */
  table {
    margin: 0.2rem 0 0.8rem;
  }

  th {
    font-size: 14px;
    padding: 0.6rem 0.8rem;
  }

  td {
    padding: 0.4rem 0.2rem;
    font-size: 12px;
  }

  /* ---------- FORM STYLES ---------- */
  .form-content form {
    padding: 1.8rem 1.8rem 2rem;
    margin: 2rem 0 1.5rem;
  }

  .form-content form p {
    margin-bottom: 1rem;
  }

  .form-content label {
    margin-bottom: 0.2rem;
    font-size: 12px;
  }

  .form-content input,
  .form-content select,
  .form-content textarea {
    padding: 0.6rem 1rem;
    font-size: 10px;
  }

  .form-content textarea {
    border-radius: 24px;
    min-height: 140px;
  }

  /* Buttons */
  .form-content button {
    padding: 8px 24px;
    font-size: 10px;
  }

  /* ---------- PRIVACY / TRUST SECTION ---------- */

  #privacy {
    padding: 1rem 1.4rem;
    border-radius: 30px 10px 30px 10px;
    margin-top: 16px;
    margin-bottom: 8px;
  }

  #privacy h3 {
    font-size: 16px;
  }

  #privacy p {
    font-size: 12px;
  }

  /* Decorative element for YALPAE feel */
  .cont-header::after {
    margin-top: 4px;
    margin-bottom: 4px;
    padding-top: 0.5rem;
    font-size: 10px;
  }


}

@media (max-width: 640px) {
  .contact-sect h1 {
    font-size: 2.2rem;
    padding-left: 1rem;
  }
  
  .contact-sect h2 {
    font-size: 1.6rem;
  }
}

/* Fix for mailto links inside table */
td a {
  word-break: break-word;
}

/* Style the "General & Urgent matters" note */
small {
  display: inline-block;
  margin-top: 0.2rem;
  background: #fff3d6;
  padding: 0.2rem 1rem;
  border-radius: 30px;
}

/* Decorative element for YALPAE feel */
.cont-header::after {
  content: "🌍 · Pan-African · Youth-Led · SDG Driven";
  display: block;
  text-align: center;
  margin-top: 8px;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--brown);
  border-top: 2px dashed var(--peach);
  padding-top: 2rem;
}
