/* style/contact.css */

:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --text-main-color: #1F2D3D;
  --card-bg-color: #FFFFFF;
  --page-bg-color: #F4F7FB;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color);
  background-color: var(--page-bg-color);
}

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

.page-contact__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.page-contact__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-contact__section-description {
  font-size: 18px;
  color: #555;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, header offset handled by body */
  background-color: var(--page-bg-color);
  overflow: hidden;
}

.page-contact__hero-container {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.page-contact__hero-content h1 {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--text-main-color);
  font-weight: 700;
  line-height: 1.2;
  /* No fixed font-size for H1, relying on weight and line-height */
}

.page-contact__hero-description {
  font-size: 19px;
  color: #555;
  max-width: 800px;
  margin: 0 auto 30px;
}

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

.page-contact__cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  min-width: 180px;
}

.page-contact__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-contact__btn-primary:hover {
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
  transform: translateY(-2px);
}

.page-contact__btn-secondary {
  background-color: var(--card-bg-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-contact__btn-secondary:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.2);
  transform: translateY(-2px);
}

/* Contact Methods Section */
.page-contact__contact-methods-section {
  padding: 80px 0;
  background-color: var(--page-bg-color);
}

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

.page-contact__card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--border-color);
}

.page-contact__card-image-wrapper {
  width: 100%;
  max-width: 400px;
  margin-bottom: 25px;
  border-radius: 8px;
  overflow: hidden;
}

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

.page-contact__card-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 15px;
}

.page-contact__card-text {
  font-size: 16px;
  color: #666;
  margin-bottom: 25px;
  flex-grow: 1;
  text-align: left;
}

.page-contact__form {
  width: 100%;
  text-align: left;
  margin-top: 20px;
}

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

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

.page-contact__form-group input,
.page-contact__form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  color: var(--text-main-color);
  background-color: #f9fbfc;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__form-group input:focus,
.page-contact__form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.2);
  outline: none;
}

.page-contact__form button[type="submit"] {
  width: 100%;
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  background: var(--button-gradient);
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-contact__form button[type="submit"]:hover {
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
  transform: translateY(-2px);
}

.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%;
  background-color: var(--primary-color);
  color: #ffffff;
  font-size: 0; /* Hide text, use background image or icon font for real */
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact__social-icon.page-contact__facebook {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2C6.477 2 2 6.477 2 12c0 5.016 3.655 9.18 8.44 9.934V14.88h-2.54V12h2.54V9.797c0-2.502 1.492-3.88 3.766-3.88 1.087 0 2.037.193 2.309.279v2.645h-1.579c-1.24 0-1.48.59-1.48 1.458V12h2.95l-.427 2.88h-2.523v7.054C18.345 21.18 22 17.016 22 12c0-5.523-4.477-10-10-10z"/></svg>');
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: center;
}

.page-contact__social-icon.page-contact__telegram {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm4.27 8.27l-4.57 3.53c-.15.12-.34.18-.53.18-.19 0-.38-.06-.53-.18l-1.9-1.47c-.2-.15-.25-.44-.1-.64.15-.2.44-.25.64-.1l1.63 1.25 4.3-3.33c.2-.15.49-.1.64.1.15.2.1.49-.1.64z"/></svg>');
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: center;
}

.page-contact__social-icon.page-contact__twitter {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M22.46 6c-.77.34-1.6.57-2.46.68.88-.53 1.56-1.37 1.88-2.37-.83.5-1.75.86-2.73 1.05-1.56-1.66-4.04-1.72-5.69-.14C11.5 5.57 10.6 6 9.5 6c-.67 0-1.3-.13-1.88-.38-2.2 2.1-3.64 5.03-3.79 8.23-.97-.5-1.82-1.1-2.5-1.8.3.15.62.27.95.37-1.02.6-1.7 1.6-1.7 2.8 0 .4.04.78.13 1.15-.96.2-1.87.5-2.7.9-1.12-2.1-1.7-4.57-1.7-7.1 0-1.02.16-2 .46-2.92.57.34 1.2.6 1.88.78.68.17 1.4.26 2.15.26 1.6 0 3.06-.57 4.1-1.5 1.05-.93 1.6-2.2 1.6-3.5 0-.2-.02-.4-.05-.6.85-.18 1.65-.47 2.37-.87.8-.38 1.48-.9 2.05-1.57.06-.07.1-.15.15-.22.6.2 1.2.3 1.8.3.6 0 1.1-.1 1.6-.3-.3.9-1 1.6-1.9 2.1z"/></svg>');
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: center;
}

.page-contact__social-icon:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Commitment Section */
.page-contact__commitment-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: #ffffff;
  text-align: center;
}

.page-contact__commitment-section .page-contact__section-title {
  color: #ffffff;
}

.page-contact__commitment-section .page-contact__section-title::after {
  background-color: var(--secondary-color);
}

.page-contact__commitment-section .page-contact__section-description {
  color: #f0f0f0;
}

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

.page-contact__commitment-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-contact__commitment-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-contact__commitment-item h3 {
  font-size: 22px;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-contact__commitment-item p {
  font-size: 16px;
  color: #f0f0f0;
}

.page-contact__mt-40 {
  margin-top: 40px;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
  background-color: var(--page-bg-color);
}

.page-contact__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
}

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

details.page-contact__faq-item summary.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main-color);
}

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: #f9fbfc;
}

.page-contact__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.page-contact__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}

details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 25px 25px;
  background: #f9fbfc;
  border-radius: 0 0 12px 12px;
  color: #555;
  font-size: 16px;
  line-height: 1.7;
}

details.page-contact__faq-item .page-contact__faq-answer p {
  margin-top: 0;
  margin-bottom: 0;
}

/* CTA Banner */
.page-contact__cta-banner {
  padding: 60px 0;
  background-color: var(--secondary-color);
  color: #ffffff;
  text-align: center;
}

.page-contact__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-contact__cta-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__section-title {
    font-size: 32px;
  }
  .page-contact__section-description {
    font-size: 17px;
  }
  .page-contact__hero-content h1 {
    font-size: 40px;
  }
  .page-contact__hero-description {
    font-size: 18px;
  }
  .page-contact__card-title {
    font-size: 22px;
  }
  .page-contact__card-text {
    font-size: 15px;
  }
  .page-contact__commitment-item h3 {
    font-size: 20px;
  }
  .page-contact__faq-qtext {
    font-size: 17px;
  }
  .page-contact__cta-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__hero-image-wrapper {
    margin-bottom: 20px;
    border-radius: 8px;
  }
  .page-contact__hero-content h1 {
    font-size: 30px;
  }
  .page-contact__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-contact__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-contact__contact-methods-section,
  .page-contact__commitment-section,
  .page-contact__faq-section,
  .page-contact__cta-banner {
    padding: 50px 0;
  }
  .page-contact__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-contact__section-description {
    font-size: 16px;
    margin-bottom: 30px;
    padding: 0 15px;
  }
  .page-contact__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-contact__card {
    padding: 25px;
    border-radius: 10px;
  }
  .page-contact__card-image-wrapper {
    max-width: 100%;
    margin-bottom: 20px;
  }
  .page-contact__card-title {
    font-size: 20px;
  }
  .page-contact__card-text {
    font-size: 15px;
  }
  .page-contact__form-group label {
    font-size: 15px;
  }
  .page-contact__form-group input,
  .page-contact__form-group textarea {
    padding: 10px 12px;
    font-size: 15px;
  }
  .page-contact__form button[type="submit"] {
    padding: 12px 20px;
    font-size: 16px;
  }
  .page-contact__social-icon {
    width: 40px;
    height: 40px;
  }
  .page-contact__commitment-points {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  .page-contact__commitment-item {
    padding: 25px;
    border-radius: 10px;
  }
  .page-contact__commitment-item h3 {
    font-size: 18px;
  }
  .page-contact__commitment-item p {
    font-size: 15px;
  }
  .page-contact__faq-list {
    margin-top: 30px;
  }
  details.page-contact__faq-item {
    border-radius: 10px;
  }
  details.page-contact__faq-item summary.page-contact__faq-question {
    padding: 15px 20px;
  }
  .page-contact__faq-qtext {
    font-size: 16px;
  }
  .page-contact__faq-toggle {
    font-size: 24px;
    width: 24px;
    height: 24px;
    margin-left: 15px;
  }
  details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 20px 20px;
    font-size: 15px;
  }
  .page-contact__cta-title {
    font-size: 24px;
  }
  .page-contact__cta-description {
    font-size: 16px;
  }
  .page-contact__mt-40 {
    margin-top: 30px;
  }

  /* Ensure all images are responsive and don't overflow */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__form,
  .page-contact__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .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;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-content h1 {
    font-size: 26px;
  }
  .page-contact__section-title {
    font-size: 24px;
  }
  .page-contact__cta-title {
    font-size: 22px;
  }
}