/* style/contact.css */

/* Base styles for page-contact */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--black-color); /* Inherit from shared.css */
}

.page-contact__section {
  padding: 60px 0;
  text-align: center;
}

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

.page-contact__section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  margin-bottom: 20px;
  color: #26A9E0;
  line-height: 1.2;
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px 0 60px 0;
  background-color: #0d0d0d; /* Darker background for contrast with hero content */
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px;
  margin-bottom: 30px;
}

.page-contact__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.page-contact__main-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.page-contact__intro-text {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 40px;
  line-height: 1.5;
}

/* CTA Buttons */
.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-contact__btn-primary:hover {
  background-color: #1e87c2;
  transform: translateY(-2px);
}

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

.page-contact__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

/* Contact Methods Section */
.page-contact__contact-methods {
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #f0f0f0;
}

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

.page-contact__method-card {
  background: rgba(255, 255, 255, 0.05); /* Light transparent background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 320px;
}

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

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

.page-contact__method-text {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-contact__email-address, .page-contact__phone-number {
  font-size: 18px;
  font-weight: bold;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.page-contact__method-button {
  padding: 10px 20px;
  font-size: 16px;
  width: 100%;
  max-width: 200px;
}

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

.page-contact__social-icon {
  color: #FFFFFF;
  font-size: 18px;
  text-decoration: none;
  padding: 8px 15px;
  border: 1px solid #26A9E0;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.page-contact__social-icon:hover {
  background-color: #26A9E0;
}

/* Contact Form Section */
.page-contact__contact-form-section {
  background-color: #0d0d0d;
  color: #f0f0f0;
  padding-bottom: 0;
}

.page-contact__form {
  max-width: 600px;
  margin: 0 auto 40px auto;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #444;
  border-radius: 5px;
  background-color: #2a2a2a;
  color: #FFFFFF;
  font-size: 16px;
  box-sizing: border-box;
}

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

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

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

.page-contact__form-submit-button {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  background: #26A9E0;
  color: #ffffff;
}

.page-contact__form-submit-button:hover {
  background-color: #1e87c2;
}

.page-contact__form-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 10px;
}

/* FAQ Section */
.page-contact__faq-section {
  background-color: #202020;
  color: #f0f0f0;
}

.page-contact__faq-list {
  max-width: 900px;
  margin: 40px auto;
  text-align: left;
}

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

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: bold;
  color: #FFFFFF;
  cursor: pointer;
  background-color: #2a2a2a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-contact__faq-question::-webkit-details-marker {
  display: none;
}

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

.page-contact__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-contact__faq-toggle {
  font-size: 24px;
  line-height: 1;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

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

.page-contact__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 16px;
  color: #cccccc;
  line-height: 1.6;
}

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

.page-contact__faq-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 10px;
}

/* Why Contact Section */
.page-contact__why-contact {
  background-color: #0d0d0d;
  color: #f0f0f0;
}

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

.page-contact__feature-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-contact__support-team-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 60px;
  border-radius: 10px;
}

/* About OK365 Section */
.page-contact__about-ok365 {
  background-color: #26A9E0;
  color: #FFFFFF;
  padding: 80px 0;
}

.page-contact__about-ok365 .page-contact__section-title {
  color: #FFFFFF;
}

.page-contact__about-ok365 .page-contact__section-description {
  color: #f0f0f0;
  margin-bottom: 50px;
}

.page-contact__about-ok365 .page-contact__cta-button {
  background: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #FFFFFF;
}

.page-contact__about-ok365 .page-contact__cta-button:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-contact__hero-image {
    max-height: 400px;
  }
}

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

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

  .page-contact__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-contact__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
    padding-bottom: 40px;
  }

  .page-contact__hero-image {
    max-height: 250px;
    margin-bottom: 20px;
  }

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

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

  .page-contact__intro-text {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .page-contact__cta-button,
  .page-contact__method-button,
  .page-contact__form-submit-button,
  .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;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-contact__method-card,
  .page-contact__feature-card {
    padding: 25px;
    min-height: auto;
  }

  .page-contact__method-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }

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

  .page-contact__method-text {
    font-size: 15px;
  }

  .page-contact__email-address,
  .page-contact__phone-number {
    font-size: 16px;
  }

  .page-contact__social-links {
    flex-wrap: wrap;
    gap: 10px;
  }

  .page-contact__form {
    padding: 20px;
  }

  .page-contact__form-label,
  .page-contact__form-input,
  .page-contact__form-textarea {
    font-size: 15px;
  }

  .page-contact__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }

  .page-contact__faq-answer {
    padding: 10px 20px 15px 20px;
    font-size: 15px;
  }

  .page-contact__faq-image,
  .page-contact__form-image,
  .page-contact__support-team-image,
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-contact__about-ok365 {
    padding: 60px 0;
  }
}