.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
}

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

/* Hero Section */
.page-contact__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding */
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-contact__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: 20px; /* Space below image */
  padding: 0 20px;
}

.page-contact__main-title {
  font-size: clamp(2em, 3.5vw, 3.2em); /* Use clamp for H1 */
  color: #2F6BFF; /* Main color */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-contact__description {
  font-size: 1.1em;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 30px;
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* General Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button */
  color: #ffffff;
  border: none;
}

.page-contact__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-contact__btn-secondary {
  background: #ffffff;
  color: #2F6BFF; /* Main color */
  border: 2px solid #2F6BFF; /* Main color */
}

.page-contact__btn-secondary:hover {
  background: #2F6BFF;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-contact__btn-tertiary {
  background: #6FA3FF; /* Auxiliary color */
  color: #ffffff;
  border: none;
}

.page-contact__btn-tertiary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(111, 163, 255, 0.3);
}

.page-contact__large-btn {
  padding: 15px 40px;
  font-size: 1.1em;
}

/* Sections */
.page-contact__methods-section,
.page-contact__form-section,
.page-contact__faq-section,
.page-contact__company-info-section,
.page-contact__final-cta-section {
  padding: 60px 0;
}

.page-contact__section-title {
  font-size: 2.5em;
  color: #2F6BFF; /* Main color */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-contact__section-description {
  font-size: 1.1em;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-contact__method-card {
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 350px;
}

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

.page-contact__method-card .page-contact__method-icon {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

.page-contact__method-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: 600;
  color: inherit; /* Inherit from card for contrast */
}

.page-contact__method-text {
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
  color: inherit; /* Inherit from card for contrast */
}

.page-contact__dark-bg {
  background: #2F6BFF;
  color: #ffffff;
}

.page-contact__light-bg {
  background: #FFFFFF; /* Card BG */
  color: #1F2D3D; /* Text Main */
}

/* Contact Form */
.page-contact__form-section {
  background-color: #F4F7FB; /* Background */
  border-top: 1px solid #D6E2FF; /* Border */
  border-bottom: 1px solid #D6E2FF; /* Border */
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  background: #FFFFFF; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.page-contact__form-label {
  display: block;
  font-size: 1.1em;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 8px;
  font-weight: 600;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 8px;
  font-size: 1em;
  color: #1F2D3D; /* Text Main */
  background-color: #fcfdff;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #888;
  opacity: 0.7;
}

.page-contact__form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* FAQ Section */
.page-contact__faq-section {
  background-color: #F4F7FB; /* Background */
}

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

.page-contact__faq-item {
  background: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #1F2D3D; /* Text Main */
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid transparent; /* for transition */
  transition: background-color 0.3s ease, border-bottom 0.3s ease;
  list-style: none;
}

.page-contact__faq-item[open] > .page-contact__faq-question {
  background-color: #e6f0ff;
  border-bottom: 1px solid #2F6BFF;
  color: #2F6BFF;
}

.page-contact__faq-item[open] > .page-contact__faq-question .page-contact__faq-toggle {
  transform: rotate(45deg);
  color: #2F6BFF;
}

.page-contact__faq-question::-webkit-details-marker {
  display: none;
}

.page-contact__faq-qtext {
  flex-grow: 1;
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  margin-left: 15px;
  color: #2F6BFF;
}

.page-contact__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #1F2D3D; /* Text Main */
  line-height: 1.6;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-answer {
  opacity: 1;
  max-height: 500px; /* Adjust as needed for content length */
}

/* Company Info Section */
.page-contact__company-info-section {
  background: #2F6BFF; /* Main color */
  color: #ffffff;
  text-align: center;
}

.page-contact__company-info-section .page-contact__section-title {
  color: #ffffff;
}

.page-contact__company-info-section .page-contact__section-description {
  color: #e0e0e0;
}

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

.page-contact__info-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-contact__info-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-contact__info-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-contact__license-image-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-contact__license-image {
    max-width: 680px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    min-width: 200px;
    min-height: 200px;
}

/* Final CTA Section */
.page-contact__final-cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #F4F7FB; /* Background */
}

/* Image specific styles to ensure min-size and no filters */
.page-contact img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
    /* No filters allowed */
    filter: none !important;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__main-title {
    font-size: clamp(2em, 4.5vw, 2.8em);
  }

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

  .page-contact__method-card {
    min-height: 320px;
  }

  .page-contact__contact-form {
    padding: 30px;
  }

  .page-contact__faq-question,
  .page-contact__faq-answer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-contact__company-info-section,
  .page-contact__final-cta-section {
    padding: 50px 0;
  }
}

@media (max-width: 768px) {
  /* 1. Top section title + CTA */
  .page-contact__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-contact__hero-content {
    margin-top: 15px;
  }

  .page-contact__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important; /* Adjust for mobile */
    padding: 0 10px; /* Ensure text is not too wide */
  }

  .page-contact__description {
    font-size: 1em;
    padding: 0 10px;
  }

  .page-contact__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px;
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact__btn-tertiary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 2. Single column long text containers */
  .page-contact__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-contact__section-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

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

  .page-contact__methods-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__company-info-section,
  .page-contact__final-cta-section {
    padding: 40px 0;
  }

  .page-contact__methods-grid {
    grid-template-columns: 1fr; /* Single column for methods */
    gap: 20px;
  }

  .page-contact__method-card {
    padding: 25px;
    min-height: auto;
  }

  .page-contact__method-card .page-contact__method-icon {
    max-height: 150px;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-contact__method-title {
    font-size: 1.3em;
  }

  .page-contact__method-text {
    font-size: 0.95em;
  }

  .page-contact__contact-form {
    padding: 20px;
  }

  /* 3. General images and figures */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-contact__license-image-wrapper {
      margin-top: 30px;
  }

  .page-contact__license-image {
      max-width: 100%;
      min-width: 200px !important;
      min-height: 200px !important;
  }

  /* 4. Buttons and button containers (already covered above with cta-buttons) */
  
  /* 5. FAQ Block */
  .page-contact__faq-list {
    margin-top: 30px;
  }

  .page-contact__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-contact__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95em;
  }

  .page-contact__info-grid {
    grid-template-columns: 1fr; /* Single column for info */
    gap: 20px;
  }

  .page-contact__large-btn {
    font-size: 1em;
    padding: 12px 25px;
  }
}

@media (max-width: 480px) {
  .page-contact__main-title {
    font-size: clamp(1.6em, 8vw, 2em) !important;
  }

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

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

  .page-contact__contact-form {
    padding: 15px;
  }

  .page-contact__form-label {
    font-size: 1em;
  }

  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px;
  }
}