/* ==========================================
   DGT CONTACT PAGE
   ========================================== */

.dgt-contact-preview {
  --cp-blue: #004a8d;
  --cp-ink: #34465c;
  --cp-orange: #f77719;
  background: #f5f7fa;
  color: var(--cp-ink);
  padding: 64px 20px 72px;
}

.dgt-contact-preview * {
  box-sizing: border-box;
}

/* ==========================================
   LAYOUT
   ========================================== */

.cp-shell {
  max-width: 1120px;
  margin: auto;
}

.cp-intro {
  max-width: 760px;
  margin-bottom: 36px;
  position: static !important;
  z-index: auto !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  font-weight: 400 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  transform: none !important;
}

.cp-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #c55308;
  margin: 0 0 12px;
}

.cp-intro h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
  max-width: 680px;
  margin: 0 0 18px;
  color: #34465c;
}

.cp-intro > p:last-child {
  font-size: 17px;
  line-height: 1.7;
  margin: 0;
  font-weight: 400 !important;
}

/* ==========================================
   GRID
   ========================================== */

.cp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: start;
}

/* ==========================================
   CARDS
   ========================================== */

.cp-form-card, .cp-contact-card, .cp-feedback-card {
  background: white;
  border: 1px solid #e0e6ed;
  border-radius: 12px;
  padding: 32px;
}

.cp-form-card {
  border-top: 4px solid var(--cp-orange);
  box-shadow: 0 12px 36px #1b34500a;
}

.cp-form-card h2, .cp-contact-card h2, .cp-feedback-card h2 {
  font-size: 25px;
  margin: 0 0 8px;
}

.cp-form-intro {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 26px;
}

/* ==========================================
   FORM FIELDS
   ========================================== */

.cp-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.cp-full {
  grid-column: 1 / -1;
}

.dgt-contact-preview label, .dgt-contact-preview legend {
  display: block;
  background: transparent !important;
  color: #34465c !important;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 7px;
}

.dgt-contact-preview input:not([type="radio"]), .dgt-contact-preview select, .dgt-contact-preview textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #bdcbd9;
  border-radius: 5px;
  padding: 12px 13px;
  background: #fff;
  color: #263c51;
  font-size: 16px;
  line-height: 1.4;
  box-shadow: none;
}

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

/* Focus */

.dgt-contact-preview input:focus-visible, .dgt-contact-preview select:focus-visible, .dgt-contact-preview textarea:focus-visible {
  outline: 3px solid #0066ad35;
  border-color: #004a8d;
}

/* ==========================================
   FORM NOTE
   ========================================== */

.cp-note {
  font-size: 12px;
  line-height: 1.6;
  color: #607084;
  margin: 12px 0 18px;
}

.dgt-contact-preview #dgt-contact-form p[style] {
  color: #607084 !important;
}

/* ==========================================
   REFERRAL FIELDS
   ========================================== */

.dgt-referral-fields {
  grid-column: 1 / -1;
  margin: 18px 0;
}

.dgt-referral-fields [data-referral-other] {
  margin-top: 12px;
}

.dgt-referral-fields [hidden] {
  display: none !important;
}

/* ==========================================
   BUTTONS
   ========================================== */

.cp-submit, .cp-directions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #004a8d !important;
  color: white !important;
  border: 0;
  border-radius: 5px;
  padding: 14px 22px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  min-height: 48px;
}

.cp-submit {
  width: 100%;
}

.cp-submit:hover, .cp-directions:hover {
  background: #f77719 !important;
  color: #fff !important;
}

/* ==========================================
   CONTACT INFORMATION
   ========================================== */

.cp-side {
  display: flex;
  flex-direction: column;
  height: auto;
  align-self: start;
  gap: 20px;
}

.cp-contact-card {
  background: #103b62;
  color: white;
  border: 0;
}

.cp-contact-card h2 {
  color: white;
  font-size: 25px;
  line-height: 1.25;
  margin-bottom: 30px;
}

.cp-detail {
  padding: 0 0 22px;
  margin: 0 0 22px;
  border-bottom: 1px solid #ffffff26;
}

.cp-detail:last-child {
  margin: 0;
  padding: 0;
  border: 0;
}

.cp-detail span {
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #b7d4eb;
  margin-bottom: 7px;
}

.cp-detail a {
  color: white;
  text-decoration: none;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.cp-detail a:hover {
  text-decoration: underline;
}

.cp-detail address {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  font-style: normal;
}

.cp-calling-hours {
  margin: 10px 0 0;
  color: #d2e3f1;
  font-size: 14px;
  line-height: 1.6;
}

/* ==========================================
   GOOGLE MAPS
   ========================================== */

.cp-map {
  margin-top: 40px;
  background: white;
  border: 1px solid #e0e6ed;
  border-radius: 12px;
  overflow: hidden;
}

.cp-map-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px 30px;
}

.cp-map h2 {
  font-size: 26px;
  margin: 0 0 5px;
}

.cp-map p {
  font-size: 14px;
  margin: 0;
}

.cp-map iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

.cp-external-icon {
  display: block;
  flex: 0 0 auto;
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

.cp-map-head a:focus-visible, .cp-submit:focus-visible, .cp-feedback-link:focus-visible {
  outline: 3px solid #f77719;
  outline-offset: 3px;
}

/* ==========================================
   NAVIGATION STACKING
   ========================================== */

#black-nav {
  z-index: 2205 !important;
  isolation: isolate;
}

/* ==========================================
   HONEYPOT
   ========================================== */

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

/* ==========================================
   MOBILE — BELOW 768px
   ========================================== */

@media (max-width: 767.98px) {
  .dgt-contact-preview {
    padding: 34px 16px 44px;
  }
}

@media (max-width: 767.98px) {
  .cp-intro {
    margin-bottom: 26px;
  }
}

@media (max-width: 767.98px) {
  .cp-intro > p:last-child {
    font-size: 16px;
  }
}

/* Layout */

@media (max-width: 767.98px) {
  .cp-grid {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
}

/* Contact details first */

@media (max-width: 767.98px) {
  .cp-side {
    order: -1;
    width: 100%;
    height: auto;
    gap: 16px;
  }
}

@media (max-width: 767.98px) {
  .cp-contact-card {
    padding: 24px;
  }
}

@media (max-width: 767.98px) {
  .cp-contact-card h2 {
    font-size: 22px;
    margin-bottom: 22px;
  }
}

@media (max-width: 767.98px) {
  .cp-detail {
    padding-bottom: 16px;
    margin-bottom: 16px;
  }
}

@media (max-width: 767.98px) {
  .cp-detail a {
    font-size: 20px;
  }
}

/* Form */

@media (max-width: 767.98px) {
  .cp-form-card {
    padding: 24px 20px;
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .cp-fields {
    grid-template-columns: 1fr;
    gap: 17px;
  }
}

/* Map */

@media (max-width: 767.98px) {
  .cp-map {
    margin-top: 28px;
  }
}

@media (max-width: 767.98px) {
  .cp-map-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }
}

@media (max-width: 767.98px) {
  .cp-map iframe {
    height: 300px;
  }
}

@media (max-width: 767.98px) {
  .cp-map-head a {
    width: 100%;
  }
}

