.page-contact {
  --color-primary: #C61F1F;
  --color-secondary: #E53030;
  --bg-color-main: #140C0C; /* Custom background color */
  --bg-color-card: #2A1212; /* Custom card background color */
  --text-color-main: #FFF1E8; /* Custom main text color */
  --color-gold: #F3C54D; /* Custom gold color */
  --color-deep-red: #7E0D0D; /* Custom deep red color */
  --color-border: #6A1E1E; /* Custom border color */
  --btn-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-main); /* Ensure contrast with dark body background */
  background-color: var(--bg-color-main); /* Apply custom background */
}

/* Container for consistent padding */
.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  overflow: hidden;
  padding-bottom: 50px; /* Adjust as needed */
  background-color: var(--bg-color-main);
  text-align: center;
}

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

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

.page-contact__hero-content {
  padding-top: 30px; /* Small top padding, relying on body padding for header offset */
  position: relative;
  z-index: 1;
}

.page-contact__main-title {
  font-size: clamp(28px, 5vw, 48px); /* Clamp font size for H1 */
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--color-gold); /* Using gold for title */
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__description {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-main);
}

/* CTA Button */
.page-contact__cta-button {
  display: inline-block;
  background: var(--btn-gradient); /* Custom button gradient */
  color: #ffffff; /* Button text always white */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 20px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  max-width: 100%; /* For responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Section Titles & Descriptions */
.page-contact__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--color-gold); /* Using gold for section titles */
}

.page-contact__section-description {
  font-size: 17px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-main);
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 80px 0;
  background-color: var(--bg-color-main); /* Main background color */
  position: relative;
  overflow: hidden;
}

.page-contact__form-wrapper {
  position: relative;
  background-color: var(--bg-color-card); /* Card background for form */
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  max-width: 800px;
  margin: 0 auto;
  z-index: 1;
  border: 1px solid var(--color-border); /* Custom border color */
}

.page-contact__form-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1; /* Subtle background */
  border-radius: 10px;
  z-index: 0;
}

.page-contact__contact-form {
  position: relative; /* To keep form elements above background image */
  z-index: 2;
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid var(--color-border); /* Custom border color */
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent input */
  color: var(--text-color-main);
  font-size: 16px;
  box-sizing: border-box;
}

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

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

.page-contact__submit-button {
  display: block;
  width: 100%;
  background: var(--btn-gradient); /* Custom button gradient */
  color: #ffffff; /* Button text always white */
  padding: 15px 25px;
  border-radius: 8px;
  border: none;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  max-width: 100%; /* For responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Contact Info Section */
.page-contact__info-section {
  padding: 80px 0;
  background-color: var(--bg-color-main);
}

.page-contact__info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: flex-start;
}

.page-contact__info-block {
  background-color: var(--bg-color-card); /* Card background */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  border: 1px solid var(--color-border); /* Custom border */
  color: var(--text-color-main);
}

.page-contact__info-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-contact__info-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--color-gold); /* Gold for titles */
}

.page-contact__info-text {
  font-size: 16px;
  margin-bottom: 25px;
  color: var(--text-color-main);
}

.page-contact__contact-list {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
  text-align: left;
}

.page-contact__contact-list li {
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--text-color-main);
}

.page-contact__contact-list strong {
  color: var(--color-gold);
}

.page-contact__contact-link {
  color: var(--color-gold); /* Gold for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-contact__contact-link:hover {
  text-decoration: underline;
  color: var(--color-gold); /* Gold for links */
}

.page-contact__btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--color-gold); /* Gold text for secondary button */
  border: 2px solid var(--color-gold); /* Gold border */
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%; /* For responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-secondary:hover {
  background-color: var(--color-gold);
  color: var(--bg-color-card); /* Dark text on hover */
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
  background-color: var(--bg-color-main);
}

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

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--color-border); /* Custom border */
  overflow: hidden;
  background: var(--bg-color-card); /* Card background */
  color: var(--text-color-main);
}
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;
}
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: var(--color-deep-red); /* Deep red on hover for FAQ question */
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--color-gold); /* Gold for FAQ questions */
}
.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--color-gold); /* Gold 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: rgba(255, 255, 255, 0.03); /* Slightly lighter background for answer */
  border-radius: 0 0 10px 10px;
  color: var(--text-color-main);
}
.page-contact__faq-answer p {
  margin: 0;
  color: var(--text-color-main);
}
.page-contact__faq-answer a {
  color: var(--color-gold);
  text-decoration: none;
}
.page-contact__faq-answer a:hover {
  text-decoration: underline;
}

/* CTA Section (Bottom) */
.page-contact__cta-section {
  padding: 80px 0;
  background-color: var(--color-deep-red); /* Deep red background for final CTA */
  text-align: center;
}

.page-contact__cta-section .page-contact__section-title {
  color: var(--text-color-main); /* White text for title on deep red background */
}

.page-contact__cta-section .page-contact__section-description {
  color: var(--text-color-main); /* White text for description on deep red background */
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  width: 100%; /* For responsiveness */
  box-sizing: border-box;
  overflow: hidden;
}

/* General image styling */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  /* General */
  .page-contact__container {
    padding: 0 15px;
  }

  /* Top text/Hero */
  .page-contact__hero-content {
    padding-top: 10px; /* Small top padding for first content block */
  }

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

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

  .page-contact__hero-image-wrapper {
    height: 300px; /* Adjust hero image height for mobile */
  }

  /* Section Titles */
  .page-contact__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

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

  /* CTA Button */
  .page-contact__cta-button,
  .page-contact__submit-button,
  .page-contact__btn-secondary {
    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;
    font-size: 18px;
  }

  /* Buttons container for multiple buttons */
  .page-contact__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Form Section */
  .page-contact__form-section {
    padding: 50px 0;
  }

  .page-contact__form-wrapper {
    padding: 25px;
  }

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

  /* Info Section */
  .page-contact__info-section {
    padding: 50px 0;
  }

  .page-contact__info-grid {
    grid-template-columns: 1fr; /* Stack info blocks vertically */
  }

  .page-contact__info-block {
    padding: 25px;
  }

  .page-contact__info-title {
    font-size: 24px;
  }

  .page-contact__info-text,
  .page-contact__contact-list li {
    font-size: 15px;
  }

  /* FAQ Section */
  .page-contact__faq-section {
    padding: 50px 0;
  }

  details.page-contact__faq-item summary.page-contact__faq-question { padding: 15px; }
  .page-contact__faq-qtext { font-size: 16px; }
  .page-contact__faq-toggle { font-size: 20px; width: 24px; }
  details.page-contact__faq-item .page-contact__faq-answer { padding: 0 15px 15px; }

  /* Images */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-contact__hero-image {
    max-height: 250px; /* Constrain hero image height on mobile */
  }

  /* Containers for image/button overflow prevention */
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__form-wrapper,
  .page-contact__info-block,
  .page-contact__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__form-wrapper, .page-contact__info-block, .page-contact__faq-list {
    padding-left: 0;
    padding-right: 0;
  }
  .page-contact__form-section .page-contact__container,
  .page-contact__info-section .page-contact__container,
  .page-contact__faq-section .page-contact__container,
  .page-contact__cta-section .page-contact__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}