:root {
  --ui-radius-sm: 4px;
  --ui-radius: 6px;
  --ui-radius-lg: 8px;
  --ui-focus: 0 0 0 4px rgba(var(--accent-rgb), .18);
}

html {
  scroll-padding-top: 122px;
}

body {
  text-rendering: optimizeLegibility;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.contact-section {
  padding: clamp(104px, 11vw, 160px) 0;
  background: #071d33;
}

.contact-panel {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.contact-panel > .col-lg-5 {
  padding-top: clamp(16px, 3vw, 42px);
}

.contact-panel h2 {
  max-width: 560px;
  margin: 14px 0 24px;
  color: #fff;
  font-size: clamp(2.7rem, 5vw, 4.9rem);
  line-height: .98;
  letter-spacing: 0;
}

.contact-panel > .col-lg-5 > p {
  max-width: 530px;
  margin-bottom: 38px;
  color: rgba(255, 255, 255, .7);
  font-size: 1.04rem;
  line-height: 1.75;
}

.contact-direct {
  display: grid;
  max-width: 520px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.contact-direct a {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  text-decoration: none;
}

.contact-direct small,
.contact-direct b {
  display: block;
}

.contact-direct small {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, .55);
  font-size: .72rem;
  text-transform: uppercase;
}

.contact-direct b {
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 1.7vw, 1.3rem);
}

.contact-form {
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--ui-radius-lg);
  background: #fff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .18);
}

.contact-form .form-label {
  color: #18344d;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-form .form-control,
.contact-form .form-select {
  min-height: 52px;
  border-color: #ccd5de;
  border-radius: var(--ui-radius);
  color: #071d33;
}

.contact-form textarea.form-control {
  min-height: 142px;
  resize: vertical;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--accent);
  box-shadow: var(--ui-focus);
}

.contact-privacy {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #607181;
  font-size: .78rem;
  line-height: 1.55;
}

.contact-privacy input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.contact-privacy a {
  color: var(--primary-dark);
  font-weight: 700;
}

.contact-submit {
  display: flex;
  gap: 18px;
  align-items: center;
}

.contact-submit > span {
  max-width: 220px;
  color: #748391;
  font-size: .75rem;
  line-height: 1.45;
}

.form-status {
  display: none;
  margin: 0;
  color: #315d46;
  font-size: .82rem;
  font-weight: 700;
}

.form-status.is-visible {
  display: block;
}

.callback-form > small a {
  color: inherit;
  font-weight: 800;
}

.form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-footer {
  padding-top: clamp(70px, 8vw, 110px);
}

.footer-email {
  display: block;
  margin-top: 10px;
  color: inherit;
  font-size: .9rem;
  overflow-wrap: anywhere;
}

.footer-main {
  padding-top: 0;
}

.mobile-dock a {
  min-width: 0;
}

.navbar-nav .nav-link.is-active,
.navbar-nav .nav-link[aria-current="location"] {
  color: var(--accent);
}

.navbar-nav .nav-link.is-active::before,
.navbar-nav .nav-link[aria-current="location"]::before {
  opacity: 1;
  transform: scaleX(1);
}

@media (max-width: 991.98px) {
  .contact-panel {
    --bs-gutter-y: 48px;
  }

  .contact-panel > .col-lg-5 {
    padding-top: 0;
  }
}

@media (max-width: 575.98px) {
  html {
    scroll-padding-top: 96px;
  }

  .contact-section {
    padding: 82px 0 96px;
  }

  .contact-panel h2 {
    font-size: 2.55rem;
  }

  .contact-form {
    padding: 22px;
  }

  .contact-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-submit .btn,
  .contact-submit > span {
    width: 100%;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
