@import url("home-revamp.css");

.contact-hero {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  background: linear-gradient(135deg, #022d62 0%, #0a4a8a 45%, #022d62 100%) !important;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/contact-us-hero.jpeg") center/cover no-repeat;
  opacity: 0.12;
  z-index: 0;
}

.contact-hero__content {
  position: relative;
  z-index: 2;
  padding: 5rem 15px 2.5rem;
}

.contact-hero h1 {
  color: #ffffff;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 1.15rem;
}

.contact-hero .rg-hero-lead {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.88);
}

.contact-hero__trust {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  margin: -0.5rem 0 1.75rem;
}

.contact-hero .rg-hero-ctas .btn {
  margin: 0.35rem;
  font-weight: 600;
  padding: 0.75rem 1.45rem;
}

.contact-hero .btn-primary-round,
.contact-submit,
.contact-quote-cta .btn-primary-round {
  background: #00c2a8;
  border-color: #00c2a8;
  color: #022d62;
}

.contact-hero .btn-primary-round:hover,
.contact-hero .btn-primary-round:focus,
.contact-submit:hover,
.contact-submit:focus,
.contact-quote-cta .btn-primary-round:hover,
.contact-quote-cta .btn-primary-round:focus {
  background: #00e6c8;
  border-color: #00e6c8;
  color: #022d62;
}

.contact-hero .btn-outline-light.btn-round {
  border: 2px solid rgba(255, 255, 255, 0.82);
  color: #ffffff !important;
  background: transparent;
  border-radius: 50px;
}

.contact-hero .btn-outline-light.btn-round:hover,
.contact-hero .btn-outline-light.btn-round:focus {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #022d62 !important;
}

.contact-main,
.contact-location {
  background: #f7fafc;
  padding: 4rem 0;
}

.contact-panel {
  background: #ffffff;
  border: 1px solid #e4ebf3;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(2, 45, 98, 0.09);
}

.contact-form-panel {
  padding: 2rem;
}

.contact-section-heading {
  margin-bottom: 1.5rem;
}

.contact-section-heading span,
.contact-card-kicker,
.contact-quote-cta__inner span {
  display: inline-block;
  color: #00a892;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.contact-section-heading h2,
.contact-info-card h2,
.contact-quote-cta h2 {
  color: #022d62;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.contact-section-heading p,
.contact-quote-cta p,
.contact-preferred p,
.contact-urgent {
  color: #5a6578;
  line-height: 1.65;
  margin-bottom: 0;
}

.contact-form .form-label {
  color: #27364a;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.contact-form .form-control {
  min-height: 48px;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  color: #1f2937;
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
}

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

.contact-form .form-control:focus {
  border-color: #00c2a8;
  box-shadow: 0 0 0 0.18rem rgba(0, 194, 168, 0.14);
}

.contact-form label.error {
  color: #c53232;
  display: block;
  font-size: 0.8rem;
  line-height: 1.35;
  margin: 0.35rem 0 0;
  min-height: 1px;
}

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

.contact-consent {
  border-top: 1px solid #e8edf2;
  margin-top: 1.3rem;
  padding-top: 1.1rem;
}

.contact-consent .form-check {
  align-items: flex-start;
  display: flex;
  gap: 0.55rem;
  min-height: auto;
  padding-left: 0;
}

.contact-consent .form-check-input {
  flex: 0 0 18px;
  height: 18px;
  margin: 0.18rem 0 0;
  width: 18px;
}

.contact-consent .form-check-label {
  color: #27364a;
  font-size: 0.92rem;
  line-height: 1.55;
}

.contact-consent p {
  color: #718096;
  font-size: 0.83rem;
  margin: 0.45rem 0 0 1.6rem;
}

.contact-captcha {
  margin-top: 1.25rem;
}

.contact-captcha .g-recaptcha {
  min-height: 78px;
}

.contact-submit {
  border-radius: 50px;
  font-weight: 700;
  margin-top: 1.35rem;
  padding: 0.78rem 1.6rem;
}

.contact-urgent {
  font-size: 0.88rem;
  margin-top: 0.8rem;
}

.contact-info-card {
  overflow: hidden;
  padding: 2rem;
  position: sticky;
  top: 110px;
}

.contact-info-card::before {
  content: "";
  display: block;
  height: 4px;
  margin: -2rem -2rem 1.7rem;
  background: linear-gradient(90deg, #00c2a8, #1c7aff);
}

.contact-info-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.contact-info-item {
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #e8edf2;
  border-radius: 10px;
  color: #27364a;
  display: flex;
  gap: 0.85rem;
  padding: 0.9rem;
}

.contact-info-item:hover,
.contact-info-item:focus {
  border-color: rgba(0, 194, 168, 0.55);
  color: #022d62;
}

.contact-info-item i {
  align-items: center;
  background: #e6fbf8;
  border-radius: 8px;
  color: #00a892;
  display: inline-flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.contact-info-item--primary {
  background: #edfffc;
  border-color: rgba(0, 194, 168, 0.35);
}

.contact-info-item span {
  display: grid;
  gap: 0.15rem;
  line-height: 1.45;
}

.contact-info-item strong {
  color: #022d62;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.contact-preferred,
.contact-other,
.contact-social {
  border-top: 1px solid #e8edf2;
  margin-top: 1.35rem;
  padding-top: 1.25rem;
}

.contact-preferred h3,
.contact-other h3,
.contact-social h3 {
  color: #022d62;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.contact-other a {
  color: #5a6578;
  font-size: 0.9rem;
}

.contact-other a:hover,
.contact-other a:focus {
  color: #00a892;
}

.contact-social ul {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0;
}

.contact-social a {
  align-items: center;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  color: #022d62;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.contact-social a:hover,
.contact-social a:focus {
  background: #022d62;
  border-color: #022d62;
  color: #ffffff;
}

.contact-trust-strip {
  background: #ffffff;
  padding: 2rem 0;
}

.contact-trust-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-trust-item {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e8edf2;
  border-radius: 10px;
  color: #27364a;
  display: flex;
  gap: 0.75rem;
  min-height: 86px;
  padding: 1rem;
}

.contact-trust-item i {
  color: #00a892;
  flex: 0 0 auto;
  font-size: 1.05rem;
}

.contact-trust-item span {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}

.contact-quote-cta {
  background: #ffffff;
  padding: 1rem 0 4rem;
}

.contact-quote-cta__inner {
  align-items: center;
  background: linear-gradient(135deg, #022d62, #06477f);
  border-radius: 12px;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  padding: 2rem;
}

.contact-quote-cta h2,
.contact-quote-cta p {
  color: #ffffff;
}

.contact-quote-cta p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 720px;
}

.contact-map-card {
  background: #ffffff;
  border: 1px solid #e4ebf3;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(2, 45, 98, 0.08);
  overflow: hidden;
}

.contact-map-card iframe {
  display: block;
}

.contact-map-card__address {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

.contact-map-card__address strong {
  color: #022d62;
}

.contact-map-card__address span {
  color: #5a6578;
  flex: 1;
  line-height: 1.45;
}

.contact-map-card__address a {
  color: #00a892;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .contact-hero__content {
    padding: 4rem 15px 2rem;
  }

  .contact-main,
  .contact-location {
    padding: 3rem 0;
  }

  .contact-info-card {
    position: static;
  }

  .contact-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-quote-cta__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-map-card__address {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 575px) {
  .contact-hero__content {
    padding: 3.5rem 15px 1.75rem;
  }

  .contact-hero .rg-hero-ctas .btn,
  .contact-submit,
  .contact-quote-cta .btn {
    display: flex;
    justify-content: center;
    margin-right: 0;
    margin-left: 0;
    width: 100%;
  }

  .contact-form-panel,
  .contact-info-card,
  .contact-quote-cta__inner {
    padding: 1.25rem;
  }

  .contact-info-card::before {
    margin: -1.25rem -1.25rem 1.25rem;
  }

  .contact-trust-grid {
    grid-template-columns: 1fr;
  }

  .contact-trust-item {
    min-height: auto;
  }

  .contact-consent p {
    margin-left: 0;
  }

  .contact-map-card iframe {
    height: 320px;
  }
}
