/* Bổ sung cho trang làm nhiệm vụ: dữ liệu động, captcha, video và hộp thoại. */
.visitor-ip {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.keyword {
  height: auto;
  min-height: 60px;
  padding: 10px 16px;
  overflow-wrap: anywhere;
}

.step p.message {
  color: var(--navy);
}

.search-mock {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin-top: 8px;
}

.search-mock img {
  display: block;
  width: 100%;
  height: auto;
}

.search-mock #TK3 {
  position: absolute;
  top: 50%;
  left: 3em;
  margin-top: -0.75em;
  font-weight: 600;
  color: #202124;
  line-height: 1.5;
  max-width: calc(100% - 4.5em);
  overflow: hidden;
  white-space: nowrap;
}

.step .search-image,
.step .url-hint-image,
.step .guide-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  margin-top: 8px;
}

.step-four .code-image {
  width: 100%;
  height: auto;
  max-height: 140px;
  margin: 8px 0 0;
  object-fit: contain;
}

.verify-fields {
  margin-top: 9px;
}

.verify-fields > label:first-child {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

#codeInput {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 13px;
  color: var(--navy);
  background: #fff;
  border: 1px solid #b9c7dd;
  border-radius: 4px;
  font-size: 16px;
}

#codeInput::placeholder {
  color: #7182a0;
}

.captcha-slot,
#qcaptcha-checkcode {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 12px auto 0;
  min-height: 0;
}

#qcaptcha-checkcode {
  min-height: 74px;
}

a.secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  line-height: 1.2;
  cursor: pointer;
}

.copy-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  height: 36px;
  margin-top: 10px;
  padding: 0 16px;
  border: 1px solid #183570;
  border-radius: 5px;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
}

.nav-links a.manage {
  border: 1px solid #152957;
  background: #fff;
  color: var(--navy);
  padding: 6px 14px;
  border-radius: 5px;
}

.social {
  gap: 18px;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.social a span:first-child {
  font-size: 22px;
}

.video-grid .video-item,
.video-grid article {
  min-width: 0;
}

.video-container {
  position: relative;
  width: 100%;
  background: #0d1830;
  border-radius: 5px;
  overflow: hidden;
}

.responsive-video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 70vh;
  object-fit: contain;
  background: #000;
}

.video-container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 3px solid #f3f3f3;
  border-top-color: #ffb600;
  border-radius: 50%;
  animation: mission-spin 1s linear infinite;
  opacity: 0;
  z-index: 1;
}

.video-container.loading::before {
  opacity: 1;
}

.video-error {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 24px);
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.82);
  padding: 16px;
  border-radius: 8px;
  display: none;
  z-index: 2;
}

.video-container.error .video-error {
  display: block;
}

.no-copy {
  user-select: none;
  -webkit-user-select: none;
}

.url-hint-image {
  pointer-events: none;
}

.message {
  min-height: 0;
  margin: 6px 0 0;
  color: #0b7281;
  font-size: 14px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(7, 19, 51, 0.45);
  padding: 12vh 16px 24px;
}

.modal-content {
  position: relative;
  background: #fff;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 8px;
  width: min(440px, 100%);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(7, 19, 51, 0.2);
}

.modal-header,
.modal-footer {
  padding: 10px 16px;
  background: #5cb85c;
  color: #fff;
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.modal-body {
  padding: 16px;
  text-align: center;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.5;
}

.close,
.closeNhiemVu {
  color: #fff;
  float: right;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.modal-footer {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.modal-footer button {
  min-width: 96px;
  height: 36px;
  border-radius: 5px;
  border: 0;
  font-weight: 800;
}

#redirect,
#btnDongDoiNhiemVu {
  background: #fff;
  color: var(--navy);
}

#closeThongBao,
#btnXacNhanDoiNhiemVu {
  background: var(--navy);
  color: #fff;
}

.spinner-border {
  display: inline-block;
  width: 3rem;
  height: 3rem;
  border: 0.25em solid #ffb600;
  border-right-color: transparent;
  border-radius: 50%;
  animation: mission-spin 0.75s linear infinite;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

button:disabled,
.copy-link-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@keyframes mission-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 700px) {
  .step-four .code-image {
    max-height: 120px;
  }

  .nav-links a.manage {
    padding: 6px 10px;
  }

  .responsive-video {
    max-height: 60vh;
  }
}
