/* style/contact.css */
/* Page-specific styles for the Contact Us page */

/* Ensure text color contrasts with body background (default is light) */
.page-contact {
  color: #333333; /* Dark text for light background */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
  padding: 60px 20px;
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF; /* Light text for dark hero background */
}

.page-contact__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4; /* Slightly dim image for text readability */
  z-index: 1;
}

.page-contact__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.page-contact__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFFFF;
}

.page-contact__hero-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #F0F0F0;
}

.page-contact__hero-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin: 0 10px 20px;
}

.page-contact__hero-button--primary {
  background-color: #FCBC45; /* Login color */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-contact__hero-button--primary:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

.page-contact__hero-button--secondary {
  background-color: #FFFFFF; /* Register color */
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-contact__hero-button--secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

/* Contact Channels Section */
.page-contact__channels-section {
  padding: 80px 20px;
  background-color: #FFFFFF;
  text-align: center;
}

.page-contact__channels-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-contact__channels-title {
  font-size: 2.8em;
  color: #000000;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__channels-intro {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-contact__channel-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-contact__channel-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-contact__channel-icon {
  width: 200px; /* Min size for content images */
  height: auto;
  margin-bottom: 25px;
  border-radius: 8px;
  object-fit: cover;
}

.page-contact__channel-card-title {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__channel-card-description {
  font-size: 1em;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1; /* Allow description to take available space */
}

.page-contact__channel-card-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: #000000;
  color: #FFFFFF;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact__channel-card-button:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 80px 20px;
  background-color: #f0f0f0;
}

.page-contact__form-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: #FFFFFF;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.page-contact__form-title {
  font-size: 2.5em;
  color: #000000;
  margin-bottom: 15px;
  text-align: center;
  font-weight: bold;
}

.page-contact__form-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 40px;
  text-align: center;
}

.page-contact__contact-form {
  display: flex;
  flex-direction: column;
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 1em;
  color: #333333;
  box-sizing: border-box; /* Include padding in width */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #FCBC45;
  box-shadow: 0 0 0 3px rgba(252, 188, 69, 0.2);
  outline: none;
}

.page-contact__form-textarea {
  resize: vertical; /* Allow vertical resizing */
  min-height: 120px;
}

.page-contact__form-submit-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: #000000;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  align-self: center; /* Center the button */
  width: auto;
  min-width: 200px;
}

.page-contact__form-submit-button:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

/* Call to Action Section */
.page-contact__cta-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 400px;
  padding: 60px 20px;
  background-color: #000000; /* Dark background */
  color: #FFFFFF; /* Light text */
}

.page-contact__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Slightly dim image for text readability */
  z-index: 1;
}

.page-contact__cta-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.page-contact__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFFFF;
}

.page-contact__cta-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #F0F0F0;
}

.page-contact__cta-button {
  display: inline-block;
  padding: 18px 35px;
  background-color: #FCBC45; /* Login color */
  color: #000000;
  border-radius: 10px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact__cta-button:hover {
  background-color: #e0a53b;
  transform: translateY(-3px);
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 3em;
  }
  .page-contact__channels-title,
  .page-contact__form-title,
  .page-contact__cta-title {
    font-size: 2.2em;
  }
  .page-contact__hero-image,
  .page-contact__cta-image,
  .page-contact__channel-icon {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .page-contact {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }
  .page-contact__hero-section,
  .page-contact__channels-section,
  .page-contact__form-section,
  .page-contact__cta-section {
    padding: 40px 15px;
  }
  .page-contact__hero-title {
    font-size: 2.5em;
  }
  .page-contact__hero-description {
    font-size: 1em;
  }
  .page-contact__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-contact__hero-button--primary,
  .page-contact__hero-button--secondary {
    margin: 0 5px 15px;
  }

  .page-contact__channels-title,
  .page-contact__form-title,
  .page-contact__cta-title {
    font-size: 2em;
  }
  .page-contact__channels-intro,
  .page-contact__form-description,
  .page-contact__cta-description {
    font-size: 0.95em;
  }

  .page-contact__channel-grid {
    grid-template-columns: 1fr;
  }
  .page-contact__channel-icon {
    width: 200px; /* Ensure min size */
    height: auto;
    max-width: 100%; /* Important for mobile */
  }

  .page-contact__form-container {
    padding: 30px;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 12px 15px;
  }
  .page-contact__form-submit-button {
    width: 100%;
    min-width: unset;
  }

  .page-contact__cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }

  /* Ensure content images do not overflow */
  .page-contact img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: 2em;
  }
  .page-contact__hero-button {
    display: block; /* Stack buttons */
    margin: 10px auto;
    width: 80%;
  }
  .page-contact__channels-title,
  .page-contact__form-title,
  .page-contact__cta-title {
    font-size: 1.8em;
  }
}