/* =====================================================
   CONTACT-US PAGE – IMPERIAL, CINEMATIC, ACCESSIBLE
   PLAgeOfEmpires.com / © 2025
===================================================== */

/* 1. Imperial Herald Banner
----------------------------------------------------- */
.imperial-herald {
  background: linear-gradient(135deg, var(--color-crimson-dark) 0%, var(--color-crimson) 100%);
  color: var(--color-text-primary);
  padding: var(--space-20) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.imperial-herald::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M10 50 Q30 10 50 50 T90 50" stroke="%23d4af37" stroke-width=".8" fill="none" opacity=".15"/></svg>') center/cover;
  pointer-events: none;
}
.herald-title {
  font-size: var(--font-size-6xl);
  margin-bottom: var(--space-6);
  text-shadow: 0 0 20px rgba(212,175,55,0.4);
}
.herald-subcopy {
  max-width: 60ch;
  margin: 0 auto;
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
}
@media (max-width: 768px) {
  .herald-title { font-size: var(--font-size-4xl); }
}

/* 2. Pathways of Correspondence
----------------------------------------------------- */
.pathways-correspondence { padding: var(--space-16) 0; }
.pathway-card {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.pathway-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: var(--space-4);
  filter: drop-shadow(0 0 6px var(--color-gold));
}
.pathway-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
  color: var(--color-gold);
}
.pathway-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

/* 3. Quick-Select Topic Tiles
----------------------------------------------------- */
.quick-select { padding: var(--space-12) 0; }
.quick-select-title { text-align: center; margin-bottom: var(--space-8); }
.quick-tiles .tile {
  width: 100%;
  justify-content: center;
  border: var(--border-width) solid var(--border-color);
  background: var(--color-bg-secondary);
  transition: all var(--transition-fast);
}
.quick-tiles .tile:hover,
.quick-tiles .tile:focus-visible {
  border-color: var(--color-gold);
  background: var(--color-bg-tertiary);
  transform: translateY(-2px);
}
.quick-tiles .tile.active {
  border-color: var(--color-gold);
  background: var(--color-gold);
  color: var(--color-gray-900);
}

/* 4. Dynamic Contact Form
----------------------------------------------------- */
.contact-form-section { padding: var(--space-12) 0; }
.form-wrapper { max-width: 60rem; margin: 0 auto; }
.character-counter {
  text-align: right;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}
.form-actions { text-align: center; margin-top: var(--space-6); }

/* 5. Response-Time Promise Banner
----------------------------------------------------- */
.response-promise { padding: var(--space-8) 0; }
.promise-banner {
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
  color: var(--color-gray-900);
  padding: var(--space-6) var(--space-8);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-gold);
}
.promise-text { font-weight: var(--font-weight-semibold); margin-bottom: var(--space-4); }
.promise-testimonial {
  border-left-color: var(--color-gray-900);
  background: rgba(0,0,0,0.1);
  margin: 0 auto;
  max-width: 40ch;
}

/* 6. Community Diplomacy Map
----------------------------------------------------- */
.community-diplomacy { padding: var(--space-12) 0; }
.diplomacy-title { text-align: center; margin-bottom: var(--space-6); }
.map-wrapper { max-width: 50rem; margin: 0 auto; }
.diplomacy-map { width: 100%; height: auto; border: var(--border-width) solid var(--color-stone); border-radius: var(--radius-lg); }
.map-marker { transition: r var(--transition-fast); }
.map-marker--feedback { fill: var(--color-gold); }
.map-marker--bug { fill: var(--color-danger); }
.map-marker--event { fill: var(--color-success); }
.map-marker--press { fill: var(--color-info); }
.map-marker:hover { r: 8; }
.map-legend { font-size: var(--font-size-sm); }
.legend-marker {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: var(--space-2);
  vertical-align: middle;
}
.legend-marker.feedback { background: var(--color-gold); }
.legend-marker.bug { background: var(--color-danger); }
.legend-marker.event { background: var(--color-success); }
.legend-marker.press { background: var(--color-info); }

/* 7. FAQ Accordion
----------------------------------------------------- */
.faq { padding: var(--space-12) 0; }
.faq-title { text-align: center; margin-bottom: var(--space-8); }
.faq-item {
  border-bottom: var(--border-width) solid var(--border-color);
  padding: var(--space-4) 0;
}
.faq-question {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--color-gold);
  transition: transform var(--transition-fast);
}
.faq-item[open] .faq-question::after { transform: rotate(45deg); }
.faq-answer { padding-top: var(--space-4); color: var(--color-text-secondary); max-width: 75ch; }

/* 8. Newsletter Opt-in
----------------------------------------------------- */
.newsletter { padding: var(--space-12) 0; }
.newsletter-card { max-width: 40rem; margin: 0 auto; text-align: center; }
.newsletter-title { margin-bottom: var(--space-2); }
.newsletter-desc { margin-bottom: var(--space-6); color: var(--color-text-secondary); }
.newsletter-form { justify-content: center; }

/* 9. Social Outpost Links
----------------------------------------------------- */
.social-outpost { padding: var(--space-12) 0; }
.social-title { text-align: center; margin-bottom: var(--space-6); }
.social-shields .shield {
  width: 3rem;
  height: 3rem;
  display: block;
  background: var(--color-bg-secondary) border-box;
  border: var(--border-width-thick) solid transparent;
  border-image: linear-gradient(135deg, var(--color-crimson), var(--color-gold)) 1;
  border-radius: var(--radius-base);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.social-shields .shield:hover {
  transform: rotate(-5deg) scale(1.1);
  box-shadow: var(--shadow-gold);
}

/* 10. Bug Bounty Scroll
----------------------------------------------------- */
.bug-bounty { padding: var(--space-12) 0; }
.bounty-title { text-align: center; margin-bottom: var(--space-6); }
.bounty-scroll { max-width: 50rem; margin: 0 auto; }
.bounty-subtitle { margin-bottom: var(--space-4); }
.bounty-list { list-style: decimal; padding-left: var(--space-6); }
.bounty-list li {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}
.bounty-tag { font-weight: var(--font-weight-bold); color: var(--color-gold-light); }
.bounty-civ { font-size: var(--font-size-sm); color: var(--color-text-secondary); }
.bounty-badge {
  font-size: var(--font-size-xs);
  background: var(--color-gold);
  color: var(--color-gray-900);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  margin-left: auto;
}

/* 11. Accessibility & Privacy Moat
----------------------------------------------------- */
.accessibility-privacy { padding: var(--space-8) 0; }
.accessibility-summary {
  cursor: pointer;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  padding: var(--space-4);
  background: var(--color-bg-secondary);
  border-radius: var(--radius-base);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accessibility-summary::after {
  content: '▼';
  font-size: 0.75rem;
  transition: transform var(--transition-fast);
}
.accessibility-details[open] .accessibility-summary::after { transform: rotate(180deg); }
.accessibility-content {
  padding: var(--space-4);
  background: var(--color-bg-tertiary);
  border-radius: 0 0 var(--radius-base) var(--radius-base);
}

/* 12. Live Chat Siege Tower
----------------------------------------------------- */
.live-chat {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-fixed);
}
.chat-toggle {
  box-shadow: var(--shadow-xl), var(--shadow-crimson);
  padding: var(--space-3) var(--space-5);
  font-size: var(--font-size-sm);
}
.chat-panel {
  position: absolute;
  bottom: 4rem;
  right: 0;
  width: 18rem;
  background: var(--color-bg-overlay);
  border: var(--border-width) solid var(--color-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-2xl);
  transition: opacity var(--transition-base), transform var(--transition-base);
}
.chat-panel.hidden {
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
}
.chat-offline-msg { margin-bottom: var(--space-4); font-size: var(--font-size-sm); }

/* Utility */
.hidden { display: none; }
