.grecaptcha-badge {
  display: none;
}

.error.error-message {
  color: red;
  font-size: 12px;
  font-style: italic;
}

/* 移除瀏覽器 autofill 的預設背景色 */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active,
.form-textarea:-webkit-autofill,
.form-textarea:-webkit-autofill:hover,
.form-textarea:-webkit-autofill:focus,
.form-textarea:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;
  background-color: transparent !important;
  transition: background-color 5000s ease-in-out 0s;
  caret-color: #fff !important;
}

/* 確保 input 在所有狀態下文字都是白色 */
.form-input,
.form-textarea {
  color: #fff !important;
}

/* 移除 input focus 時的外框 */
input:focus {
  outline: none;
}

/* 特別針對桌機版表單強制設定文字顏色 */
#d-form-v1 .form-input,
#d-form-v1 .form-textarea,
#d-form-v1 input,
#d-form-v1 textarea {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* 特別針對 tel 類型的 input */
#d-form-v1 input[type="tel"],
input[type="tel"].form-input {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background-color: transparent !important;
  background-image: none !important;
  background: transparent !important;
}

/* tel input 的 autofill 狀態 - 加強背景移除 */
#d-form-v1 input[type="tel"]:-webkit-autofill,
#d-form-v1 input[type="tel"]:-webkit-autofill:hover,
#d-form-v1 input[type="tel"]:-webkit-autofill:focus,
#d-form-v1 input[type="tel"]:-webkit-autofill:active,
input[type="tel"].form-input:-webkit-autofill,
input[type="tel"].form-input:-webkit-autofill:hover,
input[type="tel"].form-input:-webkit-autofill:focus,
input[type="tel"].form-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  box-shadow: 0 0 0 1000px transparent inset !important;
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;
  background-color: transparent !important;
  background-image: none !important;
  background: transparent !important;
  caret-color: #fff !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

/* 桌機版表單 autofill 狀態 */
#d-form-v1 .form-input:-webkit-autofill,
#d-form-v1 .form-input:-webkit-autofill:hover,
#d-form-v1 .form-input:-webkit-autofill:focus,
#d-form-v1 .form-input:-webkit-autofill:active,
#d-form-v1 input:-webkit-autofill,
#d-form-v1 input:-webkit-autofill:hover,
#d-form-v1 input:-webkit-autofill:focus,
#d-form-v1 input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;
  background-color: transparent !important;
  caret-color: #fff !important;
}

/* 表單提交載入動畫 */
.submit-loader {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: submit-spin 0.6s linear infinite;
  vertical-align: middle;
}

@keyframes submit-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 表單提交 Overlay 覆蓋層 */
.form-submit-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.form-submit-overlay.active {
  opacity: 1;
  visibility: visible;
}

.form-submit-overlay .overlay-content {
  background-color: #fff;
  padding: 30px 40px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.form-submit-overlay .overlay-loader {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin-bottom: 15px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top-color: #333;
  border-radius: 50%;
  animation: overlay-spin 0.8s linear infinite;
}

@keyframes overlay-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.form-submit-overlay .overlay-text {
  color: #333;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

/* 社群按鈕 Row 排列 */
.d-social-buttons-wrapper {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
  justify-content: flex-start;
  padding-left: 30px;
}

.d-social-buttons-wrapper .d-cta-btn.for-fb {
  flex-shrink: 0;
  margin: 0;
}
