/* style/contact.css */
:root {
  --primary-color: #007BFF;
  --secondary-color: #FFC107;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #212529;
  --border-color: #e0e0e0;
}

.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

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

.page-contact-h1, .page-contact-h2, .page-contact-h3 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 25px;
  font-weight: bold;
}

.page-contact-h1 {
  font-size: 2.8em;
  margin-top: 0;
  color: var(--text-light);
}

.page-contact-h2 {
  font-size: 2.2em;
  padding-top: 40px;
}

.page-contact-h3 {
  font-size: 1.6em;
  color: var(--text-dark);
}

.page-contact p {
  margin-bottom: 15px;
  text-align: justify;
}

.page-contact a {
  color: var(--primary-color);
  text-decoration: none;
}

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

/* Hero Section */
.page-contact .hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%); /* Darker blue gradient for hero */
  color: var(--text-light);
}

.page-contact .hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-contact .hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 800px; /* Constrain image width slightly */
}

.page-contact .hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-contact .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-contact .hero-content p {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--text-light);
}

.page-contact-cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-contact-cta-button:hover {
  background: #e6a700; /* Slightly darker secondary color */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Contact Channels Section */
.page-contact .contact-channels-section {
  background: var(--bg-light);
  padding: 60px 0;
}

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

.page-contact .channel-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-contact .channel-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-contact .channel-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 20px auto;
}

.page-contact .channel-card p {
  font-size: 0.95em;
  color: #555555;
  flex-grow: 1;
}

.page-contact .channel-card strong {
  color: var(--primary-color);
}

.page-contact .channel-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  border-radius: 5px;
  margin-top: 20px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-contact .channel-button:hover {
  background: #0056b3;
  text-decoration: none;
}

/* Contact Form Section */
.page-contact .contact-form-section {
  padding: 60px 0;
  background: #ffffff;
}

.page-contact .contact-form {
  max-width: 700px;
  margin: 40px auto 0 auto;
  padding: 30px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-contact .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--text-dark);
}

.page-contact .form-group input[type="text"],
.page-contact .form-group input[type="email"],
.page-contact .form-group textarea {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1em;
  color: var(--text-dark);
  background: #fdfdfd;
}

.page-contact .form-group input::placeholder,
.page-contact .form-group textarea::placeholder {
  color: #999;
}

.page-contact .form-group textarea {
  resize: vertical;
}

.page-contact-submit-button {
  display: block;
  width: 100%;
  padding: 15px;
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-contact-submit-button:hover {
  background: #0056b3;
}

/* FAQ Section */
.page-contact .faq-section {
  background: var(--bg-light);
  padding: 60px 0;
}

.page-contact .faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ default state - answer hidden */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 15px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

/* FAQ expanded state */
.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 15px;
  border: 1px solid var(--border-color);
  border-top: none;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

/* Question style */
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 10px; /* Space between FAQ items */
}

.faq-question:hover {
  background: #f5f5f5;
}

.faq-item.active .faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-bottom: 0; /* No margin when active, answer connects */
}

/* Toggle icon */
.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  transition: transform 0.3s ease;
  color: var(--primary-color);
}

/* Commitment Section */
.page-contact .commitment-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #FFC107 0%, #ffdb6e 100%); /* Secondary color gradient */
  color: var(--text-dark);
  text-align: center;
}

.page-contact .commitment-section p {
  max-width: 900px;
  margin: 0 auto 30px auto;
  font-size: 1.1em;
  text-align: center;
}

.page-contact .commitment-section .page-contact-h2 {
  color: var(--text-dark);
}

.page-contact .commitment-section .page-contact-cta-button {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-contact .commitment-section .page-contact-cta-button:hover {
  background: #0056b3;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-contact-h1 {
    font-size: 2.2em;
  }
  .page-contact-h2 {
    font-size: 1.8em;
  }
  .page-contact-h3 {
    font-size: 1.4em;
  }
  .page-contact .hero-image {
    max-width: 600px;
  }
  .page-contact .contact-channels-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-contact .hero-section {
    padding: 40px 15px;
  }
  .page-contact .hero-image img {
    border-radius: 4px;
  }
  .page-contact .hero-content p {
    font-size: 1em;
  }
  .page-contact-cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-contact .contact-channels-grid {
    grid-template-columns: 1fr;
  }
  .page-contact .channel-card {
    padding: 25px;
  }
  .page-contact .contact-form {
    padding: 20px;
  }
  .page-contact .form-group input, .page-contact .form-group textarea {
    width: calc(100% - 20px);
  }
  .faq-question {
    padding: 12px;
  }
  .faq-question h3 {
    font-size: 1.2em;
  }
  .faq-toggle {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .page-contact-h1 {
    font-size: 1.8em;
  }
  .page-contact-h2 {
    font-size: 1.6em;
  }
  .page-contact-h3 {
    font-size: 1.2em;
  }
  .page-contact .hero-image {
    margin-bottom: 20px;
  }
  .page-contact .hero-content p {
    margin-bottom: 20px;
  }
  .page-contact .channel-icon {
    width: 80px;
    height: 80px;
  }
  .page-contact .channel-card p {
    font-size: 0.9em;
  }
  .page-contact .channel-button {
    padding: 8px 20px;
    font-size: 0.9em;
  }
  .page-contact .form-group label {
    font-size: 0.95em;
  }
  .page-contact .form-group input, .page-contact .form-group textarea {
    font-size: 0.9em;
  }
  .page-contact-submit-button {
    font-size: 1em;
  }
  .faq-question h3 {
    font-size: 1em;
  }
  .faq-toggle {
    font-size: 18px;
  }
}