/*
 * CxPASS destination page — mobile-first layout.
 * Scope: /send_page_new/ only.
 */

.cxpass-send-html {
  overflow-x: hidden;
}

body.cxpass-send-destination {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(13, 180, 173, .10), transparent 32rem),
    linear-gradient(180deg, #f7fffd 0, #fffaf3 52%, #f7fbfa 100%);
}

body.cxpass-send-destination .cxpass-site-main {
  min-height: 58vh;
}

/* Compact operational header: no marketing navigation on this page. */
body.cxpass-send-destination .cxpass-site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  border-bottom: 1px solid rgba(7, 143, 139, .12);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 5px 20px rgba(6, 72, 74, .045);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

body.cxpass-send-destination .cxpass-site-header__inner {
  width: calc(100% - 32px);
  min-height: 62px;
  gap: 16px;
}

body.cxpass-send-destination .cxpass-site-logo img {
  width: 122px;
  max-width: 100%;
  height: auto;
}

.cxpass-send-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  margin-left: auto;
  padding: 8px 13px;
  border: 1px solid #d8e9e7;
  border-radius: 999px;
  background: #fff;
  color: #315f61;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.cxpass-send-home-link span {
  color: #078f8b;
  font-size: 16px;
  line-height: 1;
}

/* Reset generic internal-page sizing for this dedicated template. */
body.cxpass-send-destination .cxpass-site-main > article.cxpass-send-page {
  width: 100%;
  max-width: none;
  margin: 0;
}

.cxpass-send-page {
  width: 100%;
  min-width: 0;
}

.cxpass-send-page__inner {
  width: calc(100% - 28px);
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 0 64px;
}

.cxpass-send-page__heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 0 16px;
  padding: 0 4px;
}

.cxpass-send-page__heading-icon {
  position: relative;
  display: grid;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #12b8b1, #078f8b);
  box-shadow: 0 10px 26px rgba(7, 143, 139, .18);
}

/* Pin / parcel mark, made only with CSS. */
.cxpass-send-page__heading-icon span {
  position: relative;
  width: 24px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 5px;
}

.cxpass-send-page__heading-icon span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -11px;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  transform: translateX(-50%);
}

.cxpass-send-page__heading-icon span::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 6px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .85);
}

.cxpass-send-page__eyebrow {
  margin: 0 0 3px;
  color: #078f8b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
  line-height: 1.3;
}

.cxpass-send-page__heading h1 {
  margin: 0;
  color: #073f42;
  font-size: clamp(29px, 9vw, 38px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.2;
}

/* Main destination content card. */
body.cxpass-send-destination .cxpass-send-page__content {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 24px 20px 26px;
  overflow: hidden;
  border: 1px solid #dcebea;
  border-radius: 24px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 16px 46px rgba(6, 72, 74, .08);
  color: #294f51;
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

body.cxpass-send-destination .cxpass-send-page__content > :first-child {
  margin-top: 0 !important;
}

body.cxpass-send-destination .cxpass-send-page__content > :last-child {
  margin-bottom: 0 !important;
}

body.cxpass-send-destination .cxpass-send-page__content h1,
body.cxpass-send-destination .cxpass-send-page__content h2,
body.cxpass-send-destination .cxpass-send-page__content h3,
body.cxpass-send-destination .cxpass-send-page__content h4 {
  max-width: 100%;
  color: #073f42;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

body.cxpass-send-destination .cxpass-send-page__content h2 {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 21px;
  line-height: 1.5;
}

body.cxpass-send-destination .cxpass-send-page__content h3 {
  margin: 26px 0 10px;
  padding: 0 0 0 13px;
  border: 0;
  border-left: 4px solid #0db4ad;
  border-radius: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1.55;
}

body.cxpass-send-destination .cxpass-send-page__content p {
  max-width: 100%;
  margin: 0 0 14px;
}

body.cxpass-send-destination .cxpass-send-page__content a {
  color: #078f8b;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

/* Prevent fixed-width plugin / block output from breaking mobile. */
body.cxpass-send-destination .cxpass-send-page__content *,
body.cxpass-send-destination .cxpass-send-page__content *::before,
body.cxpass-send-destination .cxpass-send-page__content *::after {
  box-sizing: border-box;
}

body.cxpass-send-destination .cxpass-send-page__content img,
body.cxpass-send-destination .cxpass-send-page__content video,
body.cxpass-send-destination .cxpass-send-page__content canvas,
body.cxpass-send-destination .cxpass-send-page__content svg {
  max-width: 100% !important;
  height: auto !important;
}

body.cxpass-send-destination .cxpass-send-page__content iframe {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  border: 0;
}

body.cxpass-send-destination .cxpass-send-page__content pre,
body.cxpass-send-destination .cxpass-send-page__content code {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

body.cxpass-send-destination .cxpass-send-page__content .wp-block-columns,
body.cxpass-send-destination .cxpass-send-page__content .columns,
body.cxpass-send-destination .cxpass-send-page__content .row {
  min-width: 0 !important;
  max-width: 100% !important;
}

body.cxpass-send-destination .cxpass-send-page__content .wp-block-column,
body.cxpass-send-destination .cxpass-send-page__content [class*="column"],
body.cxpass-send-destination .cxpass-send-page__content [class*="col-"] {
  min-width: 0;
  max-width: 100%;
}

/* Forms: thumb-friendly, iOS-zoom-safe, one column by default. */
body.cxpass-send-destination .cxpass-send-page__content form {
  display: grid;
  width: 100%;
  max-width: 100% !important;
  gap: 16px;
  margin: 0;
}

body.cxpass-send-destination .cxpass-send-page__content label {
  display: block;
  color: #164a4c;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}

body.cxpass-send-destination .cxpass-send-page__content input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.cxpass-send-destination .cxpass-send-page__content select,
body.cxpass-send-destination .cxpass-send-page__content textarea {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 52px;
  margin: 7px 0 0;
  padding: 13px 14px;
  border: 1px solid #cfe1df;
  border-radius: 13px;
  background: #fff;
  color: #173f41;
  font: inherit;
  font-size: 16px; /* prevents automatic zoom on iOS */
  line-height: 1.45;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

body.cxpass-send-destination .cxpass-send-page__content textarea {
  min-height: 130px;
  resize: vertical;
}

body.cxpass-send-destination .cxpass-send-page__content input:focus,
body.cxpass-send-destination .cxpass-send-page__content select:focus,
body.cxpass-send-destination .cxpass-send-page__content textarea:focus {
  border-color: #078f8b;
  box-shadow: 0 0 0 4px rgba(7, 143, 139, .10);
}

body.cxpass-send-destination .cxpass-send-page__content input[type="checkbox"],
body.cxpass-send-destination .cxpass-send-page__content input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 0 8px 0 0;
  accent-color: #078f8b;
  vertical-align: middle;
}

body.cxpass-send-destination .cxpass-send-page__content button,
body.cxpass-send-destination .cxpass-send-page__content input[type="submit"],
body.cxpass-send-destination .cxpass-send-page__content input[type="button"],
body.cxpass-send-destination .cxpass-send-page__content .button,
body.cxpass-send-destination .cxpass-send-page__content .wp-block-button__link {
  display: inline-flex;
  width: 100%;
  max-width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  background: #078f8b;
  color: #fff !important;
  text-align: center;
  text-decoration: none;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
  box-shadow: 0 10px 24px rgba(7, 143, 139, .20);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body.cxpass-send-destination .cxpass-send-page__content button:active,
body.cxpass-send-destination .cxpass-send-page__content input[type="submit"]:active,
body.cxpass-send-destination .cxpass-send-page__content .button:active,
body.cxpass-send-destination .cxpass-send-page__content .wp-block-button__link:active {
  transform: translateY(1px);
}

/* Tables stay readable without forcing the whole page sideways. */
.cxpass-send-table-scroll {
  width: 100%;
  max-width: 100%;
  margin: 18px 0;
  overflow-x: auto;
  border: 1px solid #dcebea;
  border-radius: 16px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

body.cxpass-send-destination .cxpass-send-page__content table {
  width: 100%;
  min-width: 520px;
  margin: 0;
  border-collapse: collapse;
  background: #fff;
}

body.cxpass-send-destination .cxpass-send-page__content th,
body.cxpass-send-destination .cxpass-send-page__content td {
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid #e8f1f0;
  text-align: left;
  vertical-align: top;
}

body.cxpass-send-destination .cxpass-send-page__content th {
  background: #f0faf9;
  color: #075e60;
  font-weight: 800;
}

/* Lists and notices. */
body.cxpass-send-destination .cxpass-send-page__content ul,
body.cxpass-send-destination .cxpass-send-page__content ol {
  margin: 16px 0;
  padding-left: 1.35em;
}

body.cxpass-send-destination .cxpass-send-page__content li + li {
  margin-top: 8px;
}

body.cxpass-send-destination .cxpass-send-page__content .notice,
body.cxpass-send-destination .cxpass-send-page__content .alert,
body.cxpass-send-destination .cxpass-send-page__content [class*="error"],
body.cxpass-send-destination .cxpass-send-page__content [class*="message"] {
  max-width: 100%;
  padding: 14px 15px;
  border-radius: 14px;
  overflow-wrap: anywhere;
}

/* Empty / invalid destination state. */
body.cxpass-send-destination .cxpass-send-page__content--not-found {
  position: relative;
  padding: 38px 22px 34px;
  text-align: center;
}

body.cxpass-send-destination .cxpass-send-page__content--not-found::before {
  content: "";
  display: block;
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(13, 180, 173, .13), rgba(255, 216, 77, .18));
  box-shadow: inset 0 0 0 1px rgba(7, 143, 139, .10);
}

body.cxpass-send-destination .cxpass-send-page__content--not-found::after {
  content: "?";
  position: absolute;
  left: 50%;
  top: 52px;
  color: #078f8b;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  transform: translateX(-50%);
}

body.cxpass-send-destination .cxpass-send-page__content--not-found h1,
body.cxpass-send-destination .cxpass-send-page__content--not-found h2,
body.cxpass-send-destination .cxpass-send-page__content--not-found h3,
body.cxpass-send-destination .cxpass-send-page__content--not-found p:first-of-type {
  color: #073f42;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.55;
}

body.cxpass-send-destination .cxpass-send-page__content--not-found p {
  color: #678082;
}

/* Compact footer: no marketing information block on the destination page. */
body.cxpass-send-destination .cxpass-site-footer--send {
  margin-top: 0;
  padding: 0;
  background: #073f42;
}

.cxpass-send-footer {
  display: grid;
  width: calc(100% - 32px);
  max-width: 920px;
  margin: 0 auto;
  gap: 22px;
  padding: 30px 0 max(28px, env(safe-area-inset-bottom));
  text-align: center;
}

body.cxpass-send-destination .cxpass-send-footer .cxpass-site-footer__logo {
  display: inline-flex;
  justify-self: center;
}

body.cxpass-send-destination .cxpass-send-footer .cxpass-site-footer__logo img {
  width: 128px;
  height: auto;
  filter: brightness(0) invert(1);
}

.cxpass-send-footer__links {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px !important;
}

body.cxpass-send-destination .cxpass-site-footer .cxpass-send-footer__links a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 7px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 12px;
  background: rgba(255, 255, 255, .055);
  color: #d9eeee !important;
  font-size: 11px !important;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none !important;
}

body.cxpass-send-destination .cxpass-send-footer .cxpass-site-footer__copy {
  margin: 0;
  color: #9fc2c3;
  font-size: 11px;
  line-height: 1.5;
  white-space: normal;
}

/* Tablet / desktop enhancements. Mobile remains the source of truth. */
@media (min-width: 700px) {
  body.cxpass-send-destination .cxpass-site-header__inner {
    width: min(1100px, calc(100% - 48px));
    min-height: 72px;
  }

  body.cxpass-send-destination .cxpass-site-logo img {
    width: 145px;
  }

  .cxpass-send-home-link {
    min-height: 44px;
    padding-inline: 17px;
    font-size: 13px;
  }

  .cxpass-send-page__inner {
    width: min(760px, calc(100% - 48px));
    padding: 52px 0 92px;
  }

  .cxpass-send-page__heading {
    gap: 18px;
    margin-bottom: 22px;
  }

  .cxpass-send-page__heading-icon {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
    border-radius: 20px;
  }

  .cxpass-send-page__heading h1 {
    font-size: 42px;
  }

  body.cxpass-send-destination .cxpass-send-page__content {
    padding: 38px 42px 42px;
    border-radius: 30px;
    font-size: 16px;
    line-height: 1.9;
  }

  body.cxpass-send-destination .cxpass-send-page__content h2 {
    font-size: 26px;
  }

  body.cxpass-send-destination .cxpass-send-page__content button,
  body.cxpass-send-destination .cxpass-send-page__content input[type="submit"],
  body.cxpass-send-destination .cxpass-send-page__content input[type="button"],
  body.cxpass-send-destination .cxpass-send-page__content .button,
  body.cxpass-send-destination .cxpass-send-page__content .wp-block-button__link {
    width: auto;
    min-width: 220px;
  }

  body.cxpass-send-destination .cxpass-send-page__content--not-found {
    padding: 52px 44px 48px;
  }

  body.cxpass-send-destination .cxpass-send-page__content--not-found::after {
    top: 66px;
  }

  .cxpass-send-footer {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    padding: 30px 0;
    text-align: left;
  }

  body.cxpass-send-destination .cxpass-send-footer .cxpass-site-footer__logo {
    justify-self: start;
  }

  .cxpass-send-footer__links {
    display: flex !important;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px !important;
  }

  body.cxpass-send-destination .cxpass-site-footer .cxpass-send-footer__links a {
    min-height: 40px;
    padding: 6px 0;
    border: 0;
    background: transparent;
    font-size: 12px !important;
  }

  body.cxpass-send-destination .cxpass-send-footer .cxpass-site-footer__copy {
    justify-self: end;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  body.cxpass-send-destination .cxpass-site-header__inner {
    width: calc(100% - 22px);
  }

  body.cxpass-send-destination .cxpass-site-logo img {
    width: 108px;
  }

  .cxpass-send-home-link {
    padding-inline: 10px;
    font-size: 11px;
  }

  .cxpass-send-page__inner {
    width: calc(100% - 20px);
    padding-top: 22px;
  }

  body.cxpass-send-destination .cxpass-send-page__content {
    padding: 21px 16px 23px;
    border-radius: 20px;
  }

  .cxpass-send-page__heading-icon {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .cxpass-send-page__heading h1 {
    font-size: 28px;
  }

  .cxpass-send-footer {
    width: calc(100% - 22px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cxpass-send-home-link,
  body.cxpass-send-destination .cxpass-send-page__content button,
  body.cxpass-send-destination .cxpass-send-page__content input[type="submit"],
  body.cxpass-send-destination .cxpass-send-page__content .button {
    transition: none !important;
  }
}

/* Strong mobile normalization for shortcode/plugin layouts. */
@media (max-width: 699px) {
  body.cxpass-send-destination .cxpass-send-page__content > *,
  body.cxpass-send-destination .cxpass-send-page__content [class*="container"],
  body.cxpass-send-destination .cxpass-send-page__content [class*="wrapper"],
  body.cxpass-send-destination .cxpass-send-page__content [class*="inner"] {
    max-width: 100% !important;
  }

  body.cxpass-send-destination .cxpass-send-page__content [class*="container"],
  body.cxpass-send-destination .cxpass-send-page__content [class*="wrapper"] {
    width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.cxpass-send-destination .cxpass-send-page__content .wp-block-columns,
  body.cxpass-send-destination .cxpass-send-page__content .columns,
  body.cxpass-send-destination .cxpass-send-page__content .row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    width: 100% !important;
  }

  body.cxpass-send-destination .cxpass-send-page__content .wp-block-columns > *,
  body.cxpass-send-destination .cxpass-send-page__content .columns > *,
  body.cxpass-send-destination .cxpass-send-page__content .row > * {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
