/* NewKey Contacts — page-only styles */

body {
    padding-top: 92px;
}

.container {
    width: min(1320px, 100% - 48px);
    margin-inline: auto;
}

.site-header {
    box-shadow: rgba(27, 58, 78, 0.06) 0px 1px 0px;
    background: rgb(233, 240, 244);
}

.fixed-brand {
    opacity: 1;
    transform: translateY(0px);
}

/* =========================
   Shared page elements
========================= */
.contact-section .eyebrow,
.visit-section .eyebrow {
  display: block;
  color: #367b9e;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .13em;
}

/* =========================
   Contact form section
========================= */
.contact-section {
  position: relative;
  min-height: calc(100svh - 72px);
  padding: 64px 0 82px;
  overflow: hidden;
  background: linear-gradient(135deg, #edf3f7, #dfeaf1);
}

.contact-section::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: -160px;
  bottom: -220px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(40, 142, 255, .13);
  filter: blur(110px);
  pointer-events: none;
}

.contact-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 7%;
  align-items: center;
}

.contact-intro {
  position: static;
}

.contact-intro h1 {
  margin: 15px 0 20px;
  font-size: clamp(56px, 5.6vw, 78px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 300;
}

.contact-intro h1 em {
  color: #288eff;
  font-style: normal;
}

.contact-intro > p {
  max-width: 520px;
  margin: 0;
  color: #4e6877;
  font-size: 20px;
  line-height: 1.62;
}

.contact-availability {
  width: max-content;
  margin-top: 24px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(45, 83, 104, .13);
  border-radius: 22px;
  background: rgba(255, 255, 255, .58);
  color: #426070;
  font-size: 15px;
}

.contact-availability i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22aa6f;
  box-shadow: 0 0 0 6px rgba(34, 170, 111, .12);
}

.process-list {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(68, 100, 116, .2);
}

.process-list li {
  padding: 16px 0;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(68, 100, 116, .18);
}

.process-list li > b {
  color: #288eff;
  font-size: 12px;
  font-weight: 500;
}

.process-list li span {
  display: grid;
  gap: 4px;
}

.process-list strong {
  font-size: 18px;
  font-weight: 400;
}

.process-list small {
  color: #718692;
  font-size: 15px;
  line-height: 1.45;
}

.contact-card {
  position: relative;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 5px;
  background: rgba(250, 252, 253, .9);
  box-shadow: 0 28px 85px rgba(33, 64, 81, .16);
  backdrop-filter: blur(12px);
}

.contact-card fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.topic-fieldset legend,
.form-grid label > span {
  font-size: 16px;
  font-weight: 400;
}

.topic-fieldset legend {
  margin-bottom: 13px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.topic-grid label {
  position: relative;
  cursor: pointer;
}

.topic-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.topic-grid span {
  min-height: 52px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d4e0e6;
  border-radius: 4px;
  background: #fff;
  color: #4c6675;
  text-align: center;
  font-size: 16px;
  transition: .2s;
}

.topic-grid input:checked + span {
  border-color: #288eff;
  background: #eaf4ff;
  color: #146fbe;
  box-shadow: inset 0 0 0 1px #288eff;
}

.topic-grid input:focus-visible + span {
  outline: 3px solid rgba(40, 142, 255, .2);
}

.form-grid {
  margin-top: 29px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 21px 16px;
}

.form-grid label {
    position: relative;
  display: grid;
  gap: 8px;
}

.field-wide {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  border: 1px solid #ccd9df;
  border-radius: 3px;
  background: #fff;
  color: #173148;
  outline: 0;
  font-size: 18px;
  transition: .2s;
  font-family: "Rubik", Arial, sans-serif;
}

.form-grid input {
  height: 56px;
  padding: 0 16px;
}

.form-grid textarea {
  min-height: 130px;
  padding: 15px 16px;
  resize: vertical;
  line-height: 1.55;
}

.form-grid input:focus,
.form-grid textarea:focus {
  border-color: #288eff;
  box-shadow: 0 0 0 3px rgba(40, 142, 255, .1);
}

.form-grid input.is-invalid,
.form-grid textarea.is-invalid {
  border-color: #d75353;
}

.contact-error:empty {
  display: none;
}

.contact-error {
    position: absolute;
    top: 100%;
  color: #d75353;
  font-size: 12px;
  line-height: 1.4;
}

.form-bottom {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.form-bottom p {
  max-width: 360px;
  margin: 0;
  color: #788b96;
  font-size: 14px;
  line-height: 1.55;
}

.submit-button {
  height: 50px;
  padding: 0 23px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 22px;
  background: #2f2963;
  color: #fff;
  box-shadow: 0 12px 30px rgba(47, 41, 99, .2);
  cursor: pointer;
  font-size: 16px;
}

.submit-button:hover {
  background: #288eff;
}

.submit-button i {
  width: 23px;
  height: 11px;
  background: currentColor;
  mask: url('/assets/img/icon-key-white.svg') center / contain no-repeat;
  -webkit-mask: url('/assets/img/icon-key-white.svg') center / contain no-repeat;
}

.form-success {
  position: absolute;
  inset: 0;
  padding: 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #f6f9fa;
  border-radius: 7px;
}

.form-success[hidden] {
  display: none;
}

.form-success svg {
  width: 54px;
  height: 54px;
  fill: none;
  stroke: #24a76d;
  stroke-width: 1.5;
}

.form-success span {
  margin-top: 15px;
  font-size: 27px;
}

.form-success strong {
  margin-top: 8px;
  color: #68808e;
  font-size: 14px;
  font-weight: 300;
}

.form-success button {
  margin-top: 22px;
  padding: 10px 16px;
  border: 1px solid #ccd9df;
  border-radius: 4px;
  background: #fff;
  color: #173148;
  cursor: pointer;
}

/* =========================
   Numbers section
========================= */
.numbers-section {
  position: relative;
  padding: 82px 0 86px;
  overflow: hidden;
  background: linear-gradient(145deg, #111c25, #172a36 60%, #10202b);
  color: #fff;
}

.numbers-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: .76fr 1.24fr;
  gap: 6%;
  align-items: center;
}

.numbers-heading {
  margin: 0;
}

.numbers-heading > span {
  color: #78b9df;
  font-size: 12px;
  letter-spacing: .15em;
}

.numbers-heading h2 {
  margin: 14px 0 0;
  font-size: clamp(42px, 3.8vw, 54px);
  line-height: 1.1;
  font-weight: 300;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  border-top: 1px solid rgba(255, 255, 255, .18);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.numbers-grid article {
  min-height: 188px;
  padding: 34px 24px 26px;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: baseline;
  border-inline-start: 1px solid rgba(255, 255, 255, .12);
}

.numbers-grid strong {
  font-size: 58px;
  line-height: 1;
  font-weight: 300;
  letter-spacing: -.05em;
}

.numbers-grid sup {
  margin-inline-start: 3px;
  color: #61b2e7;
  font-size: 20px;
}

.numbers-grid span {
  width: 100%;
  display: block;
  margin-top: 22px;
  color: #bfd0d8;
  font-size: 16px;
  line-height: 1.45;
}

/* =========================
   Visit / map section
========================= */
.visit-section {
  padding: 105px 0 120px;
  background: #edf3f6;
}

.visit-grid {
  padding-top: 0;
  padding-bottom: 110px;
  display: grid;
  grid-template-columns: .62fr 1.38fr;
  gap: 7%;
  align-items: center;
  border-top: 1px solid rgba(63, 94, 111, .18);
}

.visit-info h2 {
  margin: 13px 0 15px;
  font-size: clamp(48px, 4.5vw, 62px);
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 300;
}

.visit-info address {
  margin: 30px 0 21px;
  color: #274658;
  font-size: 26px;
  line-height: 1.6;
  font-style: normal;
}

[dir="rtl"] .visit-info address {  direction: rtl;text-align: right;}


.visit-info address b {
  color: #288eff;
  font-weight: 400;
}

.visit-info > p {
  max-width: 470px;
  margin: 0;
  color: #5d7482;
  font-size: 18px;
  line-height: 1.7;
}

.directions-button {
  width: max-content;
  margin-top: 27px;
  padding-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #9cb3bf;
  color: #173148;
  text-decoration: none;
  font-size: 16px;
}

.directions-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.map-card {
  position: relative;
  height: 560px;
  overflow: hidden;
  border: 1px solid #cedce3;
  background: #dce8ee;
  box-shadow: 0 28px 80px rgba(32, 62, 79, .14);
  direction: ltr;
}

.map-card iframe {
    width: 100%;
  height: 100%;
  display: block;
}

.map-art {
  width: 100%;
  height: 100%;
  display: block;
}

.road {
  fill: none;
  stroke: #f7fafb;
  stroke-width: 15;
  stroke-linecap: round;
}

.road--wide {
  stroke-width: 34;
}

.rail {
  fill: none;
  stroke: #99b4c1;
  stroke-width: 4;
  stroke-dasharray: 9 8;
}

.blocks rect {
  fill: #cadbe3;
  stroke: #b9ced8;
}

.office-pin circle:first-child {
  fill: rgba(40, 142, 255, .15);
  animation: pinPulse 2.2s infinite;
}

.office-pin circle:nth-child(2) {
  fill: #fff;
}

.office-pin path {
  fill: #288eff;
  transform: translateY(-34px);
  transform-origin: 443px 245px;
}

@keyframes pinPulse {
  50% {
    r: 57;
    opacity: .35;
  }
}

.map-label {
  position: absolute;
  padding: 10px 13px;
  background: #fff;
  box-shadow: 0 12px 25px rgba(37, 67, 82, .16);
  font-size: 12px;
}

.map-label--office {
  left: 50%;
  top: 34%;
}

.map-label span {
  display: block;
  color: #288eff;
  font-weight: 500;
}

.map-label b {
  display: block;
  margin-top: 4px;
  font-weight: 400;
}

.map-controls {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 4px;
  display: flex;
  gap: 2px;
  border: 1px solid rgba(44, 77, 94, .12);
  border-radius: 23px;
  background: rgba(255, 255, 255, .87);
  box-shadow: 0 10px 28px rgba(38, 68, 84, .12);
  backdrop-filter: blur(8px);
  direction: rtl;
}

.map-controls button {
  height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 19px;
  background: transparent;
  color: #5d7482;
  cursor: pointer;
  font-size: 14px;
}

.map-controls button.is-active {
  background: #2f2963;
  color: #fff;
}

.map-note {
  position: absolute;
  right: 18px;
  bottom: 18px;
  min-width: 245px;
  padding: 14px 16px;
  background: rgba(9, 21, 34, .9);
  color: #fff;
  direction: ltr;
}

.map-note[hidden] {
  display: none;
}

.map-note strong {
  display: block;
  font-size: 16px;
  font-weight: 400;
}

.map-note span {
  display: block;
  margin-top: 5px;
  color: #adc0c9;
  font-size: 13px;
}

/* =========================
   Responsive
========================= */
@media (max-width: 1000px) {
  .contact-section {
    min-height: 0;
    padding: 72px 0 82px;
  }

  .contact-layout {
    grid-template-columns: .8fr 1.2fr;
    gap: 4%;
  }

  .contact-intro h1 {
    font-size: 56px;
  }

  .contact-intro > p {
    font-size: 17px;
  }

  .contact-card {
    padding: 30px;
  }

  .topic-grid span {
    font-size: 14px;
  }

  .form-grid input,
  .form-grid textarea {
    font-size: 16px;
  }

  .numbers-wrap {
    grid-template-columns: 1fr;
  }

  .numbers-heading {
    margin-bottom: 36px;
  }

  .numbers-grid article {
    min-height: 170px;
    padding: 28px 18px 22px;
  }

  .numbers-grid strong {
    font-size: 50px;
  }

  .numbers-grid span {
    font-size: 14px;
  }

  .visit-grid {
    grid-template-columns: .72fr 1.28fr;
    gap: 5%;
  }

  .map-card {
    height: 500px;
  }
}

@media (max-width: 760px) {
  .contact-section {
    min-height: 0;
    padding: 54px 0 68px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-intro h1 {
    font-size: 44px;
  }

  .contact-intro > p {
    font-size: 17px;
  }

  .contact-availability {
    font-size: 13px;
  }

  .process-list {
    margin: 30px 0;
  }

  .process-list strong {
    font-size: 16px;
  }

  .process-list small {
    font-size: 14px;
  }

  .contact-card {
    margin-top: 34px;
    padding: 22px;
  }

  .topic-fieldset legend,
  .form-grid label > span {
    font-size: 14px;
  }

  .topic-grid {
    grid-template-columns: 1fr 1fr;
  }

  .topic-grid span {
    min-height: 48px;
    font-size: 13px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

  .form-grid input,
  .form-grid textarea {
    font-size: 16px;
  }

  .form-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .form-bottom p {
    font-size: 13px;
  }

  .submit-button {
    justify-content: center;
    font-size: 15px;
  }

  .numbers-section {
    padding: 66px 0 70px;
  }

  .numbers-heading {
    margin-bottom: 32px;
  }

  .numbers-heading h2 {
    font-size: 36px;
  }

  .numbers-grid {
    grid-template-columns: 1fr 1fr;
  }

  .numbers-grid article {
    min-height: 154px;
    padding: 25px 16px 20px;
  }

  .numbers-grid strong {
    font-size: 46px;
  }

  .numbers-grid span {
    margin-top: 18px;
    font-size: 14px;
  }

  .visit-grid {
    padding-top: 0;
    padding-bottom: 76px;
    grid-template-columns: 1fr;
  }

  .visit-info {
    margin-bottom: 35px;
  }

  .visit-info h2 {
    font-size: 40px;
  }

  .visit-info address {
    font-size: 22px;
  }

  .visit-info > p {
    font-size: 16px;
  }

  .directions-button {
    font-size: 14px;
  }

  .map-card {
    height: 430px;
  }

  .map-controls button {
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .contact-intro h1 {
    font-size: 42px;
  }

  .contact-card {
    padding: 18px;
  }

  .topic-grid span {
    font-size: 12px;
  }

  .numbers-heading h2 {
    font-size: 34px;
  }

  .numbers-grid strong {
    font-size: 43px;
  }

  .numbers-grid article {
    padding-inline: 12px;
  }

  .visit-info h2 {
    font-size: 38px;
  }

  .map-card {
    height: 410px;
  }

  .map-controls {
    top: 10px;
    right: 10px;
  }

  .map-controls button {
    padding-inline: 12px;
  }

  .map-note {
    right: 10px;
    bottom: 10px;
    min-width: 220px;
  }

  .map-label--office {
    left: 49%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-section *,
  .contact-section *::before,
  .contact-section *::after,
  .numbers-section *,
  .numbers-section *::before,
  .numbers-section *::after,
  .visit-section *,
  .visit-section *::before,
  .visit-section *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
