/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Default light text color for dark body background */
  background-color: var(--black-color); /* Inherit from shared, assumed dark */
}

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

/* Color contrast enforcement */
.page-contact__dark-section {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff; /* White text for contrast */
}

.page-contact__light-bg {
  background-color: #ffffff; /* White background */
  color: #333333; /* Dark text for contrast */
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
}

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

.page-contact__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-contact__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-contact__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 1;
}

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

.page-contact__btn-primary {
  background-color: #EA7C07; /* Custom color for Login/Register */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-contact__btn-primary:hover {
  background-color: #d46f06;
  border-color: #d46f06;
}

.page-contact__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Brand primary color */
  border: 2px solid #26A9E0;
}

.page-contact__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87c2;
  border-color: #1e87c2;
}

/* Section common styles */
.page-contact__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit from section background */
}

.page-contact__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: inherit; /* Inherit from section background */
}

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

/* Contact Methods Section */
.page-contact__methods-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-contact__method-card {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.page-contact__method-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand primary color */
}

.page-contact__method-description {
  margin-bottom: 20px;
  color: #555555;
  flex-grow: 1;
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 80px 0;
  text-align: center;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 40px auto;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark bg */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #ffffff; /* Light text for dark section */
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #444;
  border-radius: 5px;
  background-color: #333;
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #26A9E0;
  outline: none;
  box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.3);
}

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

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
}

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

.page-contact__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-contact__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  outline: none;
  background-color: #ffffff;
  color: #26A9E0;
  list-style: none; /* Hide default marker */
}

.page-contact__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

.page-contact__faq-qtext {
  flex-grow: 1;
  color: #26A9E0;
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  content: "−"; /* Change content for open state */
}

.page-contact__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  color: #555555;
}

.page-contact__faq-answer p {
    margin-bottom: 0;
}


/* Why Contact Section */
.page-contact__why-contact-section {
  padding: 80px 0;
  text-align: center;
}

.page-contact__why-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-contact__why-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #f0f0f0;
}

.page-contact__why-item-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-contact__why-item-description {
  font-size: 1em;
  color: #cccccc;
}

/* Call to Action Section */
.page-contact__cta-section {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-contact__cta-content {
  position: relative;
  z-index: 2;
}

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

.page-contact__cta-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

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

.page-contact__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 1;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 2.8em;
  }
  .page-contact__section-title {
    font-size: 2.2em;
  }
  .page-contact__cta-title {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }

  .page-contact__hero-title {
    font-size: 2em;
  }

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

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

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

  .page-contact__methods-grid,
  .page-contact__why-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-contact__method-card,
  .page-contact__why-item {
    padding: 25px;
  }

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

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

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

  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
    font-size: 0.95em;
  }
}