/* style/contact.css */

/* Variables */
:root {
  --primary-color: #007bff; /* Deep blue */
  --secondary-color: #ffc107; /* Gold */
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #0d0d0d; /* Assuming a dark body background from shared.css */
  --card-bg-dark-section: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark blue */
  --card-bg-form: rgba(255, 255, 255, 0.08); /* Slightly lighter dark card for form */
  --card-bg-faq: #ffffff; /* White background for FAQ cards */
  --border-color: #e0e0e0;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
}

/* Base styles for the contact page */
.page-contact {
  padding-top: 120px; /* Adjust for fixed header on desktop */
  background-color: var(--bg-dark); /* Assuming dark body background */
  color: var(--text-color-light); /* Light text for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-contact__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--secondary-color); /* Gold for titles */
}

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

/* Hero Section */
.page-contact__hero-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-color), #0056b3); /* Primary color gradient */
  color: var(--text-color-light);
  text-align: center;
}

.page-contact__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-color-light);
}

.page-contact__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: var(--secondary-color);
  color: var(--text-color-dark); /* Dark text on gold button */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--shadow-medium);
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-contact__cta-button:hover {
  background-color: #e6b300; /* Darker gold on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-contact__cta-button--secondary {
  background-color: var(--text-color-light); /* White background */
  color: var(--primary-color); /* Primary color text */
  border: 2px solid var(--primary-color);
}

.page-contact__cta-button--secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-color-light); /* White text on primary color */
  border-color: var(--text-color-light);
}

/* Contact Info Section */
.page-contact__info-section {
  padding: 80px 0;
  background-color: var(--primary-color); /* Dark section for contrast */
  color: var(--text-color-light);
}

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

.page-contact__contact-item {
  background-color: var(--card-bg-dark-section); /* Semi-transparent white card */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-contact__contact-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-contact__contact-icon {
  width: 80px; /* Display size, image itself is 200x200 */
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__contact-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-contact__contact-text {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--text-color-light);
}

.page-contact__contact-link,
.page-contact__contact-address {
  display: block;
  font-size: 17px;
  font-weight: bold;
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-contact__contact-link:hover {
  color: #e6b300;
  text-decoration: underline;
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 80px 0;
  background-color: var(--bg-dark); /* Dark background */
  color: var(--text-color-light);
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: var(--card-bg-form); /* Slightly lighter dark card */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.page-contact__form-label {
  display: block;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-color-light);
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.2); /* Dark input field */
  color: var(--text-color-light);
  font-size: 16px;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: var(--secondary-color);
  background-color: rgba(0, 0, 0, 0.3); /* Slightly darker on focus */
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.3); /* Gold glow on focus */
}

.page-contact__form-textarea {
  resize: vertical;
  min-height: 120px;
}

.page-contact__submit-button {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background-color: var(--secondary-color);
  color: var(--text-color-dark); /* Dark text on gold button */
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px var(--shadow-medium);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-contact__submit-button:hover {
  background-color: #e6b300; /* Darker gold on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
  background-color: var(--bg-light); /* Light background for FAQ */
  color: var(--text-color-dark); /* Dark text for light background */
}

.page-contact__faq-section .page-contact__section-title,
.page-contact__faq-section .page-contact__section-description {
  color: var(--text-color-dark); /* Override for light background */
}

.page-contact__faq-section .page-contact__section-title {
  color: var(--primary-color); /* Primary color for FAQ title */
}

.page-contact__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow-light);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-bg-faq); /* White background for question */
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-contact__faq-question:hover {
  background: #f0f0f0;
  border-color: #d0d0d0;
}

.page-contact__faq-question:active {
  background: #eeeeee;
}

.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-color-dark);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Change to X or rotate */
}

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  background: #fdfdfd; /* Light background for answer */
  color: var(--text-color-dark);
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Social Section */
.page-contact__social-section {
  padding: 80px 0;
  background-color: var(--primary-color); /* Dark section for social links */
  color: var(--text-color-light);
}

.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.page-contact__social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-color-light);
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s ease, transform 0.3s ease;
  max-width: 100px; /* Limit width for small screens */
  text-align: center;
}

.page-contact__social-link:hover {
  color: var(--secondary-color);
  transform: translateY(-5px);
}

.page-contact__social-icon {
  width: 60px; /* Display size, image itself is 200x200 */
  height: 60px;
  object-fit: contain;
  margin-bottom: 10px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-contact {
    padding-top: 10px !important; /* Adjust for fixed header on mobile */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-contact__container {
    padding: 0 15px;
  }

  .page-contact__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

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

  /* Hero Section */
  .page-contact__hero-section {
    padding: 60px 0;
  }

  .page-contact__hero-title {
    font-size: 36px;
  }

  .page-contact__hero-description {
    font-size: 18px;
  }

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

  .page-contact__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
  }

  /* Contact Info Section */
  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__social-section {
    padding: 40px 0;
  }

  .page-contact__contact-item {
    padding: 25px;
  }

  .page-contact__contact-icon {
    width: 60px;
    height: 60px;
  }

  .page-contact__contact-title {
    font-size: 20px;
  }

  .page-contact__contact-link,
  .page-contact__contact-address {
    font-size: 16px;
  }

  /* Contact Form Section */
  .page-contact__contact-form {
    padding: 30px 20px;
  }

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

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

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

  /* FAQ Section */
  .page-contact__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-contact__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-contact__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-contact__faq-answer {
    padding: 0 15px;
  }
  
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px !important;
  }

  /* Social Section */
  .page-contact__social-link {
    font-size: 14px;
    max-width: 80px;
  }

  .page-contact__social-icon {
    width: 50px;
    height: 50px;
  }

  /* Image responsive adjustments */
  .page-contact img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__contact-grid,
  .page-contact__contact-item,
  .page-contact__contact-form,
  .page-contact__faq-list,
  .page-contact__faq-item,
  .page-contact__social-links,
  .page-contact__social-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left: 15px; */ /* Handled by .page-contact__container */
    /* padding-right: 15px; */ /* Handled by .page-contact__container */
    overflow: hidden !important;
  }
}