/* The Icons Custom Contact Form — Forbes Connect inspired, pixel-level match */

.ticcf-hero,
.ticcf-form-section {
  box-sizing: border-box;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Helvetica Neue",
    Helvetica,
    "PingFang TC",
    "PingFang SC",
    "Microsoft JhengHei",
    "Microsoft YaHei",
    Arial,
    sans-serif;
  color: #111;
}
.ticcf-hero *,
.ticcf-form-section * {
  box-sizing: border-box;
}

/* ---------- Hero ----------
 * 滿版首屏：高度 = 視窗高度 − header 高度。
 * 透過 --ticcf-header-h 變數調整，預設 80px。
 */
.ticcf-hero {
  --ticcf-header-h: 80px;
  position: relative;
  min-height: calc(100vh - var(--ticcf-header-h));
  background: #000;
  color: #fff;
  padding: 56px 24px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 背景容器：可放 <img>、<video> 或背景圖 */
.ticcf-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.ticcf-hero__media img,
.ticcf-hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 半透明黑色遮罩，確保文字可讀 */
.ticcf-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.45);
}

.ticcf-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 官方 Logo（取代原本的 "Forbes" 標題） */
.ticcf-hero__logo {
  display: block;
  height: auto;
  max-width: 180px;
  width: auto;
  margin: -60px auto 100px;
}
.ticcf-hero__logo-text {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  margin: 0 0 64px;
  color: #fff;
}

/* 大字標語（襯線） */
.ticcf-hero__tagline {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.25;
  font-weight: 600;
  margin: 0 auto 32px;
  max-width: 900px;
  color: #fff;
}
.ticcf-hero__subtitle {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.5;
  color: #f0f0f0;
  max-width: 720px;
  margin: 0 auto 40px;
  font-weight: 400;
}

/* 白色按鈕 */
.ticcf-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  border-radius: 4px;
  height: 45px;
  width: 150px;
  border-radius: 8px;
  margin-top: 70px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.ticcf-cta:hover {
  background: #e0e0e0;
  color: #000;
}
a.ticcf-cta:hover {
  transform: scale(1) !important;
}

/* 底部法律連結列 */
.ticcf-hero__footer {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 28px;
  padding: 0 16px;
}
.ticcf-hero__footer a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  opacity: 0.95;
}
.ticcf-hero__footer a:hover {
  text-decoration: underline;
}
.ticcf-hero__choices {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ticcf-privacy-icon {
  display: inline-block;
  width: 30px;
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, #06f 0 50%, #06f 50% 100%);
  position: relative;
}
.ticcf-privacy-icon::before {
  content: "\2713";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9px;
  color: #fff;
  line-height: 1;
}
.ticcf-privacy-icon::after {
  content: "\2715";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9px;
  color: #fff;
  line-height: 1;
}

/* ---------- Form section ---------- */
.ticcf-form-section {
  background: #f2f2f2;
  padding: 88px 24px 96px;
}
.ticcf-form-section__inner {
  max-width: 616px;
  margin: 65px auto;
}
.ticcf-form__title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font:
    40px/48px "Playfair Display",
    Georgia,
    "Times New Roman",
    serif;
  font-weight: 500;
  margin: 0 0 50px;
  color: #111;
  line-height: 1.1;
}

/* ---------- Form fields ---------- */
.ticcf-form {
  width: 100%;
}
.ticcf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 28px;
}
.ticcf-field {
  display: flex;
  flex-direction: column;
}
.ticcf-field--full {
  grid-column: 1 / -1;
}
.ticcf-field label {
  font-size: 14px;
  font-weight: 500;
  color: #111;
  margin-bottom: 10px;
}
.ticcf-req {
  color: #111;
  margin-left: 1px;
  font-weight: 700;
}
.ticcf-field input,
.ticcf-field textarea,
.ticcf-field select {
  width: 100%;
  padding: 16px 16px;
  font-size: 16px;
  color: #111;
  background: #fff;
  border: 1px solid #111;
  border-radius: 0;
  font-family: inherit;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.ticcf-field input {
  height: 50px;
  line-height: 22px;
  padding: 12px 17px;
}
.ticcf-field input::placeholder,
.ticcf-field textarea::placeholder {
  color: #8a8a8a;
}
.ticcf-field input:focus,
.ticcf-field textarea:focus,
.ticcf-field select:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15);
}

/* 自訂 select 樣式（移除原生箭頭，加上自繪箭頭） */
.ticcf-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 56px;
  padding: 0 44px 0 16px;
  line-height: 1.2;
  color: #8a8a8a;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path fill='none' stroke='%23333' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 9px;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.ticcf-field select:valid {
  color: #111;
}
.ticcf-field select::-ms-expand {
  display: none;
}
.ticcf-field textarea {
  resize: vertical;
  min-height: 130px;
}

.ticcf-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Required note ---------- */
.ticcf-required-note {
  margin: 28px 0 18px;
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

/* ---------- Newsletter opt-in ---------- */
.ticcf-newsletter {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 28px;
  cursor: pointer;
}
.ticcf-newsletter input[type="checkbox"] {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: #111;
  cursor: pointer;
}
.ticcf-newsletter span {
  font-size: 14px;
  line-height: 1.5;
  color: #222;
}

/* ---------- reCAPTCHA ---------- */
.ticcf-recaptcha {
  margin: 0 0 28px;
}

/* ---------- Actions ---------- */
.ticcf-actions {
  margin-top: 8px;
}
.ticcf-submit {
  width: 100%;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
  font-family: inherit;

  max-height: 48px;
  padding: 10px 32px;

  border-radius: 8px;
  width: 100%;
  color: #fff;
  font: 16px / 24px sans-serif;
  font-weight: 700;
}
.ticcf-submit:hover {
  background: #2a2a2a;
}
.ticcf-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Feedback ---------- */
.ticcf-feedback {
  margin-top: 20px;
  padding: 0;
  font-size: 15px;
  line-height: 1.5;
}
.ticcf-feedback.is-success {
  padding: 14px 18px;
  background: #e8f5ee;
  color: #1b5e20;
  border-left: 4px solid #2e7d32;
}
.ticcf-feedback.is-error {
  padding: 14px 18px;
  background: #fdecea;
  color: #8b1a14;
  border-left: 4px solid #c0392b;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .ticcf-hero {
    padding: 64px 20px 24px;
  }
  .ticcf-hero__logo {
    max-width: 200px;
    margin-bottom: 36px;
  }
  .ticcf-form-section {
    padding: 56px 18px 72px;
  }
  .ticcf-form__title {
    font-size: 38px;
    margin-bottom: 28px;
  }
  .ticcf-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .ticcf-hero__footer {
    gap: 10px 18px;
    margin-top: 28px;
  }
  .ticcf-hero__tagline {
    font-size: 26px;
  }
}
