/* Base styles for page-contact */
.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #ffffff); /* Fallback to white if var not defined */
}

.page-contact__section {
  padding: 40px 0;
  margin-bottom: 20px;
}

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

.page-contact__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 15px;
}

.page-contact__section-description {
  font-size: 18px;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Ensure image is above text */
  align-items: center;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  background: linear-gradient(135deg, #26A9E0, #1a7bbd);
  overflow: hidden;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  max-width: 1200px; /* Max width for image to not be too wide */
  display: block;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-contact__hero-content {
  text-align: center;
  padding: 20px 15px 40px;
  max-width: 900px;
  color: #ffffff;
}

.page-contact__hero-title {
  font-size: 48px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* CTA Buttons */
.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Important for mobile */
  box-sizing: border-box; /* Important for mobile */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-contact__cta-button--primary {
  background: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-contact__cta-button--primary:hover {
  background: #d46c06;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-contact__cta-button--secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-contact__cta-button--secondary:hover {
  background: #f0f0f0;
  color: #1a7bbd;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-contact__cta-container {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
}

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

.page-contact__method-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-contact__method-card:hover {
  transform: translateY(-5px);
}

.page-contact__method-icon {
  width: 100%; /* Ensure image fills card width */
  max-width: 250px; /* Limit max width for smaller images */
  height: auto;
  object-fit: contain;
  margin: 0 auto 20px;
  border-radius: 8px;
}

.page-contact__method-title {
  font-size: 24px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-contact__method-description {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow description to take available space */
}

/* Contact Form */
.page-contact__form {
  text-align: left;
  margin-top: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-contact__form-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 8px;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #26A9E0;
  box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.2);
  outline: none;
}

.page-contact__form-textarea {
  resize: vertical;
  min-height: 100px;
}

.page-contact__form button {
  width: 100%;
  margin-top: 10px;
}

/* Social Links */
.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.page-contact__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-contact__social-icon--facebook { background: #3b5998; }
.page-contact__social-icon--twitter { background: #1da1f2; }
.page-contact__social-icon--telegram { background: #0088cc; }

.page-contact__social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* FAQ Section */
details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-contact__faq-item summary.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-contact__faq-item summary.page-contact__faq-question::-webkit-details-marker {
  display: none;
}
details.page-contact__faq-item summary.page-contact__faq-question:hover {
  background: #f5f5f5;
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}
.page-contact__faq-answer p {
    margin: 0;
    padding: 0;
}

/* Why Choose Us Section */
.page-contact__dark-section {
  background: #26A9E0; /* Brand color as background */
  color: #ffffff;
}
.page-contact__dark-section .page-contact__section-title,
.page-contact__dark-section .page-contact__section-description,
.page-contact__dark-section .page-contact__feature-title,
.page-contact__dark-section .page-contact__feature-description {
  color: #ffffff;
}

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

.page-contact__feature-item {
  text-align: center;
  padding: 25px;
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  border-radius: 12px;
  transition: background-color 0.3s ease;
}

.page-contact__feature-item:hover {
  background: rgba(255, 255, 255, 0.15);
}

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

.page-contact__feature-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-contact__feature-description {
  font-size: 16px;
  color: #f0f0f0;
}

/* Address Info Section */
.page-contact__address-details {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  max-width: 800px;
  margin: 40px auto;
  text-align: left;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-contact__address-details p {
  margin-bottom: 10px;
  font-size: 16px;
}

.page-contact__address-details strong {
  color: #26A9E0;
}

.page-contact__office-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 30px auto 0;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  object-fit: cover;
}


/* --- Responsive Design --- */

/* Mobile general image/container adaptation */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-contact__section,
.page-contact__card,
.page-contact__container,
.page-contact__cta-container,
.page-contact__methods-grid,
.page-contact__features-grid,
.page-contact__social-links {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

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

  .page-contact__hero-section {
    padding-top: 8px; /* Slightly less padding on mobile */
  }

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

  .page-contact__hero-description {
    font-size: 16px;
  }

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

  .page-contact__section-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

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

  .page-contact__cta-container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__methods-grid {
    grid-template-columns: 1fr; /* Stack cards vertically */
    gap: 20px;
    padding: 0 15px; /* Add horizontal padding to grid */
  }

  .page-contact__method-card {
    padding: 20px;
  }

  .page-contact__method-icon {
    max-width: 200px;
  }

  .page-contact__method-title {
    font-size: 20px;
  }

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

  .page-contact__social-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  details.page-contact__faq-item summary.page-contact__faq-question {
    padding: 15px;
  }
  .page-contact__faq-qtext {
    font-size: 15px;
  }
  details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 15px 15px;
  }

  .page-contact__features-grid {
    grid-template-columns: 1fr; /* Stack features vertically */
    gap: 20px;
    padding: 0 15px;
  }
  
  .page-contact__feature-item {
      padding: 20px;
  }

  .page-contact__feature-title {
    font-size: 20px;
  }
  
  .page-contact__address-details {
      margin: 20px auto;
      padding: 20px;
      margin-left: 15px;
      margin-right: 15px;
  }
  
  .page-contact__office-image {
      margin-left: 15px;
      margin-right: 15px;
  }

  /* Force mobile image adaptation */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Ensure containers don't cause horizontal scroll */
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__cta-container,
  .page-contact__methods-grid,
  .page-contact__features-grid,
  .page-contact__social-links {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent overflow */
  }
}