/* Variables
------------------------------------------------------------ */

:root {
  --primary: #2363AE;
  --accent: #F0594D;
  --bg-primary: #132E68;
  /* #D6E6F6 */
  --bg-secondary: rgba(214, 230, 246, 0.8);
  --bg-footer: #3C3C3C;
  --placeholder: #636363;
  --white: #FEFEFE;
  --line-icon: #06C755;
}

/* Global
------------------------------------------------------------ */

* {
  position: relative;
  box-sizing: border-box;
  font-family: 'Noto Sans TC', sans-serif;
  letter-spacing: 0.1rem;
}

body {
  background-color: var(--bg-primary);
  background-image: url('../images/bg_star.png');
}

img {
  -webkit-user-drag: none;
}

/* Background
------------------------------------------------------------ */

@media (min-width: 1200px) {
  .main {
    background-image: url('../images/bg_book.png');
    background-size: 100% 75%;
    background-position: bottom;
    background-repeat: no-repeat;
  }
}

@media (min-width: 1200px) {
  .titleBlock {
    position: sticky;
    top: 5%;
  }
}

/* 裝飾圖片 - 以 body 定位 */
.img-decorate01_mobile {
  width: 9vw;
  position: absolute;
  top: calc(9% + ((100vw - 375px) * 0.15));
  left: calc(68% - ((100vw - 375px) * 0.07));
  transform: translate(-50%, -50%);
  z-index: -1;
}

.img-decorate02_mobile {
  width: 7vw;
  position: absolute;
  top: calc(17% + ((100vw - 375px) * 0.415));
  left: calc(94% - ((100vw - 375px) * 0.06));
  transform: translate(-50%, -50%);
  z-index: -1;
}

.img-decorate03_mobile {
  width: 9vw;
  position: absolute;
  top: calc(27% + ((100vw - 375px) * 0.72));
  left: calc(9% + ((100vw - 375px) * 0.06));
  transform: translate(-50%, -50%);
  z-index: -1;
}

.img-decorate04_mobile {
  width: 10vw;
  position: absolute;
  top: calc(34% + ((100vw - 375px) * 0.69));
  left: 90%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

/* 裝飾圖片 - 以 formblock 定位 */
.img-decorate01_desktop {
  width: 3vw;
  position: absolute;
  top: 15%;
  left: -43%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.img-decorate02_desktop {
  width: 3vw;
  position: absolute;
  top: 20%;
  left: 15%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.img-decorate03_desktop {
  width: 4vw;
  position: absolute;
  top: 85%;
  left: -20%;
  transform: translate(-50%, calc(-50% + (100vw - 1200px) * 0.15));
  z-index: -1;
}

.img-decorate04_desktop {
  width: 7vw;
  position: absolute;
  top: 60%;
  left: 75%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

/* 星星 - 以 main 定位 */
.img-twinkle01 {
  width: 1.3rem;
  position: absolute;
  top: 3%;
  left: 10%;
  transform: translate(-50%, -50%);
  z-index: -2;
  animation: twinkle_star01 3s linear infinite;
}

.img-twinkle02 {
  width: 1.3rem;
  position: absolute;
  top: 27%;
  left: 90%;
  transform: translate(-50%, -50%);
  z-index: -2;
  animation: twinkle_star01 3s linear infinite;
}

@media (min-width: 1200px) {
  .img-twinkle02 {
    top: 10%;
    left: 90%;
  }
}

.img-twinkle03 {
  width: 1.3rem;
  position: absolute;
  top: 47%;
  left: 7%;
  transform: translate(-50%, -50%);
  z-index: -2;
  animation: twinkle_star02 3s linear infinite;
}

@media (min-width: 1200px) {
  .img-twinkle03 {
    top: 13%;
    left: 28%;
  }
}

.img-twinkle04 {
  width: 1.3rem;
  position: absolute;
  top: 71%;
  left: 65%;
  transform: translate(-50%, -50%);
  z-index: -2;
  animation: twinkle_star02 3s linear infinite;
}

@media (min-width: 1200px) {
  .img-twinkle04 {
    top: 35%;
    left: 51%;
  }
}

.img-twinkle05 {
  width: 1.3rem;
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -2;
  animation: twinkle_star02 3s linear infinite;
}

@media (min-width: 1200px) {
  .img-twinkle05 {
    top: 50%;
    left: 72%;
  }
}

.img-twinkle06 {
  width: 1.3rem;
  position: absolute;
  top: 97%;
  left: 36%;
  transform: translate(-50%, -50%);
  z-index: -2;
  animation: twinkle_star01 3s linear infinite;
}

@media (min-width: 1200px) {
  .img-twinkle06 {
    top: 85%;
    left: 48%;
  }
}

@keyframes twinkle_star01 {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes twinkle_star02 {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* Components
------------------------------------------------------------ */

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
/* LINE留單按鈕 */
.btn-primary.line-icon{
  background-color: var(--line-icon);
  border-color: var(--line-icon);
  padding-left: 30px;
}
.btn-primary.line-icon::before{
  content:"";
  background-image: url('../images/social_Line.png');
  background-size: contain;
  position: absolute;
  left:40px;
  top:calc(100% / 2 - 13px);
  width:26px;
  height:25px;
}

/* 修改「發送驗證碼」 button 的圓角 */
.btn-verify {
  border-radius: 0 0.375rem 0.375rem 0 !important;
}

.form-control,
.form-select,
.form-check-input {
  border-color: var(--primary);
}

/* 表單驗證提示 */
#name-error.error,
#role-error.error,
#mobile-error.error,
#verify_code-error.error,
#email-error.error,
#county-error.error,
#grade-error.error,
#read_check-error.error,
.invalid-tooltip {
  position: absolute;
  font-size: .875rem;
  color: var(--accent) !important;
  padding: 0 0.5rem;
}

#mobile-error.error {
  top: 38px;
}

#read_check-error.error {
  top: 48px;
  padding: 0 0.2rem;
}

@media (min-width: 510px) {
  #read_check-error.error {
    top: 24px;
    padding: 0 0.2rem;
  }
}

/* Title Block
------------------------------------------------------------ */
.img-title_mobile {
  width: 100%;
  transform: translateX(1.5%);
}

.img-subtitle_mobile {
  width: 85%;
  transform: translateX(8.5%);
}

.img-title_desktop {
  width: calc(90% + (100vw - 1200px) * 0.25);
  transform: translateX(calc(5% - (100vw - 1200px) * 0.2));
}

.img-student_desktop {
  width: calc(50% + (100vw - 1200px) * 0.25);
  transform: translate(calc(2% - (100vw - 1200px) * 0.25), calc(-20% + (100vw - 1200px) * 0.014)) rotate(-10deg);
  animation: student_float 3s linear infinite;
}

@keyframes student_float {
  0% {
    transform: translate(calc(2% - (100vw - 1200px) * 0.25), calc(-20% + (100vw - 1200px) * 0.014)) rotate(-10deg);
  }

  25% {
    transform: translate(calc(2% - (100vw - 1200px) * 0.25), calc(-20% + (100vw - 1200px) * 0.004)) rotate(-10deg);
  }

  50% {
    transform: translate(calc(2% - (100vw - 1200px) * 0.25), calc(-20% + (100vw - 1200px) * 0.014)) rotate(-10deg);
  }

  75% {
    transform: translate(calc(2% - (100vw - 1200px) * 0.25), calc(-20% + (100vw - 1200px) * 0.024)) rotate(-10deg);
  }

  100% {
    transform: translate(calc(2% - (100vw - 1200px) * 0.25), calc(-20% + (100vw - 1200px) * 0.014)) rotate(-10deg);
  }
}

.img-subtitle_desktop {
  width: calc(75% + (100vw - 1200px) * 0.167);
  transform: translate(calc(25% - (100vw - 1200px) * 0.08), calc(-65% - (100vw - 1200px) * 0.026));
}

.arrow {
  color: var(--white);
  animation: arrow-down 2s infinite;
}

@keyframes arrow-down {
  0% {
    transform: translateY(-50%);
  }

  100% {
    transform: translateY(300%);
  }
}

/* Form Block
------------------------------------------------------------ */

.formBlock {
  background-color: var(--bg-secondary);
  border-radius: 16px;
  position: relative;
}

/* FormBlock_Title */

.formBlock_title {
  text-align: center;
}

.formBlock_title-slogan {
  font-size: 24px;
}

/* FormBlock_Form */

.formBlock_form-label {
  color: var(--primary);
  font-size: 18px;
}

.formBlock_form-label span,
.formBlock_form-accent {
  color: var(--accent);
}

/* FormBlock_Description */
.formBlock_description {
  font-size: 14px;
}

.formBlock_description a {
  color: var(--primary);
  text-decoration: none;
}

/* FormBlock_ReadCheck */

.formBlock_readCheck .form-check-label {
  color: var(--primary);
}

.formBlock_readCheck .form-check p {
  color: var(--primary);
}

.formBlock_readCheck .form-check a {
  color: var(--accent);
}

.formBlock_readCheck .form-check a:hover {
  cursor: pointer;
  color: var(--accent);
  text-decoration: underline;
}

/* FormBlock_Submit */

.formBlock_submit {
  width: 100%;
  border-radius: 24px;
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: 18px;
}

/* Footer
------------------------------------------------------------ */

.footer {
  color: var(--white);
  background-color: var(--bg-footer);
  width: 100%;
}

.footer_title {
  font-size: 18px;
}

.footer_tel,
.footer_time {
  font-size: 20px;
  letter-spacing: 0.2rem;
  /* 取消 bootstrap <dd> 預設的 margin-bottom: 8px */
  margin-bottom: 0;
}

.footer_tel a {
  color: var(--white);
  letter-spacing: 0.2rem;
}

/* 週日公休 */
.footer_note {
  font-size: 12px;
  margin-left: 8px;
}

.footer hr {
  border-top: 1px solid var(--white);
  opacity: 1;
}

.footer_social a {
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 4px;
  transition: all 0.3s;
}

.footer_social a:hover {
  background-color: var(--bs-gray-900);
}

.footer_copyright {
  font-size: 14px;
}

/* Modal
------------------------------------------------------------ */

.readModal p {
  line-height: 2;
  color: var(--placeholder);
}