.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #f5f5f5); /* Fallback to light grey if var is not set */
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
  background-color: #B71C1C; /* Background color for the section */
}

.page-contact__hero-image-wrapper {
  width: 100%;
  height: 600px; /* Fixed height for desktop */
  overflow: hidden;
}

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

.page-contact__hero-content {
  padding: 40px 20px;
  text-align: center;
  background: #ffffff; /* Light background for text block */
  color: #333333; /* Dark text for light background */
  box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
  margin-top: -50px; /* Overlap slightly with image for visual flow */
  position: relative;
  z-index: 1;
}

.page-contact__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #C91F17; /* Brand color for H1 */
  margin-bottom: 15px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__contact-info {
  margin-top: 20px;
  font-size: 1.05em;
  color: #555555;
}

.page-contact__contact-info p {
  margin-bottom: 10px;
}

.page-contact__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red text for gold button for contrast */
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Form Section */
.page-contact__form-section {
  background-color: #B71C1C; /* Dark background */
  color: #FFF5E1; /* Light text */
  padding: 60px 0;
  text-align: center;
}

.page-contact__section-title {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #F4D34D; /* Gold color for titles on dark background */
}

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

.page-contact__contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  background-color: #D32F2F; /* Card BG color */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #FFF5E1; /* Light text for labels */
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #7A0E0E; /* Deep Red border */
  border-radius: 5px;
  background-color: #7A0E0E; /* Deep Red background for input */
  color: #FFF5E1; /* Light text in input */
  font-size: 1em;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(255, 245, 225, 0.7); /* Lighter placeholder text */
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: #F2B544; /* Gold border on focus */
  box-shadow: 0 0 0 2px rgba(242, 181, 68, 0.5);
}

.page-contact__btn-submit {
  display: block;
  width: 100%;
  padding: 15px;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red text for gold button for contrast */
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-contact__faq-section {
  background-color: #f9f9f9; /* Light background */
  color: #333333; /* Dark text */
  padding: 60px 0;
}

.page-contact__faq-list {
  margin-top: 30px;
}

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-contact__faq-item summary.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #333333; /* Dark text for summary */
}
details.page-contact__faq-item summary.page-contact__faq-question::-webkit-details-marker {
  display: none;
}
details.page-contact__faq-item summary.page-contact__faq-question:hover {
  background: #f5f5f5;
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #C91F17; /* Brand color for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555; /* Slightly lighter text for answer */
}

/* General image styling for content areas */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive styles for 1024px */
@media (max-width: 1024px) {
  .page-contact__hero-image-wrapper {
    height: 450px;
  }
  .page-contact__hero-content {
    padding: 30px 15px;
  }
  .page-contact__main-title {
    font-size: 2em;
  }
  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__contact-form {
    padding: 25px;
  }
}

/* Responsive styles for 768px (Mobile) */
@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Hero Section */
  .page-contact__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
  }
  .page-contact__hero-image-wrapper {
    height: 300px;
  }
  .page-contact__hero-content {
    padding: 20px 15px;
    margin-top: -30px;
  }
  .page-contact__main-title {
    font-size: 1.8em;
  }
  .page-contact__description {
    font-size: 1em;
  }
  .page-contact__contact-info {
    font-size: 0.95em;
  }
  .page-contact__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Form Section */
  .page-contact__form-section {
    padding: 40px 0;
  }
  .page-contact__section-title {
    font-size: 1.6em;
  }
  .page-contact__section-description {
    font-size: 1em;
    padding: 0 15px; /* Add padding to container-like elements */
  }
  .page-contact__contact-form {
    padding: 20px;
    margin: 0 15px; /* Add margin to prevent sticking to edges */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
  }
  .page-contact__btn-submit {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ Section */
  .page-contact__faq-section {
    padding: 40px 0;
  }
  details.page-contact__faq-item summary.page-contact__faq-question { padding: 15px; }
  .page-contact__faq-qtext { font-size: 15px; }
  details.page-contact__faq-item .page-contact__faq-answer { padding: 0 15px 15px; }

  /* General image and container rules for mobile */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-contact__container,
  .page-contact__hero-section,
  .page-contact__form-section,
  .page-contact__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}