/* raffle registration */
.raffle__content {
  width: 100%;
}
.raffle__content-detail-register {
  width: 879px;
  margin-inline: auto;
  height: fit-content;
}
.raffle__content-detail {
  width: 879px;
  margin-inline: auto;
  border: 1px solid rgb(73 73 73);
  height: fit-content;
}

.raffle__content-detail form {
  padding: 1.25rem;
}

/* header */
.raffle__content-header {
  background-color: var(--primary-color);
  color: var(--color-white);
  width: 100%;
  padding: 1.25rem 1rem;
  display: flex;
  justify-content: space-between;
}

.raffle__content-header span {
  color: var(--color-black) !important;
}
.raffle__content-header img {
  max-width: 182px;
  width: 100%;
  object-fit: contain;
}
/* end header */

.raffle__content-detail_input label:not([aria-label]) {
  display: inline-block;
  font-size: 1rem;

  max-width: 215px;
  width: 100%;

  padding: 0.5rem 0;
}

.raffle__content-detail_label label {
  max-width: 215px;
  width: 100%;
  /* margin-right: 1rem; */
  font-size: 1.05rem !important;
}

.raffle__content-detail_input input {
  padding: 0.5rem 1rem;
  width: 100%;
}

.input:not(.raffle__content-detail_file-upload) input,
.raffle__content-detail_input select {
  border: 1px solid rgb(73 73 73)!important;
}

.raffle__content-detail_input,
.raffle__content-detail_label {
  display: flex;
  margin-bottom: 1rem;
}

.raffle__content-detail_input .input,
.raffle__content-detail_label .input,
.raffle__content-detail_input select {
  width: 100%;

  display: flex;
  gap: 4px;

  /* border: 1px solid #c39d06; */
}

.raffle__content-detail_input input,
.raffle__content-detail_input select {
  border: none;
  outline: none;
}

.raffle__content-select {
  padding-left: 10px;
}

/* button submit  */
.btn__register {
  font-size: 2rem;
  background-color: var(--color-black);
  color: var(--color-white);
  width: 100%;
  padding-block: 0.5rem;
}

/* fullname */
.raffle_content-address #zipcode,
.raffle_content-fullname #minitial {
  max-width: 50px;
  display: inline-block;

  width: 100%;
}

/* error/regstered */
.raffle__tabs-container button.active {
  background-color: var(--btn-color);
}

.raffle__content {
  width: 100%;
  display: flex;
  height: 100vh;
  /* flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start; */
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* .raffle__content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  margin-bottom: -20px;
  width: 100%;
  height: 20%;
  background-color: #222;
  z-index: -10;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="white" d="M0,192L80,170.7C160,149,320,107,480,96C640,85,800,107,960,117.3C1120,128,1280,128,1360,128L1440,128L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z"></path></svg>')
    center top / cover no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="white" d="M0,192L80,170.7C160,149,320,107,480,96C640,85,800,107,960,117.3C1120,128,1280,128,1360,128L1440,128L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z"></path></svg>')
    center top / cover no-repeat;
} */

.condition {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 0 auto;
}

.raffle__content p {
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
}
.raffle__content-detail h2 {
  margin-bottom: 1.2rem;
}

.raffle__content span {
  color: var(--attention);
}

/*  */

/* colored bullet/number/letter  */
li::marker {
  color: var(--btn-color);
}
/*  */

.raffle__content-detail-success {
  width: 60%;
}

/* .raffle__content {   // comment this
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
} */

/* .raffle__content-detail {
  border: 2px solid var(--line-border-color);
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(51, 50, 50, 0.4);
  background: #4443436c;
  padding: 1.5rem 4rem;
} */
/* .raffle__content .raffle__content-condition,
.raffle__content .raffle__content-accept-condition,
.raffle__content .raffle__content-detail {
  transition: opacity 1s ease-in-out;
} */
.raffle__content-condition {
  width: 50%;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  margin: 0 auto;
  padding: 1rem;
  border: 1px solid var(--color-disabled);
  border-radius: 16px;
  box-shadow: 0 10px 8px rgba(0, 0, 0, 0.5);
}
.raffle__content .raffle__content-terms {
  padding-bottom: 1rem;
}
/* .raffle__content-condition {
  border: 2px solid rgb(235, 229, 229);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(236, 28, 28, 0.4);
} */
.raffle__content-condition button {
  color: var(--color-white);
  background: linear-gradient(
      to left,
      var(--color-black) 50%,
      var(--color-white) 50%
    )
    right;
  background-size: 200%;

  border: 2px solid var(--color-black);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.5s ease-in-out;
}
.raffle__content-condition button:hover {
  color: var(--color-black);
  background-position: left;
  border: solid 2px var(--color-black);
  font-weight: 600;
}
.raffle__content-condition p {
  margin-bottom: 10px;
  text-align: justify;
}

input::placeholder {
  color: var(--color-disabled);
  opacity: 1;
}

.raffle__content-detail_label {
  font-size: 1.3rem;
}

.raffle__content-detail_file-upload {
  width: 100%;
}

.raffle__content-detail_file-upload input {
  width: 100%;
  padding: 1rem;
}
.raffle__content-detail_btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
.raffle__content-detail_btn button:disabled {
  background: var(--bgcolor-disabled);
  color: var(--color-disabled);

  font-size: inherit;
  padding: 0.5rem 2rem;

  border-color: #666666;
  cursor: default;
}
.raffle__content-detail_btn button,
.raffle__content-condition input {
  background: linear-gradient(
      to left,
      var(--secondary-color) 50%,
      var(--color-white) 50%
    )
    right;
  background-size: 200%;
  color: var(--color-white);

  margin: 0 auto;
  font-size: 1rem;
  padding: 0.5rem 2rem;
  outline: none;
  cursor: pointer;
  border: 1px solid var(--primary-color);
  transition: 0.3s ease-out;
}

@media screen and (max-width: 767px) {
  .raffle__content-condition input {
    width: 100%;
  }
  .raffle__content .raffle__content-terms {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    label {
      font-size: .75rem;
    }
  }
}

@media screen and (max-width: 400px) {
  .raffle__content-condition input {
    width: 100%;
    font-size: 0.75rem;
  }
}

/* input[type="checkbox"]:checked ~ input[type=submit]  {

 } */
.raffle__content-detail_btn input[type="checkbox"] {
  margin-bottom: 1.2rem;
}
.raffle__content-detail_btn span {
  color: var(--attention);
}

.raffle__content-detail_btn button:hover:enabled,
.raffle__content-detail_btn button:focus:enabled,
.raffle__content-condition input:hover,
.raffle__content-condition input:focus {
  border: 1px solid var(--color-black);
  background-position: left;
  color: var(--color-black);
}

.header-register {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  gap: 10px;
}

.raffle__content img {
  width: 140px;
  height: 40px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* notify user for redirecting */
#notify {
  width: 100%;
  text-align: center;
  font-size: 16px;
  top: 10px;
}

.raffle_register_notif {
  display: flex;
  flex-direction: column;
}

.qr_code {
  width: 100%;
  height: auto;
  padding-left: 20px;
}

.qr_code img {
  width: 250px;
  height: 250px;
  background-size: contain;
  background-repeat: no-repeat;
}

.schedule-header {
  display: flex;
  flex-direction: row;
  width: 90%;
  max-width: calc(30% * 3);
  gap: 30px;
  padding: 20px 0;
}

.schedule-header .schedule-left,
.schedule-md,
.schedule-right {
  flex: 1;
}

.scroll-description {
  height: 60vh;
  overflow-y: auto;
  padding-inline: 10px;
  background-color: var(--color-white);
}

/* media query */

@media screen and (max-width: 1025px) {
  .raffle__content img {
    width: 160px;
    top: 1%;
    bottom: 0;
    right: 3%;
    z-index: 10;
    background: none;
    filter: drop-shadow(1px 1px 4px rgb(0, 0, 0));
    box-shadow: none;
  }
}

@media screen and (max-width: 980px) {
  .raffle__content-detail-success {
    width: 100%;
  }

  .schedule-header {
    flex-direction: column;
    gap: 10px;
  }
}

@media screen and (max-width: 800px) {
  .raffle__content-condition {
    width: 90%;
  }

  .raffle__content-detail {
    height: auto;
  }

  .raffle__content {
    height: auto;
  }

  .raffle__content-detail h1 {
    font-size: 2.8rem;
    text-align: center;
  }

  .raffle_content-dop .dop {
    text-align: left;
    width: 100%;
    margin-bottom: 3px;
  }

  .raffle__content img {
    width: 180px;
    top: 1%;
    bottom: 0;
    right: 1%;
  }

  #mechanics li {
    font-size: 14px;
  }
  #mechanics p {
    font-size: 14px;
  }
}

@media screen and (max-width: 600px) {
  .raffle__tabs-container {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .raffle__tabs-container button {
    width: 100%;
    text-align: left;
    padding-left: 5px;
  }

  .raffle__content-detail h1 {
    font-size: 2rem;
  }

  .raffle__content-detail {
    padding: 1.5rem 1.2rem;
  }

  .raffle__content::after {
    height: 8%;
  }

  .raffle__content-detail_file-upload input {
    padding: 1rem 0;
  }
}

/* header mobile view */
@media screen and (max-width: 900px) {
  
  .raffle__content-header {
    flex-direction: column-reverse;
    align-items: center;
    gap: 8px;
  }

  .raffle__content-detail_input {
    display: flex;
    flex-direction: column;
  }

  .raffle__content-detail_input input::placeholder {
    color: transparent;
  }

  .raffle_content-address #zipcode::placeholder,
  .raffle_content-fullname input::placeholder {
    color: #575757a1 !important;
  }
}

@media screen and (max-width: 500px) {
  .raffle_content-fullname .input {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .raffle__content-detail form {
    padding: 1.25rem 0;
  }
  
  .raffle_content-fullname #minitial {
    max-width: 100%;
  }

}

.logout-btn-raffle {
  position: fixed;
  bottom: 10px;
  right: 10px;
}