.page-contact {
  background-color: var(--primary-color, #0A192F);
  color: #ffffff;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px);
}

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

.page-contact__dark-section {
  background-color: #0A192F;
  color: #ffffff;
}

.page-contact__light-bg {
  background-color: #f8f9fa;
  color: #333333;
}

.page-contact__hero-section {
  position: relative;
  text-align: center;
  padding: 80px 0;
  overflow: hidden;
}

.page-contact__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.page-contact__hero-section .page-contact__container {
  position: relative;
  z-index: 1;
}

.page-contact__hero-title {
  font-size: 3.2em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background-color: #FFD700;
  color: #0A192F;
  border: 2px solid #FFD700;
}

.page-contact__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-contact__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-contact__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A192F;
}

.page-contact__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: inherit;
}

.page-contact__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: inherit;
}

.page-contact__contact-methods {
  padding: 80px 0;
}

.page-contact__contact-methods .page-contact__section-title,
.page-contact__contact-methods .page-contact__section-description {
  color: #333333;
}

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

.page-contact__card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-contact__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.page-contact__card-title {
  font-size: 1.8em;
  color: #0A192F;
  margin-bottom: 15px;
}

.page-contact__card-text {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-contact__text-link {
  color: #0A192F;
  text-decoration: underline;
}

.page-contact__text-link:hover {
  color: #FFD700;
}

.page-contact__card-button {
  margin-top: auto; /* Push button to the bottom */
}

.page-contact__form-section {
  padding: 80px 0;
}

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

.page-contact__contact-form {
  background-color: #1a2c42; /* Slightly lighter dark */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #f0f0f0;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #3a4d65;
  border-radius: 6px;
  background-color: #0A192F;
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #FFD700;
  outline: none;
}

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

.page-contact__form-submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.2em;
  cursor: pointer;
  border: none;
  background-color: #FFD700;
  color: #0A192F;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.page-contact__form-submit-btn:hover {
  background-color: #e6c200;
}

.page-contact__form-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  text-align: center;
}

.page-contact__form-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.page-contact__faq-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.page-contact__faq-section .page-contact__section-title,
.page-contact__faq-section .page-contact__section-description {
  color: #333333;
  position: relative;
  z-index: 1;
}

.page-contact__faq-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.1;
}

.page-contact__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
  position: relative;
  z-index: 1;
}

.page-contact__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #0A192F;
  cursor: pointer;
  background-color: #f5f5f5;
  transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
  background-color: #e9ecef;
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  transform: rotate(45deg);
}

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 15px 25px 20px 25px;
}

.page-contact__faq-answer p {
  margin-bottom: 0;
}

.page-contact__social-section {
  padding: 80px 0;
  text-align: center;
}

.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.page-contact__social-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #ffffff;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

.page-contact__social-icon-link:hover {
  color: #FFD700;
}

.page-contact__social-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  object-fit: contain;
  display: block;
}

.page-contact__social-icon-link:hover .page-contact__social-icon {
  transform: scale(1.1);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 2.8em;
  }
  .page-contact__hero-description {
    font-size: 1.2em;
  }
  .page-contact__section-title {
    font-size: 2.2em;
  }
  .page-contact__methods-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-contact__hero-section {
    padding: 60px 0;
  }
  .page-contact__hero-title {
    font-size: 2.2em;
  }
  .page-contact__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
  }
  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-contact__contact-methods,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__social-section {
    padding: 50px 0;
  }
  .page-contact__methods-grid {
    grid-template-columns: 1fr;
  }
  .page-contact__form-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .page-contact__contact-form,
  .page-contact__form-image-wrapper {
    max-width: 100%;
    min-width: unset;
    width: 100%;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    width: calc(100% - 20px) !important;
  }
  .page-contact__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-contact__faq-answer {
    padding: 0 20px;
  }
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px 20px 20px 20px;
  }
  .page-contact__social-links {
    gap: 20px;
  }
  .page-contact__social-icon {
    width: 50px;
    height: 50px;
  }

  /* Mobile Image Responsiveness */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure images take full width of their container */
    height: auto !important;
    display: block !important;
  }
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__form-wrapper,
  .page-contact__form-image-wrapper,
  .page-contact__social-links {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Apply header offset for mobile hero */
  }
  .page-contact__cta-buttons {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: 1.8em;
  }
  .page-contact__section-title {
    font-size: 1.6em;
  }
  .page-contact__form-image-wrapper {
    display: none; /* Hide image on very small screens for better form focus */
  }
}