/* ============================================================
   Gelai Infotech — Contact Us Page
   ============================================================ */

.contact-page {
  background: var(--white);
  font-family: var(--font);
}

/* ===================== HERO (Frame 48 — same as About / Services) ===================== */
.contact-hero {
  position: relative;
  min-height: 849px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: var(--site-header-offset, 168px);
  background:
    radial-gradient(
      ellipse 95% 90% at 88% 6%,
      #0c6eb7 0%,
      #569acd 32%,
      rgba(255, 255, 255, 0) 70%
    ),
    #ffffff;
}

.contact-hero__header {
  z-index: 3;
  padding-top: 0;
  flex-shrink: 0;
}

.contact-hero__header .hero__logo img {
  width: 150px;
  height: auto;
}

.contact-hero__body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 565px) minmax(0, 748px);
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 81px;
  padding-bottom: 56px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.contact-hero__content {
  min-width: 0;
  max-width: 100%;
}

.contact-hero__title {
  font-family: var(--font);
  font-size: clamp(32px, 3.6vw, var(--fs-title-hero));
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 16px;
  max-width: 100%;
  text-shadow: var(--title-shadow);
}

.contact-hero__tagline {
  font-family: var(--font);
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.37;
  color: #a3a3a3;
  max-width: 100%;
  margin: 0 0 16px;
}

.contact-hero__desc {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--navy);
  max-width: 100%;
  margin: 0 0 32px;
}

.contact-hero__cta {
  margin-top: 0;
}

.contact-hero__visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: -20px;
  min-width: 0;
  max-width: 100%;
}

.contact-hero__visual img {
  width: 100%;
  max-width: min(748px, 100%);
  height: auto;
  aspect-ratio: 748 / 421;
  object-fit: contain;
  display: block;
}

.contact-hero__visual.reveal-fade {
  transform: none;
  transition: opacity var(--dur-slow) var(--ease-out);
}

/* ===================== CONTACT MAIN ===================== */
.contact-main {
  padding: 0 0 88px;
}

/* ===================== PERKS ===================== */
.contact-perks {
  padding: 40px 0 16px;
  background: var(--white);
}

.contact-perks__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  justify-items: center;
  gap: 12px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-perks__item {
  text-align: center;
  width: 100%;
  max-width: 180px;
}

.contact-perks__icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid rgba(12, 110, 183, 0.15);
  color: var(--blue);
  box-shadow: 0 8px 24px rgba(12, 110, 183, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-perks__item:hover .contact-perks__icon {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(12, 110, 183, 0.14);
}

.contact-perks__item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

/* ===================== LOCATION ===================== */
.contact-location {
  margin-top: 72px;
  text-align: center;
}

.contact-location__header {
  margin-bottom: 32px;
}

.contact-location__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(12, 110, 183, 0.08);
  border: 1px solid rgba(12, 110, 183, 0.15);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}

.contact-location__title {
  margin: 0;
}

.contact-location__card {
  max-width: 560px;
  margin: 0 auto;
  padding: 36px 32px;
  border-radius: 20px;
  border: 1px solid rgba(35, 43, 64, 0.1);
  background: var(--white);
  box-shadow: 0 8px 32px rgba(35, 43, 64, 0.08);
}

.contact-location__card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(12, 110, 183, 0.1);
  color: var(--blue);
}

.contact-location__card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px;
}

.contact-location__card p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(35, 43, 64, 0.78);
  margin: 0 0 24px;
}

.contact-location__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-location__map {
  width: 100%;
  height: min(640px, 72vh);
  min-height: 420px;
  margin-bottom: 32px;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(35, 43, 64, 0.1);
  box-shadow: 0 16px 48px rgba(35, 43, 64, 0.12);
  background: #e8edf2;
}

.contact-location__map-embed {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

.contact-section {
  padding: 72px 0 0;
}

.contact-section__header {
  text-align: center;
  margin-bottom: 48px;
}

.contact-section__header .label {
  margin-bottom: 12px;
}

.contact-section__lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: rgba(35, 43, 64, 0.78);
  max-width: 640px;
  margin: 12px auto 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(300px, 500px);
  gap: 64px;
  align-items: center;
  justify-content: center;
  max-width: 1120px;
  margin: 0 auto;
}

/* ===================== SERVICE WATCH ===================== */
.contact-watch {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  justify-self: start;
}

.contact-watch__frame {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  margin: 0;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(35, 43, 64, 0.1);
  overflow: hidden;
}

.contact-watch__collage {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.contact-watch__collage-item {
  position: absolute;
  transform: translate(-50%, -50%) rotate(var(--rotate, 0deg));
  z-index: var(--z, 1);
}

.contact-watch__collage-item--icon .contact-watch__icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--tile, 80px);
  height: var(--tile, 80px);
  border-radius: 20px;
  background: #ffffff;
  border: 2px solid rgba(12, 110, 183, 0.12);
  box-shadow: 0 8px 22px rgba(35, 43, 64, 0.14);
}

.contact-watch__collage-item--icon .contact-watch__icon-tile img {
  width: var(--logo, 44px);
  height: var(--logo, 44px);
  object-fit: contain;
  display: block;
}

.contact-watch__collage-item--label .contact-watch__label-chip {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #ffffff;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(35, 43, 64, 0.16);
}

.contact-watch__label-chip--web { background: #6c4fd3; }
.contact-watch__label-chip--mobile { background: #0c6eb7; }
.contact-watch__label-chip--uiux { background: #232b40; }
.contact-watch__label-chip--cloud { background: #569acd; }

.contact-watch__clock {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.contact-watch__hand:not(.contact-watch__hand--second) {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-watch__hand--second {
  transition: transform 0.15s linear;
}

.contact-watch__caption {
  margin: 20px 0 0;
  max-width: 340px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(35, 43, 64, 0.65);
}

@media (prefers-reduced-motion: reduce) {
  .contact-watch__hand {
    transition: none;
  }
}

/* ===================== FORM ===================== */
.contact-form-wrap {
  border-radius: 20px;
  border: 1px solid rgba(35, 43, 64, 0.1);
  background: var(--white);
  box-shadow: 0 8px 32px rgba(35, 43, 64, 0.08);
  padding: 36px 32px;
  max-width: 540px;
  width: 100%;
  justify-self: end;
}

.contact-form__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
}

.contact-form__sub {
  font-size: 15px;
  color: rgba(35, 43, 64, 0.72);
  margin: 0 0 28px;
  line-height: 1.5;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form__field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  color: var(--navy);
  background: #f8fbfd;
  border: 1px solid rgba(35, 43, 64, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(12, 110, 183, 0.12);
}

.contact-form__field textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form__submit {
  align-self: flex-start;
  margin-top: 4px;
}

.contact-form__success {
  display: none;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(12, 110, 183, 0.08);
  border: 1px solid rgba(12, 110, 183, 0.2);
  color: var(--navy);
  font-size: 15px;
  line-height: 1.5;
}

.contact-form__success.is-visible {
  display: block;
}

/* ===================== INFO CARDS ===================== */
.contact-info--below {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.contact-info:not(.contact-info--below) {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info__card {
  display: flex;
  gap: 16px;
  padding: 22px 20px;
  border-radius: 16px;
  border: 1px solid rgba(35, 43, 64, 0.1);
  background: var(--white);
  box-shadow: 0 4px 20px rgba(35, 43, 64, 0.06);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-info__card:hover {
  border-color: rgba(12, 110, 183, 0.25);
  box-shadow: 0 8px 28px rgba(12, 110, 183, 0.1);
}

.contact-info__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(12, 110, 183, 0.1);
  color: var(--blue);
}

.contact-info__body h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 4px;
}

.contact-info__body h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
}

.contact-info__body p,
.contact-info__body a {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(35, 43, 64, 0.78);
  margin: 0;
  text-decoration: none;
}

.contact-info__body a:hover {
  color: var(--blue);
  text-decoration: underline;
}

/* ===================== MAP / CTA STRIP ===================== */
.contact-cta {
  margin-top: 72px;
  padding: 56px 0;
  text-align: center;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(12, 110, 183, 0.08) 0%, transparent 70%),
    #f8fbfd;
}

.contact-cta__title {
  margin-bottom: 12px;
}

.contact-cta__lead {
  font-size: var(--fs-lead);
  color: rgba(35, 43, 64, 0.78);
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.55;
}

.contact-cta__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.contact-cta__phone:hover {
  text-decoration: underline;
}

@media (max-width: 1400px) {
  .contact-hero__body {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1200px) {
  .contact-hero__body {
    grid-template-columns: 1fr;
    margin-top: 48px;
    text-align: left;
  }

  .contact-hero__visual {
    justify-content: center;
    margin-top: 0;
  }

  .contact-hero__visual img {
    max-width: 560px;
  }

  .contact-perks__grid {
    max-width: 100%;
    gap: 12px 16px;
  }

  .contact-location__map {
    height: min(480px, 60vh);
    min-height: 320px;
    border-radius: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: none;
  }

  .contact-form-wrap {
    max-width: none;
    justify-self: stretch;
  }

  .contact-watch {
    align-items: center;
    justify-self: center;
  }

  .contact-watch__frame {
    margin: 0 auto;
  }

  .contact-watch__frame {
    max-width: 440px;
  }

  .contact-watch__collage-item--icon .contact-watch__icon-tile {
    --tile: 68px;
    --logo: 38px;
    border-radius: 16px;
  }

  .contact-watch__collage-item--label .contact-watch__label-chip {
    font-size: 9px;
    padding: 8px 10px;
  }

  .contact-info--below {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .contact-hero {
    min-height: auto;
    overflow-x: clip;
  }

  .contact-hero__body {
    margin-top: 32px;
    padding-bottom: 40px;
  }

  .contact-hero__title {
    font-size: clamp(28px, 7.5vw, 32px);
  }

  .contact-hero__tagline {
    font-size: clamp(16px, 4.2vw, 20px);
  }

  .contact-hero__desc {
    font-size: clamp(14px, 3.8vw, 17px);
    margin-bottom: 24px;
  }

  .contact-hero__visual {
    width: 100%;
  }

  .contact-hero__visual img {
    max-width: 100%;
    width: 100%;
  }

  .contact-form-wrap {
    padding: 24px 20px;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .contact-perks__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .contact-perks__item {
    max-width: none;
  }

  .contact-perks__icon {
    width: 60px;
    height: 60px;
  }

  .contact-perks__item h3 {
    font-size: 14px;
  }

  .contact-watch__frame {
    max-width: 360px;
  }

  .contact-watch__collage-item--icon .contact-watch__icon-tile {
    --tile: 58px;
    --logo: 32px;
    border-radius: 14px;
  }

  .contact-watch__collage-item--label .contact-watch__label-chip {
    font-size: 8px;
    padding: 7px 9px;
  }

  .contact-location__map {
    height: min(360px, 52vh);
    min-height: 260px;
    border-radius: 20px;
  }

  .contact-location__card {
    padding: 28px 20px;
  }

  .contact-info--below,
  .contact-info {
    grid-template-columns: 1fr;
  }
}
