/* ===== 基礎設定 ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #1a6fc4;
  --primary-dark: #145499;
  --primary-light: #e8f1fb;
  --green: #1a9c4e;
  --green-dark: #147a3d;
  --gray-bg: #f5f7fa;
  --text: #1a1a1a;
  --text-muted: #555;
  --border: #d8dee8;
  --white: #ffffff;
  --shadow: 0 2px 12px rgba(0,0,0,0.10);
  --radius: 12px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'PingFang TC', 'Noto Sans TC', '微軟正黑體', Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== 導覽列 ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}

.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--primary);
  padding: 4px 8px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 8px 0 16px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--gray-bg);
}

.mobile-nav a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* ===== 主視覺 ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: rgb(6, 29, 60);
  color: var(--white);
  min-height: clamp(620px, 72vh, 700px);
  display: flex;
  align-items: center;
  padding: 60px max(5vw, 24px);
}

/* Layer 1：背景圖，水平翻轉使車輛移到右側 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("images/hero-rav4.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scaleX(-1);
  z-index: 0;
  pointer-events: none;
}

/* Layer 2：遮罩，左深右淡，保持右側車輛清晰 */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(6, 29, 60, 0.92) 0%,
    rgba(6, 29, 60, 0.72) 30%,
    rgba(6, 29, 60, 0.22) 55%,
    rgba(6, 29, 60, 0.04) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Layer 3：共用基礎（平板 / 所有尺寸） */
.hero-content {
  position: relative;
  z-index: 2;
  width: min(640px, calc(100% - 48px));
  margin-left: clamp(24px, 4vw, 60px);
  margin-right: auto;
  text-align: left;
}

.hero h1 {
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}

.hero-sub {
  font-size: clamp(0.98rem, 1.5vw, 1.2rem);
  line-height: 1.5;
  opacity: 0.92;
  margin-bottom: 22px;
}

.hero-location-tags {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
  margin-bottom: 22px;
}

.hero-location-tags span {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.30);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.90;
}

.hero-tagline {
  font-size: 0.93rem;
  font-weight: 600;
  opacity: 0.95;
  margin-bottom: 0;
  letter-spacing: 0.04em;
}

.hero-btns {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 38px;
}

.hero-btns .btn {
  padding: 12px 28px;
  font-size: 0.95rem;
}

/* ===== 桌面版 Hero 加強（≥ 1024px）===== */
@media (min-width: 1024px) {
  .hero-content {
    width: min(680px, calc(100% - 64px));
    max-width: 680px;
    margin-left: clamp(42px, 5vw, 78px);
    margin-right: auto;
    text-align: left;
    transform: translateY(-36px);
  }

  .hero h1 {
    position: relative;
    left: -18px;
    color: #ffffff;
    font-size: clamp(3.8rem, 4.8vw, 4.9rem);
    line-height: 1.06;
    letter-spacing: -0.025em;
    margin: 0 0 32px;
  }

  .hero-sub {
    margin-bottom: 30px;
    line-height: 1.5;
  }

  .hero-location-tags {
    gap: 12px;
    margin-bottom: 30px;
  }

  .hero-tagline {
    margin-top: 0;
    font-weight: 600;
    line-height: 1.6;
  }

  .hero-btns {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 56px;
  }
}

/* ===== 服務項目 CTA（桌面隱藏，手機顯示）===== */
.service-cta {
  display: none;
}

/* ===== 按鈕 ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,111,196,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-1px);
}

.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.btn-green:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
}

.btn-block {
  display: block;
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* ===== 通用 Section ===== */
.section {
  padding: 64px 20px;
}

.section-gray {
  background: var(--gray-bg);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin-bottom: 10px;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 10px auto 0;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-top: 12px;
  margin-bottom: 36px;
  font-size: 1rem;
}

/* ===== 服務項目 ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: var(--shadow);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}

.service-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== 司機介紹 ===== */
.profile-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 36px;
}

.photo-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 3px dashed var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.profile-info h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.profile-tag {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.profile-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

.profile-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-list li {
  font-size: 0.97rem;
  color: var(--text);
}

/* ===== 車輛介紹 ===== */
.car-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 36px;
}

.car-photo-wrap {
  flex-shrink: 0;
}

.car-photo-wrap .photo-placeholder {
  width: 220px;
  height: 150px;
  border-radius: var(--radius);
}

/* ===== 司機照片 ===== */
.profile-photo-wrap {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
}

.driver-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  transform: scale(1.08) translateY(-6%);
  display: block;
}

/* ===== 車輛照片 ===== */
.car-front-photo {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  display: block;
}

.car-info h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--primary);
}

.car-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.spec-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-top: 2px;
}

.spec-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.spec-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ===== 服務範圍 ===== */
.area-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
  margin-bottom: 20px;
}

.area-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.area-card-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
}

.area-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.area-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.area-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ===== 預約表單 ===== */
.notice-box {
  background: #fff8e1;
  border-left: 4px solid #f59f00;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 28px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.booking-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  margin-top: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 7px;
  color: var(--text);
}

.required {
  color: #e03131;
}

.form-group input:not([type="checkbox"]),
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,111,196,0.12);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #e03131;
  box-shadow: 0 0 0 3px rgba(224,49,49,0.10);
}

.error-msg {
  display: block;
  color: #e03131;
  font-size: 0.82rem;
  margin-top: 5px;
  min-height: 18px;
}


/* ===== 成功 Modal ===== */
.success-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.success-modal.show {
  display: flex;
}

.success-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.success-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.5;
}

.success-box p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ===== 常見問題 ===== */
.faq-list {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: inherit;
  transition: background 0.15s;
}

.faq-question:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.faq-question.active {
  background: var(--primary-light);
  color: var(--primary);
}

.faq-arrow {
  font-size: 0.8rem;
  transition: transform 0.25s;
  flex-shrink: 0;
}

.faq-question.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 24px clamp(32px, 5vw, 72px);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  text-align: left;
  border-top: 1px solid var(--border);
}

.faq-answer.open {
  display: block;
}

/* ===== 聯絡區域 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.contact-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.contact-note {
  font-size: 0.82rem !important;
  color: var(--text-muted);
}

/* ===== 頁尾 ===== */
.footer {
  background: #1a2236;
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 32px 20px;
  font-size: 0.88rem;
  line-height: 1.8;
}

.footer-note {
  font-size: 0.78rem;
  opacity: 0.6;
  margin-top: 4px;
}

/* ===== 手機版響應式 ===== */
@media (max-width: 768px) {
  .area-cards {
    grid-template-columns: 1fr;
  }

  .faq-answer {
    padding: 20px 22px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  /* ===== 手機版 Hero ===== */
  .hero {
    min-height: calc(100svh - var(--header-height, 88px));
    display: flex;
    align-items: flex-start;
    padding-top: 0;
    padding-bottom: 54px;
    padding-left: 20px;
    padding-right: 20px;
  }

  /* 22% 讓翻轉後更多車頭顯示在右側畫面 */
  .hero::before {
    background-position: 22% center;
  }

  /* 手機遮罩：頂部更透明，保留車頭可辨識度 */
  .hero::after {
    background: linear-gradient(
      180deg,
      rgba(6, 29, 60, 0.25) 0%,
      rgba(6, 29, 60, 0.52) 42%,
      rgba(6, 29, 60, 0.84) 100%
    );
  }

  /* 移除負位移，改用 padding-top 控制與導覽列的距離 */
  .hero-content {
    width: calc(100% - 32px);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 34px;
    text-align: center;
    transform: none;
  }

  /* 覆蓋桌面版 position/left，手機標題保持單行 */
  .hero h1 {
    position: static;
    left: auto;
    transform: none;
    color: #ffffff;
    font-size: clamp(2rem, 8.5vw, 2.4rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    max-width: 100%;
    white-space: nowrap;
  }

  .hero-sub {
    width: 100%;
    max-width: 340px;
    margin: 0 auto 26px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-location-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 auto 28px;
  }

  .hero-location-tags span {
    padding: 6px 13px;
    font-size: 0.9rem;
  }

  .hero-tagline {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 600;
  }

  /* 按鈕直排，margin-top: 34px 與特色文字拉開 */
  .hero-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 34px;
    width: 100%;
  }

  .hero-btns .btn {
    width: 100%;
    max-width: 280px;
    min-height: 52px;
    padding: 14px 28px;
    font-size: 1rem;
  }

  /* ===== 手機版服務項目 2×2 ===== */
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
  }

  .mobile-secondary-service {
    display: none;
  }

  .service-card {
    padding: 16px 12px;
  }

  .service-icon {
    font-size: 1.9rem;
    margin-bottom: 8px;
  }

  .service-card h3 {
    font-size: 0.95rem;
    margin-bottom: 5px;
  }

  .service-card p {
    font-size: 0.80rem;
  }

  .service-cta {
    display: flex;
    justify-content: center;
    margin-top: 18px;
  }

  .service-cta .btn {
    width: 100%;
    max-width: 280px;
    padding: 14px 28px;
  }

  .profile-card,
  .car-card {
    flex-direction: column;
    align-items: center;
    padding: 28px 20px;
    gap: 24px;
    text-align: center;
  }

  .profile-list {
    align-items: flex-start;
    text-align: left;
  }

  .car-photo-wrap .photo-placeholder {
    width: 100%;
    max-width: 300px;
    height: 160px;
    border-radius: var(--radius);
  }

  .profile-photo-wrap {
    width: 140px;
    height: 140px;
  }

  .car-front-photo {
    max-width: 100%;
  }

  .car-specs {
    grid-template-columns: 1fr;
  }

  .spec-item {
    text-align: left;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .booking-form {
    padding: 24px 16px;
  }

  .section {
    padding: 48px 16px;
  }

}


@media (max-width: 480px) {
  .profile-photo-wrap .photo-placeholder {
    width: 120px;
    height: 120px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* 保持服務項目 2×2 網格，不縮回單欄 */
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.9rem;
  }
}


.consent-group {
  margin-bottom: 20px;
}

.consent-checkbox {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.consent-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
  user-select: none !important;
  pointer-events: auto !important;
  font-weight: 400 !important;
}

.consent-checkmark {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
  min-width: 22px;
  flex: 0 0 22px;
  margin-top: 2px;
  border: 2px solid #9aa6b8;
  border-radius: 5px;
  background: #ffffff;
  box-sizing: border-box;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.consent-text {
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text);
}

.consent-checkbox:checked + .consent-label .consent-checkmark {
  background: var(--primary);
  border-color: var(--primary);
}

.consent-checkbox:checked + .consent-label .consent-checkmark::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.consent-checkbox:focus-visible + .consent-label .consent-checkmark {
  outline: 3px solid rgba(26, 111, 196, 0.25);
  outline-offset: 2px;
}

.consent-checkbox.invalid + .consent-label .consent-checkmark {
  border-color: #e03131;
  outline: 2px solid rgba(224, 49, 49, 0.15);
  outline-offset: 2px;
}

/* ===== 個資同意連結 ===== */
.consent-privacy-link {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
  cursor: pointer;
}

.consent-privacy-link:hover {
  color: var(--primary-dark);
}

/* ===== Footer 個資連結 ===== */
.footer-privacy {
  margin-top: 10px;
  font-size: 0.75rem;
}

.footer-privacy a {
  color: rgba(255, 255, 255, 0.50);
  text-decoration: underline;
}

.footer-privacy a:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* ===== 個人資料蒐集告知頁面 ===== */
.privacy-page {
  background: var(--gray-bg);
  padding: 56px 20px 72px;
  min-height: 60vh;
}

.privacy-content {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 52px 52px 44px;
}

.privacy-content h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.privacy-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.privacy-intro {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
  padding-bottom: 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.privacy-section {
  margin-bottom: 36px;
}

.privacy-section h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}

.privacy-section p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 10px;
}

.privacy-section ol,
.privacy-section ul {
  padding-left: 1.4rem;
  margin-bottom: 10px;
}

.privacy-section li {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 5px;
}

.privacy-info-block {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 14px 0;
}

.privacy-info-block p {
  margin-bottom: 4px !important;
}

.privacy-note {
  background: #fff8e6;
  border-left: 4px solid #e8a020;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.7;
  margin-top: 10px;
}

.privacy-back {
  text-align: center;
  padding-top: 28px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .privacy-page {
    padding: 28px 0 56px;
  }

  .privacy-content {
    padding: 28px 18px 32px;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    max-width: 100%;
  }

  .privacy-content h1 {
    font-size: 1.35rem;
  }

  .privacy-section h2 {
    font-size: 1rem;
  }

  .privacy-section p,
  .privacy-section li {
    font-size: 1rem;
  }
}
