/* Contact page — reference layout: banner, intro, hero card, form, map */
body.contact-page #main_area {
  background: #fff;
  padding: 36px 0 72px;
}

body.contact-page #breadcrumbs {
  margin-bottom: 18px;
}

body.contact-page .contact-intro {
  margin: 0 0 32px;
  padding-bottom: 24px;
  max-width: 100%;
  font-size: 17px;
  line-height: 1.75;
  color: #191919;
  text-align: left;
  border-bottom: 1px dotted #c8c8c8;
}

.htks-contact-page {
  display: grid;
  gap: 28px;
}

.htks-contact-card {
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(21, 36, 76, 0.06);
  overflow: hidden;
}

/* Two-column Get In Touch card */
.htks-contact-hero {
  display: grid;
  grid-template-columns: minmax(260px, 42%) 1fr;
  align-items: stretch;
}

.htks-contact-hero__media {
  padding: 28px 0 28px 28px;
  display: flex;
  align-items: stretch;
}

.htks-contact-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
}

.htks-contact-hero__content {
  padding: 36px 40px 32px 28px;
}

.htks-contact-hero__content > h2 {
  margin: 0 0 16px;
  font-family: var(--secFont);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--htks-text-heading);
}

.htks-contact-hero__intro {
  margin: 0 0 28px;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--htks-text-body);
}

.htks-contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
}

.htks-contact-info-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
}

.htks-contact-info-item__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef6fb;
  color: #3e95c3;
  font-size: 17px;
  line-height: 1;
  flex-shrink: 0;
}

.htks-contact-info-item q {
  display: block;
  quotes: none;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  font-style: normal;
  color: var(--htks-brand-green);
}

.htks-contact-info-item p,
.htks-contact-info-item a,
.htks-contact-info-item address {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--htks-brand-blue);
  font-style: normal;
  text-decoration: none;
}

.htks-contact-info-item a:hover {
  color: var(--htks-brand-green);
}

.htks-contact-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e8edf2;
}

.htks-contact-social__label {
  font-size: 15px;
  font-weight: 700;
  color: var(--htks-text-heading);
}

.htks-contact-social__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.htks-contact-social__links a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef6fb;
  color: #3e95c3;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.htks-contact-social__links a:hover {
  background: #3e95c3;
  color: #fff;
  transform: translateY(-2px);
}

.htks-contact-hero__form {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e8edf2;
  text-align: left;
}

.htks-contact-hero__form h2 {
  margin: 0 0 18px;
  font-family: var(--secFont);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--htks-text-heading);
  text-align: left;
}

.htks-contact-hero__form .form-feedback {
  margin-bottom: 16px;
  text-align: left;
}

.htks-contact-hero__form .htks-contact-form {
  max-width: none;
  margin: 0;
  width: 100%;
  text-align: left;
}

body.contact-page .htks-contact-hero__form .form-actions {
  justify-content: flex-start;
}

.htks-contact-map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(21, 36, 76, 0.06);
  border: 1px solid #e8edf2;
  background: #fff;
  line-height: 0;
}

.htks-contact-map iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

/* Tablet — tighter side-by-side layout */
@media (max-width: 1024px) {
  .htks-contact-hero {
    grid-template-columns: minmax(220px, 38%) 1fr;
  }

  .htks-contact-hero__media {
    padding: 22px 0 22px 22px;
  }

  .htks-contact-hero__media img {
    min-height: 360px;
    border-radius: 14px;
  }

  .htks-contact-hero__content {
    padding: 28px 28px 24px 20px;
  }

  .htks-contact-hero__intro {
    max-width: none;
    margin-bottom: 22px;
    font-size: 14px;
  }

  .htks-contact-info-grid {
    gap: 18px 20px;
  }
}

/* Mobile — stacked card layout */
@media (max-width: 767px) {
  body.contact-page #main_area {
    padding: 20px 0 88px;
  }

  body.contact-page .contact-intro {
    margin-bottom: 24px;
    padding-bottom: 20px;
    font-size: 15px;
    line-height: 1.65;
  }

  .htks-contact-page {
    gap: 20px;
  }

  .htks-contact-card {
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(21, 36, 76, 0.06);
  }

  .htks-contact-hero {
    grid-template-columns: 1fr;
  }

  .htks-contact-hero__media {
    padding: 20px 20px 0;
  }

  .htks-contact-hero__media img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: 260px;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
  }

  .htks-contact-hero__content {
    padding: 22px 20px 20px;
  }

  .htks-contact-hero__content > h2 {
    margin-bottom: 12px;
    font-size: clamp(1.35rem, 5vw, 1.65rem);
  }

  .htks-contact-hero__intro {
    margin-bottom: 20px;
    max-width: none;
    font-size: 14px;
    line-height: 1.65;
  }

  .htks-contact-info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .htks-contact-info-item {
    grid-template-columns: 40px 1fr;
    gap: 10px;
  }

  .htks-contact-info-item__icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .htks-contact-info-item q {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .htks-contact-info-item p,
  .htks-contact-info-item a,
  .htks-contact-info-item address {
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
  }

  .htks-contact-social {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 22px;
    padding-top: 20px;
  }

  .htks-contact-hero__form {
    margin-top: 22px;
    padding-top: 20px;
  }

  .htks-contact-hero__form h2 {
    font-size: 1.2rem;
    margin-bottom: 16px;
  }

  body.contact-page .htks-contact-form .form-row.split {
    grid-template-columns: 1fr;
  }

  body.contact-page .htks-contact-hero__form .form-actions {
    justify-content: stretch;
  }

  body.contact-page .htks-contact-form .priBtn,
  body.contact-page .htks-contact-form button[type="submit"] {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .htks-contact-map iframe {
    height: 280px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  body.contact-page #main_area {
    padding: 16px 0 80px;
  }

  body.contact-page .contact-intro {
    font-size: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .htks-contact-hero__media {
    padding: 16px 16px 0;
  }

  .htks-contact-hero__media img {
    max-height: 220px;
    border-radius: 10px;
  }

  .htks-contact-hero__content {
    padding: 18px 16px 16px;
  }

  .htks-contact-social__links a {
    width: 36px;
    height: 36px;
  }
}
