.cp-contact-page { overflow-x: clip; }

.cp-hero-contact {
  background-color: #082f59;
  background-image:
    linear-gradient(90deg, #004a97 0%, rgba(0, 74, 151, 0) 59.0625%),
    url("../images/ai-originals/secondary-hero-outline.svg"),
    url("../images/about-pages/service-hero.jpg");
  background-repeat: no-repeat;
  background-position: center, center, 67% 48%;
  background-size: 100% 100%, 100% 100%, cover;
}

.cp-hero-contact h1 {
  width: max-content;
  margin-left: 0;
  color: transparent;
  background: linear-gradient(90deg, #fff 0%, #f7fbff 30%, #d8efff 57%, #73b5ed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.cp-contact-intro { background: #fff; }
.cp-contact-intro > .cp-shell {
  padding-block: 90px;
  display: grid;
  grid-template-columns: 560px minmax(0, 1fr);
  gap: 150px;
  align-items: start;
}
.cp-contact-intro > .cp-shell > div > p,
.cp-contact-details-heading > p {
  margin: 0 0 18px;
  color: #9b9ea2;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .12em;
}
.cp-contact-intro h2,
.cp-contact-details-heading h2 {
  margin: 0;
  color: var(--cp-blue);
  font-size: 52px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.035em;
}
.cp-contact-intro > .cp-shell > p {
  max-width: 670px;
  margin: 8px 0 0;
  color: #60656a;
  font-size: 17px;
  line-height: 1.65;
}

.cp-contact-workspace { padding-block: 112px 142px; background: #f2f4f6; }
.cp-contact-layout {
  display: grid;
  grid-template-columns: 615px minmax(0, 755px);
  gap: 70px;
  align-items: stretch;
}
.cp-contact-form-panel { display: flex; align-self: stretch; }
.cp-contact-form-panel .cp-contact-form {
  --cp-form-row-gap: 10px;
  --cp-form-column-gap: 10px;
  width: 615px;
  height: auto;
  min-height: 521px;
  padding: 28px 49px 24px;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  box-shadow: none;
}
.cp-contact-form-panel .cp-contact-form h3 { margin: -7px 0 5px; font-size: 32px; line-height: 42px; }
.cp-contact-form-panel .cp-contact-form > p { min-height: 56px; margin: 0; font-size: 20px; line-height: 28px; }
.cp-contact-form-panel .cp-form-grid { gap: var(--cp-form-row-gap) var(--cp-form-column-gap); }
.cp-contact-form-panel .cp-contact-form input,
.cp-contact-form-panel .cp-contact-form textarea { height: 50px; margin-top: 10px; padding: 0 16px; font-size: 14px; }
.cp-contact-form-panel .cp-contact-form .cp-form-grid input { margin-top: 0; }
.cp-contact-form-panel .cp-contact-form textarea { height: auto; min-height: 90px; padding-top: 12px; flex: 1 1 90px; }
.cp-contact-form-panel .cp-contact-form button { height: 62px; margin-top: 10px; padding: 0; flex: 0 0 62px; font-size: 14px; line-height: 19px; }

.cp-contact-details { min-height: 521px; display: flex; flex-direction: column; }
.cp-contact-details-heading { margin: -8px 0 18px; }
.cp-contact-details-heading h2 { font-size: 44px; }
.cp-contact-card-grid { min-height: 0; display: grid; flex: 1; grid-template-columns: 1fr; grid-template-rows: repeat(6, minmax(0, auto)); align-content: stretch; border-top: 1px solid #bccbd7; }
.cp-contact-card {
  min-width: 0;
  min-height: 0;
  padding: 11px 8px 11px 4px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 24px;
  gap: 16px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #bccbd7;
  color: var(--cp-blue);
  background: transparent;
  text-decoration: none;
}
.cp-contact-card:not([href]) { grid-template-columns: 34px minmax(0, 1fr); }
.cp-contact-card-icon { width: 24px; height: 24px; display: grid; place-items: center; color: var(--cp-blue); }
.cp-contact-card-icon svg { width: 22px; height: 22px; }
.cp-contact-card-copy { min-width: 0; display: block; }
.cp-contact-card-copy small { display: block; margin-bottom: 3px; color: #92989e; font-size: 11px; line-height: 1.2; font-weight: 700; letter-spacing: .1em; }
.cp-contact-card-copy strong { max-width: 100%; display: block; color: var(--cp-blue); font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.cp-contact-card-copy > span { max-width: 100%; margin-top: 2px; display: block; color: #60656a; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.cp-contact-card-arrow { width: 20px; height: 20px; }
.cp-contact-card[href]:focus-visible { outline: 2px solid var(--cp-blue); outline-offset: 3px; }

.cp-whatsapp-modal[hidden] { display: none; }
.cp-whatsapp-modal {
  position: fixed;
  inset: 0;
  z-index: 1600;
  padding: 28px;
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: rgba(3, 23, 48, .78);
  backdrop-filter: blur(5px);
}
.cp-whatsapp-modal-dialog {
  width: min(1040px, 100%);
  padding: 42px 48px 46px;
  position: relative;
  background: #fff;
  box-shadow: 0 26px 70px rgba(0, 25, 56, .28);
}
.cp-whatsapp-modal-eyebrow {
  margin: 0 0 7px;
  color: #9b9ea2;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .12em;
}
.cp-whatsapp-modal-dialog h2 {
  margin: 0 0 30px;
  color: var(--cp-blue);
  font-size: 34px;
  line-height: 1.15;
}
.cp-whatsapp-modal-close {
  width: 42px;
  height: 42px;
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 0;
  border: 1px solid #cbd5df;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.cp-whatsapp-modal-close::before,
.cp-whatsapp-modal-close::after {
  width: 16px;
  height: 1px;
  position: absolute;
  top: 50%;
  left: 50%;
  content: "";
  background: var(--cp-blue);
}
.cp-whatsapp-modal-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.cp-whatsapp-modal-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.cp-whatsapp-qr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.cp-whatsapp-qr-card {
  min-width: 0;
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  border: 1px solid #d4dce4;
  color: var(--cp-blue);
  background: #fff;
  text-align: center;
  text-decoration: none;
}
.cp-whatsapp-qr-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  display: block;
  object-fit: contain;
}
.cp-whatsapp-qr-card strong { font-size: 19px; line-height: 1.3; }
.cp-whatsapp-contact-number { margin-top: 7px; color: #6f7b86; font-size: 14px; line-height: 1.3; }
.cp-whatsapp-qr-card:focus-visible,
.cp-whatsapp-modal-close:focus-visible { outline: 2px solid var(--cp-yellow); outline-offset: 3px; }

.cp-contact-map-grid { width: 100%; margin-top: 70px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cp-contact-map-card { min-width: 0; margin: 0; }
.cp-contact-map { width: 100%; aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: #dce2e7; }
.cp-contact-map iframe { width: 100%; height: 100%; display: block; border: 0; filter: saturate(.7) contrast(.94); }
.cp-contact-map > a {
  height: 51px;
  position: absolute;
  right: 22px;
  bottom: 22px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--cp-yellow);
  border-radius: 26px;
  color: var(--cp-blue);
  background: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.cp-contact-map > a > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--cp-blue); }
.cp-contact-map > a svg { width: 14px; height: 14px; }
.cp-contact-map > a:focus-visible { outline: 2px solid var(--cp-blue); outline-offset: 3px; }
.cp-contact-map-caption { padding-top: 17px; display: grid; gap: 4px; }
.cp-contact-map-caption small { color: #92989e; font-size: 11px; line-height: 1.3; font-weight: 700; letter-spacing: .1em; }
.cp-contact-map-caption strong { color: var(--cp-blue); font-size: 18px; line-height: 1.35; }
.cp-contact-map-caption span { color: #60656a; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }

@media (max-width: 1500px) {
  .cp-contact-intro > .cp-shell { grid-template-columns: minmax(380px, 43%) minmax(0, 1fr); gap: 7vw; }
  .cp-contact-layout { grid-template-columns: minmax(520px, 615px) minmax(0, 1fr); gap: 4vw; }
  .cp-contact-form-panel .cp-contact-form { width: 100%; }
  .cp-contact-card { padding-inline: 4px 8px; grid-template-columns: 32px minmax(0, 1fr) 20px; gap: 13px; }
  .cp-contact-card-copy strong { font-size: 16px; }
  .cp-contact-card:not([href]) { grid-template-columns: 32px minmax(0, 1fr); }
}

@media (max-width: 1200px) {
  .cp-contact-intro > .cp-shell,
  .cp-contact-layout { grid-template-columns: 1fr; }
  .cp-contact-intro > .cp-shell { padding-block: 72px; gap: 30px; }
  .cp-contact-layout { gap: 70px; }
  .cp-contact-form-panel .cp-contact-form { max-width: 615px; height: auto; padding-bottom: 49px; }
  .cp-contact-details { width: 100%; height: auto; }
  .cp-contact-card-grid { min-height: 0; flex: none; grid-template-rows: none; grid-auto-rows: minmax(78px, auto); }
  .cp-contact-card { height: auto; align-content: center; }
  .cp-contact-map-grid { margin-top: 60px; }
}

@media (max-width: 760px) {
  .cp-contact-card-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: minmax(88px, auto); }
  .cp-contact-map-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .cp-hero-contact { background-position: center, center, 64% center; background-size: 100% 100%, auto 50%, auto 100%; }
  .cp-hero-contact h1 { width: 100%; overflow-wrap: normal; word-break: normal; }
  .cp-contact-intro > .cp-shell { min-height: 0; padding-block: 52px; }
  .cp-contact-intro h2,
  .cp-contact-details-heading h2 { font-size: 34px; line-height: 1.1; }
  .cp-contact-intro > .cp-shell > p { margin-top: 0; font-size: 15px; line-height: 1.62; }
  .cp-contact-workspace { padding-block: 58px 70px; }
  .cp-contact-layout { gap: 54px; }
  .cp-contact-form-panel .cp-contact-form { width: 100%; min-height: 0; padding: 34px 20px; }
  .cp-contact-form-panel .cp-contact-form h3 { font-size: 27px; line-height: 1.25; }
  .cp-contact-form-panel .cp-contact-form > p { min-height: 0; margin: 10px 0 18px; font-size: 15px; line-height: 1.55; }
  .cp-contact-card-grid { grid-template-columns: 1fr; }
  .cp-contact-card-grid { min-height: 0; grid-template-rows: none; grid-auto-rows: minmax(92px, auto); }
  .cp-contact-card { min-height: 0; padding: 16px 18px; }
  .cp-contact-map-grid { margin-top: 46px; gap: 18px; }
  .cp-contact-map { height: auto; aspect-ratio: 16 / 9; }
  .cp-contact-map > a { right: 14px; bottom: 14px; }
  .cp-contact-map-caption { padding-top: 13px; }
  .cp-contact-map-caption strong { font-size: 16px; }
  .cp-contact-map-caption span { font-size: 14px; }
  .cp-whatsapp-modal { padding: 16px; align-items: start; }
  .cp-whatsapp-modal-dialog { margin-block: 16px; padding: 34px 20px 24px; }
  .cp-whatsapp-modal-dialog h2 { margin-bottom: 22px; padding-right: 44px; font-size: 28px; }
  .cp-whatsapp-modal-close { top: 16px; right: 16px; }
  .cp-whatsapp-qr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cp-whatsapp-qr-card { width: auto; margin: 0; padding: 10px; gap: 0; }
  .cp-whatsapp-qr-card:nth-child(odd):last-child { width: calc((100% - 12px) / 2); grid-column: 1 / -1; justify-self: center; }
  .cp-whatsapp-qr-card strong { font-size: 16px; }
  .cp-whatsapp-contact-number { margin-top: 5px; font-size: 12px; }
}
