/* ===== Contact ===== */
/* ===== Page banner ===== */
.page-banner {
  position: relative;
  min-height: 380px;
  padding: 150px 24px 90px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  font-family: var(--font-body);
  background: #07162b;
}

.page-banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, .75);
}

.page-banner__inner {
  position: relative;
  z-index: 2;
}

.page-banner__title {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: 45px;
  font-weight: 400;
  line-height: 1.1;
}

.page-banner__crumbs {
  display: inline-flex;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255, 255, 255, .7);
}

.page-banner__crumbs a {
  color: #fff;
  text-decoration: none;
}

.page-banner__crumbs a:hover {
  color: var(--brand);
}

.page-banner__crumbs span:last-child {
  color: #4ade80;
}

.contact {
  background: #fff;
  padding: 60px 20px;
}

@media (min-width: 768px) {
  .contact {
    padding: 80px 24px;
  }
}

@media (min-width: 1280px) {
  .contact {
    padding: 100px 24px;
  }
}

.contact__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  align-items: stretch;
}

/* ----- left ----- */
.contact__info {
  background: #e6ece8;
  border-radius: 24px;
  padding: 44px 38px;
}

.contact__title {
  margin: 20px 0 18px;
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: #000;
}

@media (min-width: 768px) {
  .contact__title {
    font-size: 40px;
  }
}

@media (min-width: 1280px) {
  .contact__title {
    font-size: 46px;
  }
}

.contact__lead {
  max-width: 520px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: #3d4a44;
}

.contact__list {
  margin-top: 40px;
  display: grid;
  gap: 22px;
}

.contact__list a,
.contact__row {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: inherit;
}

.contact__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #ffffff;
  color: #000;
  transition: background-color .35s ease, color .35s ease, transform .35s ease;
}

.contact__icon svg {
  width: 20px;
  height: 20px;
}

.contact__list li:hover .contact__icon {
  background: var(--brand);
  color: #fff;
  transform: translateY(-3px);
}

.contact__text {
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.4;
  color: #0a1220;
}

.contact__text small {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-body);
  font-size: 13px;
  color: #6b7378;
}

/* ----- right ----- */
.contact__form-wrap {
  background: #ffffff;
  border: 1px solid #e2e8e4;
  border-radius: 24px;
  padding: 44px 40px;
  box-shadow: 0 14px 36px rgba(10, 18, 32, 0.05);
}

.contact__form-title {
  margin-bottom: 32px;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  color: #000;
}

@media (min-width: 768px) {
  .contact__form-title {
    font-size: 34px;
  }
}

.cform {
  display: grid;
  gap: 6px;
}

/* underline field with floating label */
.field {
  position: relative;
  padding-top: 22px;
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid #cfd8d2;
  border-radius: 0;
  background: transparent;
  outline: none;
  font-family: var(--font-body);
  font-size: 17px;
  color: #0a1220;
}

.field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238a949b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 14px;
}

.field textarea {
  resize: vertical;
  min-height: 84px;
}

.field label {
  position: absolute;
  left: 0;
  top: 34px;
  font-family: var(--font-body);
  font-size: 17px;
  color: #8a949b;
  pointer-events: none;
  transform-origin: left top;
  transition: transform .25s ease, color .25s ease;
}

.field input:focus+label,
.field input:not(:placeholder-shown)+label,
.field select+label,
.field textarea:focus+label,
.field textarea:not(:placeholder-shown)+label {
  transform: translateY(-24px) scale(.78);
  color: var(--brand);
}

/* green line that grows on focus */
.field::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}

.field:focus-within::after {
  transform: scaleX(1);
}

/* phone row */
.cform__phone {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
}

.field--code input {
  text-align: left;
}

/* errors */
.field:has(.field__error) {
  padding-bottom: 22px;
}

/* room for the message */

.field__error {
  position: absolute;
  left: 0;
  bottom: 2px;
  display: block;
  padding: 0;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 18px;
  color: #d33a3a;
}


.field:has(.field__error)::after {
  bottom: 22px;
}


.field--code {
  align-self: start;
}

.cform__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cform__note {
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: #6b7378;
}

.cform__note a {
  color: var(--brand);
  text-decoration: underline;
}

.cform__submit {
  margin-top: 18px;
  justify-self: start;
  height: 50px;
  padding: 10px 22px;
  font-size: 16px;
  line-height: 1.3;
  gap: 12px;
}

.cform__submit.btn--arrow::after {
  width: 16px;
  height: 16px;
}

.cform__submit.is-loading {
  opacity: .7;
  pointer-events: none;
}

.cform__status {
  margin-top: 16px;
  min-height: 22px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
}

.cform__status.is-ok {
  padding: 18px 20px;
  border-radius: 12px;
  background: #eef7f1;
  border: 1px solid rgba(27, 140, 67, 0.35);
  color: #114b27;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cform__status.is-ok strong {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--brand);
}

.cform__status.is-err {
  padding: 14px 16px;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

@media (max-width: 900px) {
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

@media (max-width: 520px) {
  .cform__phone {
    grid-template-columns: 76px 1fr;
    gap: 12px;
  }
}

.map-section {
  padding: 0 0 90px;
}

.map-wrap {
  position: relative;
  height: 460px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .10);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(.85) contrast(1.05);
  transition: filter .4s ease;
}

.map-wrap:hover iframe {
  filter: none;
}

.map-card {
  position: absolute;
  left: 32px;
  bottom: 32px;
  max-width: 340px;
  padding: 26px 28px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .15);
}

.map-card__label {
  font-size: 13px;
  color: var(--brand);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.map-card h3 {
  margin: 6px 0 8px;
  font-family: var(--font-heading);
  font-size: 22px;
}

.map-card p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.55;
  color: #555;
}

@media (max-width: 768px) {
  .map-wrap {
    height: auto;
    border-radius: 18px;
  }

  .map-wrap iframe {
    height: 320px;
  }

  .map-card {
    position: static;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    background: #f4f7f5;
  }
}


/* ===== Multi-Office Locations & Maps Grid ===== */
.locations__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.locations__head {
  text-align: center;
  margin-bottom: 42px;
}

.locations__title {
  margin: 16px 0 0;
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  color: #0a1220;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}

.location-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8e4;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(10, 18, 32, 0.05);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.location-card:hover {
  transform: translateY(-4px);
  border-color: rgba(27, 140, 67, 0.35);
  box-shadow: 0 18px 40px rgba(10, 18, 32, 0.09);
}

.location-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e6ece8;
}

.location-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
  transition: transform .5s ease;
}

.location-card:hover .location-card__media img {
  transform: scale(1.04);
}

.location-card__btn {
  align-self: flex-start;
}

.location-card__body {
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.location-card__tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 6px;
}

.location-card__body h3 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 500;
  color: #0a1220;
}

.location-card__body p {
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: #4b5852;
  flex: 1;
}

.location-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.location-card__link:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .locations-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}
