/* Local V7 overlay. Website, V6 widget and animation declarations stay untouched. */
body.v7-test-open {
  overflow: hidden;
}
.v7-test-launch {
  display: block;
  width: fit-content;
  margin: 16px 0 0;
  border: 1px solid rgb(224 195 126 / 68%);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.v7-test-launch:hover,
.v7-test-launch:focus-visible {
  box-shadow: 0 0 0 3px rgb(78 173 255 / 32%), 0 0 24px rgb(78 173 255 / 20%);
}

.v7-test-dialog {
  width: min(1120px, calc(100vw - 40px));
  height: min(840px, calc(100dvh - 40px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(215 184 111 / 46%);
  border-radius: 24px;
  color: #f4f6f8;
  background: linear-gradient(145deg, #0a111a 0%, #060a0f 62%, #09121b 100%);
  box-shadow: 0 32px 100px rgb(0 0 0 / 58%), 0 0 48px rgb(49 149 228 / 13%);
  font-family: inherit;
}

.v7-test-dialog::backdrop {
  background: rgb(1 5 10 / 78%);
  backdrop-filter: blur(5px);
}

.v7-test-shell {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex-direction: column;
}

.v7-test-header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 30px 18px;
  border-bottom: 1px solid rgb(202 215 226 / 12%);
}

.v7-test-headline {
  display: grid;
  gap: 1px;
  color: #f1d58f;
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.24;
}

.v7-test-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgb(207 219 228 / 25%);
  border-radius: 50%;
  color: #e7edf2;
  background: #111c27;
  font: 28px/1 system-ui, sans-serif;
  cursor: pointer;
}

.v7-test-close:hover,
.v7-test-close:focus-visible {
  border-color: #74bcf2;
  outline: 2px solid rgb(83 172 236 / 52%);
  outline-offset: 2px;
}

.v7-test-grid {
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  grid-template-columns: minmax(0, 1fr) 205px;
  grid-template-areas: "screen guide";
}

.v7-test-screen {
  grid-area: screen;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 28px clamp(20px, 4vw, 48px) 34px;
  scrollbar-color: #536575 #0a1118;
}

.v7-test-guide {
  grid-area: guide;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 18px;
  border-left: 1px solid rgb(202 215 226 / 10%);
  background: linear-gradient(180deg, rgb(20 32 44 / 36%), rgb(7 13 19 / 20%));
  text-align: center;
}

.v7-test-guide-image {
  display: block;
  width: min(100%, 154px);
  height: 188px;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 12px 22px rgb(0 0 0 / 42%));
  animation: mini-michi-idle 5.2s ease-in-out infinite;
}

.v7-test-guide-image.is-greeting {
  animation: mini-michi-greeting 900ms cubic-bezier(.2,.75,.25,1) both;
}

.v7-test-guide-message {
  width: 100%;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid rgb(215 184 111 / 40%);
  border-radius: 15px 15px 4px 15px;
  color: #e8edf1;
  background: rgb(7 14 21 / 94%);
  box-shadow: 0 8px 28px rgb(0 0 0 / 22%), 0 0 18px rgb(241 200 97 / 8%);
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.v7-test-kicker {
  margin: 0 0 8px;
  color: #81c5fb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.v7-test-screen h3 {
  margin: 0 0 14px;
  color: #f5f7f9;
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -.035em;
  line-height: 1.13;
}

.v7-test-screen p {
  max-width: 720px;
  color: #c6d0d8;
}

.v7-test-intro-copy {
  max-width: 650px;
  margin: 0 0 26px;
  font-size: 17px;
}

.v7-test-answer-disclaimer {
  margin: -10px 0 22px;
  color: #dbe4eb;
  font-size: 14px;
  line-height: 1.5;
}

.v7-test-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 28px;
}

.v7-test-meta span {
  padding: 6px 11px;
  border: 1px solid rgb(215 184 111 / 32%);
  border-radius: 999px;
  color: #d7dfe5;
  background: rgb(217 173 86 / 5%);
  font-size: 12px;
}

.v7-test-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 9px;
  color: #aebbc5;
  font-size: 13px;
}

.v7-test-progress {
  display: block;
  width: 100%;
  height: 8px;
  margin: 0 0 24px;
  overflow: hidden;
  border: 0;
  border-radius: 99px;
  background: #1b2731;
  accent-color: #70b9ef;
}

.v7-test-progress::-webkit-progress-bar {
  border-radius: 99px;
  background: #1b2731;
}

.v7-test-progress::-webkit-progress-value {
  border-radius: 99px;
  background: linear-gradient(90deg, #428fd0, #9dd4fa);
}

.v7-test-progress::-moz-progress-bar {
  border-radius: 99px;
  background: linear-gradient(90deg, #428fd0, #9dd4fa);
}

.v7-test-question-section {
  margin: 0 0 8px;
  color: #c9a957;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.v7-test-question-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.v7-test-question-fieldset legend {
  width: 100%;
  margin: 0 0 17px;
  color: #f5f7f9;
  font-size: clamp(21px, 2.5vw, 29px);
  font-weight: 700;
  line-height: 1.3;
}

.v7-test-answer-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.v7-test-answer {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 13px;
  padding: 12px 16px;
  border: 1px solid rgb(176 194 209 / 19%);
  border-radius: 13px;
  color: #e3e9ee;
  background: linear-gradient(110deg, rgb(255 255 255 / 3%), rgb(34 57 76 / 12%));
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.v7-test-answer:hover {
  border-color: rgb(112 185 239 / 60%);
  background: rgb(66 143 208 / 9%);
}

.v7-test-answer:has(input:checked) {
  border-color: #82c9fb;
  background: linear-gradient(105deg, rgb(63 144 204 / 19%), rgb(217 173 86 / 8%));
  box-shadow: inset 0 0 0 1px rgb(130 201 251 / 12%);
}

.v7-test-answer:focus-within {
  outline: 2px solid #88cbf8;
  outline-offset: 2px;
}

.v7-test-answer input {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: #70b9ef;
}

.v7-test-answer span {
  color: inherit;
  font-size: 15px;
  line-height: 1.45;
}

.v7-test-message {
  min-height: 24px;
  margin: 10px 0 0;
  color: #f2cc79 !important;
  font-size: 14px;
}

.v7-test-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 25px;
}

.v7-test-controls-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.v7-test-secondary,
.v7-test-primary {
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid rgb(182 199 213 / 28%);
  border-radius: 999px;
  color: #eaf0f4;
  background: #101a24;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.v7-test-primary {
  border-color: rgb(226 194 124 / 72%);
  color: #111;
  background: linear-gradient(135deg, #f1d990, #bd9243);
}

.v7-test-secondary:hover,
.v7-test-secondary:focus-visible,
.v7-test-primary:hover,
.v7-test-primary:focus-visible {
  outline: 2px solid #7cc4f5;
  outline-offset: 2px;
  box-shadow: 0 0 22px rgb(78 173 255 / 18%);
}

.v7-test-secondary[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

.v7-test-result-title {
  margin-bottom: 22px !important;
}

.v7-test-local-notice {
  padding: 12px 14px;
  border: 1px solid rgb(116 188 242 / 32%);
  border-radius: 12px;
  color: #c9d7e1;
  background: rgb(39 103 149 / 12%);
  line-height: 1.5;
}

.v7-test-request-success {
  width: min(100%, 54rem);
  margin: 8px auto 0;
  padding: clamp(22px, 5vw, 36px);
  border: 1px solid rgb(201 170 98 / 42%);
  border-radius: 16px;
  background: linear-gradient(145deg, #111a25, #0c121b 72%);
  box-shadow: 0 18px 50px rgb(0 0 0 / 24%);
}

.v7-test-request-success .v7-test-kicker {
  color: #c9aa62;
}

.v7-test-request-success .v7-test-result-title {
  margin-bottom: 12px !important;
  color: #e2c77d;
}

.v7-test-request-success .v7-test-intro-copy {
  margin-bottom: 0;
  color: #d9dee8;
}

.v7-test-contact-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.v7-test-field-wrap {
  display: grid;
  gap: 7px;
  color: #e5ebf0;
  font-weight: 650;
}

.v7-test-field-label {
  font-size: 14px;
}

.v7-test-optional {
  color: #aebbc5;
  font-weight: 400;
}

.v7-test-field {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid rgb(176 194 209 / 30%);
  border-radius: 11px;
  color: #f4f6f8;
  background: #0d151e;
  font: inherit;
}

.v7-test-field:focus-visible {
  outline: 2px solid #83c6f4;
  outline-offset: 2px;
}

.v7-test-contact-choice {
  min-width: 0;
  margin: 5px 0 0;
  padding: 14px;
  border: 1px solid rgb(176 194 209 / 21%);
  border-radius: 14px;
}

.v7-test-contact-choice legend {
  padding: 0 6px;
  color: #f1d58f;
  font-weight: 700;
  line-height: 1.45;
}

.v7-test-orientation-options {
  display: grid;
  gap: 9px;
}

.v7-test-orientation-answer {
  min-height: 48px;
}

.v7-test-consent-container:empty {
  display: none;
}

.v7-test-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  color: #cbd5dd;
  font-size: 13px;
  line-height: 1.5;
}

.v7-test-consent input {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: #70b9ef;
}

.v7-test-privacy-details {
  padding: 13px 14px;
  border: 1px solid rgb(202 215 226 / 14%);
  border-radius: 12px;
  color: #cbd5dd;
  background: rgb(255 255 255 / 2%);
  font-size: 13px;
  line-height: 1.55;
}

.v7-test-privacy-details summary {
  color: #91cafa;
  cursor: pointer;
  font-weight: 700;
}

.v7-test-privacy-details p {
  margin: 10px 0 0;
}

.v7-test-contact-form .v7-test-controls {
  position: static;
  bottom: auto;
  margin-top: 3px;
  padding: 0;
  border: 0;
  background: transparent;
}

.v7-test-contact-form .v7-test-primary:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.v7-test-result-section {
  margin: 0 0 24px;
  padding: 20px 0 0;
  border-top: 1px solid rgb(202 215 226 / 12%);
}

.v7-test-result-section h4 {
  margin: 0 0 10px;
  color: #f1d58f;
  font-size: 19px;
  line-height: 1.3;
}

.v7-test-result-section p {
  margin: 0 0 11px;
  color: #d0d9e0;
  line-height: 1.6;
}

.v7-test-result-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.v7-test-screen :focus-visible {
  outline: 2px solid #83c6f4;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .v7-test-launch {
    display: block;
    margin: 14px 0 0;
  }

  .v7-test-dialog {
    inset: 0;
    width: auto;
    margin: 0;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .v7-test-header {
    gap: 12px;
    padding: max(12px, env(safe-area-inset-top)) 16px 13px;
  }

  .v7-test-headline {
    gap: 3px;
    font-size: clamp(14px, 4vw, 18px);
  }

  .v7-test-close {
    width: 38px;
    height: 38px;
  }

  .v7-test-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: "guide" "screen";
  }

  .v7-test-guide {
    min-height: 76px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 16px;
    border-right: 0;
    border-bottom: 1px solid rgb(202 215 226 / 10%);
    text-align: left;
  }

  .v7-test-guide-image {
    width: 54px;
    height: 68px;
    flex: 0 0 54px;
  }

  .v7-test-guide-message {
    max-width: none;
    padding: 8px 10px;
    border-radius: 12px 12px 12px 3px;
    font-size: 12px;
  }

  .v7-test-screen {
    padding: 18px 16px calc(22px + env(safe-area-inset-bottom));
  }

  .v7-test-answer {
    min-height: 52px;
    padding: 10px 12px;
  }

  .v7-test-answer span {
    font-size: 14px;
  }

  .v7-test-controls {
    position: sticky;
    bottom: -1px;
    margin: 18px -16px calc(-22px - env(safe-area-inset-bottom));
    padding: 12px 16px calc(18px + env(safe-area-inset-bottom));
    border-top: 1px solid rgb(202 215 226 / 12%);
    background: linear-gradient(180deg, rgb(7 11 16 / 92%), #070b10 38%);
  }
}

@media (max-width: 410px) {
  .v7-test-headline {
    max-width: 290px;
    font-size: 13px;
  }

  .v7-test-controls {
    flex-wrap: wrap;
  }

  .v7-test-controls-group {
    width: 100%;
  }

  .v7-test-controls button {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v7-test-dialog *,
  .v7-test-dialog *::before,
  .v7-test-dialog *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
