:root {
  --primary-color: #0A1931; /* Deep Navy Blue */
  --secondary-color: #FFD700; /* Gold */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #000000;
  --bg-light: #f8f9fa; /* Slightly off-white for contrast on dark body */
  --border-color: #334466; /* Lighter shade of primary for borders */
}

/* Base styles for the contact page content */
.page-contact {
  padding-top: 120px; /* Compensation for fixed header - Desktop */
  background-color: var(--bg-dark); /* Body background is black, so main content also needs dark background */
  color: var(--text-light); /* Default text color for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* Responsive padding-top for mobile */
@media (max-width: 768px) {
  .page-contact {
    padding-top: 100px !important; /* Compensation for fixed header - Mobile */
  }
}

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

/* Section Styling */
.page-contact__hero-section,
.page-contact__channels-section,
.page-contact__faq-section,
.page-contact__form-section,
.page-contact__commitment-section {
  padding: 80px 0;
  text-align: center;
  position: relative;
}

.page-contact__hero-section {
  background: var(--primary-color); /* Use primary color for hero */
  color: var(--text-light);
  padding-bottom: 60px;
}

.page-contact__channels-section {
  background: var(--bg-light); /* Light background for contrast */
  color: var(--text-dark);
}

.page-contact__faq-section {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-contact__form-section {
  background: var(--bg-light);
  color: var(--text-dark);
}

.page-contact__commitment-section {
  background: var(--primary-color);
  color: var(--text-light);
}

/* Titles and Descriptions */
.page-contact__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--secondary-color); /* Gold title */
  line-height: 1.2;
}

.page-contact__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 40px;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.page-contact__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.page-contact__section-title--light {
  color: var(--secondary-color);
}

.page-contact__section-title--light::after {
  background-color: var(--text-light);
}

.page-contact__description,
.page-contact__text-content {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__text-content--light {
  color: rgba(255, 255, 255, 0.9);
}

/* Call to Action Buttons */
.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-contact__cta-button,
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 2px solid transparent;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Include padding in width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-contact__btn-primary {
  background: var(--secondary-color); /* Gold background */
  color: var(--primary-color); /* Dark text on gold */
  border-color: var(--secondary-color);
}

.page-contact__btn-primary:hover {
  background: #e6c200; /* Slightly darker gold */
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-secondary {
  background: none;
  color: var(--secondary-color); /* Gold text */
  border-color: var(--secondary-color);
}

.page-contact__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-large {
  padding: 18px 45px;
  font-size: 20px;
}

/* Channel Grid */
.page-contact__channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-contact__channel-item {
  background: var(--text-light); /* Light card background */
  color: var(--text-dark);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-contact__channel-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-contact__channel-icon {
  width: 80px; /* Minimum size requirement */
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  max-width: 100%; /* Image responsiveness */
  height: auto;
  display: block;
}

.page-contact__channel-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-contact__channel-description {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1; /* Push button to bottom */
}

.page-contact__channel-item .page-contact__btn-primary,
.page-contact__channel-item .page-contact__btn-secondary {
  width: auto;
  align-self: flex-start;
  font-size: 16px;
  padding: 10px 20px;
  margin-top: auto; /* Push button to bottom */
}

.page-contact__social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.page-contact__social-link {
  display: inline-block;
  padding: 8px 15px;
  background: var(--primary-color);
  color: var(--text-light);
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s ease;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Include padding in width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-contact__social-link:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}

/* FAQ Section */
.page-contact__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
  text-align: left;
}

.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1); /* Slightly lighter background for FAQ item */
  color: var(--text-light);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.05); /* Even lighter for question header */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--secondary-color); /* Gold for FAQ questions */
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-contact__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 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: 32px;
  height: 32px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  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;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  text-align: left;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain any content */
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.03); /* Slightly darker than question header */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 8px 8px;
}

/* Contact Form */
.page-contact__contact-form {
  max-width: 700px;
  margin: 50px auto 0;
  background: var(--text-light);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  text-align: left;
}

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

.page-contact__form-label {
  display: block;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  color: var(--text-dark);
  background-color: #f0f0f0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box; /* Include padding in width */
}

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

.page-contact__form-textarea {
  resize: vertical;
  min-height: 120px;
}

.page-contact__submit-button {
  width: auto;
  padding: 15px 40px;
  font-size: 18px;
  border-radius: 8px;
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Include padding in width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-contact__submit-button:hover {
  background: #071221; /* Slightly darker primary */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Commitment List */
.page-contact__commitment-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto;
  text-align: left;
}

.page-contact__commitment-list li {
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  padding: 20px 25px;
  border-radius: 8px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  border-left: 5px solid var(--secondary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-contact__commitment-highlight {
  color: var(--secondary-color);
  font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-contact__main-title {
    font-size: 42px;
  }
  .page-contact__section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section,
  .page-contact__channels-section,
  .page-contact__faq-section,
  .page-contact__form-section,
.page-contact__commitment-section {
    padding: 60px 0;
  }

  .page-contact__container {
    padding: 0 15px;
  }

  .page-contact__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-contact__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-contact__description,
  .page-contact__text-content {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
  }

  .page-contact__cta-button,
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact__submit-button,
  .page-contact__social-link {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
  }

  .page-contact__channel-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 40px;
  }

  .page-contact__channel-item {
    padding: 25px;
  }

  .page-contact__channel-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }

  .page-contact__channel-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .page-contact__channel-description {
    font-size: 15px;
    margin-bottom: 15px;
  }

  .page-contact__faq-question {
    padding: 15px 20px;
  }

  .page-contact__faq-question h3 {
    font-size: 16px;
  }

  .page-contact__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-contact__faq-answer {
    padding: 0 20px;
    font-size: 15px;
  }

  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px 20px !important;
  }

  .page-contact__contact-form {
    padding: 30px;
  }

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

  .page-contact__form-label {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 12px;
    font-size: 15px;
  }

  .page-contact__commitment-list {
    margin: 30px auto;
  }

  .page-contact__commitment-list li {
    padding: 15px 20px;
    font-size: 16px;
  }
}

/* Image responsiveness */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-contact__hero-section,
  .page-contact__channels-section,
  .page-contact__faq-section,
  .page-contact__form-section,
  .page-contact__commitment-section,
  .page-contact__container,
  .page-contact__contact-form {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}