/* style/contact.css */
:root {
  --primary-color: #4A148C;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f8f8f8;
  --background-medium: #e0e0e0;
  --background-dark: #222222;
  --border-color: #e0e0e0;
}

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

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

.page-contact h1 {
  font-size: 3em;
  text-align: center;
  color: var(--text-light);
}

.page-contact h2 {
  font-size: 2.5em;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 30px;
}

.page-contact h3 {
  font-size: 1.8em;
  margin-bottom: 15px;
}

.page-contact p {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-contact .hero-contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #6A1B9A 100%); /* Adjusted gradient for better contrast */
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.page-contact .hero-contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.page-contact .hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-contact .hero-content h1 {
  margin-top: 0;
  font-size: 3.5em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact .hero-content p {
  font-size: 1.2em;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #e0e0e0;
}

.page-contact .cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-contact .cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-contact .cta-button.primary {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.page-contact .cta-button.primary:hover {
  background: #FFEC8B;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-contact .cta-button.secondary {
  background: #ffffff;
  color: var(--primary-color);
}

.page-contact .cta-button.secondary:hover {
  background: var(--background-medium);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-contact .hero-image {
  width: 100%;
  max-width: 1200px;
  margin-top: 40px;
  position: relative;
  z-index: 2;
}

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

.page-contact .contact-methods-section,
.page-contact .contact-form-section,
.page-contact .faq-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
}

.page-contact .contact-methods-section p,
.page-contact .contact-form-section p,
.page-contact .faq-section p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.05em;
  color: #555555;
}

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

.page-contact .method-card {
  background: var(--background-light);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 320px; /* Ensure cards have similar height */
}

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

.page-contact .method-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-contact .method-card h3 {
  color: var(--primary-color);
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-contact .method-card p {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  text-align: center;
}

.page-contact .contact-detail {
  font-weight: bold;
  color: var(--primary-color);
  font-size: 1.1em;
  margin-top: 10px;
}

.page-contact .btn-contact {
  display: inline-block;
  background: var(--primary-color);
  color: var(--text-light);
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: auto; /* Push button to bottom */
}

.page-contact .btn-contact:hover {
  background: #6A1B9A;
  transform: translateY(-2px);
}

.page-contact .contact-form {
  max-width: 700px;
  margin: 40px auto 0 auto;
  padding: 40px;
  background: var(--background-light);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

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

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

.page-contact .form-group input[type="text"],
.page-contact .form-group input[type="email"],
.page-contact .form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1em;
  color: var(--text-dark);
  background-color: #ffffff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact .form-group input:focus,
.page-contact .form-group textarea:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(var(--secondary-color-rgb), 0.2);
  outline: none;
}

.page-contact .form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.page-contact .submit-button {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-contact .submit-button:hover {
  background: #6A1B9A;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* FAQ Section */
.page-contact .faq-container {
  margin-top: 40px;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #fdfdfd;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.faq-question h3 {
  margin: 0;
  font-size: 1.25em;
  color: var(--primary-color);
  flex-grow: 1;
  text-align: left;
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
  margin-left: 15px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: var(--background-light);
  color: #555555;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 15px 25px 25px 25px;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--primary-color);
}

.faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.7;
  text-align: left;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact .hero-content h1 {
    font-size: 3em;
  }
  .page-contact h2 {
    font-size: 2em;
  }
  .page-contact h3 {
    font-size: 1.6em;
  }
  .page-contact .hero-image img {
    max-height: 400px;
  }
  .page-contact .methods-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-contact .method-card {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .page-contact .hero-contact-section {
    padding: 60px 15px;
  }
  .page-contact .hero-content h1 {
    font-size: 2.5em;
  }
  .page-contact .hero-content p {
    font-size: 1.1em;
  }
  .page-contact .cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-contact .cta-button {
    width: 100%;
    max-width: 300px;
  }
  .page-contact .hero-image {
    margin-top: 30px;
  }
  .page-contact .hero-image img {
    border-radius: 8px;
  }
  .page-contact .contact-methods-section,
  .page-contact .contact-form-section,
  .page-contact .faq-section {
    padding: 40px 15px;
    margin-bottom: 30px;
  }
  .page-contact h2 {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 25px;
  }
  .page-contact h3 {
    font-size: 1.4em;
  }
  .page-contact .methods-grid {
    gap: 20px;
  }
  .page-contact .method-card {
    padding: 25px;
    min-height: 280px;
  }
  .page-contact .method-icon {
    width: 80px;
    height: 80px;
  }
  .page-contact .contact-form {
    padding: 30px;
  }
  .page-contact .form-group label {
    font-size: 1em;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 12px 20px 20px 20px;
  }
}

@media (max-width: 480px) {
  .page-contact .hero-content h1 {
    font-size: 2em;
  }
  .page-contact .hero-content p {
    font-size: 1em;
  }
  .page-contact h2 {
    font-size: 1.6em;
  }
  .page-contact h3 {
    font-size: 1.2em;
  }
  .page-contact .method-card {
    min-height: 260px;
  }
  .page-contact .method-icon {
    width: 70px;
    height: 70px;
  }
  .page-contact .form-group input,
  .page-contact .form-group textarea {
    padding: 10px;
    font-size: 0.95em;
  }
  .page-contact .submit-button {
    font-size: 1.1em;
    padding: 12px 15px;
  }
}