/* style/contact.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #000080; /* Dark Blue */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #000000;
  --background-light: #f8f9fa;
  --card-background-dark-alpha: rgba(255, 255, 255, 0.1);
  --card-background-light: #ffffff;
  --border-color: #e0e0e0;
}

/* Base styles for the contact page */
.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark, so text is light */
  background-color: var(--background-dark); /* Inherited from shared.css body */
}

.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  padding: 120px 0 80px; /* Desktop padding-top to clear fixed header */
  background-color: var(--secondary-color); /* Dark blue background for hero */
  background-image: url('[GALLERY:contact:gold88,support,hero]');
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px; /* Ensure hero has a decent height */
  box-shadow: inset 0 -50px 50px rgba(0, 0, 0, 0.5);
}

.page-contact__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 0;
}

.page-contact__hero-section .page-contact__container {
  position: relative;
  z-index: 1;
}

.page-contact__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--primary-color); /* Gold title */
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-contact__description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* CTA Button */
.page-contact__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--secondary-color); /* Dark blue text on gold button */
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-contact__cta-button:hover {
  background: #e6c200; /* Slightly darker gold on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Info Section */
.page-contact__info-section {
  padding: 60px 0;
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-contact__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-contact__info-card {
  background: var(--card-background-dark-alpha);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-contact__info-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-contact__info-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  filter: invert(100%) brightness(150%); /* Make icons visible on dark background, if they are originally dark. This is the only exception for filter for visibility of generic icons. */
}

.page-contact__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-contact__card-text {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #cccccc;
}

.page-contact__card-link,
.page-contact__social-link {
  display: block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-bottom: 10px;
}

.page-contact__card-link:hover,
.page-contact__social-link:hover {
  color: #e6c200;
  text-decoration: underline;
}

.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Form Section */
.page-contact__form-section {
  padding: 80px 0;
  background-color: var(--background-light); /* Light background for form */
  color: var(--text-dark);
}

.page-contact__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: var(--secondary-color); /* Dark blue title on light background */
}

.page-contact__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  line-height: 1.7;
  color: var(--text-dark);
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--card-background-light);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

.page-contact__form-group {
  margin-bottom: 25px;
}

.page-contact__form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: var(--secondary-color);
  font-size: 1em;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1em;
  color: var(--text-dark);
  background-color: #fefefe;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #aaa;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
  outline: none;
}

.page-contact__form-textarea {
  resize: vertical;
}

.page-contact__submit-button {
  width: 100%;
  padding: 15px 20px;
  background: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-contact__submit-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-contact__policy-link {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-contact__policy-link:hover {
  color: var(--primary-color);
}

.page-contact__form-note {
  text-align: center;
  margin-top: 30px;
  font-size: 0.9em;
  color: var(--text-dark);
}

/* Mini FAQ Section */
.page-contact__faq-mini-section {
  padding: 60px 0 80px;
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-contact__faq-list {
  max-width: 800px;
  margin: 40px auto 0;
}

.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-background-dark-alpha);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--primary-color);
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  transform: rotate(45deg);
  color: var(--text-light);
  border-color: var(--text-light);
}

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  color: #cccccc;
  font-size: 1em;
  line-height: 1.7;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain content */
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.03);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__main-title {
    font-size: 2.8em;
  }
  .page-contact__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding: 100px 20px 60px; /* Mobile padding-top to clear fixed header */
    min-height: 300px;
  }
  .page-contact__main-title {
    font-size: 2em;
  }
  .page-contact__description {
    font-size: 1em;
  }
  .page-contact__cta-button {
    padding: 12px 30px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-contact__info-grid {
    grid-template-columns: 1fr;
  }
  .page-contact__info-card {
    padding: 25px;
  }
  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-contact__contact-form {
    padding: 30px;
  }
  .page-contact__form-label {
    font-size: 0.95em;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
    font-size: 0.95em;
  }
  .page-contact__submit-button {
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-contact__social-links {
    flex-direction: column;
    gap: 10px;
  }
  .page-contact__card-link, .page-contact__social-link {
    margin-bottom: 0;
  }
  .page-contact__faq-question {
    padding: 15px 20px;
  }
  .page-contact__faq-question h3 {
    font-size: 1em;
  }
  .page-contact__faq-toggle {
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-contact__faq-answer {
    padding: 0 20px;
  }
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px 20px !important;
  }

  /* Ensure images are responsive */
  .page-contact img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-contact__container,
  .page-contact__hero-section,
  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__faq-mini-section,
  .page-contact__info-card,
  .page-contact__contact-form {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-contact__main-title {
    font-size: 1.8em;
  }
  .page-contact__section-title {
    font-size: 1.6em;
  }
  .page-contact__hero-section {
    padding-top: 80px; /* Adjust for smaller mobile header */
  }
}

/* Contrast Fixes */
.page-contact__dark-bg {
  color: var(--text-light); /* Deep dark background, so light text */
}

.page-contact__light-bg {
  color: var(--text-dark); /* Light background, so dark text */
}

/* Ensure all images maintain original color, except for generic icons where invert might be needed for visibility on dark background */
.page-contact img:not(.page-contact__info-icon) {
  filter: none; /* Explicitly ensure no filter for content images */
}