:root {
  --green: #009a3b;
  --green-dark: #007a2f;
  --ink: #17211b;
  --muted: #5c675f;
  --line: #e7e4dc;
  --paper: #f4f2ee;
  --card: #ffffff;

  --ff-primary: "Segoe UI", system-ui, sans-serif;

  --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 {
  margin: 0;
}

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: var(--paper);
}

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: 750;
}

.primary-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
}

.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;
  max-width: 62%;
  cursor: pointer;
}

.Cookmate_logo {
  display: block;
  height: 64px;
  width: auto;
}

.primary-body {
  background: transparent;
}

body.page-photo {
  background-color: #cfc6b8;
  background-image: url("../images/TM7_taste.jpg");
  background-position: center 40%;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.wrapper_text {
  position: relative;
  width: min(720px, calc(100% - 32px));
  margin: 36px auto 48px;
  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.06),
    0 22px 50px rgba(23, 33, 27, 0.22);
}

.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: 36rem;
  margin: 14px auto 0;
  padding-top: 0;
}

.form-container {
  margin-top: 22px;
}

.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;
}

.container_button {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 8px 0 8px;
}

.pre_button {
  background: var(--green);
  border: none;
  color: #fff;
  padding: 14px 32px;
  text-align: center;
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  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);
}

.pre_button:focus-visible {
  outline: 3px solid rgba(0, 154, 59, 0.35);
  outline-offset: 3px;
}

.form-container .dhx_form,
.form-container .dhx_form > .dhx_layout-cell,
.form-container .dhx_layout-rows,
.form-container .dhx_layout-rows > .dhx_layout-cell,
.form-container .dhx_layout-columns,
.form-container .dhx_form-group,
.form-container .dhx_widget,
.form-container .dhx_combobox-input-box,
.form-container .dhx_input,
.form-container .dhx_input__container {
  width: 100% !important;
  max-width: 100% !important;
}

.form-container .dhx_layout-rows > .dhx_layout-cell,
.form-container .dhx_layout-columns > .dhx_layout-cell {
  flex: 1 1 auto !important;
}

.form-container .dhx_form-group--inline {
  display: flex;
  align-items: center;
}

.form-container .dhx_form-group--inline > .dhx_label,
.form-container .dhx_combobox--label-inline > .dhx_label {
  flex: 0 0 auto;
  color: #3d4841;
  font-weight: 600;
}

.form-container .dhx_form-group--inline > .dhx_input__wrapper,
.form-container .dhx_combobox--label-inline > .dhx_combobox-input-box {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
}

.form-container .dhx_label,
.form-container .dhx_combobox__label {
  color: #3d4841;
  font-weight: 600;
}

.form-container .dhx_button--view_flat {
  border-radius: 999px;
  min-width: 140px;
  padding-inline: 22px;
  font-weight: 700;
}

@media screen and (max-width: 700px) {
  body.page-photo {
    background-attachment: scroll;
  }

  .primary-header__content {
    height: 72px;
  }

  .TMOD_logo {
    height: 34px;
  }

  .Cookmate_logo {
    height: 52px;
  }

  .wrapper_text {
    margin-top: 20px;
    padding: 24px 18px 16px;
    border-radius: 18px;
  }

  .form-container .dhx_form-group--inline,
  .form-container .dhx_combobox--label-inline {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .form-container .dhx_label,
  .form-container .dhx_combobox__label {
    width: auto !important;
    max-width: 100% !important;
    text-align: left !important;
  }

  .form-container .dhx_form-group--inline > .dhx_input__wrapper,
  .form-container .dhx_combobox--label-inline > .dhx_combobox-input-box {
    width: 100% !important;
    margin-left: 0 !important;
  }
}
