*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


* {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  outline: none;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 100%;
  line-height: 1.5;
  background-color: #f3efe6;
}

*:active,
*:focus {
  outline: none !important;
  box-shadow: none !important;
}

body {
  font-family: Arial, sans-serif;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100svh;
  aspect-ratio: 9 / 16;
  /* width: 56.221889055vh; */
  max-width: 100%;
}


body {
  height: 100%;
  width: 100%;
  display: flex;
  justify-self: center;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
  font-family: 'GenSenRounded2TW-B', Arial, sans-serif;
  touch-action: none;
}

@font-face {
  font-family: 'GenSenRounded2TW-B';
  src: url(0187860ca7fe631969a8.otf)format('opentype');
  font-weight: normal;
  font-style: normal;
}

.step1,
.step2,
.step3,
.step4,
.step5,
.step6,
.step7,
.step9,
.loading,
.event-info {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.step6 {
  overflow: auto;
  width: 100%;
  height: 100%;
  display: unset;
}

.step1-start {
  position: absolute;
  bottom: 11%;
  width: 58%;
  height: 7%;
}

.step1-info {
  position: absolute;
  bottom: 3%;
  width: 23%;
  height: 4%;
}

.step2-name {
  line-height: 1.4;
  text-align: center;
  position: absolute;
  bottom: 53%;
  width: 75%;
  background-color: transparent;
  border: 0;
  font-size: min(5cqh, 9cqw);
}

.step2-confirm {
  position: absolute;
  bottom: 38%;
  width: 48%;
  height: 8%;
}


.step3-camera {
  position: absolute;
  bottom: 20%;
  width: 56%;
  height: 7%;
}

.step3-upload {
  position: absolute;
  bottom: 11%;
  width: 56%;
  height: 7%;
}

.step4-retry {
  position: absolute;
  bottom: 11%;
  width: 51%;
  height: 7%;
}

.step4-confirm {
  position: absolute;
  bottom: 3%;
  width: 51%;
  height: 7%;
}

.selected-pic-wrapper {
  object-fit: cover;
  position: absolute;
  bottom: 21%;
  width: 72%;
  aspect-ratio: 11 / 16;
  border: 4px solid #000;
  overflow: hidden;
}

.selected-pic {
  height: 100%;
  max-width: unset;
}

.left-arrow {
  position: absolute;
  left: 0%;
  width: 14%;
  height: 10%;
}

.right-arrow {
  position: absolute;
  right: 0%;
  width: 14%;
  height: 10%;
}

.step4-pic-hints {
  position: absolute;
  width: 60%;
  z-index: 2;
  pointer-events: none;
}

.step4-video-hints {
  position: absolute;
  width: 60%;
  z-index: 2;
  pointer-events: none;
}

.step4-count {
  position: absolute;
  width: 20%;
  left: 5%;
  z-index: 2;
  bottom: 25%;
}

.step5-submit {
  position: absolute;
  bottom: 27%;
  width: 60%;
  height: 7%;
}

.loader {
  position: absolute;
  bottom: 34%;
  width: 60%;
}

.step4-switch-pic {
  position: absolute;
  top: 17%;
  width: 52%;
  z-index: 2;
}

.video-wrapper {
  position: absolute;
  top: 4%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-result {
  object-fit: cover;
  position: absolute;
  aspect-ratio: 9 / 16;
  width: 79%;
  top: 7%;
  border: 4px solid #000;
}

.event-info-content {
  position: absolute;
  top: 6%;
  width: 86%;
  height: 88%;
  overflow-y: auto;
  overflow-x: hidden;
}

.event-info-close {
  position: absolute;
  top: -1%;
  right: -2%;
  width: 6%;
  padding: 4%;
  box-sizing: content-box;
}

.step5-privacy-model-btn {
  position: absolute;
  bottom: 35%;
  width: 73%;
  height: 5%;
  left: 16%;
}

.step5-privacy {
  position: absolute;
  bottom: 35%;
  width: 10%;
  height: 5%;
  left: 7%;
}

.step5-info-model-btn {
  position: absolute;
  bottom: 40.3%;
  width: 73%;
  height: 5%;
  left: 16%;
}

.step5-info {
  position: absolute;
  bottom: 41%;
  width: 10%;
  height: 5%;
  left: 7%;
}

.step5-name {
  width: 50%;
  position: absolute;
  top: 29%;
  left: 31%;
  font-size: min(3cqh, 5cqw);
  border: 0;
  background-color: transparent;
  text-align: center;
  line-height: 1.4;
}

.step5-phone {
  width: 50%;
  position: absolute;
  top: 36%;
  left: 31%;
  font-size: min(3cqh, 5cqw);
  border: 0;
  background-color: transparent;
  text-align: center;
}

.step5-email {
  width: 50%;
  position: absolute;
  top: 42.4%;
  left: 31%;
  font-size: min(3cqh, 5cqw);
  border: 0;
  background-color: transparent;
  text-align: center;
  line-height: 1.4;
}

.step5-select-car-btn {
  position: absolute;
  top: 48%;
  width: 54%;
  height: 5%;
  right: 17%;
  z-index: 2;
}

.info-checked {
  position: absolute;
  width: 5%;
  left: 11%;
  top: 55.4%;
}

.privacy-checked {
  position: absolute;
  width: 5%;
  left: 11%;
  top: 61.4%;
}

.step5-car-list {
  position: absolute;
  top: 48.4%;
  width: 44%;
  height: 4%;
  right: 26%;
}

.step7-ig {
  position: absolute;
  bottom: 45%;
  width: 60%;
  height: 7%;
}

.multi-select-wrapper {
  z-index: 4;
  top: 49%;
  width: 43%;
  height: 3%;

  padding: 0;
  position: absolute;
  left: 30%;
}

.selected-tags {
  padding-left: 5px;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 100%;
  overflow-y: hidden;
  height: 100%;
  max-height: 100%;

}


.selected-tags .tag {
  background: black;
  color: white;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  /* ⬅️ 重點：不換行 */
  flex-shrink: 0;
  /* ⬅️ 不被壓縮，保持原始寬度 */
  margin-right: 6px;
}

.selected-tags .tag .remove {
  margin-left: 6px;
  cursor: pointer;
}


.dropdown-list {
  display: none;
  position: absolute;
  background: #fffbe6;
  border: 2px solid #000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 10;
  max-height: 200px;
  /* 限制高度 */
  overflow-y: auto;
  /* 超過出現捲軸 */
  width: 100%;
  /* 與父容器等寬 */
  padding: 10px;
  box-sizing: border-box;
  font-size: .9rem;
  border-radius: 8px;
  margin-top: 2px;
}

/* 一行一個 checkbox */
.dropdown-list label {
  display: block;
  margin-bottom: 2px;
  font-weight: bold;
  white-space: nowrap;
}

/* 美化 checkbox 勾選框（可選） */
.dropdown-list input[type="checkbox"] {
  margin-right: 2px;
}

.dropdown-list input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid black;
  border-radius: 2px;
  background-color: white;
  cursor: pointer;
  position: relative;
}

.dropdown-list input[type="checkbox"]:checked {
  background-image: url(assets/%E6%89%93%E5%8B%BE.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}


.meta-env-modal {
  position: fixed;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: start;
  background-color: rgba(0, 0, 0, 0.8);
}

.meta-env-modal img {
  width: 88%;
  margin-top: 3%;
  margin-left: 2%;
}

.desktop-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  background-image: url(assets/PC-bg@2x.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.desktop-wrapper img {
  max-height: 100%;
}

.step6-share {
  position: absolute;

  bottom: 45%;
  width: 45%;
  height: 4%;
  left: 5%;
}

.step6-link {
  position: absolute;
  bottom: 45%;
  width: 45%;
  height: 4%;
  right: 5%;
}

.step6-ig {
  position: absolute;
  bottom: 34%;
  width: 28%;
  height: 3%;
  right: 18%;
}

.step6-post {
  position: absolute;
  bottom: 26.5%;
  width: 18%;
  height: 2%;
  right: 18%;
}

.relative {
  position: relative;

}

.step8-retry {
  position: absolute;
  bottom: 43%;
  width: 51%;
  height: 7%;
  left: 25%;
}

.privacy-model,
.info-model {
  position: fixed;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  z-index: 5;
}

.privacy-model-content,
.info-model-content {
  position: absolute;
  width: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.privacy-model-text,
.info-model-text {
  position: absolute;
  top: 8%;
  width: 90%;
  height: 88%;
  overflow: auto;
}

.privacy-model-close,
.info-model-close {
  position: absolute;
  top: 1.5%;
  right: 4%;
  width: 13%;
  height: 6%;
}

.loading-video {
  position: absolute;
  width: 63%;
  top: 21%;
  border: 6px solid;
}


.float-updown {
  display: inline-block;

}


.hidden {
  display: none;
}
