/* style/contact.css */
.page-contact {
  color: #ffffff; /* Text color for dark body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-contact__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold for titles */
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: bold;
}

.page-contact__section-subtitle {
  font-size: 1.2em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-contact__button--primary {
  background-color: #FFD700; /* Gold button */
  color: #8B0000; /* Dark red text */
  border: 2px solid #FFD700;
}

.page-contact__button--primary:hover {
  background-color: #e6c200;
  color: #6a0000;
}

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

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  margin-bottom: 60px;
}

.page-contact__hero-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability, no color change */
}

.page-contact__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
}

.page-contact__hero-title {
  font-size: 4em;
  color: #FFD700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.1;
  max-width: 900px;
}

.page-contact__hero-description {
  font-size: 1.4em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
}

.page-contact__hero-actions {
  display: flex;
  gap: 20px;
}

/* Form Section */
.page-contact__form-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Light translucent background */
  margin-bottom: 60px;
}

.page-contact__form-content {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.page-contact__form-image-wrapper {
  flex: 1;
  min-width: 400px; /* Minimum width for the image wrapper */
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-contact__form-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  max-width: 600px; /* Ensure image doesn't get too large */
  min-width: 200px; /* Enforce minimum size */
}

.page-contact__contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-color: rgba(139, 0, 0, 0.2); /* Dark red translucent background */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  min-width: 300px;
}

.page-contact__form-group {
  display: flex;
  flex-direction: column;
}

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

.page-contact__form-input,
.page-contact__form-textarea {
  padding: 12px 15px;
  border: 1px solid #FFD700;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 1em;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #8B0000;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
  outline: none;
}

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

.page-contact__button--submit {
  background-color: #FFD700;
  color: #8B0000;
  border: none;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  align-self: flex-start;
}

.page-contact__button--submit:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

/* Methods Section */
.page-contact__methods-section {
  padding: 80px 0;
  margin-bottom: 60px;
}

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

.page-contact__method-card {
  background-color: rgba(139, 0, 0, 0.3); /* Dark red translucent background */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-contact__method-card:hover {
  transform: translateY(-10px);
  background-color: rgba(139, 0, 0, 0.5);
}

.page-contact__method-icon {
  width: 200px; /* Enforce minimum size */
  height: 200px; /* Enforce minimum size */
  object-fit: contain;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.page-contact__method-card:hover .page-contact__method-icon {
  transform: scale(1.05);
}

.page-contact__method-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-contact__method-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-contact__method-link {
  display: inline-block;
  background-color: #FFD700;
  color: #8B0000;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-contact__method-link:hover {
  background-color: #e6c200;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Light translucent background */
}

.page-contact__faq-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-contact__faq-item {
  background-color: rgba(139, 0, 0, 0.2); /* Dark red translucent background */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-contact__faq-question {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-contact__faq-answer {
  font-size: 1em;
  color: #f0f0f0;
  display: block; /* Always visible for this example, could be toggled */
}

.page-contact__faq-action {
  text-align: center;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 3.5em;
  }

  .page-contact__hero-description {
    font-size: 1.2em;
  }

  .page-contact__form-content {
    flex-direction: column;
  }

  .page-contact__form-image-wrapper {
    min-width: unset;
    width: 100%;
  }

  .page-contact__contact-form {
    width: 100%;
    min-width: unset;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    min-height: 450px;
  }

  .page-contact__hero-title {
    font-size: 2.5em;
  }

  .page-contact__hero-description {
    font-size: 1em;
  }

  .page-contact__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-contact__button {
    width: 100%;
    padding: 12px 20px;
  }

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

  .page-contact__section-subtitle {
    font-size: 1em;
  }

  .page-contact__methods-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile content area images must not overflow */
  .page-contact__hero-image,
  .page-contact__form-image,
  .page-contact__method-icon {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure minimum size is maintained */
    min-height: 200px; /* Ensure minimum size is maintained */
  }

  /* Enforce content area images are not styled smaller than 200px */
  .page-contact img {
    min-width: 200px; 
    min-height: 200px; 
  }
}

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: 1.8em;
  }

  .page-contact__hero-description {
    font-size: 0.9em;
  }

  .page-contact__hero-actions {
    flex-direction: column;
  }

  .page-contact__button {
    padding: 10px 15px;
  }

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

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