/* style/contact.css */
.page-contact {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
}

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

.page-contact__dark-bg {
  background-color: #1a1a2e;
  color: #ffffff;
}

.page-contact__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-contact__hero-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  min-height: 600px;
  padding-top: var(--header-offset, 120px);
}

.page-contact__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.page-contact__hero-section .page-contact__container {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

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

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

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-contact__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
  margin: 10px;
}

.page-contact__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

.page-contact__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  margin: 10px;
}

.page-contact__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87c0;
  border-color: #1e87c0;
}

.page-contact__info-section,
.page-contact__form-section,
.page-contact__faq-section,
.page-contact__social-section,
.page-contact__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-contact__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__info-section .page-contact__section-title,
.page-contact__faq-section .page-contact__section-title,
.page-contact__cta-section .page-contact__section-title {
  color: #26A9E0;
}

.page-contact__form-section .page-contact__section-title,
.page-contact__social-section .page-contact__section-title {
  color: #ffffff;
}

.page-contact__section-intro {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__info-section .page-contact__section-intro,
.page-contact__faq-section .page-contact__section-intro,
.page-contact__cta-section .page-contact__section-intro {
  color: #555555;
}

.page-contact__form-section .page-contact__section-intro,
.page-contact__social-section .page-contact__section-intro {
  color: #f0f0f0;
}

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

.page-contact__method-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  box-sizing: border-box;
}

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

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

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

.page-contact__method-description {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-contact__method-card .page-contact__btn-secondary {
  margin-top: auto;
}

.page-contact__contact-form {
  max-width: 600px;
  margin: 40px auto 0;
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  text-align: left;
}

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

.page-contact__form-label {
  display: block;
  font-size: 1.1em;
  margin-bottom: 8px;
  color: #ffffff;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #444444;
  border-radius: 8px;
  font-size: 1em;
  background-color: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  box-sizing: border-box;
}

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

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

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

.page-contact__contact-form .page-contact__btn-primary {
  width: auto;
  padding: 12px 40px;
  margin-top: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__faq-list {
  margin-top: 40px;
  text-align: left;
}

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

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #eeeeee;
  transition: background-color 0.3s ease;
}

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

.page-contact__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

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

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
  background-color: #f9f9f9;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px 25px;
}

.page-contact__faq-answer p {
  margin: 0;
  padding: 0;
}

.page-contact__faq-image {
  margin-top: 50px;
  border-radius: 12px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-contact__social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 50px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  color: #ffffff;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__social-facebook {
  background-color: #3b5998;
}

.page-contact__social-facebook:hover {
  background-color: #2d4373;
}

.page-contact__social-telegram {
  background-color: #0088cc;
}

.page-contact__social-telegram:hover {
  background-color: #006b9f;
}

.page-contact__social-youtube {
  background-color: #ff0000;
}

.page-contact__social-youtube:hover {
  background-color: #cc0000;
}

.page-contact__social-image {
  margin-top: 50px;
  border-radius: 12px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 2.8em;
  }
  .page-contact__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding: 80px 0;
    min-height: 500px;
  }
  .page-contact__hero-title {
    font-size: 2.2em;
  }
  .page-contact__hero-description {
    font-size: 1em;
  }
  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__section-intro {
    font-size: 0.95em;
  }
  .page-contact__contact-methods {
    grid-template-columns: 1fr;
  }
  .page-contact__contact-form {
    padding: 30px 20px;
  }
  .page-contact__faq-question {
    font-size: 1.05em;
    padding: 15px 20px;
  }
  .page-contact__faq-answer {
    padding: 0 20px;
  }
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px 20px 20px;
  }
  .page-contact__social-links {
    flex-direction: column;
    align-items: center;
  }
  .page-contact__social-button {
    width: 80%;
    max-width: 300px;
  }

  /* Mobile responsive for images */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile responsive for containers */
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__contact-form,
  .page-contact__faq-list,
  .page-contact__social-links,
  .page-contact__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile responsive for buttons */
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact a[class*="button"],
  .page-contact a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Specific padding for hero section on mobile if needed */
  .page-contact__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: 1.8em;
  }
  .page-contact__section-title {
    font-size: 1.5em;
  }
  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
  .page-contact__method-icon {
    width: 80px;
    height: 80px;
  }
}