/* =========================================================
   Contact page styles
   ========================================================= */

.contact-hero {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0 48px;
}

.contact-hero .hero-bg-infinity {
  opacity: 0.38;
}

.contact-hero .hero-bg-infinity ~ .hero-content {
  padding-top: 99px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  grid-template-columns: unset;
}

.contact-hero .hero-bg-infinity ~ .hero-content > * {
  grid-column: auto;
  max-width: min(720px, 88%);
}

.contact-hero .hero-title {
  margin-bottom: 0;
}

/* =========================================================
   CONTACT SECTION
   ========================================================= */

.page-contact .contact-page-section {
  padding: 80px 24px;
  background: #fff;
}

.contact-container {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.contact-map {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 480px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(15, 32, 66, 0.1);
  background: var(--bg-grey-2);
}

.contact-map iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  display: block;
}

.contact-form-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 480px;
  box-sizing: border-box;
  /* Visual treatment → css/forms.css */
}

.contact-form-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 32px;
  color: var(--text-dark);
}

.contact-form-title .accent {
  color: var(--blue-500);
}

/* Form field styles → css/forms.css */
.contact-form {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.contact-form .form-group:has(textarea) {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.contact-form .form-group:has(textarea) textarea {
  flex: 1;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* =========================================================
   TEAM SECTION
   ========================================================= */

.team-section {
  padding: 80px 24px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.team-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 48px;
  color: var(--text-dark);
}

.team-title .accent {
  color: var(--blue-500);
}

.team-contacts {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 100%;
}

.team-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 320px;
  max-width: 100%;
  min-height: 112px;
  padding: 24px;
  border-radius: 16px;
  background: rgba(15, 141, 235, 0.05);
  border: 1px solid rgba(15, 141, 235, 0.12);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.team-contact-item:hover {
  background: rgba(15, 141, 235, 0.1);
  border-color: rgba(15, 141, 235, 0.28);
  box-shadow: 0 12px 32px rgba(15, 32, 66, 0.08);
}

.team-contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.call-icon {
  background: rgba(15, 141, 235, 0.16);
  color: var(--blue-500);
}

.email-icon {
  background: rgba(15, 141, 235, 0.16);
  color: var(--blue-500);
}

.location-icon {
  background: rgba(15, 141, 235, 0.16);
  color: var(--blue-500);
}

.team-contact-icon .lucide {
  width: 24px;
  height: 24px;
}

.team-contact-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.team-contact-value {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-dark);
  margin: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-map,
  .contact-form-box {
    min-height: 0;
    height: auto;
  }

  .contact-map {
    min-height: 320px;
  }

  .contact-form-box {
    padding: 32px;
  }

  .contact-form .form-group:has(textarea) {
    flex: none;
  }

  .contact-form .form-group:has(textarea) textarea {
    flex: none;
    min-height: 100px;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    min-height: 50vh;
    padding: 0 0 40px;
  }

  .page-contact .contact-page-section {
    padding: 60px 24px;
  }

  .contact-form-box {
    padding: 28px 24px;
  }

  .contact-form-title {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-group {
    gap: 6px;
  }

  .team-section {
    padding: 60px 24px;
  }

  .team-contacts {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .team-contact-item {
    width: 100%;
    max-width: 400px;
  }

  .team-title {
    font-size: 32px;
    margin-bottom: 32px;
  }
}
