/* ==========================================================================
   又悠數位 YoYou Studio — Contact page stylesheet (contact.css)
   Tokens & base inherited from studio.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. HERO SECTION (cnt-hero) — 採用 care-bg 視差背景與服務項目標籤樣式
   -------------------------------------------------------------------------- */
.cnt-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--st-header-h) + clamp(48px, 9vw, 96px));
  padding-bottom: clamp(64px, 12vw, 140px);
  background: var(--st-ink);
  color: var(--st-paper);
  overflow: hidden;
}

.cnt-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
  background: var(--st-ink);
}

/* care-bg.jpg 預留 130% 高度以提供足夠的滾動視差位移空間 */
.cnt-hero__bg-img {
  position: absolute;
  left: 0;
  top: -15%;
  width: 100%;
  height: 130%;
  object-fit: cover;
  opacity: 0.82;
  will-change: transform;
}

/* 致敬首頁 care__bg 的經典藍黑漸層，使鍵盤螢幕等環境氛圍清晰可見，同時確保前排白字 100% 可讀 */
.cnt-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(8, 20, 53, 0.88) 0%, rgba(8, 20, 53, 0.25) 50%, rgba(8, 20, 53, 0.72) 100%),
    linear-gradient(90deg, rgba(8, 20, 53, 0.94) 0%, rgba(8, 20, 53, 0.78) 55%, rgba(8, 20, 53, 0.45) 100%),
    rgba(43, 63, 224, 0.16);
}

.cnt-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  pointer-events: none;
  transition: transform 0.2s ease-out;
}

.cnt-hero__glow--a {
  top: 15%;
  left: 20%;
  width: clamp(280px, 40vw, 550px);
  height: clamp(280px, 40vw, 550px);
  background: radial-gradient(circle, var(--st-blue) 0%, rgba(58, 82, 255, 0) 70%);
}

.cnt-hero__glow--b {
  bottom: 10%;
  right: 15%;
  width: clamp(240px, 35vw, 480px);
  height: clamp(240px, 35vw, 480px);
  background: radial-gradient(circle, #00d2ff 0%, rgba(0, 210, 255, 0) 70%);
  opacity: 0.18;
}

.cnt-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.cnt-hero__copy {
  max-width: 920px;
}

/* 參考服務項目開頭標籤樣式：信號橘引導橫線 + 大寫文字 */
.cnt-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--st-signal);
}

.cnt-hero__label::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--st-signal);
}

.cnt-hero__title {
  font-size: var(--st-fs-h1);
  line-height: 1.15;
  margin-bottom: 24px;
}

.cnt-hero__title .line {
  display: block;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 20%, #8ea5ff 60%, var(--st-signal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cnt-hero__desc {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.85;
  color: var(--st-text-mute-light);
  max-width: 780px;
  margin-bottom: 36px;
}

.cnt-hero__desc strong {
  color: var(--st-white);
  font-weight: 700;
}

/* 破折號防斷開專用類別（參考 services.css 修復方案） */
.cnt-dash {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  letter-spacing: -0.04em;
  font-weight: 400;
  display: inline-block;
  vertical-align: middle;
}

.cnt-hero__anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cnt-hero__anchor {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--st-paper);
  font-size: 0.875rem;
  font-weight: 700;
  transition: all 0.35s var(--st-ease);
  backdrop-filter: blur(8px);
}

.cnt-hero__anchor:hover {
  background: var(--st-blue);
  border-color: var(--st-blue);
  color: var(--st-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(58, 82, 255, 0.35);
}

/* 數字改為與其他頁面一致的醒目信號橘色 */
.cnt-hero__anchor-no {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--st-signal);
  letter-spacing: 0.04em;
}

/* 巨型背景透空浮水印文字（加強對比度，隨滾輪平滑左移） */
.cnt-hero__wordmark {
  position: absolute;
  left: var(--st-gutter);
  bottom: 1.5vh;
  font-size: clamp(4.5rem, 15vw, 15rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.03em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(238, 240, 248, 0.26);
  opacity: 1;
  will-change: transform;
}

/* ==========================================================================
   01b. HERO ENTRANCE (CSS-driven, tied to html.js.is-ready)
   ========================================================================== */
html.js .cnt-hero__title .line {
  overflow: hidden;
  display: block;
  padding-bottom: 0.05em;
}

html.js .cnt-hero__title .line > span {
  display: block;
  transform: translateY(112%);
}

html.js.is-ready .cnt-hero__title .line > span {
  transform: none;
  transition: transform 1.15s var(--st-ease);
  transition-delay: calc(0.24s + var(--i, 0) * 0.14s);
}

html.js .cnt-hero__fade {
  opacity: 0;
  transform: translateY(22px);
}

html.js.is-ready .cnt-hero__fade {
  opacity: 1;
  transform: none;
  transition: opacity 1s ease, transform 1s var(--st-ease);
  transition-delay: calc(0.65s + var(--i, 0) * 0.12s);
}

html.js.is-ready .cnt-hero__wordmark {
  animation: st-fade-in 1.4s var(--st-ease) 0.85s backwards;
}

html.js .cnt-hero__bg-img {
  transform: scale(1.08);
  transition: transform 2.2s var(--st-ease);
}

html.js.is-ready .cnt-hero__bg-img {
  transform: scale(1.15);
}

/* --------------------------------------------------------------------------
   02. INTERACTIVE CONFIGURATOR FORM (cnt-form-section)
   -------------------------------------------------------------------------- */
.cnt-form-section {
  position: relative;
  background: var(--st-ink);
  color: var(--st-paper);
  padding-block: var(--st-section);
  z-index: 2;
}

.cnt-form-section__head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto clamp(40px, 6vw, 64px);
}

.cnt-form-section__eyebrow {
  display: inline-block;
  color: #8da2fb;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.cnt-form-section__title {
  font-size: var(--st-fs-h2);
  line-height: 1.25;
  margin-bottom: 18px;
}

.cnt-form-section__intro {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.8;
  color: var(--st-text-mute-light);
}

.cnt-form-wrapper {
  max-width: 1040px;
  margin: 0 auto;
  background: rgba(16, 28, 77, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: clamp(28px, 5vw, 64px);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  position: relative;
  transition: border-color 0.8s var(--st-ease), box-shadow 0.8s var(--st-ease), opacity 0.9s ease, transform 1s var(--st-ease);
}

.cnt-form-wrapper.is-in {
  border-color: rgba(58, 82, 255, 0.28);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 32px rgba(58, 82, 255, 0.14);
}

/* 表單進度條 */
.cnt-form-meta {
  margin-bottom: clamp(32px, 5vw, 48px);
}

.cnt-form-meta__status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #a4b7ff;
}

.cnt-form-meta__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--st-signal);
  animation: cntPulse 1.8s infinite;
}

@keyframes cntPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.cnt-form-meta__bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.cnt-form-meta__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--st-blue), #00d2ff);
  border-radius: 999px;
  transition: width 0.45s var(--st-ease);
  box-shadow: 0 0 10px rgba(58, 82, 255, 0.5);
}

/* 表單分組 Group */
.cnt-group {
  border: none;
  margin: 0 0 clamp(36px, 5vw, 52px) 0;
  padding: 0;
}

.cnt-group__legend {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  width: 100%;
}

.cnt-group__no {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--st-blue);
  background: rgba(58, 82, 255, 0.14);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.cnt-group__title {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--st-white);
}

.cnt-group__hint {
  font-size: 0.875rem;
  color: var(--st-text-mute-light);
  font-weight: 500;
}

/* CHIPS 標籤式點選元件 */
.cnt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Chips Stagger Entrance */
html.js .cnt-group.is-in .cnt-chip {
  animation: cntChipSlideUp 0.55s var(--st-ease) backwards;
}
html.js .cnt-group.is-in .cnt-chip:nth-child(1) { animation-delay: 0.04s; }
html.js .cnt-group.is-in .cnt-chip:nth-child(2) { animation-delay: 0.09s; }
html.js .cnt-group.is-in .cnt-chip:nth-child(3) { animation-delay: 0.14s; }
html.js .cnt-group.is-in .cnt-chip:nth-child(4) { animation-delay: 0.19s; }
html.js .cnt-group.is-in .cnt-chip:nth-child(5) { animation-delay: 0.24s; }

@keyframes cntChipSlideUp {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cnt-chip {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.cnt-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cnt-chip__box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--st-paper);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.28s var(--st-ease);
}

.cnt-chip:hover .cnt-chip__box {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.cnt-chip__check {
  width: 16px;
  height: 16px;
  color: transparent;
  transition: color 0.25s var(--st-ease);
}

.cnt-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.25s var(--st-ease);
}

/* Checked State */
.cnt-chip input:checked + .cnt-chip__box {
  background: rgba(58, 82, 255, 0.18);
  border-color: var(--st-blue);
  color: var(--st-white);
  box-shadow: 0 0 16px rgba(58, 82, 255, 0.35);
  transform: translateY(-1px);
}

.cnt-chip input:checked + .cnt-chip__box .cnt-chip__check {
  color: var(--st-blue);
}

.cnt-chip input:checked + .cnt-chip__box .cnt-chip__dot {
  background: var(--st-signal);
  box-shadow: 0 0 8px var(--st-signal);
  transform: scale(1.25);
}

.cnt-chip input:focus-visible + .cnt-chip__box {
  outline: 2px solid var(--st-signal);
  outline-offset: 3px;
}

/* 步驟 4：輸入框網格 */
.cnt-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Fields Stagger Entrance */
html.js .cnt-group--inputs.is-in .cnt-field {
  animation: cntFieldFadeIn 0.6s var(--st-ease) backwards;
}
html.js .cnt-group--inputs.is-in .cnt-field:nth-child(1) { animation-delay: 0.05s; }
html.js .cnt-group--inputs.is-in .cnt-field:nth-child(2) { animation-delay: 0.11s; }
html.js .cnt-group--inputs.is-in .cnt-field:nth-child(3) { animation-delay: 0.17s; }
html.js .cnt-group--inputs.is-in .cnt-field:nth-child(4) { animation-delay: 0.23s; }
html.js .cnt-group--inputs.is-in .cnt-field:nth-child(5) { animation-delay: 0.29s; }
html.js .cnt-group--inputs.is-in .cnt-field:nth-child(6) { animation-delay: 0.35s; }

@keyframes cntFieldFadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cnt-field {
  position: relative;
  display: flex;
  flex-direction: column;
}

.cnt-field--full {
  grid-column: 1 / -1;
}

.cnt-field__label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #cfd8ff;
  margin-bottom: 8px;
}

.cnt-field__req {
  color: var(--st-signal);
  font-weight: 900;
}

.cnt-field__opt {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--st-text-mute-light);
}

.cnt-field__input,
.cnt-field__textarea {
  width: 100%;
  background: rgba(8, 20, 53, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--st-white);
  font-family: inherit;
  font-size: 0.98rem;
  line-height: 1.6;
  transition: all 0.3s var(--st-ease);
}

.cnt-field__input::placeholder,
.cnt-field__textarea::placeholder {
  color: rgba(238, 240, 248, 0.35);
}

.cnt-field__input:hover,
.cnt-field__textarea:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.cnt-field__input:focus,
.cnt-field__textarea:focus {
  outline: none;
  background: rgba(8, 20, 53, 0.9);
  border-color: var(--st-blue);
  box-shadow: 0 0 0 4px rgba(58, 82, 255, 0.22);
}

.cnt-field__textarea {
  resize: vertical;
  min-height: 120px;
}

.cnt-field.is-invalid .cnt-field__input,
.cnt-field.is-invalid .cnt-field__textarea {
  border-color: #ff5252;
  box-shadow: 0 0 0 3px rgba(255, 82, 82, 0.2);
}

.cnt-field__error {
  display: none;
  color: #ff8080;
  font-size: 0.82rem;
  margin-top: 6px;
  font-weight: 600;
}

.cnt-field.is-invalid .cnt-field__error {
  display: block;
}

/* 預留人機驗證槽位（CAPTCHA Slot） */
.cnt-captcha-wrap {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.cnt-captcha-slot:empty {
  display: none;
}



/* 必填選項群組（專案類型／預算／時程）的錯誤提示 */
.cnt-group__error {
  display: none;
  margin: 14px 0 0;
  color: #ff8080;
  font-size: 0.9rem;
  font-weight: 600;
}

.cnt-group.is-invalid .cnt-group__error {
  display: block;
}

.cnt-group.is-invalid .cnt-chip__box {
  border-color: rgba(255, 82, 82, 0.7);
}

/* 字數計數器（目前字數 / 上限） */
.cnt-field__count {
  display: block;
  margin-top: 6px;
  text-align: right;
  font-size: 0.78rem;
  color: rgba(164, 183, 255, 0.7);
  font-variant-numeric: tabular-nums;
}

.cnt-field__count.is-near {
  color: #ffb84d;
}

.cnt-field__count.is-over {
  color: #ff8080;
  font-weight: 700;
}

/* 人機驗證區（欄位錯誤提示） */
.cnt-captcha-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.cnt-captcha-box.is-invalid .cnt-captcha-slot {
  outline: 2px solid #ff5252;
  outline-offset: 4px;
  border-radius: 8px;
}

.cnt-captcha-label {
  margin: 0;
  color: rgba(214, 224, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 600;
}

.cnt-captcha-label[hidden] {
  display: none;
}

.cnt-captcha-error {
  color: #ff8080;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
}

.cnt-captcha-error[hidden] {
  display: none;
}

/* 失敗（偵測到異常）提示框：與成功提示同樣式，改用橘色驚嘆號 */
.cnt-modal--error .cnt-modal__card {
  border-color: rgba(255, 122, 69, 0.45);
}

.cnt-modal--error .cnt-modal__icon {
  background: rgba(255, 122, 69, 0.16);
  border-color: var(--st-signal);
}

.cnt-modal--error .cnt-modal__icon svg {
  stroke: var(--st-signal);
}

/* 送出失敗訊息 */
.cnt-form-error {
  margin-top: 20px;
  margin-bottom: 24px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 107, 107, 0.45);
  background: rgba(255, 82, 82, 0.1);
  color: #ffd0d0;
  font-size: .95rem;
  line-height: 1.7;
}

.cnt-form-error[hidden] {
  display: none;
}

/* 表單底部區塊 */
.cnt-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.cnt-form-foot__notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 580px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--st-text-mute-light);
}

.cnt-form-foot__notice strong {
  color: var(--st-paper);
}

.cnt-form-foot__shield {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #00d2ff;
  margin-top: 2px;
}

/* 磁性送出大按鈕 */
.cnt-submit-btn {
  position: relative;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  outline: none;
}

.cnt-submit-btn__inner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--st-blue) 0%, var(--st-blue-deep) 100%);
  color: var(--st-white);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 32px rgba(58, 82, 255, 0.4);
  transition: transform 0.35s var(--st-ease), box-shadow 0.35s var(--st-ease);
  animation: cntBtnGlow 4s infinite ease-in-out;
}

@keyframes cntBtnGlow {
  0%, 100% {
    box-shadow: 0 12px 32px rgba(58, 82, 255, 0.4);
  }
  50% {
    box-shadow: 0 16px 42px rgba(58, 82, 255, 0.65), 0 0 24px rgba(0, 210, 255, 0.25);
  }
}

.cnt-submit-btn:hover .cnt-submit-btn__inner {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 42px rgba(58, 82, 255, 0.55);
}

.cnt-submit-btn:active .cnt-submit-btn__inner {
  transform: translateY(0) scale(0.98);
}

.cnt-submit-btn__arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.35s var(--st-ease);
}

.cnt-submit-btn:hover .cnt-submit-btn__arrow {
  transform: translateX(4px);
}

.cnt-submit-btn__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--st-white);
  border-radius: 50%;
  animation: cntSpin 0.75s infinite linear;
}

@keyframes cntSpin {
  to { transform: rotate(360deg); }
}

.cnt-submit-btn.is-loading .cnt-submit-btn__arrow {
  display: none;
}

.cnt-submit-btn.is-loading .cnt-submit-btn__spinner {
  display: inline-block;
}

.cnt-submit-btn.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

/* 成功彈窗 Modal */
.cnt-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--st-ease);
}

.cnt-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cnt-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 53, 0.85);
  backdrop-filter: blur(12px);
}

.cnt-modal__card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  background: #101c4d;
  border: 1px solid rgba(58, 82, 255, 0.35);
  border-radius: 20px;
  padding: clamp(32px, 6vw, 44px);
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.92);
  transition: transform 0.4s var(--st-ease);
}

.cnt-modal.is-open .cnt-modal__card {
  transform: scale(1);
}

.cnt-modal__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(58, 82, 255, 0.2);
  border: 2px solid var(--st-blue);
  color: var(--st-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.cnt-modal__icon svg {
  width: 32px;
  height: 32px;
  stroke: #00d2ff;
}

.cnt-modal__title {
  font-size: 1.6rem;
  color: var(--st-white);
  margin-bottom: 12px;
}

.cnt-modal__text {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--st-text-mute-light);
  margin-bottom: 24px;
}

.cnt-modal__text strong {
  color: var(--st-signal);
}

.cnt-modal__meta {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: #a4b7ff;
  margin-bottom: 24px;
}

.cnt-modal__meta a {
  color: var(--st-white);
  font-weight: 700;
  text-decoration: underline;
}

.cnt-modal__btn {
  width: 100%;
}

/* --------------------------------------------------------------------------
   03. DIRECT REACH (cnt-direct) — 精緻專注卡片樣式
   -------------------------------------------------------------------------- */
.cnt-direct {
  position: relative;
  background: var(--st-paper);
  color: var(--st-text-dark);
  padding-block: var(--st-section);
  z-index: 2;
}

.cnt-direct__wrapper {
  max-width: 820px;
  margin: 0 auto;
}

.cnt-direct__card {
  background: var(--st-white);
  border-radius: 24px;
  padding: clamp(36px, 6vw, 56px);
  box-shadow: 0 16px 48px rgba(8, 20, 53, 0.08);
  border: 1px solid var(--st-line-dark);
  position: relative;
  text-align: center;
  transition: transform 0.6s var(--st-ease), box-shadow 0.6s var(--st-ease);
}

html.js .cnt-direct__wrapper.is-in .cnt-direct__card {
  animation: cntCardIn 0.85s var(--st-ease) backwards;
}

html.js .cnt-direct__wrapper.is-in .cnt-direct__tags li {
  animation: cntTagIn 0.55s var(--st-ease) backwards;
}
html.js .cnt-direct__wrapper.is-in .cnt-direct__tags li:nth-child(1) { animation-delay: 0.2s; }
html.js .cnt-direct__wrapper.is-in .cnt-direct__tags li:nth-child(2) { animation-delay: 0.3s; }

@keyframes cntCardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cntTagIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

.cnt-direct__badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(58, 82, 255, 0.09);
  color: var(--st-blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.cnt-direct__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--st-ink);
}

.cnt-direct__lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--st-text-mute-dark);
  margin-bottom: 32px;
  max-width: 640px;
  margin-inline: auto;
}

/* 信箱複製盒 */
.cnt-direct__mail-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--st-paper);
  border: 1px solid var(--st-line-dark);
  border-radius: 16px;
  padding: 16px 24px;
  margin-bottom: 28px;
  max-width: 620px;
  margin-inline: auto;
}

.cnt-direct__mail-addr {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 800;
  color: var(--st-ink);
  word-break: break-all;
  letter-spacing: 0.02em;
}

.cnt-direct__mail-addr:hover {
  color: var(--st-blue);
}

.cnt-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--st-white);
  border: 1px solid var(--st-line-dark);
  border-radius: 10px;
  padding: 10px 18px;
  color: var(--st-ink);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s var(--st-ease);
}

.cnt-copy-btn:hover {
  background: var(--st-blue);
  border-color: var(--st-blue);
  color: var(--st-white);
  box-shadow: 0 4px 14px rgba(58, 82, 255, 0.3);
  transform: translateY(-1px);
}

.cnt-copy-btn__icon {
  width: 16px;
  height: 16px;
}

/* 複製成功 Toast */
.cnt-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: var(--st-ink);
  color: var(--st-white);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--st-ease), opacity 0.35s var(--st-ease);
  z-index: 10000;
}

.cnt-toast.is-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.cnt-direct__tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.cnt-direct__tags li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--st-text-mute-dark);
}

.cnt-direct__tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--st-blue);
}

/* --------------------------------------------------------------------------
   04. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .cnt-fields-grid {
    grid-template-columns: 1fr;
  }
  .cnt-form-foot {
    flex-direction: column;
    align-items: stretch;
  }
  .cnt-submit-btn__inner {
    width: 100%;
    justify-content: center;
  }
  .cnt-direct__mail-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .cnt-copy-btn {
    width: 100%;
    justify-content: center;
  }
  .cnt-direct__tags {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}
