/* style/contact.css */

/* Variables and general styles for page-contact scope */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #F5F7FA; /* Custom background color */
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden; /* Ensure content stays within bounds */
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-contact__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__hero-content {
  max-width: 900px;
  margin-top: 40px;
  padding: 0 15px;
}

.page-contact__main-title {
  font-weight: bold;
  color: #E53935; /* Brand color for title */
  margin-bottom: 20px;
  line-height: 1.2;
  font-size: clamp(2em, 5vw, 3em); /* H1 font size with clamp */
}

.page-contact__description {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 30px;
}

/* General container for content sections */
.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Form Section */
.page-contact__form-section {
  background-color: #FFFFFF; /* Card BG color */
  padding: 60px 0;
  border-top: 1px solid #E0E0E0; /* Border color */
}

.page-contact__form-section .page-contact__container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.page-contact__form-content {
  flex: 1;
  min-width: 300px;
  padding: 20px;
  box-sizing: border-box;
}

.page-contact__section-title {
  font-size: 2em;
  color: #E53935;
  margin-bottom: 20px;
  text-align: left;
}

.page-contact__form-description {
  color: #333333;
  margin-bottom: 30px;
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #E0E0E0; /* Border color */
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 1em;
  color: #333333;
}

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

.page-contact__form-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}

.page-contact__form-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Other Channels Section */
.page-contact__other-channels-section {
  padding: 60px 0;
  background-color: #F5F7FA; /* Background color */
}

.page-contact__other-channels-section .page-contact__section-title,
.page-contact__channels-description {
  text-align: center;
  margin-bottom: 30px;
}

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

.page-contact__channel-card {
  background-color: #FFFFFF; /* Card BG color */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #E0E0E0; /* Border color */
}

.page-contact__channel-icon {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-contact__channel-title {
  font-size: 1.4em;
  color: #E53935;
  margin-bottom: 10px;
}

.page-contact__channel-text {
  color: #333333;
  margin-bottom: 25px;
  flex-grow: 1;
}

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

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

.page-contact__btn-primary:hover {
  opacity: 0.9;
}

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

.page-contact__btn-secondary:hover {
  background-color: #E53935;
  color: #ffffff;
}

.page-contact__form-submit-btn {
  width: auto;
  padding: 12px 40px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-contact__hero-content {
    margin-top: 30px;
  }
  .page-contact__main-title {
    font-size: clamp(2em, 5vw, 2.5em); /* Use clamp for H1 */
  }
  .page-contact__description {
    font-size: 1em;
  }
  .page-contact__form-section .page-contact__container {
    flex-direction: column-reverse; /* Image above form on smaller screens */
  }
  .page-contact__form-content,
  .page-contact__form-image-wrapper {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding-top: 10px !important; /* body handles header offset */
    padding-bottom: 40px;
  }

  /* All images responsive */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All image/content containers responsive */
  .page-contact__hero-image-wrapper,
  .page-contact__form-image-wrapper,
  .page-contact__channel-card,
  .page-contact__container,
  .page-contact__form-section,
  .page-contact__other-channels-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Buttons responsive */
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact__form-submit-btn {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-top: 10px; /* Add some spacing between stacked buttons */
  }

  .page-contact__hero-content {
    margin-top: 20px;
  }
  .page-contact__main-title {
    font-size: clamp(1.8em, 7vw, 2.2em);
  }
  .page-contact__section-title {
    font-size: 1.8em;
    text-align: center;
  }
  .page-contact__form-content {
    padding: 0;
  }
  .page-contact__form-image-wrapper {
    order: -1; /* Image appears above form on mobile */
    margin-bottom: 20px;
  }
  .page-contact__channels-grid {
    grid-template-columns: 1fr;
  }
  .page-contact__channels-description {
    padding: 0 15px;
  }
}