:root {
  --clr-primary-400: 143 100% 30%;
  --clr-secondary-400: 128 94% 70%;
  --clr-secondary-500: 82% 94% 62%;
  --clr-neutral-100: 0 0% 100%;
  --clr-neutral-200: 255 100% 100%;
  --clr-neutral-300: 34% 97% 26%;

  --green: #009a3b;
  --green-dark: #007a2f;
  --ink: #17211b;
  --muted: #5c675f;
  --line: #e7e4dc;
  --paper: #f4f2ee;
  --card: #ffffff;

  --ff-primary: "Segoe UI", system-ui, sans-serif;
  --fw-400: 500;
  --fw-700: 650;
  --fs-300: 0.6875rem;
  --fs-400: 0.8125rem;
  --fs-500: 1.25rem;

  --dhx-h-primary: 143;
  --dhx-s-primary: 100%;
  --dhx-l-primary: 30%;
  --dhx-border-radius: 8px;
  --dhx-font-family: "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  font-family: var(--ff-primary);
  font-weight: 450;
  color: var(--ink);
  background:
    radial-gradient(1200px 420px at 50% -80px, rgba(0, 154, 59, 0.08), transparent 60%),
    var(--paper);
}

a:not([class]) {
  text-decoration-skip-ink: auto;
}

img,
picture {
  max-width: 100%;
  display: block;
}

input,
button,
textarea,
select {
  font: inherit;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

h1,
h2,
h3 {
  font-weight: var(--fw-700);
}

.bg-primary-400 { background: hsl(var(--clr-primary-400)); }
.bg-secondary-400 { background: hsl(var(--clr-secondary-400)); }
.bg-secondary-500 { background: hsl(var(--clr-secondary-500)); }
.bg-neutral-100 { background: hsl(var(--clr-neutral-100)); }
.text-neutral-100 { color: hsl(var(--clr-neutral-100)); }
.text-secondary-400 { color: hsl(var(--clr-secondary-400)); }
.border-primary-400 { border: 2px solid #a775f1; }

.primary-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.primary-header__content {
  width: min(1180px, calc(100% - 32px));
  height: 84px;
  margin: 0 auto;
}

.primary-header::after {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--green), #7dce3a);
}

.TMOD_image {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.TMOD_logo {
  display: block;
  height: 46px;
  width: auto;
  cursor: pointer;
}

.Cookmate_logo {
  display: block;
  height: 64px;
  width: auto;
}

.primary-body {
  background: transparent;
}

.primary-body-image {
  width: 100%;
  background: #e7e2d8;
  overflow: hidden;
}

.primary-body-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 42%;
}

.primary-body-image--short img {
  height: 220px;
  object-position: center 35%;
}

.wrapper_text,
.form-card {
  position: relative;
  width: min(760px, calc(100% - 32px));
  margin: -72px auto 56px;
  padding: 36px 40px 28px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  box-shadow:
    0 1px 2px rgba(23, 33, 27, 0.04),
    0 18px 50px rgba(23, 33, 27, 0.1);
}

.form-card {
  width: min(1280px, calc(100% - 32px));
  margin-top: -48px;
  margin-bottom: 20px;
  padding: 28px 28px 12px;
}

body.page-photo {
  background-color: #d9d3c8;
  background-image: url("../images/TM_Service.jpg");
  background-position: center 35%;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.page-photo .form-card,
body.page-photo .wrapper_text {
  margin-top: 36px;
  margin-bottom: 28px;
  box-shadow:
    0 1px 2px rgba(23, 33, 27, 0.06),
    0 22px 50px rgba(23, 33, 27, 0.22);
}

body.page-photo .footer_text,
body.page-photo .site-note {
  display: inline-block;
  color: #fff;
  background: rgba(23, 33, 27, 0.45);
  padding: 8px 16px;
  border-radius: 999px;
}

body.page-photo .site-note {
  display: table;
  margin: 0 auto 36px;
}

body.page-photo .footer_text:hover {
  color: #fff;
  background: rgba(0, 122, 47, 0.85);
}

.kicker {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}

.pre_order,
.thanks_text {
  text-align: center;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
  background: transparent;
  padding-top: 0;
  font-weight: 750;
}

.pre_text {
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
  background: transparent;
  max-width: 38rem;
  margin: 14px auto 0;
  padding-top: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.step {
  background: #f7f8f5;
  border: 1px solid #eceee8;
  border-radius: 14px;
  padding: 14px 12px 12px;
  text-align: center;
}

.step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.35;
}

.container_button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 8px;
  padding: 22px 0 8px;
}

.pre_button {
  background: var(--green);
  border: none;
  color: #fff;
  padding: 14px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(0, 154, 59, 0.28);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.pre_button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(0, 154, 59, 0.32);
}

.pre_button:focus-visible {
  outline: 3px solid rgba(0, 154, 59, 0.35);
  outline-offset: 3px;
}

.product-video-inner {
  display: flex;
  align-items: center;
}

.video-frame {
  display: block;
  margin: 0 auto;
  width: 720px;
  height: 405px;
  box-shadow: 2px 15px 28px #0000003b;
}

.grid-container {
  display: grid;
  grid-template-columns: 50% 50%;
  color: white;
  grid-row-gap: 20px;
  grid-column-gap: 20px;
  padding: 30px;
}

.grid-item {
  padding: 20px;
  text-align: center;
  justify-content: center;
  height: 100%;
}

.wrapper_form {
  display: block;
  height: auto;
  background: transparent;
}

.layout_side {
  display: none;
}

.layout_body {
  width: 100%;
}

.thanks_text {
  cursor: default;
}

.wrapper_text--thanks {
  text-align: center;
  padding-top: 42px;
}

.thanks-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #e8f6ec;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
}

.site-note {
  text-align: center;
  color: #8a918c;
  font-size: 0.8rem;
  padding: 0 16px 36px;
}

footer {
  padding: 4px 16px 36px;
  text-align: center;
}

.footer,
.footer_text,
.footer_text_m {
  background: transparent;
  color: #6d756f;
  height: auto;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
}

.footer_text:hover,
.footer_text_m:hover {
  color: var(--green-dark);
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100% !important;
  max-width: 460px;
  height: auto !important;
  min-height: 160px;
  background: #f6f7f4;
  border: 1px solid #e6e8e3;
  border-radius: 14px;
  overflow: hidden;
}

.resize_fit_center {
  max-width: 100%;
  max-height: 200px;
  width: auto;
  height: auto;
  vertical-align: middle;
  object-fit: contain;
}

.layout_body .dhx_form-fieldset {
  border: 0;
  padding: 4px 8px 8px;
  margin: 0;
}

.layout_body .dhx_form-fieldset-legend {
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding: 4px 4px 12px;
  width: 100%;
}

.layout_body .dhx_label,
.layout_body .dhx_input__caption,
.layout_body .dhx_combobox__label {
  color: #3d4841;
  font-weight: 600;
}

.layout_body .dhx_button--view_flat {
  border-radius: 999px;
  min-width: 140px;
  padding-inline: 22px;
  font-weight: 700;
}

.layout_body .dhx_form,
.layout_body .dhx_form > .dhx_layout-cell,
.layout_body .dhx_form-fieldset {
  width: 100% !important;
  max-width: 100% !important;
}

.layout_body .dhx_form-fieldset > .dhx_layout-columns {
  width: 100% !important;
  max-width: 100% !important;
  flex-wrap: wrap !important;
  align-items: flex-start;
  column-gap: 28px;
  row-gap: 8px;
}

.layout_body .dhx_form-fieldset > .dhx_layout-columns > .dhx_layout-cell {
  flex: 1 1 460px !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: min(100%, 420px) !important;
}

.layout_body .dhx_form-fieldset > .dhx_layout-columns > .dhx_layout-cell:first-child {
  flex: 0 1 480px !important;
  max-width: 520px !important;
}

.layout_body .dhx_form-fieldset > .dhx_layout-columns > .dhx_layout-cell:last-child {
  flex: 1 1 480px !important;
}

.layout_body .dhx_layout-rows > .dhx_layout-cell,
.layout_body .dhx_layout-rows .dhx_layout-columns,
.layout_body .dhx_layout-rows .dhx_form-group,
.layout_body .dhx_layout-rows .dhx_widget,
.layout_body .dhx_layout-rows .dhx_combobox-input-box,
.layout_body .dhx_layout-rows .dhx_input,
.layout_body .dhx_layout-rows .dhx_input__container {
  width: 100% !important;
  max-width: 100% !important;
}

.layout_body .dhx_layout-rows > .dhx_layout-cell {
  flex: 1 1 auto !important;
}

.layout_body .dhx_form-group--inline {
  display: flex;
  align-items: center;
}

.layout_body .dhx_form-group--inline > .dhx_label,
.layout_body .dhx_combobox--label-inline > .dhx_label {
  flex: 0 0 auto;
}

.layout_body .dhx_form-group--inline > .dhx_input__wrapper,
.layout_body .dhx_combobox--label-inline > .dhx_combobox-input-box {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
}

.layout_body .dhx_form-fieldset > .dhx_layout-columns > .dhx_layout-cell .dhx_layout-columns > .dhx_layout-cell:only-child {
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: 100% !important;
}

.layout_body .dhx_form-fieldset > .dhx_layout-columns > .dhx_layout-cell .dhx_layout-columns > .dhx_layout-cell:first-child:not(:only-child) {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}

.layout_body .dhx_form-fieldset > .dhx_layout-columns > .dhx_layout-cell .dhx_layout-columns > .dhx_layout-cell:last-child:not(:only-child) {
  flex: 0 0 210px !important;
  width: 210px !important;
  max-width: 42% !important;
}

@media screen and (max-width: 1080px) {
  .layout_body .dhx_form-fieldset > .dhx_layout-columns > .dhx_layout-cell:first-child,
  .layout_body .dhx_form-fieldset > .dhx_layout-columns > .dhx_layout-cell:last-child {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

@media screen and (max-width: 900px) {
  .primary-body-image img {
    height: 240px;
  }

  .primary-body-image--short img {
    height: 160px;
  }

  .wrapper_text,
  .form-card {
    margin-top: -36px;
    padding: 24px 18px 16px;
    border-radius: 18px;
  }

  body.page-photo {
    background-attachment: scroll;
  }

  body.page-photo .form-card,
  body.page-photo .wrapper_text {
    margin-top: 20px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .grid-container {
    grid-template-columns: 100%;
    padding: 16px;
  }

  .video-frame {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .layout_body .dhx_form-group--inline,
  .layout_body .dhx_combobox--label-inline {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .layout_body .dhx_label,
  .layout_body .dhx_combobox__label {
    width: auto !important;
    max-width: 100% !important;
    text-align: left !important;
  }

  .layout_body .dhx_form-group--inline > .dhx_input__wrapper,
  .layout_body .dhx_combobox--label-inline > .dhx_combobox-input-box,
  .layout_body .dhx_form-combobox__wrapper {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .layout_body .dhx_form-fieldset > .dhx_layout-columns > .dhx_layout-cell .dhx_layout-columns {
    flex-wrap: wrap !important;
  }

  .layout_body .dhx_form-fieldset > .dhx_layout-columns > .dhx_layout-cell .dhx_layout-columns > .dhx_layout-cell:first-child:not(:only-child),
  .layout_body .dhx_form-fieldset > .dhx_layout-columns > .dhx_layout-cell .dhx_layout-columns > .dhx_layout-cell:last-child:not(:only-child) {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .TMOD_logo {
    height: 34px;
  }

  .Cookmate_logo {
    height: 52px;
  }

  .primary-header__content {
    height: 72px;
  }
}
