/* style/contact.css */

/* Base Styles for the Contact Page */
.page-contact {
  color: #FFF6D6; /* Text Main from custom palette, for dark background #0A0A0A */
  background-color: #0A0A0A; /* Background color from custom palette */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* Add some padding at the bottom */
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #111111; /* Card BG for this section */
  overflow: hidden; /* Ensure no overflow */
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px; /* Space between image and content */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-contact__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
}

.page-contact__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive H1 font size */
  color: #F2C14E; /* Main brand color */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-contact__description {
  font-size: 1.15rem;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-contact__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  width: 100%; /* Ensure container takes full width for wrapping */
  max-width: 100%;
  box-sizing: border-box;
}

.page-contact__cta-buttons--center {
  justify-content: center;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-flex; /* Use inline-flex for button-like behavior */
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button gradient */
  color: #0A0A0A; /* Dark text for bright button */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-contact__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
  opacity: 0.9;
}

.page-contact__btn-secondary {
  background-color: transparent;
  color: #F2C14E; /* Main brand color */
  border: 2px solid #F2C14E; /* Main brand color border */
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.2);
}

.page-contact__btn-secondary:hover {
  background-color: #F2C14E; /* Main brand color */
  color: #0A0A0A; /* Dark text for hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(242, 193, 78, 0.4);
}

/* Section Titles and Descriptions */
.page-contact__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: #F2C14E; /* Main brand color */
  text-align: center;
  margin-top: 60px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__section-description {
  font-size: 1.05rem;
  color: #FFF6D6; /* Text Main */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Contact Methods Section */
.page-contact__contact-methods-section,
.page-contact__faq-section,
.page-contact__info-for-inquiry-section,
.page-contact__global-presence-section,
.page-contact__social-media-section,
.page-contact__why-choose-winph-section {
  padding: 60px 0;
  background-color: #0A0A0A; /* Background color */
}

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

.page-contact__card {
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF6D6; /* Text Main */
  border: 1px solid #3A2A12; /* Border color */
}

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

.page-contact__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure image behaves as a block element */
}

.page-contact__card-title {
  font-size: 1.5rem;
  color: #F2C14E; /* Main brand color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__card-text {
  font-size: 1rem;
  margin-bottom: 25px;
  color: #FFF6D6; /* Text Main */
}

.page-contact__email-link,
.page-contact__phone-link,
.page-contact__text-link {
  color: #FFD36B; /* Glow color */
  text-decoration: none;
  font-weight: bold;
}

.page-contact__email-link:hover,
.page-contact__phone-link:hover,
.page-contact__text-link:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-contact__faq-list {
  margin-top: 40px;
}

.page-contact__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #111111; /* Card BG */
  color: #F2C14E; /* Main brand color */
  font-size: 1.2rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
  background-color: #1a1a1a;
}

.page-contact__faq-question h3 {
  margin: 0;
  color: inherit; /* Inherit color from parent */
  font-size: 1.2rem;
}

.page-contact__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFD36B; /* Glow color */
}

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

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px; /* Horizontal padding, vertical padding is 0 when collapsed */
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6; /* Text Main */
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 25px 25px; /* Vertical padding when expanded */
}

.page-contact__faq-answer p {
  margin: 0;
  color: #FFF6D6; /* Text Main */
}

/* Info for Inquiry Section */
.page-contact__info-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-contact__info-item {
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: #FFF6D6; /* Text Main */
  border: 1px solid #3A2A12; /* Border color */
}

.page-contact__info-item-title {
  font-size: 1.4rem;
  color: #F2C14E; /* Main brand color */
  margin-bottom: 10px;
  font-weight: bold;
}

/* Global Presence Section */
.page-contact__global-map-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Social Media Section */
.page-contact__social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 40px;
}

.page-contact__social-icon {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__social-icon:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.5); /* Glow color shadow */
}

.page-contact__social-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* Ensure image behaves as a block element */
}

/* Why Choose Winph Section */
.page-contact__features-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-contact__features-list li {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #FFF6D6; /* Text Main */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.page-contact__features-list li strong {
  color: #F2C14E; /* Main brand color */
}

.page-contact__features-list li::before {
  content: '✓';
  color: #FFD36B; /* Glow color */
  font-size: 1.5rem;
  line-height: 1;
  font-weight: bold;
  flex-shrink: 0;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-contact__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-contact__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body padding-top is handled by shared.css */
  }

  .page-contact__hero-content {
    padding: 0 15px;
  }

  .page-contact__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-contact__description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-contact__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    padding: 0 15px; /* Add padding to buttons container */
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-contact__container {
    padding: 0 15px;
  }

  .page-contact__section-title {
    font-size: clamp(1.6rem, 5.5vw, 2.2rem);
    margin-top: 40px;
    margin-bottom: 15px;
  }

  .page-contact__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-contact__method-cards,
  .page-contact__info-list {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

  .page-contact__card,
  .page-contact__info-item {
    padding: 25px;
  }

  .page-contact__card-title {
    font-size: 1.3rem;
  }

  .page-contact__faq-question {
    padding: 15px 20px;
    font-size: 1.1rem;
  }
  
  .page-contact__faq-question h3 {
    font-size: 1.1rem;
  }

  .page-contact__faq-answer {
    padding: 0 20px;
  }
  
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 10px 20px 20px 20px;
  }

  .page-contact__global-map-image {
    margin: 30px auto;
  }

  .page-contact__social-links {
    gap: 15px;
  }
  
  .page-contact__social-icon {
    width: 50px;
    height: 50px;
  }

  .page-contact__social-icon img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-contact__features-list li {
    font-size: 1rem;
    padding: 15px;
  }
  
  /* Mobile image responsiveness */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-contact__hero-section,
  .page-contact__contact-methods-section,
  .page-contact__faq-section,
  .page-contact__info-for-inquiry-section,
  .page-contact__global-presence-section,
  .page-contact__social-media-section,
  .page-contact__why-choose-winph-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Videos are not explicitly in contact page, but for safety: */
  .page-contact__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-contact__video-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-contact__main-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }
  .page-contact__section-title {
    font-size: clamp(1.4rem, 6.5vw, 2rem);
  }
  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    padding: 10px 15px;
    font-size: 0.95rem;
  }
  .page-contact__card-title {
    font-size: 1.2rem;
  }
  .page-contact__faq-question {
    font-size: 1rem;
  }
  .page-contact__faq-question h3 {
    font-size: 1rem;
  }
}