/* Top-page contact variant.
   The form markup and mail endpoint stay shared with the corporate variant. */

html.contact-pop-mode {
  --contact-ink: #30363d;
  --contact-muted: #68645d;
  --contact-paper: #fbf3e6;
  --contact-paper-light: #fffaf1;
  --contact-coral: #e9644d;
  --contact-coral-dark: #c84f3d;
  --contact-sun: #f3c24e;
  --contact-forest: #275f4c;
  --contact-line: rgba(76, 64, 50, .14);
  --contact-texture: url("/assets/adopted-paper-confetti-v1.webp");
}

html.contact-pop-mode body {
  overflow-x: clip;
  background: var(--contact-paper);
  color: var(--contact-ink);
  font-family: "Zen Kaku Gothic New", sans-serif;
}

html.contact-pop-mode .page-hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  padding: 138px 0 92px;
  background-color: var(--contact-paper-light);
  background-image: linear-gradient(rgba(255, 250, 241, .13), rgba(255, 250, 241, .13)), var(--contact-texture);
  background-position: center;
  background-size: cover;
}

html.contact-pop-mode .page-hero::after {
  position: absolute;
  right: clamp(34px, 9vw, 150px);
  bottom: -54px;
  width: clamp(150px, 18vw, 260px);
  aspect-ratio: 1;
  border-radius: 48% 52% 43% 57%;
  background: rgba(243, 194, 78, .28);
  content: "";
  pointer-events: none;
  transform: rotate(13deg);
}

html.contact-pop-mode .page-hero .container {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 860px);
  text-align: center;
}

html.contact-pop-mode .breadcrumb {
  justify-content: center;
  color: var(--contact-coral-dark);
  font-family: "Space Grotesk", "Zen Kaku Gothic New", sans-serif;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
}

html.contact-pop-mode .breadcrumb a {
  color: var(--contact-forest);
}

html.contact-pop-mode .page-hero__title {
  margin-top: 18px;
  color: var(--contact-ink);
  font-family: "Zen Maru Gothic", "Zen Kaku Gothic New", sans-serif !important;
  font-size: clamp(2.9rem, 7vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.1;
}

html.contact-pop-mode .page-hero__sub {
  max-width: 38em;
  margin: 25px auto 0;
  color: var(--contact-muted);
  font-size: clamp(.92rem, 1.5vw, 1.05rem);
  line-height: 2;
}

html.contact-pop-mode .section {
  position: relative;
  margin: 0;
  padding: clamp(64px, 8vw, 112px) 0 clamp(90px, 11vw, 150px);
  background-color: var(--contact-paper);
  background-image: linear-gradient(rgba(251, 243, 230, .72), rgba(251, 243, 230, .72)), var(--contact-texture);
  background-position: center 22%;
  background-size: cover;
}

html.contact-pop-mode .section > .container {
  width: min(100% - 40px, 980px);
}

html.contact-pop-mode .section > .container > div {
  max-width: 820px !important;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid rgba(76, 64, 50, .1);
  border-radius: 28px;
  background: rgba(255, 250, 241, .94);
  box-shadow: 0 28px 68px rgba(89, 68, 44, .14);
  backdrop-filter: blur(8px);
}

html.contact-pop-mode .tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 34px;
  padding: 6px;
  border: 0;
  border-radius: 18px;
  background: rgba(243, 194, 78, .2);
}

html.contact-pop-mode .tab-btn {
  min-height: 52px;
  margin: 0;
  padding: 12px 18px;
  border: 0;
  border-radius: 13px;
  color: var(--contact-muted);
  font-family: "Zen Maru Gothic", "Zen Kaku Gothic New", sans-serif;
  font-size: .92rem;
  font-weight: 700;
  transition: color .25s ease, background-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

html.contact-pop-mode .tab-btn:hover {
  color: var(--contact-coral-dark);
  transform: translateY(-1px);
}

html.contact-pop-mode .tab-btn.active {
  background: var(--contact-coral);
  color: #fffaf1;
  box-shadow: 0 10px 24px rgba(200, 79, 61, .2);
}

html.contact-pop-mode .tab-panel > p:first-child {
  margin-bottom: 30px !important;
  padding: 16px 18px !important;
  border-left: 4px solid var(--contact-sun);
  border-radius: 4px 12px 12px 4px !important;
  background: rgba(243, 194, 78, .12) !important;
  color: var(--contact-muted) !important;
  line-height: 1.8;
}

html.contact-pop-mode .form__label {
  color: var(--contact-ink);
  font-family: "Zen Maru Gothic", "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
}

html.contact-pop-mode .required {
  border-radius: 999px;
  background: rgba(233, 100, 77, .12);
  color: var(--contact-coral-dark);
}

html.contact-pop-mode .form__input,
html.contact-pop-mode .form__select,
html.contact-pop-mode .form__textarea {
  border: 1px solid rgba(76, 64, 50, .16);
  border-radius: 12px;
  background: rgba(255, 255, 255, .84);
  color: var(--contact-ink);
  font-family: "Zen Kaku Gothic New", sans-serif;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

html.contact-pop-mode .form__input:focus,
html.contact-pop-mode .form__select:focus,
html.contact-pop-mode .form__textarea:focus {
  outline: none;
  border-color: var(--contact-coral);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(233, 100, 77, .12);
}

html.contact-pop-mode .form__agree a {
  color: var(--contact-forest) !important;
}

html.contact-pop-mode .form__submit .btn {
  min-width: 230px !important;
  min-height: 54px;
  border: 1px solid var(--contact-coral-dark);
  border-radius: 5px;
  background: var(--contact-coral);
  color: #fffaf1;
  font-family: "Zen Maru Gothic", "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(200, 79, 61, .2);
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}

html.contact-pop-mode .form__submit .btn:hover {
  background: var(--contact-coral-dark);
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(200, 79, 61, .25);
}

html.contact-pop-mode .footer {
  border: 0;
  background: var(--contact-forest);
  color: rgba(255, 250, 241, .78);
}

html.contact-pop-mode .footer a,
html.contact-pop-mode .footer__col-title,
html.contact-pop-mode .footer__copyright,
html.contact-pop-mode .footer__legal a {
  color: #fffaf1;
}

html.contact-pop-mode .footer__bottom {
  border-color: rgba(255, 250, 241, .18);
}

@media (min-width: 981px) {
  html.contact-pop-mode .header {
    position: fixed;
    z-index: 80;
    inset: 0;
    display: block;
    width: 0;
    height: 100svh;
    min-height: 0;
    border: 0;
    background: transparent;
    pointer-events: none;
  }

  html.contact-pop-mode .header__inner {
    display: block;
    width: 0;
    max-width: none;
    height: 0;
    margin: 0;
    padding: 0;
  }

  html.contact-pop-mode .header__logo {
    position: fixed;
    top: 26px;
    left: 28px;
    display: inline-flex;
    width: auto;
    max-width: 244px;
    min-height: 64px;
    padding: 10px 16px 10px 11px;
    gap: 11px;
    border: 1px solid rgba(21, 101, 192, .13);
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 14px 34px rgba(70, 57, 42, .13);
    pointer-events: auto;
  }

  html.contact-pop-mode .header__logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
  }

  html.contact-pop-mode .header__logo span {
    color: #1565c0;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: .9rem;
  }

  html.contact-pop-mode .header__logo small {
    color: #74787b;
  }

  html.contact-pop-mode .header__nav {
    position: fixed;
    bottom: 28px;
    left: 28px;
    display: flex;
    width: 238px;
    margin: 0;
    padding: 18px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 1px;
    border: 1px solid rgba(74, 63, 51, .11);
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 42px rgba(70, 57, 42, .14);
    pointer-events: auto;
  }

  html.contact-pop-mode .header__nav a,
  html.contact-pop-mode .header__nav .header__tel {
    display: flex;
    min-height: 34px;
    margin: 0;
    padding: 7px 0;
    align-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--contact-ink);
    font-family: "Zen Maru Gothic", "Zen Kaku Gothic New", sans-serif;
    font-size: .83rem;
    font-weight: 700;
  }

  html.contact-pop-mode .header__nav a::before {
    width: 5px;
    height: 5px;
    margin-right: 12px;
    border: 1px solid rgba(233, 100, 77, .52);
    border-radius: 50%;
    content: "";
  }

  html.contact-pop-mode .header__nav a:hover {
    color: var(--contact-coral-dark);
    transform: translateX(3px);
  }

  html.contact-pop-mode .header__menu-btn {
    display: none;
  }
}

@media (max-width: 980px) {
  html.contact-pop-mode .header {
    border-bottom: 1px solid rgba(76, 64, 50, .1);
    background: rgba(255, 250, 241, .94);
    backdrop-filter: blur(12px);
  }

  html.contact-pop-mode .header__logo span {
    color: #1565c0;
  }

  html.contact-pop-mode .header__menu-btn span {
    background: var(--contact-ink);
  }

  html.contact-pop-mode .mobile-nav {
    background: var(--contact-paper-light);
  }

  html.contact-pop-mode .mobile-nav a {
    color: var(--contact-ink);
    font-family: "Zen Maru Gothic", "Zen Kaku Gothic New", sans-serif;
  }

  html.contact-pop-mode .page-hero {
    min-height: 360px;
    padding: 108px 0 70px;
  }
}

@media (max-width: 640px) {
  html.contact-pop-mode .page-hero .container,
  html.contact-pop-mode .section > .container {
    width: min(100% - 28px, 100%);
  }

  html.contact-pop-mode .page-hero {
    min-height: 320px;
    padding: 90px 0 56px;
  }

  html.contact-pop-mode .page-hero__title {
    font-size: clamp(2.5rem, 13vw, 3.55rem);
  }

  html.contact-pop-mode .page-hero__sub {
    line-height: 1.8;
  }

  html.contact-pop-mode .section {
    padding: 42px 0 80px;
  }

  html.contact-pop-mode .section > .container > div {
    padding: 18px 16px 28px;
    border-radius: 20px;
  }

  html.contact-pop-mode .tabs {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 26px;
  }

  html.contact-pop-mode .tab-btn {
    min-height: 46px;
    font-size: .85rem;
  }

  html.contact-pop-mode .form__submit .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.contact-pop-mode *,
  html.contact-pop-mode *::before,
  html.contact-pop-mode *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
