/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Inherit from body or shared, ensuring text contrast */
}

.page-contact__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure header offset */
  background: linear-gradient(135deg, #8B0000 0%, #FFD700 100%); /* Blend brand colors */
  position: relative;
  overflow: hidden;
}

.page-contact__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-contact__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff; /* White text for contrast */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-contact__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-contact__hero-button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #8B0000; /* Dark red text */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-contact__hero-button:hover {
  background-color: #e6c200; /* Slightly darker gold on hover */
  transform: translateY(-3px);
}

.page-contact__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.3; /* Make image subtle background */
}

.page-contact__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* General section styles */
.page-contact__methods-section,
.page-contact__form-section,
.page-contact__faq-section,
.page-contact__cta-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.page-contact__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold title */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-contact__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact methods grid */
.page-contact__method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-contact__method-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #ffffff; /* Light text */
}

.page-contact__method-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-contact__method-icon {
  width: 150px; /* Display size, generated image is larger */
  height: 100px; /* Adjust aspect ratio for display */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-contact__card-title {
  font-size: 1.8em;
  color: #FFD700; /* Gold title */
  margin-bottom: 15px;
}

.page-contact__card-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1; /* Push button to bottom */
}

.page-contact__card-email {
  font-size: 1.1em;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-contact__card-button {
  display: inline-block;
  background-color: #8B0000; /* Dark red button */
  color: #ffffff; /* White text */
  padding: 10px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-contact__card-button:hover {
  background-color: #6a0000; /* Darker red on hover */
}

.page-contact__social-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-contact__social-list li {
  margin-bottom: 10px;
}

.page-contact__social-list a {
  color: #FFD700; /* Gold links */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-contact__social-list a:hover {
  color: #ffffff; /* White on hover */
  text-decoration: underline;
}

/* Contact form styles */
.page-contact__contact-form {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 40px;
  max-width: 700px;
  margin: 40px auto 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #FFD700; /* Gold label */
  font-size: 1.1em;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.5); /* Darker input background */
  color: #ffffff; /* White text */
  font-size: 1em;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #FFD700; /* Gold border on focus */
  background-color: rgba(0, 0, 0, 0.7);
  outline: none;
}

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

.page-contact__form-submit-button {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background-color: #FFD700; /* Gold button */
  color: #8B0000; /* Dark red text */
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact__form-submit-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

/* FAQ section styles */
.page-contact__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-contact__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

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

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

.page-contact__faq-q-text {
  font-size: 1.2em;
  color: #FFD700; /* Gold text */
  margin: 0;
  text-align: left;
}

.page-contact__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #FFD700; /* Gold toggle */
  transition: transform 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  transform: rotate(45deg); /* Plus to X/minus for active */
}

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0; /* Light text for answer */
  text-align: left;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 30px;
}

.page-contact__faq-answer p {
  margin: 0;
  color: #f0f0f0; /* Ensure paragraph text is light */
}

/* CTA section styles */
.page-contact__cta-section {
  background: linear-gradient(45deg, #8B0000 0%, #FFD700 100%);
  border-radius: 12px;
  padding: 60px 20px;
  margin-top: 60px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-contact__cta-section .page-contact__section-title {
  color: #ffffff; /* White title for contrast */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-contact__cta-section .page-contact__section-description {
  color: #f0f0f0;
}

.page-contact__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-contact__cta-button--primary {
  background-color: #FFD700; /* Gold button */
  color: #8B0000; /* Dark red text */
}

.page-contact__cta-button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-contact__cta-button--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700; /* Gold border */
}

.page-contact__cta-button--secondary:hover {
  background-color: #FFD700;
  color: #8B0000;
  transform: translateY(-3px);
}

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

@media (max-width: 768px) {
  .page-contact__hero-section {
    flex-direction: column;
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
  }

  .page-contact__hero-content {
    margin-bottom: 30px;
  }

  .page-contact__main-title {
    font-size: 2.2em;
  }

  .page-contact__intro-text {
    font-size: 1em;
  }

  .page-contact__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-contact__methods-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__cta-section {
    padding: 40px 15px;
  }

  .page-contact__section-title {
    font-size: 1.8em;
  }

  .page-contact__section-description {
    font-size: 0.95em;
  }

  .page-contact__method-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

  .page-contact__method-icon {
    width: 200px; /* Min size for display, generated image is larger */
    height: 150px;
  }

  .page-contact__card-title {
    font-size: 1.5em;
  }

  .page-contact__card-text {
    font-size: 0.9em;
  }

  .page-contact__form-input,
  .page-contact__form-textarea {
    width: calc(100% - 20px); /* Adjust for padding */
    padding: 10px;
  }

  .page-contact__form-submit-button {
    padding: 12px 15px;
    font-size: 1.1em;
  }

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

  .page-contact__faq-q-text {
    font-size: 1.1em;
  }

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

  .page-contact__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    align-items: center;
  }

  .page-contact__cta-button {
    width: 100%;
    max-width: 300px; /* Limit max width for stacked buttons */
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box; /* Crucial for preventing overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
  }

  /* Image responsive rules for mobile */
  .page-contact img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure content containers also adapt */
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__hero-image-wrapper,
  .page-contact__method-card,
  .page-contact__contact-form,
  .page-contact__faq-item,
  .page-contact__cta-section,
  .page-contact__cta-buttons,
  .page-contact__method-grid,
  .page-contact__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  .page-contact__hero-image-wrapper {
      padding-left: 0 !important;
      padding-right: 0 !important;
  }
}

/* Color contrast enforcement (body background #121212 is dark, so use light text) */
.page-contact {
  color: #ffffff; /* Default text color for the page */
}

.page-contact__method-card,
.page-contact__contact-form,
.page-contact__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Dark background with slight transparency */
  color: #ffffff; /* Light text */
}

.page-contact__form-input,
.page-contact__form-textarea {
  background-color: rgba(0, 0, 0, 0.5); /* Darker input background */
  color: #ffffff; /* Light text */
}

/* Ensure all links and buttons have sufficient contrast */
.page-contact a {
  color: #FFD700; /* Gold links */
}

.page-contact__hero-button,
.page-contact__form-submit-button,
.page-contact__cta-button--primary {
  background-color: #FFD700; /* Gold background */
  color: #8B0000; /* Dark red text - high contrast */
}

.page-contact__card-button {
  background-color: #8B0000; /* Dark red background */
  color: #ffffff; /* White text - high contrast */
}

.page-contact__cta-button--secondary {
  color: #FFD700; /* Gold text */
  border-color: #FFD700; /* Gold border */
}

.page-contact__cta-button--secondary:hover {
  background-color: #FFD700;
  color: #8B0000;
}

/* Images must not use filters */
.page-contact img {
  filter: none; /* Ensure no CSS filters are applied */
}