/* style/contact.css */
:root {
  --primary-color: #0A2463;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f4f7f6;
  --background-dark: #071a3d;
  --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 a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-contact a:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

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

/* Hero Section */
.page-contact-hero {
  position: relative;
  width: 100%;
  height: 500px; /* Adjusted height for contact page banner */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--text-light);
  padding: 0 20px;
}

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

.page-contact-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(10, 36, 99, 0.8), rgba(255, 215, 0, 0.4));
  z-index: 2;
}

.page-contact-hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

.page-contact-hero h1 {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-contact-cta-button {
  display: inline-block;
  padding: 15px 35px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.page-contact-cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
  text-decoration: none;
}

/* Contact Methods Section */
.page-contact-methods {
  padding: 60px 0;
  background-color: var(--background-light);
}

.page-contact-methods h2 {
  text-align: center;
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 40px;
}

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

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

.page-contact-method-item {
  background-color: var(--text-light);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-contact-method-icon {
  width: 150px; /* Increased size, min 200x200px requirement for images */
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

.page-contact-method-item p {
  font-size: 1em;
  color: var(--text-dark);
  margin-bottom: 20px;
  text-align: justify;
}

.page-contact-method-item p a {
  font-weight: bold;
}

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

.page-contact-method-button:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
}

.page-contact-social-links a {
  display: inline-block;
  margin: 0 10px;
  padding: 8px 15px;
  background-color: #f0f0f0;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  color: var(--primary-color);
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-contact-social-links a:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
}

/* Contact Form Section */
.page-contact-form-section {
  padding: 60px 0;
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-contact-form-section h2 {
  text-align: center;
  font-size: 2.5em;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.page-contact-form-section p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
  color: #c0c0c0;
}

.page-contact-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: #1a3a7c; /* Darker shade of primary */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-contact-form-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--text-light);
}

.page-contact-form-group input,
.page-contact-form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #4a6cba;
  border-radius: 8px;
  background-color: #0f306e;
  color: var(--text-light);
  font-size: 1em;
  box-sizing: border-box;
}

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

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

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

.page-contact-submit-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

/* Why Contact Section */
.page-contact-why-contact {
  padding: 60px 0;
  background-color: var(--background-light);
}

.page-contact-why-contact h2 {
  text-align: center;
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 40px;
}

.page-contact-why-contact > p {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  font-size: 1.1em;
}

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

.page-contact-why-item {
  background-color: var(--text-light);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact-why-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.page-contact-why-icon {
  width: 180px; /* Increased size, min 200x200px requirement for images */
  height: 180px;
  object-fit: contain;
  margin-bottom: 25px;
  border-radius: 50%;
  background-color: var(--background-light);
  padding: 15px;
}

.page-contact-why-item h3 {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-align: center;
}

.page-contact-why-item p {
  font-size: 1em;
  color: var(--text-dark);
  text-align: justify;
}

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

.page-contact-faq h2 {
  text-align: center;
  font-size: 2.5em;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.page-contact-faq > p {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
  color: #c0c0c0;
}

.page-contact-faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #1a3a7c;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #0f306e;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.3em;
  color: var(--text-light);
}

.faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  transition: transform 0.3s ease;
  color: var(--secondary-color);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  color: #e0e0e0;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 20px 25px;
  background: #1a3a7c;
  border-top: 1px solid #2a4c8f;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact-hero h1 {
    font-size: 2.8em;
  }
  .page-contact-hero p {
    font-size: 1.1em;
  }
  .page-contact-method-grid,
  .page-contact-why-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-contact-hero {
    height: 400px;
  }
  .page-contact-hero h1 {
    font-size: 2.2em;
  }
  .page-contact-hero p {
    font-size: 1em;
  }
  .page-contact-cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-contact-methods h2,
  .page-contact-form-section h2,
  .page-contact-why-contact h2,
  .page-contact-faq h2 {
    font-size: 2em;
  }
  .page-contact-form {
    padding: 30px;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 1.5em;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-contact-hero {
    height: 350px;
    padding: 0 15px;
  }
  .page-contact-hero h1 {
    font-size: 1.8em;
  }
  .page-contact-hero p {
    font-size: 0.9em;
  }
  .page-contact-cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-contact-container {
    padding: 15px;
  }
  .page-contact-method-grid,
  .page-contact-why-grid {
    grid-template-columns: 1fr;
  }
  .page-contact-method-item,
  .page-contact-why-item {
    padding: 20px;
  }
  .page-contact-method-icon,
  .page-contact-why-icon {
    width: 120px;
    height: 120px;
  }
  .page-contact-form {
    padding: 20px;
  }
  .page-contact-form-group input,
  .page-contact-form-group textarea {
    padding: 12px;
  }
  .page-contact-submit-button {
    padding: 15px;
    font-size: 1.1em;
  }
  .faq-question h3 {
    font-size: 1em;
  }
  .faq-toggle {
    font-size: 1.3em;
  }
}