.contact-page {
  background: linear-gradient(180deg, #f4f9ff 0%, #edf5ff 100%);
}

.contact-hero {
  padding: 76px 0 64px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(11, 64, 127, 0.92) 0%, rgba(21, 97, 162, 0.88) 54%, rgba(28, 159, 216, 0.78) 100%),
    url("../../assets/images/shared/backgrounds/psm-painel-bg.jpg") center right / cover no-repeat;
}

.contact-hero__eyebrow {
  display: block;
  margin-bottom: 12px;
  color: #8ee6cb;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.contact-hero h1 {
  max-width: 760px;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.contact-hero__highlight {
  display: inline-block;
  padding-bottom: 0.04em;
  text-decoration: underline;
  text-decoration-color: #1fb4ff;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

.contact-hero p {
  max-width: 700px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  line-height: 1.7;
}

.contact-card-section {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding: 28px 0 28px;
}

.contact-card-section .container {
  display: flex;
  justify-content: center;
}

.contact-card-layout {
  display: grid;
  grid-template-columns: minmax(320px, 360px) 2px minmax(420px, 640px) 2px minmax(320px, 430px);
  align-items: stretch;
  column-gap: 12px;
  row-gap: 28px;
  width: fit-content;
  max-width: calc(100vw - 48px);
  margin: 0 auto 0 calc(50% - 44%);
  justify-content: center;
}

.contact-card-divider {
  align-self: stretch;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(134, 193, 255, 0) 0%, rgba(140, 201, 255, 0.2) 10%, rgba(67, 156, 255, 0.92) 22%, rgba(67, 156, 255, 0.92) 78%, rgba(140, 201, 255, 0.2) 90%, rgba(134, 193, 255, 0) 100%);
  box-shadow:
    0 0 0 1px rgba(188, 226, 255, 0.12),
    0 0 10px rgba(110, 184, 255, 0.14);
  pointer-events: none;
}

.contact-media-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100%;
  border: 1px solid rgba(181, 205, 233, 0.55);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 251, 255, 0.98) 100%);
  box-shadow: 0 24px 60px rgba(31, 79, 138, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  isolation: isolate;
}

.contact-media-card::before,
.contact-media-card::after,
.contact-card-shell::before,
.contact-card-shell::after,
.contact-support-card::before,
.contact-support-card::after {
  content: none;
}

.contact-media-card > *,
.contact-card-shell > *,
.contact-support-card > * {
  position: relative;
  z-index: 1;
}

.contact-media-card img {
  display: block;
  width: 100%;
  height: 180px;
  padding: 14px 14px 0;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(180deg, rgba(245, 251, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.contact-media-card__photo {
  flex: 1;
  min-height: 220px;
  padding: 8px 14px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.contact-media-card__photo img {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.contact-card-shell {
  position: relative;
  width: 100%;
  min-height: 100%;
  padding: clamp(14px, 1.6vw, 18px);
  border: 1px solid rgba(181, 205, 233, 0.55);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(37, 133, 255, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 255, 0.98) 100%);
  box-shadow:
    0 24px 60px rgba(31, 79, 138, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.contact-support-card {
  position: relative;
  width: 100%;
  min-height: 100%;
  padding: 22px 18px 18px;
  border: 1px solid rgba(181, 205, 233, 0.55);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 251, 255, 0.98) 100%);
  box-shadow:
    0 24px 60px rgba(31, 79, 138, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: center;
  overflow: hidden;
}

.contact-support-card__dots {
  position: absolute;
  width: 64px;
  height: 64px;
  opacity: 0.42;
  background-image: radial-gradient(circle, #7ec7ff 1.8px, transparent 1.8px);
  background-size: 12px 12px;
}

.contact-support-card__dots--top {
  top: 14px;
  right: 14px;
}

.contact-support-card__dots--bottom {
  right: 12px;
  bottom: 12px;
}

.contact-support-card__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: 0 auto 14px;
}

.contact-support-card__icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(104, 229, 214, 0.24) 0%, rgba(47, 133, 232, 0.12) 74%, rgba(47, 133, 232, 0.02) 100%);
}

.contact-support-card__icon-headset {
  position: relative;
  z-index: 1;
  color: #1d8ee8;
  font-size: 2.4rem;
  line-height: 1;
}

.contact-support-card__icon-image {
  position: relative;
  z-index: 1;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
}

.contact-support-card h2 {
  color: #153f82;
  font-size: 1rem;
  line-height: 1.18;
  font-weight: 800;
}

.contact-support-card__accent {
  display: block;
  width: 44px;
  height: 5px;
  margin: 12px auto 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #17b9ff 0%, #2188ef 100%);
}

.contact-support-card p {
  color: #365788;
  font-size: 0.88rem;
  line-height: 1.55;
  text-align: justify;
  text-justify: inter-word;
}

.contact-support-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  margin-top: 34px;
  padding: 0 18px;
  border-radius: 14px;
  background: linear-gradient(90deg, #26cf6c 0%, #20b5ce 100%);
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 800;
  box-shadow: 0 16px 28px rgba(32, 181, 206, 0.24);
}

.contact-support-card__button span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.84);
  font-size: 0.8rem;
  line-height: 1;
}

.contact-support-card__button span svg {
  display: block;
  width: 12px;
  height: 12px;
}

.contact-whatsapp-icon--button {
  width: 14px;
  height: 14px;
  transform: translate(0.15px, 0.15px);
}

.contact-support-card__hours {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 92px;
  padding: 14px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f5fbff 0%, #edf5ff 100%);
  border: 1px solid rgba(194, 217, 240, 0.7);
  text-align: left;
}

.contact-support-card__hours-icon {
  color: #1d8ee8;
  font-size: 1.35rem;
  line-height: 1;
}

.contact-support-card__hours-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.contact-support-card__hours strong {
  display: block;
  color: #153f82;
  font-size: 0.92rem;
  font-weight: 800;
}

.contact-support-card__hours-body {
  text-align: left;
}

.contact-support-card__hours span {
  display: block;
  color: #365788;
  font-size: 0.88rem;
  line-height: 1.55;
}

.contact-support-card__hours-times {
  text-align: left;
}

.contact-card-shell__eyebrow {
  display: inline-block;
  margin-bottom: 4px;
  color: #2f85e8;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.contact-card-shell h1 {
  color: #153f82;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.04;
  font-weight: 800;
}

.contact-card-shell__accent {
  display: block;
  width: 74px;
  height: 6px;
  margin: 8px 0 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #17b9ff 0%, #2188ef 100%);
}

.contact-card-shell__intro {
  max-width: 520px;
  margin: 0 0 10px;
  color: #365788;
  font-size: 0.94rem;
  line-height: 1.4;
}

.contact-list {
  display: grid;
  gap: 6px;
}

.contact-item {
  display: grid;
  grid-template-columns: 56px 1fr 24px;
  gap: 16px;
  align-items: center;
  min-height: 60px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(199, 220, 241, 0.75);
  box-shadow: 0 12px 28px rgba(23, 76, 135, 0.08);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.contact-item:hover {
  transform: translateY(-2px);
  border-color: rgba(60, 141, 239, 0.45);
  box-shadow: 0 18px 34px rgba(23, 76, 135, 0.12);
}

.contact-item__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.contact-item__icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.contact-whatsapp-icon {
  width: 21px;
  height: 21px;
  transform: translate(0.2px, 0.2px);
}

.contact-item__body {
  display: grid;
  gap: 4px;
}

.contact-item__body strong {
  color: #153f82;
  font-size: 0.88rem;
  font-weight: 800;
}

.contact-item__body span {
  color: #345685;
  font-size: 0.82rem;
  line-height: 1.35;
}

.contact-item__arrow {
  display: grid;
  place-items: center;
  color: #2f85e8;
  font-size: 1.45rem;
  line-height: 1;
}

.contact-item--email .contact-item__icon,
.contact-item--phone .contact-item__icon,
.contact-item--address .contact-item__icon {
  background: linear-gradient(180deg, #2e97ff 0%, #1674dd 100%);
}

.contact-item--whatsapp .contact-item__icon {
  background: linear-gradient(180deg, #37d66f 0%, #18ae52 100%);
}

.contact-item--address .contact-item__icon {
  font-size: 1.2rem;
}

.contact-map-card {
  position: relative;
  display: block;
  min-height: 138px;
  margin-top: 6px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(199, 220, 241, 0.78);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(242, 247, 253, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 32px rgba(23, 76, 135, 0.1);
  text-decoration: none;
}

.contact-map-card__embed {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.contact-map-card__embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.88) contrast(1.03) brightness(1.02);
}

:root[data-theme="dark"] .contact-page {
  background:
    radial-gradient(circle at 12% 15%, rgba(79, 195, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #07111f 0%, #0b1728 100%);
}

:root[data-theme="dark"] .contact-hero {
  background:
    linear-gradient(90deg, rgba(2, 28, 62, 0.97) 0%, rgba(4, 74, 118, 0.9) 54%, rgba(7, 17, 31, 0.96) 100%),
    url("../../assets/images/shared/backgrounds/psm-painel-bg.jpg") center right / cover no-repeat;
}

:root[data-theme="dark"] .contact-hero__eyebrow {
  color: #4fc3ff;
}

:root[data-theme="dark"] .contact-hero__highlight {
  text-decoration-color: #4fc3ff;
}

:root[data-theme="dark"] .contact-card-shell {
  border-color: rgba(79, 195, 255, 0.22);
  background:
    radial-gradient(circle at top left, rgba(79, 195, 255, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(11, 23, 40, 0.98) 0%, rgba(9, 19, 34, 0.98) 100%);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(79, 195, 255, 0.08);
}

:root[data-theme="dark"] .contact-support-card {
  border-color: rgba(79, 195, 255, 0.22);
  background: linear-gradient(180deg, rgba(11, 23, 40, 0.98) 0%, rgba(9, 19, 34, 0.98) 100%);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(79, 195, 255, 0.08);
}

:root[data-theme="dark"] .contact-media-card {
  border-color: rgba(79, 195, 255, 0.22);
  background: linear-gradient(180deg, rgba(11, 23, 40, 0.98) 0%, rgba(9, 19, 34, 0.98) 100%);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(79, 195, 255, 0.08);
}

:root[data-theme="dark"] .contact-media-card > img {
  background: linear-gradient(180deg, #eaf5ff 0%, #f5fbff 100%);
  filter: none;
}

:root[data-theme="dark"] .contact-media-card__photo img {
  background: transparent;
  filter: brightness(0.96) saturate(0.94);
}

:root[data-theme="dark"] .contact-card-divider {
  background: linear-gradient(180deg, rgba(79, 195, 255, 0) 0%, rgba(79, 195, 255, 0.18) 10%, rgba(79, 195, 255, 0.72) 22%, rgba(79, 195, 255, 0.72) 78%, rgba(79, 195, 255, 0.18) 90%, rgba(79, 195, 255, 0) 100%);
  box-shadow:
    0 0 0 1px rgba(79, 195, 255, 0.1),
    0 0 10px rgba(79, 195, 255, 0.12);
}

:root[data-theme="dark"] .contact-card-shell__eyebrow {
  color: #7bd4ff;
}

:root[data-theme="dark"] .contact-card-shell__accent,
:root[data-theme="dark"] .contact-support-card__accent {
  background: linear-gradient(90deg, #4fc3ff 0%, #2188ef 100%);
}

:root[data-theme="dark"] .contact-card-shell h1,
:root[data-theme="dark"] .contact-item__body strong,
:root[data-theme="dark"] .contact-support-card h2,
:root[data-theme="dark"] .contact-support-card__hours strong {
  color: #e8f2ff;
}

:root[data-theme="dark"] .contact-card-shell__intro,
:root[data-theme="dark"] .contact-item__body span,
:root[data-theme="dark"] .contact-support-card p,
:root[data-theme="dark"] .contact-support-card__hours span {
  color: #a9bdd4;
}

:root[data-theme="dark"] .contact-item {
  background: rgba(13, 28, 48, 0.94);
  border-color: rgba(79, 195, 255, 0.2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .contact-item:hover {
  border-color: rgba(79, 195, 255, 0.42);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.28),
    0 0 16px rgba(79, 195, 255, 0.1);
}

:root[data-theme="dark"] .contact-item__arrow {
  color: #7bd4ff;
}

:root[data-theme="dark"] .contact-map-card {
  background: rgba(13, 28, 48, 0.94);
  border-color: rgba(79, 195, 255, 0.2);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .contact-map-card__embed iframe {
  filter: saturate(0.78) brightness(0.78) contrast(1.04);
}

:root[data-theme="dark"] .contact-support-card__dots {
  opacity: 0.28;
  background-image: radial-gradient(circle, #4fc3ff 1.8px, transparent 1.8px);
}

:root[data-theme="dark"] .contact-support-card__icon-ring {
  background: radial-gradient(circle, rgba(79, 195, 255, 0.22) 0%, rgba(33, 136, 239, 0.1) 74%, rgba(33, 136, 239, 0.02) 100%);
}

:root[data-theme="dark"] .contact-support-card__icon-image {
  background: #eaf5ff;
}

:root[data-theme="dark"] .contact-support-card__hours {
  background: linear-gradient(180deg, rgba(16, 30, 49, 0.98) 0%, rgba(13, 28, 48, 0.98) 100%);
  border-color: rgba(79, 195, 255, 0.2);
}

:root[data-theme="dark"] .contact-support-card__hours-icon {
  color: #7bd4ff;
}

@media (max-width: 1220px) {
  .contact-card-layout {
    grid-template-columns: minmax(280px, 0.92fr) 2px minmax(380px, 1.08fr);
    max-width: 980px;
  }

  .contact-card-divider:last-of-type {
    display: none;
  }

  .contact-support-card {
    grid-column: 1 / -1;
    max-width: 430px;
    justify-self: center;
  }
}

@media (max-width: 980px) {
  .contact-hero {
    padding: 68px 0 52px;
  }

  .contact-hero h1 {
    max-width: 640px;
    font-size: clamp(2rem, 6vw, 3.35rem);
  }

  .contact-card-layout {
    grid-template-columns: 1fr;
    max-width: 740px;
    gap: 20px;
  }

  .contact-card-divider {
    display: none;
  }

  .contact-media-card,
  .contact-card-shell,
  .contact-support-card {
    max-width: none;
  }
}

@media (max-width: 700px) {
  .contact-hero {
    padding: 76px 0 64px;
  }

  .contact-hero h1 {
    font-size: clamp(2.25rem, 5vw, 4rem);
  }

  .contact-hero p {
    font-size: 1rem;
  }

  .contact-card-section {
    margin-top: 0;
    padding: 18px 0 24px;
  }

  .contact-card-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-media-card {
    width: 100%;
  }

  .contact-media-card img {
    height: 160px;
    padding: 12px 12px 0;
  }

  .contact-media-card__photo {
    min-height: 190px;
    padding: 6px 12px 10px;
  }

  .contact-card-shell {
    border-radius: 24px;
    padding: 14px 10px;
  }

  .contact-support-card {
    width: 100%;
    border-radius: 24px;
    padding: 18px 14px 16px;
  }

  .contact-item {
    grid-template-columns: 54px 1fr 22px;
    gap: 10px;
    min-height: 58px;
    padding: 8px 10px;
    border-radius: 20px;
  }

  .contact-item__icon {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .contact-item__body strong {
    font-size: 0.84rem;
  }

  .contact-item__body span {
    font-size: 0.8rem;
  }

  .contact-map-card {
    min-height: 132px;
  }

}
