.tng-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

html.tng-modal-is-open,
body.tng-modal-is-open {
  overflow: hidden;
  overscroll-behavior: contain;
}

.tng-modal[hidden] {
  display: none !important;
}

.tng-modal {
  --tng-bg: #1a080e;
  --tng-bg-2: #3a121f;
  --tng-text: #ffffff;
  --tng-muted: rgba(255, 255, 255, 0.94);
  --tng-field-bg: #eeeeee;
  --tng-field-text: #111111;
  --tng-accent: #00b5af;
  --tng-error: #f04424;
  --tng-heading-font: "Noto Sans JP", Helvetica, Arial, Lucida, sans-serif;
  --tng-body-font: "Noto Sans JP", Helvetica, Arial, Lucida, sans-serif;
  --tng-alt-font: "Share Tech",Helvetica,Arial,Lucida,sans-serif;
  --tng-button-font: "Roboto Mono", monospace;

  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 28px;
  min-height: 100vh;
  min-height: 100dvh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.tng-modal--open {
  opacity: 1;
  pointer-events: auto;
}

.tng-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
}

.tng-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1240px);
  max-height: calc(100vh - 56px);
  max-height: calc(100dvh - 56px);
  overflow: hidden;
  color: var(--tng-text);
  background:
    linear-gradient(90deg, rgba(17, 5, 9, 0.97) 0%, rgba(34, 10, 18, 0.96) 52%, rgba(54, 17, 31, 0.94) 100%),
    radial-gradient(circle at 80% 35%, rgba(255, 255, 255, 0.05), transparent 30%),
    linear-gradient(135deg, var(--tng-bg), var(--tng-bg-2));
  border-radius: 24px;
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.55),
    0 10px 36px rgba(0, 0, 0, 0.36);
  transform: translateY(10px) scale(0.99);
  transition: transform 180ms ease;
}

.tng-modal--open .tng-modal__dialog {
  transform: translateY(0) scale(1);
}

.tng-modal__dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.1), transparent 26%),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 18px
    );
  mix-blend-mode: screen;
}

.tng-modal__content {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  max-height: calc(100vh - 56px);
  max-height: calc(100dvh - 56px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(38px, 4.4vw, 64px);
  outline: none;
}

.tng-modal__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: clamp(42px, 6vw, 80px);
  align-items: start;
}

.tng-modal__main {
  min-width: 0;
}

/* Extra specificity is intentional: Divi has broad body.page-template-default h2 rules. */
body.page-template-default:not(.home) #tng-modal h2.tng-modal__title,
body.post-template-default #tng-modal h2.tng-modal__title,
#tng-modal h2.tng-modal__title {
  max-width: 850px;
  margin: 0 0 18px 0 !important;
  color: #ffffff !important;
  font-family: var(--tng-heading-font) !important;
  font-size: clamp(2rem, 2vw, 2.4rem) !important;
  line-height: 0.98 !important;
  font-weight: 700 !important;
  letter-spacing: 0.005em;
  text-transform: none !important;
}

.tng-modal__intro {
  max-width: 860px;
  margin: 0 0 38px;
  color: var(--tng-muted);
  font-family: var(--tng-body-font);
  font-size: clamp(1rem, 1vw, 1.1rem);
  line-height: 1.75;
}

.tng-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.tng-modal__close:hover,
.tng-modal__close:focus-visible {
  background: var(--tng-accent);
  border-color: var(--tng-accent);
  color: #001313;
}

.tng-modal__close:active {
  transform: scale(0.96);
}

.tng-modal__aside {
  padding-top: clamp(78px, 9vw, 122px);
}

.tng-modal__info-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 42px;
}

.tng-modal__info-icon {
  width: 34px;
  height: 34px;
  margin-top: 2px;
  color: #11bfc1;
  background: transparent;
  box-shadow: none;
  font-family: "ETmodules", sans-serif;
  font-size: 0;
  line-height: 1;
}

.tng-modal__info-icon::before {
  font-size: 34px;
}

.tng-modal__info-item:nth-child(1) .tng-modal__info-icon::before {
  /* content: "\e081"; */
  content: "\e090";
}

.tng-modal__info-item:nth-child(2) .tng-modal__info-icon::before {
  content: "\e090";
}

.tng-modal__info-title {
  margin: 0 0 18px;
  color: #ffffff;
  font-family: var(--tng-heading-font) !important;
  font-size: clamp(1.2rem, 2vw, 1.7rem) !important;
  line-height: 1.08 !important;
  font-weight: 700 !important;
}

.tng-modal__info-text,
.tng-modal__info-text a {
  color: rgba(255, 255, 255, 0.94);
  font-family: var(--tng-body-font) !important;
  font-size: 1.08rem;
  line-height: 1.7;
  font-weight: 300 !important;
}

.tng-modal__info-text {
  margin: 0;
}

.tng-modal__info-text a {
  text-decoration: none;
  border-bottom:none;
}

.tng-modal__info-text a:hover,
.tng-modal__info-text a:focus-visible {
  color: var(--tng-accent) !important;
  text-decoration: underline;
}

/* Gravity Forms */
.tng-modal__form .gform_wrapper {
  margin: 0;
}

.tng-modal__form .gform_heading {
  display: none;
}

.tng-modal__form .gform_fields {
  row-gap: 24px;
}

.tng-modal__form .gfield_label,
.tng-modal__form .gform-field-label {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.01em;
  font-family: var(--tng-alt-font) !important;
}

.tng-modal__form .gfield_required,
.tng-modal__form .gfield_required_text {
  color: var(--tng-error);
  font-size: 0.78em;
  font-weight: 800;
  font-style: italic;
}

.tng-modal__form input[type="text"],
.tng-modal__form input[type="email"],
.tng-modal__form input[type="tel"],
.tng-modal__form input[type="url"],
.tng-modal__form input[type="number"],
.tng-modal__form input[type="password"],
.tng-modal__form select,
.tng-modal__form textarea {
  width: 100%;
  min-height: 62px;
  padding: 14px 16px;
  border: 0;
  border-radius: 0;
  background: var(--tng-field-bg);
  color: var(--tng-field-text);
  font-size: 1rem;
  box-shadow: none;
}

.tng-modal__form textarea {
  min-height: 300px;
  resize: vertical;
}

.tng-modal__form input:focus,
.tng-modal__form select:focus,
.tng-modal__form textarea:focus {
  outline: 3px solid rgba(0, 181, 175, 0.72);
  outline-offset: 2px;
}

.tng-modal__form .ginput_complex {
  gap: 18px;
}

.tng-modal__form .ginput_complex label,
.tng-modal__form .gfield_description,
.tng-modal__form .gform-field-label--type-sub {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.7em !important;
  font-family: var(--tng-alt-font) !important;
}

.tng-modal__form .gform_footer,
.tng-modal__form .gform_page_footer {
  display: flex;
  justify-content: center;
  margin-top: 34px;
  padding: 0;
}

.tng-modal__form .gform_button,
.tng-modal__form .gform_next_button,
.tng-modal__form .gform_previous_button,
.tng-modal__form input[type="submit"],
.tng-modal__form button[type="submit"],
.tng-modal__form .dcgd_submit_button {
  min-width: auto !important;
  min-height: auto !important;
  padding: 12px 14px !important;
  border: 2px solid var(--tng-accent) !important;
  border-radius: 0 !important;
  background-color: var(--tng-accent) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  font-family: var(--tng-button-font) !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.tng-modal__form .gform_button:hover,
.tng-modal__form .gform_next_button:hover,
.tng-modal__form .gform_previous_button:hover,
.tng-modal__form input[type="submit"]:hover,
.tng-modal__form button[type="submit"]:hover,
.tng-modal__form .dcgd_submit_button:hover,
.tng-modal__form .gform_button:focus-visible,
.tng-modal__form .gform_next_button:focus-visible,
.tng-modal__form .gform_previous_button:focus-visible,
.tng-modal__form input[type="submit"]:focus-visible,
.tng-modal__form button[type="submit"]:focus-visible,
.tng-modal__form .dcgd_submit_button:focus-visible,
.tng-modal__form .gform_button:active,
.tng-modal__form .gform_next_button:active,
.tng-modal__form .gform_previous_button:active,
.tng-modal__form input[type="submit"]:active,
.tng-modal__form button[type="submit"]:active,
.tng-modal__form .dcgd_submit_button:active {
  background-color: #ffffff !important;
  color: var(--tng-accent) !important;
  border-color: var(--tng-accent) !important;
}

.tng-modal__form .gform_button:active,
.tng-modal__form .gform_next_button:active,
.tng-modal__form .gform_previous_button:active,
.tng-modal__form input[type="submit"]:active,
.tng-modal__form button[type="submit"]:active,
.tng-modal__form .dcgd_submit_button:active {
  transform: translateY(1px);
}

.tng-modal__form .gform_validation_errors,
.tng-modal__form .validation_error {
  margin-bottom: 22px;
  border: 2px solid var(--tng-error);
  border-radius: 0;
  background: rgba(255, 74, 45, 0.13);
  color: #ffffff;
}

.tng-modal__form .gfield_validation_message {
  color: #ffffff;
  background: rgba(255, 74, 45, 0.22);
  border-radius: 0;
}

.tng-modal__form .gform_confirmation_message {
  padding: 24px;
  border-left: 6px solid var(--tng-accent);
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  font-size: 1.15rem;
  line-height: 1.6;
}

.tng-modal__form .gform_wrapper.gravity-theme .gfield input,
.tng-modal__form .gform_wrapper.gravity-theme .gfield select,
.tng-modal__form .gform_wrapper.gravity-theme .gfield textarea {
  font-size: 1rem;
}

/* Tablet */
@media (max-width: 980px) {
  .tng-modal__layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .tng-modal__aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    padding-top: 0;
  }

  .tng-modal__info-item {
    margin-bottom: 0;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .tng-modal {
    align-items: stretch;
    padding: 14px;
  }

  .tng-modal__dialog {
    width: 100%;
    min-height: auto;
    max-height: calc(100vh - 28px);
    max-height: calc(100dvh - 28px);
    border-radius: 22px;
  }

  .tng-modal__content {
    min-height: auto;
    max-height: calc(100vh - 28px);
    max-height: calc(100dvh - 28px);
    padding: 78px 22px 34px;
  }

  body.page-template-default:not(.home) #tng-modal h2.tng-modal__title,
  body.post-template-default #tng-modal h2.tng-modal__title,
  #tng-modal h2.tng-modal__title {
    font-size: clamp(1.85rem, 8vw, 2.4rem) !important;
    line-height: 1.05 !important;
  }

  .tng-modal__intro {
    margin-bottom: 28px;
    font-size: 1.02rem;
    line-height: 1.62;
  }

  .tng-modal__aside {
    grid-template-columns: 1fr;
  }

  .tng-modal__close {
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
  }

  .tng-modal__form textarea {
    min-height: 210px;
  }

  .tng-modal__form .gform_footer,
  .tng-modal__form .gform_page_footer {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tng-modal,
  .tng-modal__dialog,
  .tng-modal__close,
  .tng-modal__form .gform_button,
  .tng-modal__form .gform_next_button,
  .tng-modal__form .gform_previous_button,
  .tng-modal__form input[type="submit"],
  .tng-modal__form button[type="submit"],
  .tng-modal__form .dcgd_submit_button {
    transition: none;
  }

  .tng-modal__dialog {
    transform: none;
  }
}