/* style/contact.css */

:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0a0a0a;
  --bg-dark-lightened: #1e1e1e;
  --border-color: #e0e0e0;
}

.page-contact {
  color: var(--text-light); /* Default text color for sections directly on body background */
  background-color: var(--bg-dark); /* Inherits from body, but explicitly set for clarity */
  padding-top: 120px; /* Desktop: Adjust for fixed header */
}

.page-contact__hero-banner {
  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), #0056b3);
  color: var(--text-light);
  overflow: hidden;
}

.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;
  z-index: 2;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  max-width: 800px; /* Limit image width */
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__hero-title {
  font-size: 3.5em;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact__hero-subtitle {
  font-size: 1.2em;
  max-width: 800px;
  line-height: 1.6;
  margin-bottom: 30px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

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

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

.page-contact__main-content-section {
  padding: 60px 20px;
  background-color: var(--bg-dark-lightened); /* Slightly lighter dark background */
  color: var(--text-light);
}

.page-contact__main-content-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-contact__contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.page-contact__details {
  background: rgba(255, 255, 255, 0.05); /* Semi-transparent white on dark */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__details-title,
.page-contact__form-title {
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-light);
  text-align: center;
}

.page-contact__details-description,
.page-contact__form-description {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 25px;
  color: #cccccc;
}

.page-contact__contact-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-contact__contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.6;
}

.page-contact__contact-label {
  font-weight: bold;
  color: var(--secondary-color);
  min-width: 120px;
  margin-right: 10px;
}

.page-contact__contact-link,
.page-contact__contact-text {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-contact__contact-link:hover {
  color: var(--secondary-color);
}

.page-contact__support-note {
  font-style: italic;
  color: #cccccc;
  font-size: 1em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 20px;
  text-align: center;
}

.page-contact__form-container {
  background: var(--text-light); /* White background for the form */
  color: var(--text-dark); /* Dark text for the form */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1em;
  background-color: #f8f8f8;
  color: var(--text-dark);
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #999999;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
  outline: none;
}

.page-contact__submit-button {
  display: block;
  width: 100%;
  padding: 15px 25px;
  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, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

.page-contact__submit-button:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3);
}

.page-contact__faq-section {
  padding: 60px 20px;
  background-color: var(--bg-dark); /* Directly on body background */
  color: var(--text-light);
}

.page-contact__faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-contact__faq-main-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-contact__faq-intro {
  font-size: 1.1em;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 40px;
  color: #cccccc;
}

.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.08); /* Lighter dark for question */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-contact__faq-question:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-light);
  pointer-events: none;
}

.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  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); /* Rotate '+' to 'x' or use '-' */
}

.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: #f9f9f9; /* Light background for answer */
  color: var(--text-dark); /* Dark text for answer */
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

.page-contact__faq-answer p {
  margin: 0;
  line-height: 1.7;
  font-size: 1em;
}

.page-contact__faq-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

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

.page-contact__blog-section {
  padding: 60px 20px;
  background-color: var(--bg-dark-lightened); /* Slightly lighter dark background */
  color: var(--text-light);
}

.page-contact__blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-contact__blog-main-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-contact__blog-intro {
  font-size: 1.1em;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 40px;
  color: #cccccc;
}

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

.page-contact__blog-card {
  background: var(--text-light); /* White background for blog cards */
  color: var(--text-dark); /* Dark text for blog cards */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-contact__blog-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-contact__blog-content {
  padding: 25px;
}

.page-contact__blog-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-contact__blog-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-contact__blog-title a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.page-contact__blog-excerpt {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
}

.page-contact__blog-readmore {
  display: inline-block;
  padding: 10px 20px;
  background: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.95em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-contact__blog-readmore:hover {
  background: #e0ac00;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 3em;
  }
  .page-contact__hero-subtitle {
    font-size: 1em;
  }
  .page-contact__contact-grid {
    grid-template-columns: 1fr;
  }
  .page-contact__details-title,
  .page-contact__form-title {
    font-size: 2em;
  }
  .page-contact__faq-main-title,
  .page-contact__blog-main-title {
    font-size: 2em;
  }
  .page-contact__blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-contact {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
    font-size: 15px;
    line-height: 1.6;
  }
  .page-contact__hero-banner {
    padding: 40px 15px;
  }
  .page-contact__hero-title {
    font-size: 2.5em;
  }
  .page-contact__hero-subtitle {
    font-size: 0.9em;
  }
  .page-contact__cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-contact__main-content-section,
  .page-contact__faq-section,
  .page-contact__blog-section {
    padding: 30px 15px;
  }
  .page-contact__contact-grid {
    gap: 30px;
  }
  .page-contact__details,
  .page-contact__form-container {
    padding: 25px;
  }
  .page-contact__details-title,
  .page-contact__form-title {
    font-size: 1.8em;
  }
  .page-contact__details-description,
  .page-contact__form-description {
    font-size: 0.95em;
  }
  .page-contact__contact-item {
    font-size: 0.95em;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
    margin-bottom: 15px;
  }
  .page-contact__submit-button {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-contact__faq-main-title,
  .page-contact__blog-main-title {
    font-size: 1.8em;
  }
  .page-contact__faq-intro,
  .page-contact__blog-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-contact__faq-question {
    padding: 15px;
  }
  .page-contact__faq-question h3 {
    font-size: 1em;
  }
  .page-contact__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px !important;
  }
  .page-contact__blog-thumbnail {
    height: 180px;
  }
  .page-contact__blog-title {
    font-size: 1.2em;
  }
  .page-contact__blog-excerpt {
    font-size: 0.9em;
  }
  .page-contact__blog-readmore {
    padding: 8px 15px;
    font-size: 0.85em;
  }

  /* Mobile image specific rules */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-contact__hero-image {
    max-width: 100% !important;
    width: 100% !important;
  }
  .page-contact__hero-container,
  .page-contact__main-content-container,
  .page-contact__faq-container,
  .page-contact__blog-container,
  .page-contact__details,
  .page-contact__form-container,
  .page-contact__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
}