.page-contact {
  background-color: var(--background-color, #0A0A0A); /* Default to dark background */
  color: var(--text-main-color, #FFF6D6); /* Default to light text */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  /* body handles padding-top: var(--header-offset); this is for a small decorative top margin */
  padding-top: 10px;
  background-color: #0A0A0A; /* Ensure dark background for hero */
}

.page-contact__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-contact__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 8px; /* Added border-radius for styling */
  overflow: hidden; /* Ensure image corners are rounded */
}

.page-contact__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px; /* Explicitly round image */
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-contact__main-title {
  font-size: 3.2em; /* Using em for relative sizing, will use clamp if needed */
  font-weight: 700;
  color: var(--primary-color, #F2C14E); /* Use primary color for title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-contact__description {
  font-size: 1.2em;
  color: var(--text-main-color, #FFF6D6);
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* Buttons */
.page-contact__cta-button,
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__social-btn {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Ensure padding/border included in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

.page-contact__cta-button,
.page-contact__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #0A0A0A; /* Dark text for light button gradient */
  border: none;
}

.page-contact__cta-button:hover,
.page-contact__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-contact__btn-secondary,
.page-contact__social-btn {
  background: #111111; /* Card BG color */
  color: var(--primary-color, #F2C14E); /* Primary color text */
  border: 2px solid var(--border-color, #3A2A12);
}

.page-contact__btn-secondary:hover,
.page-contact__social-btn:hover {
  background: var(--primary-color, #F2C14E);
  color: #0A0A0A;
  border-color: var(--primary-color, #F2C14E);
}

/* Sections */
.page-contact__dark-section {
  background-color: #0A0A0A;
  padding: 80px 0;
}

.page-contact__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--primary-color, #F2C14E);
  text-align: center;
  margin-bottom: 20px;
}

.page-contact__section-description {
  font-size: 1.1em;
  color: var(--text-main-color, #FFF6D6);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

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

.page-contact__method-card {
  background: var(--card-bg-color, #111111);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color, #3A2A12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-contact__method-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  display: block;
  object-fit: cover;
  width: 100%; /* Ensure image fills card width */
  min-height: 200px; /* Minimum image height */
}

.page-contact__card-title {
  font-size: 1.8em;
  color: var(--primary-color, #F2C14E);
  margin-bottom: 15px;
}

.page-contact__card-text {
  font-size: 1em;
  color: var(--text-main-color, #FFF6D6);
  margin-bottom: 25px;
  flex-grow: 1; /* Allow text to grow and push button down */
}

/* Social Media */
.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-contact__social-btn {
  padding: 12px 30px;
  font-size: 1em;
  min-width: 120px; /* Ensure buttons have a minimum width */
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
  background-color: #0A0A0A;
}

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

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid var(--border-color, #3A2A12);
  overflow: hidden;
  background: var(--card-bg-color, #111111);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
details.page-contact__faq-item summary.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main-color, #FFF6D6); /* Ensure text is light */
}
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: rgba(var(--primary-color-rgb, 242, 193, 78), 0.1); /* Slight highlight on hover */
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--primary-color, #F2C14E); /* FAQ question text in primary color */
}
.page-contact__faq-toggle {
  font-size: 2em;
  font-weight: bold;
  color: var(--primary-color, #F2C14E); /* Toggle icon in primary color */
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}
details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 30px 30px;
  background: #0A0A0A; /* Darker background for answer */
  border-radius: 0 0 12px 12px;
  color: var(--text-main-color, #FFF6D6); /* Answer text in light color */
}
details.page-contact__faq-item .page-contact__faq-answer p {
  margin: 0;
  font-size: 1em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__main-title {
    font-size: 2.8em;
  }
  .page-contact__section-title {
    font-size: 2em;
  }
  .page-contact__hero-section,
  .page-contact__dark-section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .page-contact {
    font-size: 15px; /* Base font size adjustment */
  }

  .page-contact__hero-section {
    padding-top: 10px !important; /* Fixed header padding handled by body, small decorative top margin */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Responsive font size for H1 */
    margin-bottom: 15px;
  }

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

  .page-contact__cta-button,
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
.page-contact__social-btn {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-contact__method-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-contact__method-card {
    padding: 20px;
    border-radius: 8px;
  }

  .page-contact__method-card img {
    min- /* Adjust min-height for mobile */
    border-radius: 6px;
  }

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

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

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

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

  .page-contact__faq-item {
    margin-bottom: 10px;
    border-radius: 8px;
  }
  details.page-contact__faq-item summary.page-contact__faq-question {
    padding: 15px 20px;
  }
  .page-contact__faq-qtext {
    font-size: 1em;
  }
  .page-contact__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    width: 25px;
  }
  details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 20px 20px;
  }

  /* General image responsiveness for all images within .page-contact */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__hero-section,
  .page-contact__method-card,
  .page-contact__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__hero-section {
    padding-left: 0 !important; /* Hero section padding is handled by its internal container */
    padding-right: 0 !important;
  }
  .page-contact__hero-container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Variables for consistent colors */
:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --card-bg-color: #111111;
  --background-color: #0A0A0A;
  --text-main-color: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  --primary-color-rgb: 242, 193, 78; /* For rgba calculations */
}

/* Ensure headings and paragraphs use the defined text colors */
.page-contact h1, .page-contact h2, .page-contact h3, .page-contact h4, .page-contact h5, .page-contact h6 {
  color: var(--primary-color, #F2C14E);
}
.page-contact p, .page-contact li {
  color: var(--text-main-color, #FFF6D6);
}

/* Special contrast fix for any element if needed, though with a dark background and light text, it should be fine */
.page-contact__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-contact__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}