/* style/contact.css */

/* --- Base Styles & Variables (Scoped to .page-contact) --- */
.page-contact {
  --primary-color: #11A84E; /* Main color */
  --secondary-color: #22C768; /* Auxiliary color */
  --card-bg: #11271B; /* Card background */
  --background-dark: #08160F; /* Page background */
  --text-main: #F2FFF6; /* Main text color (light for dark background) */
  --text-secondary: #A7D9B8; /* Secondary text color */
  --border-color: #2E7A4E; /* Border color */
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  --gold-color: #F2C14E; /* Gold for emphasis */
  --divider-color: #1E3A2A; /* Divider */

  background-color: var(--background-dark);
  color: var(--text-main); /* Default text color for the page content */
  font-family: 'Arial', sans-serif; /* Example font */
  line-height: 1.6;
  padding-bottom: 40px; /* Ensure space above footer */
}

/* --- Section Layouts --- */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, larger bottom padding */
  box-sizing: border-box;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 30px; /* Space between image and content */
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

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

.page-contact__main-title {
  font-size: clamp(2rem, 5vw, 3.2rem); /* Responsive font size */
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-contact__description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__cta-button {
  display: inline-block;
  background: var(--button-gradient);
  color: var(--text-main);
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__methods-section,
.page-contact__faq-section,
.page-contact__feedback-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  box-sizing: border-box;
}

.page-contact__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-contact__section-description {
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-contact__method-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 450px; /* Ensure cards have similar height */
}

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

.page-contact__method-icon {
  width: auto;
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: contain; /* Use contain to show full icon */
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__method-title {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-contact__method-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 25px;
  flex-grow: 1; /* Allow text to grow and push button down */
}

.page-contact__method-button {
  display: inline-block;
  background: var(--primary-color);
  color: var(--text-main);
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-contact__method-button:hover {
  background-color: var(--secondary-color);
}

/* --- FAQ Section --- */
.page-contact__faq-list {
  margin-top: 30px;
}

.page-contact__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--card-bg);
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for details/summary */
}

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

.page-contact__faq-question:hover {
  background-color: rgba(var(--primary-color), 0.2); /* Subtle hover effect */
}

.page-contact__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-contact__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--gold-color);
  margin-left: 15px;
}

.page-contact__faq-answer {
  padding: 0 25px 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-align: left;
}

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

.page-contact__faq-answer a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
}

.page-contact__faq-answer a:hover {
  text-decoration: underline;
}

/* --- Feedback Form --- */
.page-contact__feedback-form {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  max-width: 700px;
  margin: 30px auto;
}

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

.page-contact__form-label {
  display: block;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 8px;
  font-weight: 600;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: calc(100% - 20px); /* Adjust for padding */
  padding: 12px 10px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.2); /* Slightly transparent dark */
  color: var(--text-main);
  font-size: 1rem;
  box-sizing: border-box; /* Include padding in width */
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: var(--secondary-color);
  background-color: rgba(0, 0, 0, 0.3);
  outline: none;
}

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

.page-contact__submit-button {
  width: 100%;
  background: var(--button-gradient);
  color: var(--text-main);
  padding: 15px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__keyword {
  color: var(--gold-color);
  font-weight: 600;
}

/* --- Global Image/Video/Button Responsiveness (Critical) --- */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure method icons are centered and maintain aspect ratio */
.page-contact__method-icon {
  width: auto; /* Allow auto width for smaller images to center */
  max-width: 100%;
  height: 200px; /* Maintain fixed height */
  object-fit: contain;
}

.page-contact__cta-button,
.page-contact__method-button,
.page-contact__submit-button,
.page-contact a[class*="button"],
.page-contact a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* --- Mobile Specific Styles --- */
@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-contact__hero-section {
    padding: 10px 15px 40px;
  }

  .page-contact__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-contact__description {
    font-size: 1rem;
    padding: 0 5px;
  }

  .page-contact__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .page-contact__methods-section,
  .page-contact__faq-section,
  .page-contact__feedback-section {
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-contact__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

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

  .page-contact__method-card {
    padding: 25px;
    min-height: auto; /* Allow height to adjust */
  }

  .page-contact__method-icon {
    height: 150px; /* Slightly smaller on mobile */
  }

  .page-contact__method-title {
    font-size: 1.3rem;
  }

  .page-contact__method-text {
    font-size: 0.9rem;
  }

  .page-contact__method-button {
    width: 100%; /* Full width buttons on mobile */
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .page-contact__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-contact__faq-answer {
    font-size: 0.9rem;
    padding: 0 20px 15px;
  }

  .page-contact__feedback-form {
    padding: 30px 20px;
  }

  .page-contact__form-input,
  .page-contact__form-textarea {
    width: calc(100% - 20px) !important;
    padding: 10px;
  }

  .page-contact__submit-button {
    padding: 12px 20px;
    font-size: 1rem;
  }

  /* Image responsiveness for all img tags */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Container responsiveness for all sections/divs containing images/videos/buttons */
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__methods-section,
  .page-contact__faq-section,
  .page-contact__feedback-section,
  .page-contact__hero-section,
  .page-contact__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Buttons mobile specific */
  .page-contact__cta-button,
  .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;
  }

  .page-contact__cta-buttons,
  .page-contact__button-group,
  .page-contact__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}