html,
body {
  width: 100%;
  height: 100%;
  margin: 0%;
  font-size: 1rem;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #080a16;
  position: relative;
}

* {
  box-sizing: border-box;
}

img {
  display: block;
  margin: 0 auto;
}

a {
  transition: 0.3s all;
}

.full-container {
  height: 100dvh;
  overflow: auto;
}

.main-wrapper {
  background-image: url(../imgs/bg-mobile.jpg);
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
  max-width: 550px;
  margin: auto;
}

.top-wrapper {
  display: flex;
  flex-direction: column;
  position: relative;
  justify-content: center;
  align-items: center;
}

.top-bg {
  width: 100%;
  margin: -20px 0;
}

.top-bg img {
  width: 100%;
  pointer-events: none;
}

.top-logo {
  display: block;
  position: absolute;
  top: clamp(10px, 5vw, 40px);
  margin: 0 auto;
  width: 70vw;
  max-width: 385px;
}

.top-logo img {
  width: 100%;
}

.banner-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 6px;
  position: relative;
  margin: -1% auto 0;
  width: 100%;
  max-width: 550px;
}

.banner-wrapper > a {
  flex: 1;
  width: 50%;
}

#tf88Url-btn {
  animation: pressDown 0.65s infinite;
}

.meiqia-btn {
  animation: pressDown 0.65s infinite;
}

@keyframes pressDown {
  0% {
    transform: translateY(0);
  }
  10% {
    transform: translateY(8px);
  }
  70% {
    transform: translateY(8px);
  }
  80% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(0);
  }
}

.banner-btn {
  position: relative;
  z-index: 1;
  padding-right: 20px;
  width: 100%;
  max-width: 250px;
}

.contact-wrapper {
  background: url(../imgs/contact-bg2.png);
  aspect-ratio: 735 / 739;
  background-size: 100% 100%;
  padding: 14% 7% 32%;
  margin-top: 40px;
}

.contact-wrapper-single-agentid {
  background: url(../imgs/contact-bg3.png);
  aspect-ratio: 1470 / 1220;
  background-size: 100% auto;
  background-repeat: no-repeat;
  padding: 14% 7% 32%;
  margin-top: 40px;
}

.contact-content {
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.contact-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.contact-item {
  padding: 4px 10px;
  border-radius: 8px;
  display: flex;
  gap: 8px;
  font-size: 1rem;
  justify-content: space-between;
  align-items: center;
  color: #ffffffcc;
  flex: 1;
}

.contact-item .icon {
  width: 36px;
  flex-shrink: 0;
}

.contact-item .service-icon {
  width: 15vw;
  max-width: 82px;
}

.contact-item img {
  width: 100%;
}

.contact-item.w-50 {
  justify-content: center;
  background: url(../imgs/contact-info-bg-short.png);
  background-size: 100% 100%;
  width: calc(50% - 4px);
  height: 62px;
}

.contact-item.w-50.full-width {
  background: url(../imgs/contact-info-bg.png);
  width: 100%;
  background-size: 100% 100%;
  justify-content: flex-start;
  padding-left: 24px;
}

.contact-item.w-100 {
  background: url(../imgs/contact-info-bg.png);
  background-size: 100% 100%;
  width: 100%;
  aspect-ratio: 627 / 88;
  padding: 4px 24px;
}

.contact-item .title {
  color: #fff;
}

.none {
  display: none !important;
}

@media screen and (max-width: 450px) {
  .contact-item {
    font-size: 0.8rem;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-container {
  position: relative;
  width: 90%;
  max-width: 340px;
  animation: modalScaleIn 0.3s ease-out;
}

@keyframes modalScaleIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-gift {
  position: absolute;
  top: -60px;
  left: -30px;
  width: 140px;
  z-index: 1;
  pointer-events: none;
}

.modal-gift img {
  width: 100%;
}

.modal-content {
  position: relative;
  background: #131732;
  border: 2px solid #7a6ac3;
  border-radius: 24px;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-header {
  width: 100%;
  background: url(../imgs/modal/modal-bg.png) no-repeat center top;
  background-size: 100% auto;
  padding: 30px 20px 20px;
}

.modal-header img {
  width: 80%;
  max-width: 240px;
  margin: 0 auto;
  display: block;
}

.modal-header .modal-title {
  margin-bottom: 4px;
}

.modal-header .modal-subtitle {
  max-width: 180px;
  width: 65%;
}

.modal-body {
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  color: #ffffffcc;
}

.modal-contact-item--full {
  background: url(../imgs/contact-info-bg.png);
  background-size: 100% 100%;
  width: 100%;
  aspect-ratio: 627 / 88;
  padding: 4px 16px;
  justify-content: space-between;
}

.modal-contact-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-contact-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.modal-contact-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-contact-info {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.modal-contact-label {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.modal-contact-value {
  color: #fff600;
  font-size: 0.75rem;
  font-weight: 600;
}

.modal-contact-btn {
  width: 60px;
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.modal-contact-btn img {
  width: 100%;
}

.modal-download-link {
  display: block;
  width: 100%;
}

.modal-download-link img {
  width: 100%;
}

@media screen and (max-width: 450px) {
  .modal-contact-icon {
    width: 24px;
    height: 24px;
  }

  .modal-contact-label,
  .modal-contact-value {
    font-size: 0.75rem;
  }

  .modal-contact-btn {
    width: 50px;
  }
}

@media screen and (max-width: 340px) {
  .modal-contact-icon {
    width: 24px;
    height: 24px;
  }

  .modal-contact-label,
  .modal-contact-value {
    font-size: 0.6rem;
  }

  .modal-contact-btn {
    width: 50px;
  }
}

@media screen and (max-width: 360px) {
  .modal-gift {
    top: -50px;
    left: -20px;
    width: 110px;
  }
}
