/* Variables
------------------------------------------------------------ */

:root {
  --primary: #2363AE;
  --accent: #F0594D;
  --bg-primary: #8BD0F1;
  /* #D6E6F6 */
  --bg-secondary: rgba(254, 254, 254, 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-image: linear-gradient(to bottom, var(--bg-primary) 10%, var(--white) 40%);
}

img {
  -webkit-user-drag: none;
}

/* Background
------------------------------------------------------------ */

.main {
  overflow-x: hidden;
  background-image: url('../images/mountain_xs.png');
  background-size: 100%;
  background-position: bottom;
  background-repeat: no-repeat;
}

@media (min-width: 768px) {
  .main {
    background-image: url('../images/mountain_md.png');
    background-size: 100%;
    background-position: bottom;
    background-repeat: no-repeat;
  }
}

@media (min-width: 1200px) {
  .main {
    overflow-x: visible;
    background-image: url('../images/mountain_xl.png');
    background-size: auto;
    background-position: bottom;
    background-repeat: no-repeat;
  }
}

@media (min-width: 1920px) {
  .main {
    background-image: url('../images/mountain_xl.png');
    background-size: 100%;
    background-position: bottom;
    background-repeat: no-repeat;
  }
}

@media (min-width: 1200px) {
  .titleBlock {
    position: sticky;
    height: 900px;
    top: 5%;
  }
}

/* 以 main 定位 */
.img-cloud01 {
  width: calc(150px + (100vw - 375px) * 0.097);
  position: absolute;
  top: calc(7% + (100vw - 375px) * 0.1);
  left: calc(10% + (100vw - 375px) * 0.0012);
  transform: translate(-50%, -50%);
  z-index: -1;
}

.img-cloud02 {
  width: calc(150px + (100vw - 375px) * 0.097);
  position: absolute;
  top: calc(13% + (100vw - 375px) * 0.145);
  left: calc(97% - (100vw - 375px) * 0.12);
  transform: translate(-50%, -50%);
  z-index: -1;
}

@media (min-width: 1200px) {
  .img-cloud01 {
    width: 230px;
    top: calc(12% + (100vw - 1200px) * 0.0069);
    left: calc(7% + (100vw - 1200px) * 0.0069);
    animation: cloud_float 3s linear infinite;
  }

  .img-cloud02 {
    width: 230px;
    top: calc(19% + (100vw - 1200px) * 0.14);
    left: calc(47%);
    animation: cloud_float 3s 1s linear infinite;
  }
}

@keyframes cloud_float {
  0% {
    transform: translate(-50%, -50%);
  }

  25% {
    transform: translate(-50%, -55%)
  }

  50% {
    transform: translate(-50%, -50%)
  }

  75% {
    transform: translate(-50%, -45%)
  }

  100% {
    transform: translate(-50%, -50%)
  }
}

.img-girl_mobile {
  width: 40%;
  left: 5%;
}

.img-subtitle_mobile {
  position: absolute;
  width: 45%;
  top: 10%;
  left: 50%;
}

.img-flower_mobile {
  position: absolute;
  width: 65%;
  bottom: 0;
  left: 38%;
}

@media (min-width: 768px) {
  .img-flower_mobile {
    width: 50%;
  }
}

/* 以 formBlock 定位 */
.img-girl_desktop {
  width: 40%;
  position: absolute;
  bottom: 0;
  left: -105%;
}

.img-paperAirplane_desktop {
  width: 15%;
  position: absolute;
  bottom: 35%;
  left: -55%;
  opacity: 0;
  animation: fly 5s ease-in infinite;
}

@keyframes fly {
  0% {
    transform: translate(-100%, 0%);
    opacity: 0;
  }

  30% {
    opacity: 1;
  }

  40% {
    transform: translate(160%, -100%);
    opacity: 1;
  }

  100% {
    transform: translate(160%, -100%);
    opacity: 1;
  }
}

.img-subtitle_desktop {
  width: 50%;
  position: absolute;
  bottom: 17%;
  left: -65%;
}

.img-schoolBus_desktop {
  width: 20%;
  position: absolute;
  bottom: 23%;
  left: -10%;
  transform: rotate(-9deg);
  animation: drive 9s linear infinite;
}

@keyframes drive {
  0% {
    bottom: 23%;
    left: -10%;
    transform: rotate(-9deg);
  }

  20% {
    bottom: 23%;
    left: -10%;
    transform: rotate(-9deg);
  }

  50% {
    bottom: 31%;
    left: 50%;
    transform: rotate(10deg);
  }

  100% {
    bottom: 31%;
    left: 50%;
    transform: rotate(10deg);
  }
}

/* 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%;
}

.img-title_desktop {
  width: calc(90% + (100vw - 1200px) * 0.25);
  transform: translateX(calc(5% - (100vw - 1200px) * 0.27));
}

.img-paperAirplane_mobile {
  width: 20%;
  left: 60%;
}


/* Form Block
------------------------------------------------------------ */

.formBlock {
  background-color: var(--bg-secondary);
  border-radius: 16px;
  position: relative;
}

/* FormBlock_Title */

.formBlock_title {
  text-align: center;
}

.formBlock_title-logo {
  width: 160px;
}

.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);
}