/* 台拓 — 人才招募（線上應徵表單頁）
   命名前綴：rc-（recruitment）
   依賴：about-history.css 提供 .ah-inner-header 與 _Breadcrumb 樣式
   版型比照 contact-business-inquiry.css（Hero + 左深色資訊欄 + 右白色表單卡），
   差異：左欄改為 104 人力銀行連結卡＋吉祥物，右欄改為應徵表單（含個資同意勾選）。
   來源：design_handoff_recruitment_delta 交辦包 人力招募.html 專屬 <style>。
*/

:root {
  --rc-red: #E0121A;
  --rc-red-dark: #B30E14;
  --rc-red-soft: #FEE2E4;
  --rc-ink: #0E0F11;
  --rc-ink-2: #1A1B1F;
  --rc-paper-2: #FAFAFB;
  --rc-white: #FFFFFF;
  --rc-muted: #6B7280;
  --rc-muted-2: #9CA3AF;
  --rc-border: #E5E7EB;
  --rc-yellow: #FCD34D;
  --rc-slate: #B6B9C0;
  --rc-body: #3F4350;
  --rc-radius-lg: 22px;
  --rc-shadow-card: 0 1px 2px rgba(15,17,21,.04), 0 8px 24px rgba(15,17,21,.06);
}

/* ============ 共用容器 ============ */
.rc-container {
  width: min(1280px, calc(100% - 80px));
  margin-inline: auto;
}

/* ============ 眉標 ============ */
.rc-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--rc-red);
  letter-spacing: .04em;
  font-family: 'Noto Sans TC', sans-serif;
  margin-bottom: 22px;
}
.rc-eyebrow .rc-bolt {
  width: 14px; height: 14px;
  background: #FACC15;
  clip-path: polygon(40% 0, 100% 0, 60% 45%, 100% 45%, 0 100%, 40% 55%, 0 55%);
}

/* ============ Hero ============ */
.rc-hero {
  position: relative;
  padding: 72px 0 220px;
  background:
    radial-gradient(ellipse 760px 520px at 12% 30%, #F4EFEC 0%, transparent 60%),
    linear-gradient(180deg, #F7F5F2 0%, #FBFAF8 100%);
  overflow: hidden;
}
.rc-hero .rc-bolt-watermark {
  position: absolute;
  right: -40px; top: 40px;
  width: 320px; height: 320px;
  color: var(--rc-red);
  opacity: .05;
  transform: rotate(8deg);
  pointer-events: none;
}
.rc-hero h1 {
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 800;
  /* 本頁標題較長（15 字），字級上限比業務洽詢頁（cbi-hero，64px）略降，
     避免在左欄 ~0.9fr 欄寬下把「未來」二字擠成單獨第三行的孤字。 */
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.3;
  letter-spacing: -.01em;
  margin: 0 0 20px;
  max-width: 510px;
  color: var(--rc-ink);
}
.rc-hero p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--rc-body);
  max-width: 560px;
  margin: 0 0 10px;
  font-family: 'Noto Sans TC', sans-serif;
}
.rc-hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.35fr;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.rc-hero-figure { align-self: center; display: flex; }
.rc-hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 1906 / 825;
  object-fit: cover;
  max-height: none;
  border: 1px solid var(--rc-border);
  border-radius: var(--rc-radius-lg);
  box-shadow: var(--rc-shadow-card);
  background: #fff;
  overflow: hidden;
}

/* ============ 表單區（上移覆蓋 Hero） ============ */
.rc-wrap {
  margin-top: -160px;
  padding-bottom: 110px;
  position: relative;
  z-index: 2;
}
.rc-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.35fr;
  gap: 36px;
  align-items: stretch;
}

/* ============ 左側深色資訊欄 ============ */
.rc-aside {
  background: var(--rc-ink);
  border-radius: var(--rc-radius-lg);
  padding: 40px 36px;
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 1.6px),
    radial-gradient(130% 120% at 100% 0%, rgba(224,18,26,.22), transparent 50%);
  background-size: 22px 22px, 100% 100%;
  box-shadow: 0 20px 50px rgba(14,15,17,.18);
}
.rc-aside > * { position: relative; z-index: 1; }
.rc-aside .rc-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--rc-yellow);
  background: rgba(250,204,21,.12);
  padding: 6px 13px;
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  margin-bottom: 22px;
}
.rc-aside h2 {
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 800;
  font-size: 26px;
  line-height: 1.35;
  margin: 0 0 16px;
}
.rc-aside .rc-lead {
  font-size: 15px;
  line-height: 1.85;
  color: var(--rc-slate);
  font-family: 'Noto Sans TC', sans-serif;
  margin: 0 0 28px;
}

.rc-aside-contact {
  display: flex; flex-direction: column;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.12);
}

/* 104 連結卡 */
.rc-jb-link {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  transition: background .15s, border-color .15s, transform .15s;
}
.rc-jb-link:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--rc-yellow);
  transform: translateY(-1px);
}
.rc-jb-logo {
  flex: none;
  display: flex; align-items: center; gap: 8px;
  background: #fff;
  border-radius: 11px;
  height: 60px;
  padding: 0 12px;
}
.rc-jb-logo img { height: 38px; width: auto; max-height: none; }
.rc-jb-text { flex: 1; min-width: 0; }
.rc-jb-title {
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 800;
  font-size: 15.5px;
  color: #fff;
  margin: 0 0 3px;
}
.rc-jb-sub {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 12.5px;
  color: var(--rc-slate);
  margin: 0;
}
.rc-jb-arrow { flex: none; width: 15px; height: 15px; color: var(--rc-yellow); }

.rc-aside-note {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 22px;
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--rc-slate);
  font-family: 'Noto Sans TC', sans-serif;
}

/* ============ 吉祥物（推至卡片底部、左右滿版貼齊圓角） ============ */
.rc-aside-mascot {
  position: relative;
  margin: 24px -36px -40px;
  margin-top: auto;
  padding-top: 18px;
  text-align: center;
}
.rc-aside-mascot img {
  position: relative;
  width: 220px;
  max-width: 72%;
  max-height: none;
  height: auto;
  margin: 0 auto;
  display: block;
}
.rc-mascot-bubble {
  display: inline-block;
  position: relative;
  background: var(--rc-yellow);
  color: var(--rc-ink-2);
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: .01em;
  padding: 11px 18px;
  border-radius: 14px;
  margin-bottom: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,.28);
}
.rc-mascot-bubble::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -8px;
  transform: translateX(-50%);
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid var(--rc-yellow);
}

/* ============ 右側表單卡 ============ */
.rc-card {
  background: #fff;
  border: 1px solid var(--rc-border);
  border-radius: var(--rc-radius-lg);
  box-shadow: var(--rc-shadow-card);
  padding: 44px 46px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rc-card .rc-form-head {
  margin-bottom: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--rc-border);
}
.rc-card .rc-form-head h2 {
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 800;
  font-size: 24px;
  margin: 0 0 8px;
  color: var(--rc-ink);
}
.rc-card .rc-form-head p {
  margin: 0;
  font-size: 14.5px;
  color: var(--rc-muted);
  font-family: 'Noto Sans TC', sans-serif;
  line-height: 1.6;
}

.rc-field { margin-bottom: 22px; }
.rc-field > label {
  display: block;
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--rc-ink);
  margin-bottom: 9px;
}
.rc-field .rc-req { color: var(--rc-red); margin-left: 3px; }
.rc-field .rc-hint {
  font-weight: 500;
  font-size: 12.5px;
  color: var(--rc-muted-2);
  margin-left: 8px;
}

/* 固定「聯絡事項」pill */
.rc-subject-pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--rc-red-soft);
  color: var(--rc-red);
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 13px 20px;
  border-radius: 12px;
  border: 1px solid rgba(224,18,26,.18);
}
.rc-subject-pill svg { width: 17px; height: 17px; }

/* 輸入框 */
.rc-input {
  width: 100%;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 15.5px;
  color: var(--rc-ink);
  background: var(--rc-paper-2);
  border: 1.5px solid var(--rc-border);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none;
  appearance: none;
}
.rc-input::placeholder { color: var(--rc-muted-2); }
.rc-textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.7;
  font-family: 'Noto Sans TC', sans-serif;
}
.rc-input:focus {
  outline: none;
  border-color: var(--rc-red);
  background: #fff;
  box-shadow: 0 0 0 4px var(--rc-red-soft);
}
.rc-input.rc-invalid { border-color: var(--rc-red); background: #FFF7F7; }
.rc-field-error {
  display: none;
  margin-top: 7px;
  font-size: 12.5px;
  color: var(--rc-red);
  font-family: 'Noto Sans TC', sans-serif;
}
.rc-field-error.rc-show { display: block; }

/* 個資同意勾選 */
.rc-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.rc-consent input[type="checkbox"] {
  flex: none;
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--rc-red);
}
.rc-consent label {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--rc-muted);
}
.rc-consent.rc-invalid label { color: var(--rc-red); }

/* 圖形驗證碼 */
.rc-captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.rc-captcha-img {
  border: 1.5px solid var(--rc-border);
  border-radius: 10px;
  background: var(--rc-paper-2);
  display: block;
}
.rc-captcha-refresh {
  flex: none;
  width: 42px; height: 42px;
  border: 1.5px solid var(--rc-border);
  background: var(--rc-paper-2);
  border-radius: 10px;
  cursor: pointer;
  color: var(--rc-muted);
  display: grid;
  place-items: center;
  transition: border-color .15s, color .15s, transform .15s;
}
.rc-captcha-refresh svg { width: 18px; height: 18px; }
.rc-captcha-refresh:hover { border-color: var(--rc-red); color: var(--rc-red); transform: rotate(45deg); }

/* 表單層級錯誤訊息 */
.rc-form-error {
  display: none;
  margin-bottom: 22px;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--rc-red-soft);
  color: var(--rc-red);
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}
.rc-form-error.rc-show { display: block; }

/* 送出 */
.rc-form-actions {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.rc-btn-submit {
  background: var(--rc-red);
  color: #fff;
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 32px;
  border: none;
  cursor: pointer;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background .15s, transform .15s;
}
.rc-btn-submit:hover { background: var(--rc-red-dark); transform: translateY(-1px); }
.rc-btn-submit[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.rc-btn-submit svg { width: 16px; height: 16px; }
.rc-form-note { font-size: 13px; color: var(--rc-muted); font-family: 'Noto Sans TC', sans-serif; }

/* 成功狀態 */
.rc-form-success { display: none; text-align: center; padding: 50px 20px 40px; }
.rc-form-success.rc-show { display: block; }
.rc-form-success .rc-check {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: #D1FAE5;
  color: #1A6E3C;
  display: grid; place-items: center;
  margin: 0 auto 24px;
}
.rc-form-success .rc-check svg { width: 38px; height: 38px; }
.rc-btn-reset {
  margin-top: 28px;
  background: #fff;
  color: var(--rc-red);
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border: 1.5px solid var(--rc-red);
  cursor: pointer;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: background .15s, color .15s, transform .15s;
}
.rc-btn-reset:hover { background: var(--rc-red); color: #fff; transform: translateY(-1px); }
.rc-btn-reset svg { width: 15px; height: 15px; }
.rc-form-success h2 {
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: var(--rc-ink);
  margin: 0 0 12px;
}
.rc-form-success p {
  font-size: 15.5px;
  color: var(--rc-muted);
  font-family: 'Noto Sans TC', sans-serif;
  line-height: 1.75;
  max-width: 420px;
  margin: 0 auto;
}

/* ============ 響應式 ============ */
@media (max-width: 920px) {
  .rc-grid { grid-template-columns: 1fr; gap: 24px; }
  .rc-wrap { margin-top: -150px; }
  .rc-hero-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .rc-hero { padding: 56px 0 200px; }
  .rc-card { padding: 30px 22px 30px; }
  .rc-aside { padding: 32px 26px; }
  .rc-form-actions { gap: 12px; }
  .rc-btn-submit { width: 100%; justify-content: center; }

  /* 104 連結卡：窄螢幕下水平排列擠壓文字（一行一字），改直向堆疊，箭頭改固定右上角 */
  .rc-jb-link { flex-direction: column; align-items: flex-start; gap: 12px; position: relative; padding-right: 44px; }
  .rc-jb-arrow { position: absolute; top: 16px; right: 16px; }
}
