/* style/contact.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #000080;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #121212;
  --background-light: #f5f5f5;
  --border-color: #333;
  --card-background-dark: rgba(255, 255, 255, 0.08);
  --card-background-light: #ffffff;
}

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

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

/* Fixed Navbar Spacing */
.page-contact__hero-section {
  padding-top: 120px; /* Adjust based on actual header height */
}

/* Sections General */
.page-contact__hero-section,
.page-contact__form-section,
.page-contact__faq-section,
.page-contact__brand-section,
.page-contact__blog-section,
.page-contact__copyright-section {
  padding: 60px 0;
  text-align: center;
}

.page-contact__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-contact__light-bg {
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-contact__section-title {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-contact__section-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

/* Hero Section */
.page-contact__main-title {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact__description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

.page-contact__contact-info {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.page-contact__info-item {
  background: var(--card-background-dark);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  flex: 1 1 300px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__info-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-contact__info-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-contact__info-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

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

.page-contact__info-link {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact__info-link:hover {
  background: #e6c200;
  transform: translateY(-2px);
}

/* Contact Form Section */
.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--card-background-light);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  background-color: #fcfcfc;
  color: var(--text-dark);
}

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

.page-contact__form-textarea {
  resize: vertical;
}

.page-contact__submit-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-dark);
  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 rgba(0, 0, 0, 0.15);
  width: auto;
}

.page-contact__submit-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-contact__faq-list {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--card-background-dark);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-background-dark);
  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: rgba(255, 255, 255, 0.12);
  border-color: #555;
}

.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  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(--primary-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);
}

.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;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 5px 5px;
  color: var(--text-light);
}

.page-contact__faq-answer p {
  margin: 0;
  font-size: 15px;
  color: var(--text-light);
}

/* Brand Section */
.page-contact__brand-content {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.page-contact__brand-item {
  background: var(--card-background-light);
  color: var(--text-dark);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  flex: 1 1 300px;
  max-width: 380px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__brand-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.page-contact__brand-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-contact__brand-text {
  font-size: 16px;
  color: var(--text-dark);
}

/* Blog Section */
.page-contact__blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-contact__blog-item {
  background: var(--card-background-dark);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.page-contact__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-contact__blog-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-contact__blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

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

.page-contact__blog-item-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-contact__blog-item-excerpt {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 15px;
}

.page-contact__blog-item-date {
  font-size: 14px;
  color: #aaa;
  display: block;
}

/* Copyright Section */
.page-contact__copyright-section {
  padding: 30px 0;
  background-color: var(--background-dark);
  color: #888;
  font-size: 14px;
}

.page-contact__copyright-text {
  margin: 0;
}

/* General responsive styles */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-contact__btn-primary {
  background: var(--primary-color);
  color: var(--text-dark);
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-contact__main-title {
    font-size: 40px;
  }
  .page-contact__section-title {
    font-size: 32px;
  }
  .page-contact__description,
  .page-contact__section-description {
    font-size: 18px;
  }
  .page-contact__contact-info {
    flex-direction: column;
    align-items: center;
  }
  .page-contact__info-item {
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding-top: 100px !important; /* Mobile adjust */
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__container {
    padding: 0 15px;
  }
  .page-contact__hero-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__brand-section,
  .page-contact__blog-section,
  .page-contact__copyright-section {
    padding: 40px 0;
  }
  .page-contact__main-title {
    font-size: 32px;
  }
  .page-contact__section-title {
    font-size: 28px;
  }
  .page-contact__description,
  .page-contact__section-description {
    font-size: 16px;
  }
  .page-contact__info-item {
    padding: 25px;
    flex-basis: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-contact__info-icon {
    width: 60px;
    height: 60px;
  }
  .page-contact__info-title {
    font-size: 20px;
  }
  .page-contact__info-text {
    font-size: 14px;
  }
  .page-contact__info-link,
  .page-contact__submit-button {
    padding: 12px 25px;
    font-size: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-contact__contact-form {
    padding: 30px 20px;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 12px;
    font-size: 15px;
  }
  .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;
  }
  .page-contact__brand-item {
    flex-basis: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-contact__blog-list {
    grid-template-columns: 1fr;
  }
  .page-contact img,
  .page-contact__brand-image,
  .page-contact__blog-image,
  .page-contact__info-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover !important;
  }
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__contact-info,
  .page-contact__form-section,
  .page-contact__contact-form,
  .page-contact__faq-list,
  .page-contact__brand-content,
  .page-contact__blog-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-contact__blog-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}