/* =========================================
   CONTACT PAGE SPECIFIC STYLES
========================================= */

/* --- PAGE BANNER --- */
.page-banner {
  height: 40vh;
  min-height: 300px;
  background: linear-gradient(rgba(20, 92, 55, 0.9), rgba(20, 92, 55, 0.8)),
              url('https://images.unsplash.com/photo-1516387938699-a93567ec168e?auto=format&fit=crop&w=1200&q=80'); /* Contact bg image */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding-top: 60px; /* Offset for fixed header */
}

.banner-content h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.banner-content p {
  font-size: 1.2rem;
  color: #e5f3ec;
}

/* --- CONTACT MAIN SECTION --- */
#contact-main {
  background: var(--white);
  padding: 5rem 1.5rem;
}

.contact-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  /* Columns: Info is slightly narrower (1fr), Form is wider (1.5fr) */
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

/* --- LEFT COLUMN: CONTACT INFO --- */
.contact-info h2 {
  color: var(--green-dark);
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.info-item .icon {
  background: var(--green-soft);
  color: var(--green-main);
  width: 45px;
  height: 45px;
  border-radius: 50%; /* Circle shape */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0; /* Prevents icon from squishing */
}

.info-item h4 {
  color: var(--text-main);
  margin-bottom: 0.2rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.info-item p, 
.info-item a {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.info-item a:hover {
  color: var(--green-main);
  text-decoration: underline;
}

/* Map Container */
.map-container {
  margin-top: 2.5rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
}

/* --- RIGHT COLUMN: CONTACT FORM --- */
.contact-form-wrapper {
  background: #fdfdfd;
  padding: 3rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.contact-form-wrapper h3 {
  color: var(--green-dark);
  margin-bottom: 2rem;
  font-size: 1.6rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.9rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 1rem;
  transition: 0.3s;
  background: var(--white);
}

/* Focus State (Green Border) */
.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-main);
  box-shadow: 0 0 0 3px rgba(31, 122, 74, 0.1);
}

.contact-form-wrapper button {
  width: 100%;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  margin-top: 1rem;
}

.form-message {
  margin-top: 1.5rem;
  text-align: center;
  font-weight: 600;
  color: var(--green-main);
}

/* --- FAQ SECTION --- */
#faq {
  background: var(--green-soft); /* Light green background */
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--border);
}

.faq-container {
  max-width: 900px; /* Narrower than full width for readability */
  margin: 0 auto;
}

.faq-container .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* Accordion Item */
.accordion-item {
  background: var(--white);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.05);
}

/* The Clickable Header */
.accordion-header {
  width: 100%;
  padding: 1.2rem 1.5rem;
  text-align: left;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-dark);
  cursor: pointer;
  transition: background 0.3s;
  font-family: var(--font);
}

.accordion-header:hover {
  background: #f9f9f9;
}

/* The Plus Sign */
.accordion-header .arrow {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--green-main);
  transition: transform 0.3s ease;
}

/* The Hidden Body */
.accordion-body {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden; /* Hides content when closed */
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  background: #fff;
}

.accordion-body p, 
.accordion-body ul {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

/* --- ACTIVE STATES (Toggled by JS) --- */
.accordion-item.active .accordion-body {
  max-height: 500px; /* Enough height to show content */
  padding-bottom: 1.5rem; /* Add padding when open */
}

.accordion-item.active .accordion-header .arrow {
  transform: rotate(45deg); /* Turns (+) into (x) */
}

.accordion-item.active .accordion-header {
  color: var(--green-main); /* Highlight text when active */
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 850px) {
  /* Stack the grid vertically on tablets/phones */
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-form-wrapper {
    padding: 2rem;
  }
  
  .page-banner h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 500px) {
  .contact-form-wrapper {
    padding: 1.5rem;
  }
  
  .page-banner {
    min-height: 200px;
  }
}