/* ===================================================
   ICPalestina – Contact Page Styles
   =================================================== */

/* ── CONTACT PAGE ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.contact-info-top {
  background: var(--green);
  padding: 2rem 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.contact-info-top::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04' fill-rule='evenodd'%3E%3Cpath d='M0 20L20 0l20 20-20 20z'/%3E%3C/g%3E%3C/svg%3E");
}

.contact-info-top .section-label { color: var(--gold-light); position: relative; }
.contact-info-top h2 { color: var(--white); position: relative; font-size: 1.4rem; margin-bottom: 0.5rem; }
.contact-info-top p  { color: rgba(255,255,255,0.7); font-size: 0.88rem; position: relative; line-height: 1.7; }

.contact-details {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-detail-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-detail-row:last-of-type { border-bottom: none; }

.cdr-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  background: var(--green-pale);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--green-mid);
  font-size: 0.95rem;
}

.cdr-text { display: flex; flex-direction: column; gap: 0.15rem; }
.cdr-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 600; }
.cdr-value { font-size: 0.9rem; color: var(--text-dark); line-height: 1.5; }
.cdr-value a { color: var(--green-mid); transition: color 0.2s; }
.cdr-value a:hover { color: var(--green); }

.contact-social-block {
  padding: 1.25rem 2rem 1.5rem;
  border-top: 1px solid var(--border);
}

.contact-social-block h4 {
  font-size: 0.82rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.contact-social-icons {
  display: flex; gap: 0.75rem;
}

.contact-social-icons a {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--cream); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.9rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.contact-social-icons a:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

/* Map placeholder */
.map-embed {
  width: 100%;
  height: 200px;
  background: var(--parchment);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.map-embed i { font-size: 2rem; color: var(--red-mid); }

/* Contact form panel */
.contact-form-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.25rem 2.5rem;
  box-shadow: 0 4px 24px var(--shadow);
}

.contact-form-intro {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.contact-form-intro p { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.4rem; }

/* Volunteer CTA card */
.volunteer-card {
  background: var(--black);
  border-radius: 8px;
  padding: 2rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.volunteer-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(30,77,43,0.6) 0%, rgba(17,16,16,0) 60%);
}
.volunteer-card .section-label { color: var(--gold-light); position: relative; }
.volunteer-card h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 0.5rem; position: relative; }
.volunteer-card p  { color: rgba(255,255,255,0.65); font-size: 0.87rem; line-height: 1.7; position: relative; }
.volunteer-card-cta { position: relative; flex-shrink: 0; }

/* ── FAQ ACCORDION ── */
.faq-section { background: var(--cream); border-top: 1px solid var(--border); }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item { border-bottom: 1px solid var(--border); background: var(--white); }
.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none; border: none; cursor: pointer;
  text-align: left;
  font-family: 'Source Serif 4', serif;
  font-size: 0.97rem; font-weight: 600;
  color: var(--text-dark);
  transition: background 0.2s;
}
body.lang-ar .faq-question { text-align: right; }
.faq-question:hover { background: var(--cream); }

.faq-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  transition: background 0.2s, transform 0.3s;
}

.faq-item.open .faq-icon {
  background: var(--green);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info-card { position: static; }
  .volunteer-card { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .contact-form-card { padding: 1.75rem 1.5rem; }
  .volunteer-card { padding: 1.5rem; }
}
