/* General Styling for page-contact */
.page-contact {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #F5F7FA; /* Default background color */
  line-height: 1.6;
}

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

.page-contact__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #E53935;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-contact__section-title--light {
  color: #ffffff;
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming body has header offset */
  margin-bottom: 40px;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  overflow: hidden;
}

.page-contact__hero-image {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
}

.page-contact__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover for desktop */
}

.page-contact__hero-content {
  text-align: center;
  padding: 40px 15px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly for design, but text is below image */
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1; /* Ensure content is above any background elements */
  margin-bottom: 40px;
}

.page-contact__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: 800;
  color: #E53935;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 30px;
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%; /* Prevent overflow */
  box-sizing: border-box;
  overflow: hidden;
}

.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  text-align: center;
  box-sizing: border-box; /* Include padding and border in element's total width and height */
  max-width: 100%; /* Ensure button does not exceed container width */
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

.page-contact__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-contact__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Contact Methods Section */
.page-contact__contact-methods-section {
  padding: 60px 0;
  background-color: #F5F7FA;
}

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

.page-contact__method-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

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

.page-contact__method-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure no extra space below image */
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
  object-fit: cover;
}

.page-contact__method-title {
  font-size: 24px;
  color: #E53935;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-contact__method-text {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow text to grow and push button to bottom */
}

.page-contact__contact-form {
  width: 100%;
  text-align: left;
  margin-top: 20px;
}

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

.page-contact__form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333333;
}

.page-contact__contact-form input[type="text"],
.page-contact__contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #E0E0E0;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
  color: #333333;
  background-color: #fcfcfc;
}

.page-contact__contact-form input[type="text"]::placeholder,
.page-contact__contact-form textarea::placeholder {
  color: #999999;
}

.page-contact__contact-form button {
  width: auto; /* Allow button to size itself */
  margin-top: 10px;
}

.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-contact__social-btn {
  width: 120px; /* Fixed width for social buttons */
  height: 45px;
  background-color: #666; /* Default social button background */
  color: #fff;
  font-size: 16px;
  border: none;
  line-height: 45px;
  text-decoration: none;
  white-space: nowrap;
  padding: 0;
}

.page-contact__social-btn--facebook { background-color: #3b5998; }
.page-contact__social-btn--telegram { background-color: #0088cc; }
.page-contact__social-btn--youtube { background-color: #ff0000; }

.page-contact__social-btn:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

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

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
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: #f5f5f5;
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #E53935;
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
}
.page-contact__faq-answer p {
  margin: 0;
  color: #555555;
  font-size: 16px;
  line-height: 1.6;
}

.page-contact__cta-faq {
  text-align: center;
  margin-top: 40px;
}

.page-contact__cta-faq p {
  font-size: 18px;
  margin-bottom: 20px;
  color: #333333;
}

/* Commitment Section */
.page-contact__commitment-section {
  padding: 60px 0;
  background-color: #E53935; /* Dark background */
  color: #ffffff; /* Light text */
}

.page-contact__commitment-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-contact__commitment-content img {
  width: 50%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  display: block;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
  object-fit: cover;
}

.page-contact__commitment-text {
  width: 50%;
}

.page-contact__commitment-text p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-contact__commitment-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-contact__commitment-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.6;
}

.page-contact__commitment-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #FFD700; /* Gold checkmark for contrast */
  font-weight: bold;
}

.page-contact__list-highlight {
  color: #FFD700; /* Highlight color for strong tags */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__hero-image img {
    object-fit: contain !important; /* Ensure image is fully visible */
    aspect-ratio: unset !important; /* Remove fixed aspect ratio */
  }

  .page-contact__hero-content {
    margin-top: -50px; /* Less overlap */
    padding: 30px 15px;
  }

  .page-contact__main-title {
    font-size: clamp(24px, 5vw, 40px);
  }

  .page-contact__section-title {
    font-size: 30px;
  }

  .page-contact__commitment-content {
    flex-direction: column;
    text-align: center;
  }

  .page-contact__commitment-content img,
  .page-contact__commitment-text {
    width: 100%;
    max-width: 700px; /* Constrain width for better readability */
  }

  .page-contact__commitment-content img {
    margin-bottom: 30px;
  }

  .page-contact__commitment-list {
    text-align: left; /* Align list items left */
  }
}


@media (max-width: 768px) {
  .page-contact__container {
    padding: 15px;
  }

  /* HERO Section (Must include) */
  .page-contact__hero-section {
    padding-top: 10px; /* Fixed small top padding */
    margin-bottom: 20px;
  }

  .page-contact__hero-image img {
    object-fit: contain !important; /* Ensure image is fully visible */
    aspect-ratio: unset !important; /* Remove fixed aspect ratio */
    max-width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__hero-image {
    max-height: 300px; /* Adjust height for mobile */
  }

  .page-contact__hero-content {
    padding: 20px 15px;
    margin-top: -30px; /* Less overlap */
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  .page-contact__main-title {
    font-size: clamp(24px, 7vw, 32px); /* Smaller on mobile */
    margin-bottom: 15px;
  }

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

  /* Buttons and Button Containers (Must include) */
  .page-contact__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact a[class*="button"],
  .page-contact a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
  }

  .page-contact__social-links {
    flex-wrap: wrap !important;
    gap: 10px;
    padding: 0 15px;
  }

  .page-contact__social-btn {
    width: calc(50% - 5px); /* Two buttons per row */
    height: 40px;
    font-size: 15px;
    line-height: 40px;
  }
  
  /* Section Titles and Descriptions */
  .page-contact__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

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

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

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

  .page-contact__method-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

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

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

  /* Form elements */
  .page-contact__form-group label {
    font-size: 15px;
  }

  .page-contact__contact-form input[type="text"],
  .page-contact__contact-form textarea {
    font-size: 15px;
    padding: 10px;
  }

  /* FAQ Section */
  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; }
  .page-contact__faq-answer p { font-size: 15px; }
  .page-contact__cta-faq p { font-size: 16px; }

  /* Commitment Section */
  .page-contact__commitment-content {
    gap: 20px;
  }

  .page-contact__commitment-content img,
  .page-contact__commitment-text {
    width: 100%;
  }

  .page-contact__commitment-content img {
    margin-bottom: 20px;
    max-width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-contact__commitment-text p,
  .page-contact__commitment-list li {
    font-size: 16px;
  }
  
  /* General Images and Containers (Must include) */
  .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__contact-methods-section,
  .page-contact__faq-section,
  .page-contact__commitment-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left: 15px; */ /* Already handled by .page-contact__container */
    /* padding-right: 15px; */ /* Already handled by .page-contact__container */
  }
}