/* ============================================================
   CONTACT.CSS
   Styles for contact.html — Banner · Form · Person · Map
   ============================================================ */


/* ─────────────────────────────────────────────────────────────
   PAGE-LEVEL HEADER OVERRIDE
   Same pattern as Blogs / Careers / Services: sticky at top,
   all corners rounded at page top, flatten on scroll.
   ───────────────────────────────────────────────────────────── */
body.page--contact .footer {
  margin-top: 70px;
}

body.page--contact .site-header.is-scrolled {
  position: sticky;
  top: 0;
  animation: none;
  border-radius: var(--radius-md);
  z-index: 9999;
}

body.page--contact .site-header.is-scrolled.is-stuck {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}


/* ─────────────────────────────────────────────────────────────
   PAGE WRAPPER
   ───────────────────────────────────────────────────────────── */
.contact-page {
  display: flex;
  flex-direction: column;
  gap: 70px;
  padding: 32px 0 0;
}


/* ─────────────────────────────────────────────────────────────
   1. CONTACT BANNER  (Figma 3662-1416)
   Dark photo background, "Contact Us" 60px white Sora heading
   ───────────────────────────────────────────────────────────── */
.contact-banner {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  height: 360px;
}

.contact-banner__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.contact-banner__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.contact-banner__heading {
  position: absolute;
  left: 50px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 60px;
  line-height: 70px;
  letter-spacing: -1.6px;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
}


/* ─────────────────────────────────────────────────────────────
   2. GET IN TOUCH FORM SECTION  (Figma 3662-1420)
   Left: label + heading + desc + contact grid
   Right: white card with form
   ───────────────────────────────────────────────────────────── */
.contact-form-section {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 0 40px;
  background: var(--clr-page-bg);
  border-radius: 24px;
}

/* ── Left info column ── */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 36px;
  flex: 1 0 0;
  min-width: 0;
}

.contact-info__label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 30px;
  color: #111111;
  margin: 0;
}

.contact-info__heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 60px;
  line-height: 70px;
  letter-spacing: -3px;
  color: #111111;
  margin: 0;
}

.contact-info__desc {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 30px;
  color: #333333;
  margin: 0;
}

/* Grid = 2 rows, each row has 2 groups side by side */
.contact-info__grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
  width: 100%;
}

.contact-info__row {
  display: flex;
  gap: 32px;
  width: 100%;
}

.contact-info__row .contact-info__group {
  flex: 1 0 0;
  min-width: 0;
}

.contact-info__group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info__group-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  line-height: 30px;
  color: #111111;
  margin: 0;
}

.contact-info__group-text {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 30px;
  color: #333333;
  margin: 0;
}

.contact-info__group-text p {
  margin: 0;
}

.contact-info__group-text a {
  color: #333333;
  text-decoration: none;
}

.contact-info__social {
  display: flex;
  gap: 39px;
  align-items: center;
}

.contact-info__social a {
  color: #333333;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-info__social a:hover {
  color: #f14f44;
}

/* ── Right: form card ── */
.contact-form-card {
  background: #ffffff;
  border-radius: 25px;
  padding: 80px 60px;
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.contact-form-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 40px;
  letter-spacing: -0.9px;
  color: #111111;
  margin: 0;
}

.contact-form-card__desc {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 30px;
  color: #333333;
  margin: 0;
}

/* Form fields — bottom-border underline style */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  padding: 10px 10px 0;
}

.contact-form__field {
  position: relative;
  height: 58px;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid #adadad;
  padding-bottom: 10px;
  gap: 10px;
}

.contact-form__field + .contact-form__field {
  margin-top: 10px;
}

.contact-form__field--message {
  height: 138px;
  align-items: flex-start;
  padding-top: 18px;
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 27px;
  color: #111111;
  resize: none;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: #898989;
}

.contact-form__field textarea {
  height: 100%;
}

/* Submit button — dark pill matching Figma */
.contact-form__submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  margin-top: 31px;
  padding: 11px 25px 12px 44px;
  background: #343434;
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 9999px;
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 27px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.contact-form__submit:hover {
  opacity: 0.85;
}

.contact-form__submit-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  display: block;
}


/* ─────────────────────────────────────────────────────────────
   3. CONTACT PERSON  (Figma 3662-1892)
   Light bg, text left + photo card right
   ───────────────────────────────────────────────────────────── */
.contact-person {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 89px;
  padding: 0 60px;
  background: #f1f2f4;
  border-radius: 24px;
}

.contact-person__text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
  max-width: 612px;
}

.contact-person__heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 45px;
  line-height: 52.5px;
  letter-spacing: -2.25px;
  color: #111111;
  margin: 0;
  max-width: 551px;
}

.contact-person__sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  line-height: 35px;
  color: #111111;
  margin: 0;
}

.contact-person__sub a {
  color: #eb5667;
  text-decoration: none;
}

.contact-person__sub a:hover {
  text-decoration: underline;
}

/* Photo card */
.contact-person__photo {
  position: relative;
  width: 398px;
  height: 476px;
  border-radius: 32px;
  overflow: hidden;
  flex-shrink: 0;
}

.contact-person__photo img {
  position: absolute;
  top: 0;
  left: -20.82%;
  width: 131.73%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* "Rohan" watermark text — rotated on the right edge */
.contact-person__name {
  position: absolute;
  right: 0;
  top: 63px;
  bottom: 0;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 104px;
  line-height: 62px;
  letter-spacing: -5.2px;
  color: #ffffff;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  pointer-events: none;
}


/* ─────────────────────────────────────────────────────────────
   4. OFFICE LOCATION CARDS  (Figma 3680-987)
   4 equal-width cards: map image · country · address · email
   ───────────────────────────────────────────────────────────── */
.contact-offices {
  border-radius: 24px;
  padding: 0 80px;
}

.offices-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.office-card {
  flex: 1 0 0;
  min-width: 0;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.office-card__map {
  width: 100%;
  height: 192px;
  overflow: hidden;
  flex-shrink: 0;
}

.office-card__map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.office-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: center;
  padding: 20px;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.office-card__country {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: -0.45px;
  color: #111111;
  margin: 0;
  width: 100%;
}

.office-card__address {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #9b9b9b;
  margin: 0;
  width: 100%;
}

.office-card__email {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #eb5667;
  text-decoration: none;
  width: 100%;
}

.office-card__email:hover {
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .contact-offices {
    padding: 0 40px;
  }
  .offices-grid {
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .offices-grid {
    flex-wrap: wrap;
  }
  .office-card {
    flex: 1 1 calc(50% - 20px);
    min-width: 220px;
  }
}

@media (max-width: 540px) {
  .contact-offices {
    padding: 0 20px;
  }
  .offices-grid {
    flex-direction: column;
    gap: 16px;
  }
  .office-card {
    flex: 1 1 100%;
  }
}


/* ─────────────────────────────────────────────────────────────
   5. LOCATION  (Figma 3680-1174)
   Full-width map with 4 overlaid info cards on the left
   ───────────────────────────────────────────────────────────── */
.contact-location {
  display: flex;
  align-items: center;
  border-radius: 24px;
  overflow: hidden;
  height: 628px;
}

/* Left white panel — flex child, fixed width */
.contact-location__panel {
  flex-shrink: 0;
  width: 407px;
  height: 628px;
  background: #ffffff;
  padding: 16px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.contact-location__heading-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 14px;
  flex-shrink: 0;
}

.contact-location__heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: normal;
  color: #111111;
  margin: 0;
  flex: 1 0 0;
}

/* Location cards */
.location-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 18px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  width: 375px;
  overflow: hidden;
  flex-shrink: 0;
}

.location-card__inner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
}

.location-card__info {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.location-card__country {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: -0.45px;
  color: #111111;
  margin: 0;
}

.location-card__address {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #9b9b9b;
  margin: 0;
}

.location-card__email {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #eb5667;
  margin: 0;
}

.location-card__dir {
  background: #f2f2f2;
  border-radius: 50%;
  width: 33px;
  height: 33px;
  min-width: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.location-card__dir:hover {
  background: #e0e0e0;
}

/* Right: Leaflet map fills remaining space */
.contact-location__map {
  flex: 1 0 0;
  min-width: 0;
  height: 628px;
  position: relative;
}

.contact-location__map #location-map-canvas {
  width: 100%;
  height: 100%;
}

/* Custom coral pin */
.map-pin {
  width: 22px;
  height: 30px;
  background: #eb5667;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.map-pin::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  background: #ffffff;
  border-radius: 50%;
}

/* Permanent label next to each pin */
.leaflet-tooltip.map-label {
  background: #ffffff;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  padding: 3px 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: #111111;
  white-space: nowrap;
}

.leaflet-tooltip.map-label::before {
  display: none;
}

@media (max-width: 900px) {
  .contact-location {
    flex-direction: column;
    height: auto;
    border-radius: 24px;
  }

  .contact-location__panel {
    width: 100%;
    height: auto;
    overflow-y: visible;
  }

  .location-card {
    width: 100%;
  }

  .contact-location__map {
    width: 100%;
    height: 360px;
    flex: none;
  }
}


/* ─────────────────────────────────────────────────────────────
   6. OFFICE LOCATION MAP  (Figma 3662-1496)
   Full-width Google Maps iframe, 500px, rounded 25px
   ───────────────────────────────────────────────────────────── */
.contact-map {
  border-radius: 25px;
  overflow: hidden;
  height: 500px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}


/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .contact-form-section {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-form-card {
    width: 100%;
    padding: 40px;
  }

  .contact-info__heading {
    font-size: 44px;
    line-height: 54px;
  }
}

@media (max-width: 767px) {
  .contact-page {
    padding: 20px 0 0;
  }

  .contact-banner {
    min-height: 260px;
    height: auto;
    padding: 60px 32px;
  }

  .contact-banner__heading {
    font-size: 40px;
    line-height: 48px;
    position: relative;
    left: auto;
    top: auto;
    transform: none;
  }

  .contact-form-section {
    padding: 40px 24px;
  }

  .contact-info__heading {
    font-size: 36px;
    line-height: 44px;
    letter-spacing: -1.5px;
  }

  .contact-info__grid {
    flex-direction: column;
    gap: 32px;
  }

  .contact-info__col {
    width: 100%;
    gap: 32px;
  }

  .contact-person {
    flex-direction: column;
    gap: 40px;
    padding: 40px 24px;
  }

  .contact-person__photo {
    width: 100%;
    height: 320px;
  }

  .contact-person__heading {
    font-size: 32px;
    line-height: 40px;
  }

  .contact-person__sub {
    font-size: 16px;
  }

  .contact-map {
    height: 360px;
  }
}
