/********** base ***********/

/* style */

h2 {
  font-size: 32px;
  font-weight: 700;
  color: #333333;
}

h4 {
  font-size: 20px;
  font-weight: 700;
  color: #000000;
  margin: 10px 0;
}

p {
  font-size: 16px;
  font-weight: 400;
  color: #333333;
}

.l-mt50 {
  margin-top: 50px;
}

.l-mt20 {
  margin-top: 20px;
}

.l-mb80 {
  margin-bottom: 80px;
}

.l-mb50 {
  margin-bottom: 50px;
}

.l-mb30 {
  margin-bottom: 30px;
}

.l-mb20 {
  margin-bottom: 20px;
}

.l-mb70 {
  margin-bottom: 70px;
}

.l-mb6 {
  margin-bottom: 6px;
}

.l-mr10 {
  margin-right: 10px;
}

.l-ml10 {
  margin-left: 10px;
}

.l-flex {
  display: flex;
}

.l-wrapFlex {
  display: flex;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  h2 {
    font-size: 28px;
    font-weight: 500;
  }

  *.l-block--pad {
    display: block;
  }
  
  .l-flex.l-flexWrap--pad {
    flex-wrap: wrap;
  }

  *.l-mb30--pad {
    margin-bottom: 30px;
  }
}

@media (max-width: 576px) {
  *.l-mb30--mobile {
    margin-bottom: 30px;
  }

  *.l-block--mobile {
    display: block;
  }

  *.l-ml0--mobile {
    margin-left: 0;
  }

  *.l-mt10--mobile {
    margin-top: 10px;
  }

  *.l-mt30--mobile {
    margin-top: 30px;
  }
}




/********** page ***********/

/* customer-service */

.c-banner {
  background-image: url("../../img-email/banner.png");
  background-position: center;
  width: 100%;
  height: 223px;
}

.banner__content {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  flex-wrap: wrap;
  align-items: center;
  width: 700px;
  height: 100%;
  margin: 0 auto;
  padding: 59px 0;
}

.banner__h2, .banner__p {
  width: 100%;
  margin: 0;
}

.text--center {
  text-align: center;
}

.c-content {
  margin: 0 auto;
  padding: 30px 40px 20px 40px;
  width: 700px;
}

.item__name.item__input, .item__id.item__input {
  width: 100%;
}

.item__address {
  height: 66px;
}

.item__label {
  font-size: 16px;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.item__hint {
  display: block;
  font-size: 14px;
    font-weight: 400;
    color: #666666;
    margin-top: 6px;
  }
    /* 錯誤訊息顯示時，提示文字貼齊 */
    .item__errorMsg.item__errorMsg--error+.item__hint {
      margin-top: 0;
    }
.item__input.form-select {
  border-color: #dadada;
}

.item__required {
  color: #ff6756;
  margin-left: 2px;
}
.item__labelSupplement {
  font-weight: normal;
}

.item__input {
  width: 100%;
  height: 45px;
  border: 1px solid #dadada;
  border-radius: 8px;
  -webkit-appearance: none;						   
}

.item__phoneSwitch {
  width: 190px;
  margin-right: 12px;
  flex-shrink: 0;
}

.item__cellphoneWrap,
.item__phoneNumWrap,
.item__overseaWrap {
  flex: 1;
}

.item__overseaWrap {
  display: none;
  flex: 1;
  gap: 8px;
  flex-wrap: wrap;
}

.item__overseaWrap.show {
  display: flex;
}
.item__overseaWrap .item__errorMsg {
  width: auto;
    margin-left: 0;
}

.item__overseaWrap .item__input {
  display: inline-block;
}

.item__countryCode {
  width: 120px;
  flex-shrink: 0;
}

.item__overseaNum {
  flex: 1;
  min-width: 0;
}

.contactMethodRow {
  display: flex;
  align-items: center;
  gap: 20px;
}
.countryCodeWrap {
  width: 120px;
  flex-shrink: 0;
}

.overseaPhoneWrap {
  flex: 1;
  min-width: 0;
}

.countryCodeWrap .item__errorMsg,
.overseaPhoneWrap .item__errorMsg {
  margin: 8px 0 0 0;
}

.contactMethodRow .item__label {
  margin-bottom: 0;
  white-space: nowrap;
}
::placeholder {
  color: #bdbdbd;
  font-weight: 400;
}

:-ms-input-placeholder {
  color: #bdbdbd;
  font-weight: 400;
}

::-ms-input-placeholder {
  color: #bdbdbd;
  font-weight: 400;
}

.item__link {
  position: relative;
  color: #67b77e;
  margin-left: 40px;
}

.item__link:before {
  content: "";
  position: absolute;
  left: -25px;
  top: 5px;
  width: 20px;
  height: 10px;
}

.item__input--error, .item__input.item__input--error, .item__input.item__fileFakeInput--error {
  border-color: #ff6756;
}

.item__errorMsg {
  font-size: 12px;
  color: #ff6756;
  margin: 8px 0 -17px 0;
  display: none;
}

.item__errorMsg--error, .item__errorMsg.item__errorMsg--error {
  display: block;
}

.item__cellphoneWrap {
  flex-grow: 1;
}

.item__phoneAreaWrap {
    width: 100px;
      flex-shrink: 0;
}

.item__phoneNumWrap {
    flex: 1 1 150px;
      min-width: 150px;
      margin: 0 8px;
}

.item__phoneExtensionWrap {
    width: 140px;
      flex-shrink: 0;
}

.item__city, .item__area {
  width: 160px;
}

.item__explain {
  resize: vertical;
  height: 93px;
  margin-bottom: -6px;
}

.item__explain+.item__errorMsg {
  margin: 4px 0 0 0;
}
.item__fileWrap {
  position: relative;
  width: 100%;
  height: 0;
  overflow: hidden;
}

.item__fileBtn--delete {
  background-image: url("../../img-email/icons_delete.svg");
  background-color: rgba(0,0,0,0);
  color: rgba(0,0,0,0);
  background-repeat: no-repeat;
  border: none;
  background-position: 10px 15px;
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 45px;
  cursor: pointer;
}

.item__fileBtn--add {
  cursor: pointer;
}

.item__fileInput {
  display: none;
}

.item__fileErrorMsg {
  position: absolute;
  top: 45px;
  left: 0;
}

.item__fileFakeInput:disabled {
  background-color: #fff;
  color: #212529;
}

.supplement__msgGroup {
  display: flex;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.supplement__label {
  font-size: 14px;
  font-weight: 500;
}

.supplement__li {
  position: relative;
  padding-left: 20px;
}

.supplement__li:before {
  left: 3px;
  top: 8px;
  content: "";
  display: block;
  position: absolute;
  width: 0px;
  height: 0px;
  border: 3px solid #6fcf97;
  background-color: #6fcf97;
  border-radius: 100%;
}

.supplement__p {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: #666666;
}

.supplement__p--lightgray {
  color: #888888;
}

.supplement__p--full {
  width: 100%;
}

.supplement__h1 {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.item__captchaInputWrap {
  position: relative;
}

.item__captchaInputWrap .item__errorMsg {
  position: absolute;
  left: 0;
  top: 45px;
}

.item__captchaInputWrap .item__input--error, .item__fileFakeInput--error {
  margin-bottom: 20px;
}

.item__captchaInput {
  width: 300px;
}

.item__captchaImg {
  height: 45px;
  padding: 5px;
}

.item__captchaImgWrap {
  margin-left: 5px;
}

.item__refresh {
  line-height: 45px;
  color: rgb(0, 153, 78);
  text-decoration: none;
  background-color: transparent;
  vertical-align: top;
}

.item__refreshIcon {
  width: 15px;
  height: 15px;
  margin: 0px 2px -1px 5px;
}

.buttonWrap {
  display: flex;
  margin: 80px auto 115px auto;
  justify-content: space-around;
  width: 330px;
}

.sendBtn:disabled {
  opacity: 0.5;
}

@media (max-width: 768px) {
  .c-banner {
    height: 160px;
    background-position: center;
  }

	.banner__content, .c-content {
		width: 100%;
    padding: 30px 40px 0 40px;
    box-sizing: border-box;
	}

  .item__input, .item__name.item__input, .item__id.item__input {
    width: 100%;
    padding: 16px;
  }

  .content__h5 {
    text-align: center;
  }

  .item__city, .item__area, .item__cellphoneWrap, .item__phoneNumWrap, .item__birthday.item__input {
    width: 100%;
  }

  .item__phoneArea, .item__phoneNumWrap {
    margin: 0 0 6px 0;
  }

  .item__phoneAreaWrap .item__errorMsg {
    margin: 2px 0 8px 0;
  }
  
  .item__phoneNumWrap .item__errorMsg {
    margin: 8px 0 2px 0;
  }

  .item__captchaImgWrap {
    margin-left: 5px;
  }

  .buttonWrap {
    margin: 80px auto 45px auto;
  }
}

@media (max-width: 576px) {
  h4 {
    font-weight: 500;
  }

  .l-mt10--mobile.item__fileBtn--delete {
    margin-top: 0;
  }

  *.text--left--mobile {
    text-align: left;
  }

  .c-banner {
    height: 220px;
  }

  .c-content {
    padding: 30px 20px 20px 20px;
  }

  .banner__content {
    padding: 25px 40px 25px 40px;
  }
  .item__fileErrorMsg {
    position: static;
    margin: -12px 0 -5px 0;
  }			 					   
  .item__captchaInputWrap {
    flex-grow: 1;
  }

  .item__captchaImgWrap {
    padding-top: 5px;
    margin-left: -5px;
  }

  .buttonWrap {
    margin: 80px auto 95px auto;
  }
}


/********** component ***********/

/* select */
*, :after, :before {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

::selection {
	background: #b3d4fc;
	text-shadow: none;
}

.form-select {
	display: block;
	font-size: .875rem;
	height: 45px;
	padding: .701rem 1.75rem .701rem .75rem;
	font-weight: 400;
	line-height: 1.5;
	color: #333;
	vertical-align: middle;
	background-color: #fff;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2367B77B' stroke-linecap='round' stroke-linejoin='round' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right .75rem center;
	background-size: 16px 12px;
	border: 1px solid #888;
	border-radius: 8px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.form-select:focus, .form-control:focus {
  border-color: #67b77e;
  outline: 0;
  -webkit-box-shadow: 0 0 0 1px #67b77b;
  box-shadow: 0 0 0 1px #67b77b;
}

.form-control--center {
	text-align: center;
}

@media (min-width: 768px) {
	.form-select, .form-control {
		font-size: 1rem;
		padding: .5945rem 0.75rem .5945rem .75rem;
	}
}

/* checkbox */
.form-checkbox {
  display: none;
}

.form-checkbox + label span {
  display:inline-block;
  width: 20px;
  height: 20px;
  margin: -4px 12px 0 -32px;
  vertical-align: middle;
  background: url(../../img-email/uncheck.png) no-repeat;
  background-size: 100%;
  cursor:pointer;
}

.form-checkbox:checked + label span {
  background: url(../../img-email/checked.png) no-repeat;
  background-size: 100%;
}

.form-checkbox-wrap {
  padding-left: 32px;
}


/* switch button */
.form-radio-group {
  display: flex;
  width: 200px;
}

.form-radio-group .form-radio-item {
  flex: 1;
  justify-content: center;
  white-space: nowrap;
}
.form-radio-group .btn-check {
  position: absolute;
  clip: rect(0,0,0,0);
  pointer-events: none;
}

.form-radio-group .btn-check:active+.form-radio-item, .form-radio-group .btn-check:checked+.form-radio-item, .form-radio-group .form-radio-item.active, .form-radio-group .form-radio-item.dropdown-toggle.show, .form-radio-group .form-radio-item:active {
  color: #fff;
  background-color: #67b77e;
  border-color: #67b77e;
}

.form-radio-group .form-radio-item:first-of-type {
  border-right-width: 0;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

@media (min-width: 768px)
.form-radio-group .form-radio-item {
  font-size: 1rem;
}

.form-radio-group .form-radio-item {
  color: #fff;
  background-color: #fff;
  border: 1px solid #888;
  border-radius: 0;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  padding: .5945rem .75rem;
  display: flex;
  align-items: center;
  height: 45px;
  font-size: 16px;
  transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out;
}

.form-radio-group .form-radio-item:last-of-type {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* main button */
.c-mainBtn {
  text-align: center;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  letter-spacing: 1px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding: 17.5px 25px 14.5px;
  height: 50px;
  background-size: 300% 100%;
  transition: background-position .3s ease-in-out;
  background-image: linear-gradient(90deg,#58c180,#7ac882,#85ca82,#58c180);
  color: #fff;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  margin: 0 auto;
  border: none;
  min-width: 148px;
}

.c-mainBtn:hover {
	color: #fff;
  background-position: 100% 0;
  -webkit-transition: background-position .3s ease-in-out;
  transition: background-position .3s ease-in-out;
}

/* sub button */
.c-subBtn {
  text-align: center;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  letter-spacing: 1px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding: 17.5px 25px 14.5px;
  height: 50px;
  color: #67b77e;
  border: 1px solid #67b77e;
  background-color: #fff;
  transition-property: color,background-color,border-color;
  display: inline-flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  min-width: 148px;
}

.c-subBtn:hover {
  color: #67b77e;
  border-color: #00994e;
  background: #e3f3e9;
}

/* item button */
.c-item__btn {
  background-color: #67b77e;
  border-radius: 8px;
  height: 45px;
  color: #ffffff;
  border: none;
  padding: 0 16px;
  white-space: nowrap;
}

.c-item__btn:hover {
  background-color: #2c8347;
}

/* 彈窗 */
.c-modal {
	display: none;
	align-items: center;
	justify-content: center;
	position: fixed;
	z-index: 1000;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.5);
}

.modal__messagebox {
	width: 409px;
	background-color: #ffffff;
	border-radius: 16px;
	padding: 31px 56px;
	box-sizing: border-box;
  position: relative;
}

.modal__title {
	text-align: center;
  margin: 0 0 31px 0;
}

.modal__message {
	text-align: center;
	margin: 0 0 48px 0;
}

.modal__closeBtn {
  position: absolute;
  top: 35px;
  right: 35px;
  width: 18px;
  height: 18px;
  border: none;
  background-color: transparent;
}

.modal__closeBtn::before, .modal__closeBtn::after {
  right: -3px;
  top: 6px;
  transform: rotate(-45deg);
  content: "";
  display: block;
  position: absolute;
  width: 21px;
  border: 0;
  border-radius: 2px;
  height: 1px;
  transition-duration: .15s;
  transition-property: transform,-webkit-transform;
  background-color: #333;
}

.modal__closeBtn::after {
  transform: rotate(45deg);
}

.modal__closeBtn:hover::before, .modal__closeBtn:hover::after {
  background-color: #666;
}

.c-link {
  color: #67b77e;
}

@media (max-width: 576px) {
  .modal__messagebox {
    width: 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .c-modal {
    align-items: flex-end;
  }
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}