/* 訂閱燈箱樣式 */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.lightbox-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.login-lightbox {
  position: relative;
  z-index: 10000;
  background-color: #fff;
  border-radius: 20px;
  padding: 0;
  max-width: 450px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  background: #fff;
  filter: drop-shadow(20px 20px 20px rgba(0, 0, 0, 0.25));
}

@media (max-width: 768px) {
  .login-lightbox {
    width: 75%;
    padding: 0 15px;
  }
}

@media (max-width: 450px) {
  .login-lightbox {
    padding: 0 10px;
  }
}

.login-lightbox .lightbox-close-btn {
  position: absolute;
  top: -50px;
  right: -50px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  z-index: 10001;
}

@media (max-width: 1024px) {
  .login-lightbox .lightbox-close-btn {
    top: -50px;
    right: 0px;
  }
}

.login-lightbox .lightbox-close-btn svg {
  width: 36px;
  height: 36px;
}

@media (max-width: 768px) {
  .login-lightbox .lightbox-close-btn svg {
    width: 28px;
    height: 28px;
  }
}

.login-lightbox-content {
  text-align: center;
  margin: 20px auto;
}

.login-lightbox-content-img {
  width: 400px;
}

@media (max-width: 450px) {
  .login-lightbox-content-img {
    width: 250px;
  }
}

.login-lightbox-content-img-2 {
  width: 100%;
  margin-top: -8%;
}

.login-lightbox-content-img-3 {
  width: 100%;
  max-width: 150px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 10%;
}

@media (max-width: 768px) {
  .login-lightbox-content-img-3 {
    top: 45%;
    transform: translateY(-50%);
    right: 15%;
  }
}

@media (max-width: 450px) {
  .login-lightbox-content-img-3 {
    max-width: 80px;
    top: 35%;
    right: 10%;
  }
}
@media (max-width: 425px) {
  .login-lightbox-content-img-3 {
    max-width: 80px;
    top: 38%;
    right: 10%;
  }
}
@media (max-width: 375px) {
  .login-lightbox-content-img-3 {
    max-width: 75px;
    top: 38%;
    right: 10%;
  }
}
@media (max-width: 320px) {
  .login-lightbox-content-img-3 {
    top: 40%;
  }
}
.login-lightbox-content h1 {
  font-weight: bold;
  font-size: 40px;
  letter-spacing: 0.05em;
  text-align: center;
  color: #f46c00;
}

@media (max-width: 450px) {
  .login-lightbox-content h1 {
    font-size: 30px;
  }
}

.login-lightbox-content p {
  font-weight: normal;
  font-size: 21px;
  letter-spacing: 0.1em;
  line-height: 30px;
  text-align: center;
  color: #000;
  margin-block-start: 6px;
  margin-block-end: 6px;
}

@media (max-width: 450px) {
  .login-lightbox-content p {
    font-size: 13px;
    line-height: 20px;
    text-align: center;
    color: #000;
  }
}

/* Newsletter form styles */
.newsletter__form {
  width: 80%;
  max-width: 740px;
  position: relative;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .newsletter__form {
    width: 90%;
  }
}
@media (max-width: 768px) {
  .newsletter__form-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: static;
    gap: 10px;
  }
}

@media (max-width: 450px) {
  .newsletter__form-wrapper {
    gap: 0px;
  }
}

.newsletter__input {
  width: 80%;
  height: 55px;
  box-shadow: inset 10px 10px 20px 10px rgba(0, 0, 0, 0.161);
  border-radius: 60px;
  border: none;
  font-weight: normal;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: #9b9b9b;
  padding-left: 10px;
}

@media (max-width: 768px) {
  .newsletter__input {
    width: 90%;
    font-size: 16px;
  }
}

@media (max-width: 450px) {
  .newsletter__input {
    font-size: 16px;
    height: 40px;
    margin-top: 10px;
    width: 90%;
  }
}

.newsletter__input:focus {
  outline: none;
}

.newsletter__submit-btn-wrapper {
  position: absolute;
  right: -40px;
  top: 38%;
  transform: translateY(-50%);
  width: 100%;
  max-width: 215px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  display: block;
}

@media (max-width: 768px) {
  .newsletter__submit-btn-wrapper {
    right: 0;
    transform: translateY(-50%);
    width: 100%;
  }
}

@media (max-width: 450px) {
  .newsletter__submit-btn-wrapper {
    max-width: 150px;
    position: static;
    transform: translateY(0%);
    width: 100%;
    max-width: 100%;
  }
}

.newsletter__submit-btn {
  width: 100%;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.newsletter__message {
  margin-top: 15px;
  font-size: 18px;
  text-align: center;
  font-weight: bold;
  min-height: 25px;
}

@media (max-width: 450px) {
  .newsletter__message {
    font-size: 16px;
    margin-top: 0px;
  }
}

/* 感謝訊息樣式 */
.thank-you-message {
  text-align: center;
  padding: 20px 10px;
  animation: fadeIn 0.5s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

@media (max-width: 450px) {
  .thank-you-message {
    padding: 10px 5px;
  }
}

.thank-you-message .br-mobile {
  display: none;
}

@media (max-width: 450px) {
  .thank-you-message .br-mobile {
    display: block;
  }
}

.thank-you-message h1 {
  font-weight: 500;
  font-size: 21px;
  letter-spacing: 0.05em;
  line-height: 25px;
  text-align: center;
  color: #008ecc;
  flex: 1;
  margin: 0;
}

@media (max-width: 768px) {
  .thank-you-message h1 {
    font-size: 19px;
  }
}

@media (max-width: 450px) {
  .thank-you-message h1 {
    font-size: 17px;
    margin-bottom: 10px;
  }
}

.countdown-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 20px;
  gap: 30px;
}

@media (max-width: 450px) {
  .countdown-container {
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    padding: 0 10px;
  }
}

.countdown-circle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
}

.countdown-svg {
  transform: rotate(-90deg);
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.1));
  position: absolute;
  top: 0;
  left: 0;
}

.countdown-progress {
  transition: stroke-dashoffset 0.3s ease-out;
}

.countdown-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  font-size: 24px;
  color: #4cb6a3;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

@media (max-width: 768px) {
  .countdown-number {
    font-size: 22px;
  }
}

@media (max-width: 450px) {
  .countdown-number {
    font-size: 20px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
