/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  background-color: #08160F; /* Custom background color */
  color: #F2FFF6; /* Main text color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* Add some padding at the bottom */
}

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

/* 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 0 60px 0; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden; /* Ensure nothing overflows */
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for hero image */
}

.page-contact__hero-content {
  position: relative; /* Not absolute, to be below the image */
  padding: 40px 20px;
  max-width: 800px;
  z-index: 1;
}

.page-contact__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 30px;
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #F2FFF6; /* Main text color */
  border: 2px solid transparent;
}

.page-contact__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-contact__btn-secondary {
  background-color: transparent;
  color: #2AD16F; /* Main brand color for text */
  border: 2px solid #2AD16F; /* Border with main brand color */
}

.page-contact__btn-secondary:hover {
  background-color: #2AD16F;
  color: #F2FFF6;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.2);
}

/* Section Titles and Descriptions */
.page-contact__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-contact__section-description {
  font-size: 1.05em;
  color: #A7D9B8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Contact Methods Section */
.page-contact__methods-section {
  padding: 60px 0;
}

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

.page-contact__card {
  background-color: #11271B; /* Custom card background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  box-sizing: border-box;
}

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

.page-contact__card-image {
  width: 100%;
  max-width: 300px; /* Constrain image width within card */
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-contact__card-text {
  color: #A7D9B8;
  margin-bottom: 25px;
  flex-grow: 1; /* Push button to bottom */
}

/* Form Section */
.page-contact__form-section {
  padding: 60px 0;
}

.page-contact__contact-form {
  background-color: #11271B; /* Custom card background */
  padding: 40px;
  border-radius: 12px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 10px;
  color: #F2FFF6;
  font-weight: 600;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #2E7A4E; /* Custom border color */
  border-radius: 8px;
  background-color: #08160F; /* Match page background */
  color: #F2FFF6;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #A7D9B8; /* Secondary text color for placeholders */
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #2AD16F; /* Main brand color on focus */
  outline: none;
  box-shadow: 0 0 0 3px rgba(42, 209, 111, 0.3);
}

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

/* Commitment Section */
.page-contact__commitment-section {
  padding: 60px 0;
  text-align: center;
}

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

.page-contact__commitment-item {
  background-color: #11271B; /* Custom card background */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  box-sizing: border-box;
}

.page-contact__commitment-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-contact__commitment-icon {
  width: 200px; /* Min size 200x200 */
  height: 200px; /* Min size 200x200 */
  object-fit: contain;
  margin-bottom: 20px;
}

.page-contact__commitment-heading {
  font-size: 1.6em;
  color: #F2FFF6;
  margin-bottom: 10px;
}

.page-contact__commitment-text {
  color: #A7D9B8;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__hero-image {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding-bottom: 40px;
  }

  .page-contact__hero-content {
    padding: 30px 15px;
  }

  .page-contact__main-title {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }

  .page-contact__hero-description {
    font-size: 1em;
  }

  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-contact__container,
  .page-contact__section,
  .page-contact__card,
  .page-contact__form-section,
  .page-contact__contact-form,
  .page-contact__commitment-section,
  .page-contact__commitment-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__section-title {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    padding-top: 30px;
  }

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

  .page-contact__contact-grid,
  .page-contact__commitment-points {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  /* Image responsive rules for mobile */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsive rules for mobile (if video were present) */
  .page-contact video,
  .page-contact__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-contact__video-section,
  .page-contact__video-container,
  .page-contact__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-contact__video-section {
    padding-top: 10px !important;
  }

  .page-contact__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-section {
    padding-bottom: 30px;
  }
  .page-contact__hero-content {
    padding: 20px 10px;
  }
  .page-contact__main-title {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }
  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    padding: 10px 15px;
    font-size: 0.9em;
  }
  .page-contact__section-title {
    font-size: clamp(1.5rem, 6vw, 1.8rem);
  }
  .page-contact__contact-form {
    padding: 30px 15px;
  }
}