:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --card-bg: #FFFFFF;
  --page-bg: #F4F7FB;
  --text-main: #1F2D3D;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
  --text-dark: #333333; /* For light backgrounds */
  --text-light: #ffffff; /* For dark backgrounds */
}

.page-contact {
  font-family: 'Arial', sans-serif;
  color: var(--text-dark); /* Body background is light (#F4F7FB), so use dark text */
  background-color: var(--page-bg);
}

/* 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 padding-top handles header offset, this is for visual spacing */
  padding-top: 10px; 
  background-color: var(--page-bg); /* Match body bg */
}

.page-contact__hero-container {
  position: relative;
  max-width: 1200px;
  width: 100%; /* Ensure it takes full width within max-width */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-contact__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

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

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

.page-contact__main-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__hero-description {
  font-size: 18px;
  color: var(--text-dark);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Ensure mobile responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__cta-button:hover {
  background: var(--primary-color); /* Fallback for hover */
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-contact__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 20px;
}

.page-contact__section-title--white {
  color: var(--text-light);
}

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

.page-contact__section-description--white {
  color: rgba(255, 255, 255, 0.9);
}

/* Contact Methods Section */
.page-contact__contact-methods-section {
  padding: 80px 0;
  background-color: var(--page-bg);
}

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

.page-contact__method-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-contact__method-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-contact__method-text {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 25px;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure mobile responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  margin-top: 10px; /* Spacing for multiple buttons if needed */
}

.page-contact__btn-primary {
  background: var(--button-gradient);
  color: var(--text-light);
  border: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-contact__btn-primary:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.page-contact__btn-secondary {
  background: var(--card-bg);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.page-contact__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__email-address {
  font-size: 15px;
  color: var(--primary-color);
  margin-top: 15px;
  font-weight: 500;
}

.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.page-contact__social-icon {
  display: inline-flex;
  width: 60px; /* Ensure minimum size */
  height: 60px; /* Ensure minimum size */
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.page-contact__social-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-contact__social-icon:hover {
  transform: scale(1.1);
}

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

.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(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
details.page-contact__faq-item summary.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  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: #f8f8f8;
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-main);
  text-align: left;
}
.page-contact__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}
details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 25px 25px;
  background: #f9f9f9;
  border-radius: 0 0 10px 10px;
  color: var(--text-dark);
}
details.page-contact__faq-item .page-contact__faq-answer p {
  margin: 0;
  line-height: 1.7;
  font-size: 16px;
}

/* Commitment Section */
.page-contact__commitment-section {
  padding: 80px 0;
  background-color: var(--primary-color); /* Dark background */
  color: var(--text-light); /* Light text */
}

.page-contact__commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-contact__commitment-item {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for cards on dark bg */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-contact__commitment-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 15px;
}

.page-contact__commitment-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__main-title {
    font-size: 40px;
  }
  .page-contact__hero-description {
    font-size: 17px;
  }
  .page-contact__section-title {
    font-size: 32px;
  }
  .page-contact__section-description {
    font-size: 17px;
  }
  .page-contact__faq-qtext {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding-top: 10px !important; /* Keep small top padding */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-contact__hero-image img {
    border-radius: 4px;
  }

  .page-contact__hero-content {
    padding: 0 15px; /* Adjust padding for content within hero */
  }

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

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

  .page-contact__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    width: 100% !important; /* Mobile button full width */
  }

  .page-contact__contact-methods-section,
  .page-contact__faq-section,
  .page-contact__commitment-section {
    padding: 60px 0;
  }

  .page-contact__container {
    padding: 0 15px;
  }

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

  .page-contact__methods-grid,
  .page-contact__commitment-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

  .page-contact__method-card,
  .page-contact__commitment-item {
    padding: 25px;
  }

  .page-contact__method-title {
    font-size: 20px;
  }

  .page-contact__method-text {
    font-size: 15px;
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    width: 100% !important; /* Mobile button full width */
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
  }
  
  .page-contact__social-links {
    flex-wrap: wrap; /* Allow social icons to wrap */
    gap: 10px;
  }
  .page-contact__social-icon {
    width: 50px;
    height: 50px;
  }

  details.page-contact__faq-item summary.page-contact__faq-question { 
    padding: 15px; 
  }
  .page-contact__faq-qtext { 
    font-size: 15px; 
  }
  .page-contact__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 15px 15px;
  }
  details.page-contact__faq-item .page-contact__faq-answer p {
    font-size: 15px;
  }

  /* Image responsiveness */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__section,
  .page-contact__card,
  .page-contact__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure buttons in any group wrap or stack */
  .page-contact__button-group { /* If such a class exists */
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

/* Ensure no image filters */
.page-contact img {
  filter: none !important;
}