/* style/contact.css */

/* General styles for the contact page */
.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is #000000 from shared.css */
  padding-top: 120px; /* Desktop: Adjust for fixed header, ensures content is not covered */
}

/* Container for content sections */
.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section styling */
.page-contact__hero-section,
.page-contact__methods-section,
.page-contact__form-section,
.page-contact__faq-section,
.page-contact__why-choose-us {
  padding: 60px 0;
}

.page-contact__dark-section {
  background-color: #1a1a1a; /* Dark background for sections */
  color: #ffffff;
}

.page-contact__section-title {
  font-size: 36px;
  color: var(--primary-color, #CC0000); /* Use primary color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__main-title {
  font-size: 48px;
  color: var(--primary-color, #CC0000);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__description,
.page-contact__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

/* Call to Action Buttons */
.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Ensure buttons wrap on mobile */
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background: var(--primary-color, #CC0000);
  color: #ffffff;
}

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

.page-contact__btn-secondary {
  background: #ffffff;
  color: var(--primary-color, #CC0000);
  border: 2px solid var(--primary-color, #CC0000);
}

.page-contact__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Inline links within text */
.page-contact__inline-link {
  color: var(--secondary-color, #FFD700);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-contact__inline-link:hover {
  color: #e6c200;
}

/* Contact Methods Grid */
.page-contact__methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-contact__method-card {
  background: #ffffff; /* Light background for cards */
  color: #333333; /* Dark text for light background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-contact__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-contact__method-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  max-width: 100%; /* Ensure responsiveness */
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__method-title {
  font-size: 24px;
  color: var(--primary-color, #CC0000);
  margin-bottom: 15px;
}

.page-contact__method-text {
  font-size: 16px;
  margin-bottom: 25px;
}

.page-contact__method-button {
  width: 100%; /* Make buttons full width in cards */
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 5px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Contact Form */
.page-contact__contact-form {
  max-width: 700px;
  margin: 50px auto 0;
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark section */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-contact__form-label {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
  color: #f0f0f0;
  font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #555;
  border-radius: 5px;
  background: #333;
  color: #ffffff;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-contact__submit-button {
  width: 100%;
  padding: 15px 30px;
  font-size: 18px;
  border-radius: 8px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* FAQ Section */
.page-contact__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #444; /* Darker border for dark theme */
  background: #222; /* Darker background for FAQ items */
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #333; /* Darker background for question */
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff; /* White text for question */
}

.page-contact__faq-question:hover {
  background: #444;
}

.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #ffffff;
}

.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Use secondary color for toggle */
  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: #CC0000; /* Primary color when active */
  transform: rotate(45deg); /* Rotate for minus sign */
}

.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 15px;
  opacity: 0;
  color: #f0f0f0; /* Light text for answer */
  background: #2a2a2a; /* Slightly lighter dark background for answer */
}

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

.page-contact__faq-answer p {
  margin-bottom: 10px;
  color: #f0f0f0; /* Ensure paragraph text is light */
}

.page-contact__faq-answer ul {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
  color: #f0f0f0;
}

.page-contact__faq-answer li {
  margin-bottom: 5px;
  color: #f0f0f0;
}


/* Why Choose Us Section */
.page-contact__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-contact__feature-item {
  background: #ffffff; /* Light background for feature cards */
  color: #333333; /* Dark text for light background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-contact__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-contact__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__feature-title {
  font-size: 24px;
  color: var(--primary-color, #CC0000);
  margin-bottom: 15px;
}

.page-contact__feature-text {
  font-size: 16px;
}

.page-contact__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-contact__main-title {
    font-size: 40px;
  }
  .page-contact__section-title {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .page-contact {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-contact__container {
    padding: 0 15px;
  }

  .page-contact__hero-section,
  .page-contact__methods-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__why-choose-us {
    padding: 40px 0;
  }

  .page-contact__main-title {
    font-size: 32px;
  }

  .page-contact__section-title {
    font-size: 26px;
  }

  .page-contact__description,
  .page-contact__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-contact__cta-button,
  .page-contact__submit-button,
  .page-contact__method-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-contact__methods-grid,
  .page-contact__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-contact__method-card,
  .page-contact__feature-item {
    padding: 25px;
  }

  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
    font-size: 15px;
  }

  /* FAQ mobile adjustments */
  .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;
  }
  
  /* Ensure all image containers are responsive */
  .page-contact__container,
  .page-contact__methods-grid,
  .page-contact__method-card,
  .page-contact__form-section,
  .page-contact__contact-form,
  .page-contact__faq-list,
  .page-contact__faq-item,
  .page-contact__features-grid,
  .page-contact__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}