/* =========================================================
   CREDENT - Trang Liên hệ (PC)
   Dùng lại: .page-banner (gioi-thieu.css), .contact-form/.field/.btn (style.css)
   ========================================================= */

/* ---------- Thông tin liên hệ + bản đồ ---------- */
.ct-info { position: relative; height: 634px; padding-top: 70px; }
.ct-info__title { position: absolute; left: calc(50% - 600.75px); top: 70px; width: 588px; font-size: 22px; font-weight: 800; line-height: 26px; color: var(--black); }

.ct-map { position: absolute; left: 0; top: 113px; width: calc(50% - 12.75px); height: 521px; overflow: hidden; background: #e5e3df; }
.ct-map__frame { display: block; width: 100%; height: 100%; border: 0; }
.ct-map__tabs { position: absolute; left: 50%; bottom: 30px; display: flex; gap: 6px; padding: 5px; border-radius: 100px; background: rgba(17, 34, 58, .85); transform: translateX(-50%); box-shadow: 0 8px 24px rgba(17, 34, 58, .2); }
.ct-map__tab {
  height: 30px;
  padding: 0 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  line-height: 30px;
  color: rgba(255, 255, 255, .75);
  white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.ct-map__tab:hover { color: var(--white); }
.ct-map__tab.is-active { background: var(--gold); color: var(--white); }

.ct-info__detail { position: absolute; left: calc(50% + 11.25px); top: 70px; width: 589.5px; display: flex; flex-direction: column; gap: 24px; }
.ct-info__row { display: flex; align-items: flex-start; gap: 24px; }
.ct-info__row--social { gap: 25px; }
.ct-col { flex: none; width: 282px; display: flex; flex-direction: column; gap: 12px; color: #565656; }
.ct-col--addr { gap: 16px; }
.ct-col__company { font-size: 22px; font-weight: 800; line-height: 26px; color: var(--black); white-space: nowrap; }
.ct-col__title { font-size: 18px; font-weight: 800; line-height: 23px; color: var(--black); }
.ct-col--addr .ct-col__title { margin-bottom: -4px; }
.ct-col__lines { display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 18px; }
.ct-col b,
.ct-offices b,
.ct-hours b { font-weight: 700; }
.ct-col a { transition: color .3s var(--ease); }
.ct-col a:hover { color: var(--gold); }

.ct-offices { display: flex; flex-direction: column; gap: 17px; font-size: 13px; line-height: 18px; }
.ct-office { cursor: pointer; }
.ct-office__name { font-weight: 700; line-height: 17px; transition: color .3s var(--ease); }
.ct-office:hover .ct-office__name,
.ct-office.is-active .ct-office__name { color: var(--gold); }
.ct-hours { margin-top: 1px; font-size: 14px; line-height: 18px; }
.ct-hours ul { margin: 0; padding-left: 21px; list-style: disc; }
.ct-hours li::marker { font-size: 10px; }

.ct-info__line { display: block; height: 1px; background: url("../images/lien-he/line.svg") 0 0 / 100% 1px no-repeat; }

/* ---------- Form liên hệ ---------- */
.ct-form { position: relative; height: 701px; overflow: hidden; }
.ct-form__bg {
  position: absolute;
  inset: 0;
  background:
    url("../images/lien-he/form-overlay.svg") 0 0 / 100% 100% no-repeat,
    url("../images/lien-he/form-bg.jpg") 0 0 / 100% 100% no-repeat;
}
.ct-form__inner { position: absolute; left: calc(50% - 600px); top: 69px; width: 690px; display: flex; flex-direction: column; gap: 51px; }
.ct-form__title { display: flex; flex-direction: column; gap: 12px; font-size: 40px; font-weight: 500; line-height: 48px; color: var(--white); }
.ct-form__title em { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 31px; color: var(--gold); }

/* =========================================================
   RESPONSIVE - Trang Liên hệ
   ========================================================= */
@media (max-width: 1239px) {
  /* Bản đồ trên, thông tin bên dưới */
  .ct-info { height: auto; padding: 0; display: flex; flex-direction: column; align-items: center; }
  .ct-map { position: relative; left: auto; top: auto; order: 1; width: 100%; height: 440px; }
  .ct-info__title { position: static; order: 2; width: calc(100% - 64px); margin-top: 58px; text-align: center; }
  .ct-info__detail { position: static; order: 3; width: min(704px, calc(100% - 64px)); margin-top: 40px; }
  .ct-col { flex: 1; width: auto; min-width: 0; }

  .ct-form { height: auto; margin-top: 100px; }
  .ct-form__inner { position: relative; left: auto; top: auto; width: min(704px, calc(100% - 64px)); margin: 0 auto; padding: 69px 0 100px; }
}

/* ---------- MOBILE (Figma 402px) ---------- */
@media (max-width: 767px) {
  .ct-map { height: auto; aspect-ratio: 406 / 299; }
  .ct-map__tabs { bottom: 26px; gap: 4px; padding: 4px; }
  .ct-map__tab { height: 26px; padding: 0 10px; font-size: 11px; line-height: 26px; }
  .ct-info__title { width: calc(100% - 32px); font-size: 18px; font-weight: 700; line-height: 23px; }
  .ct-info__detail { width: calc(100% - 32px); }
  .ct-info__row,
  .ct-info__row--social { flex-direction: column; gap: 24px; }
  .ct-col { flex: none; width: 100%; }

  .ct-form { height: 682px; }
  .ct-form__bg { background: url("../images/lien-he/mobile/form-bg.jpg") center top / 100% 100% no-repeat; }
  .ct-form__inner { width: calc(100% - 32px); padding: 63px 0 0; gap: 40px; }
  .ct-form__title { gap: 12px; }
  .ct-form__title em { font-size: 22px; line-height: 26px; }
  .ct-form__title br { display: none; }
}

@media (max-width: 374px) {
  .ct-map__tab { padding: 0 8px; font-size: 10px; }
}
