/* ============================================================
   contact-page.css
   Page-specific styles for contact.html ONLY.
   Header and footer already live in your main style.css.
============================================================ */

/* Safety net: body should never render plain white with white
   text if a section is missing a background for any reason
   (e.g. this stylesheet fails to load, or gets cached out of date). */
body {
  background-color: var(--alabaster-grey);
}

/* ============================================================
   CONTACT PAGE HERO
============================================================ */
.contact-hero {
  background-color: var(--dusk-blue);
  padding: 110px 8% 90px;
  text-align: left;
  border-bottom: 5px solid black;
}

.contact-hero-label {
  display: inline-block;
  font-family: 'FixedExcelsiorSys', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 14px;
  letter-spacing: 1px;
  text-shadow:
    0 1px 0 rgba(0,0,0,0.2),
    0 2px 4px rgba(0,0,0,0.3);
}

.contact-hero h1 {
  font-family: 'FixedExcelsiorSys', sans-serif;
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 22px;
  line-height: 1.15;
}

.contact-hero p {
  font-family: 'FixedExcelsiorSys', sans-serif;
  font-size: 1.7rem;
  color: var(--alabaster-grey);
  max-width: 800px;
  line-height: 1.5;
}

/* ============================================================
   DJANGO MESSAGES
============================================================ */
.form-messages {
  max-width: 700px;
  margin: 40px auto 0;
  padding: 0 8%;
}

.form-message {
  font-family: 'FixedExcelsiorSys', sans-serif;
  font-size: 1.1rem;
  padding: 16px 22px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.form-message.success {
  background: #d1f4e0;
  color: #14532d;
  border: 2px solid #14532d;
}

.form-message.error {
  background: #fde2e2;
  color: #7f1d1d;
  border: 2px solid #7f1d1d;
}

/* ============================================================
   FORM SECTION
============================================================ */
.contact-section {
  padding: 90px 8% 120px;
  background: var(--alabaster-grey);
}

.contact-section-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.contact-section-heading h2 {
  font-family: 'FixedExcelsiorSys', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--prussian-blue);
  margin-bottom: 10px;
}

.contact-section-heading p {
  font-family: 'FixedExcelsiorSys', sans-serif;
  font-size: 1.15rem;
  color: var(--dusk-blue);
}

#contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(10, 17, 40, 0.18);
  padding: 55px;
}

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

.form-row {
  display: flex;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
}

.form-group label {
  font-family: 'FixedExcelsiorSys', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--prussian-blue);
  margin-bottom: 10px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  font-family: 'FixedExcelsiorSys', sans-serif;
  font-size: 1.05rem;
  padding: 14px 16px;
  border: 2px solid var(--lavender-grey);
  border-radius: 10px;
  background: var(--white);
  color: black;
  transition: border-color 0.2s ease;
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--dusk-blue);
}

/* Error state */
.input-error {
  border-color: #c0392b !important;
}

.field-error {
  font-family: 'FixedExcelsiorSys', sans-serif;
  font-size: 0.9rem;
  color: #c0392b;
  margin-top: 6px;
  min-height: 1.2em;
}

/* ============================================================
   NON-PROFIT TABS
============================================================ */
.nonprofit-tabs {
  display: flex;
  gap: 10px;
}

.tab-btn {
  flex: 1;
  font-family: 'FixedExcelsiorSys', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 16px;
  border: 2px solid var(--lavender-grey);
  border-radius: 10px;
  background: var(--white);
  color: var(--dusk-blue);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.tab-btn:hover {
  transform: scale(1.02);
}

.tab-btn.active {
  background: var(--dusk-blue);
  color: var(--white);
  border-color: var(--dusk-blue);
}

/* ============================================================
   SUBMIT BUTTON — scoped, doesn't touch .btn globally
============================================================ */
#contact-submit-btn {
  cursor: pointer;
  width: 100%;
  margin-top: 16px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

#contact-submit-btn:hover {
  transform: scale(1.02);
  background: var(--gold);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.4);
}

@media (max-width: 700px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  #contact-form {
    padding: 35px 26px;
  }
  .contact-hero h1 {
    font-size: 3rem;
  }
  .contact-hero p {
    font-size: 1.3rem;
  }
}
