/* ─────────────────────────────────────────
   SUNATEC eサービス — 検査依頼 PAGE
   Layout/sidebar/FAQ tái dùng: page-contact.css + mail-magazine.css + page-food-inspection.css.
   File này: tiêu đề trang, section heading, nút login/会員登録, danh sách security.
───────────────────────────────────────── */
.sn-es-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ③ Tiêu đề trang 検査依頼 */
.sn-es-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.02em;
  color: #061C3D;
  margin: 0;
  width: 100%;
  padding-bottom: 12px;
  border-bottom: 1px solid #008F8D;
}

/* ④⑤⑥ Section */
.sn-es-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}
.sn-es-section-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.02em;
  color: #00C48A;
  margin: 0;
  width: 100%;
  padding-bottom: 10px;
  border-bottom: 1px solid #E6E8EC;
}
.sn-es-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #42526B;
  margin: 0;
}
.sn-es-text a {
  color: #016FFF;
  text-decoration: underline;
}
.sn-es-text a:hover {
  opacity: 0.8;
}

/* Login block (logo + nút) */
.sn-es-login-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.sn-es-logo {
  height: 38px;
  width: auto;
}

/* Buttons */
.sn-es-btn {
  box-sizing: border-box;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 188px;
  height: 56px;
  padding: 10px 16px 10px 21px;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  transition: opacity 0.3s;
}
.sn-es-btn:hover {
  opacity: 0.85;
}
.sn-es-btn span {
  color: #FFFFFF;
}
.sn-es-btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
}
.sn-es-btn--login {
  background-image: url('../../images/btn_background_orange.png');
  background-color: #FE7F00;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.sn-es-btn--register {
  background-image: url('../../images/btn_background_blue.png');
  background-color: #008F8D;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ⑥ Security list */
.sn-es-security-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
.sn-es-security-item {
  position: relative;
  padding-left: 1.1em;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: #42526B;
}
.sn-es-security-item::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
  color: #42526B;
}

/* ═══════════════════════════════════════════
   サービス内容・利用申し込み PAGE (page-eservice-guide.php)
═══════════════════════════════════════════ */

/* Intro: tiêu đề + lead */
.sn-es-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.sn-es-title--noline {
  padding-bottom: 0;
  border-bottom: none;
}
.sn-es-lead {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.02em;
  color: #00C48A;
  margin: 0;
}

/* Section head: icon + tiêu đề + gạch chân (3px teal) */
.sn-es-shead {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding-bottom: 16px;
  border-bottom: 3px solid #008E8C;
}
.sn-es-shead-icon {
  width: 40px;
  height: 40px;
  flex: none;
}
.sn-es-shead-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.02em;
  color: #061C3D;
  margin: 0;
}

/* ④ Feature cards 01–05 */
.sn-es-feature-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
}
.sn-es-feature-card {
  position: relative;
  box-sizing: border-box;
  /* 3 thẻ/hàng: chia đều 1/3 (trừ 2 khoảng gap 20px). max-width giữ thẻ hàng 2 không bị kéo giãn. */
  flex: 1 1 calc((100% - 40px) / 3);
  max-width: calc((100% - 40px) / 3);
  margin-top: 32px;
  padding: 44px 16px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 2px solid #008F8D;
  border-radius: 8px;
}
.sn-es-feature-num {
  position: absolute;
  top: -32px;
  left: 20px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #008F8D;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.sn-es-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
}
.sn-es-feature-text {
  margin: 0;
  text-align: center;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 26px;
  color: #061C3D;
}

/* ⑤ 会員の種類 — heading↔items / item↔item / block↔block đều 16px */
.sn-es-member {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.sn-es-subheading {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.02em;
  color: #061C3D;
}
.sn-es-member .sn-es-security-list {
  gap: 16px;
}
.sn-es-member .sn-es-security-item {
  line-height: 24px;
}

/* ⑥ 検査のお申し込み — flow */
.sn-es-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}
.sn-es-flow-step {
  box-sizing: border-box;
  flex: 1 1 0;
  min-width: 120px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 12px;
  background: #ECF6F6;
  border: 2px solid #008F8D;
  border-radius: 8px;
  text-align: center;
}
.sn-es-flow-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  gap: 4px;
}
.sn-es-flow-icon img {
  height: 64px;
  width: auto;
}
.sn-es-flow-badge {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: #E7380D;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
}
/* Step 2: mockup nhập liệu (検体名/検査名 + ô input) */
.sn-es-flow-form {
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 150px;
}
.sn-es-flow-form-row {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
}
.sn-es-flow-form-label {
  flex: none;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 10px;
  line-height: 16px;
  color: #42526B;
  white-space: nowrap;
}
.sn-es-flow-form-input {
  flex: 1 1 auto;
  height: 20px;
  background: #FFFFFF;
  border: 1px solid #CACACA;
  border-radius: 2px;
}
.sn-es-flow-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 26px;
  color: #061C3D;
}
.sn-es-flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.sn-es-flow-send {
  box-sizing: border-box;
  flex: none;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  min-height: 60px;
  padding: 8px;
  border-radius: 8px;
  background: #FE7F00;
  color: #FFFFFF;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

/* ⑦ サービスご利用のお申し込み — heading thường (không icon/underline) */
.sn-es-plain-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.02em;
  color: #061C3D;
  margin: 0;
  width: 100%;
}

/* ⑦ 同意ボタン */
.sn-es-agree-btns {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
}
.sn-es-agree-btns .sn-es-btn {
  width: 224px;
}
.sn-es-agree-no {
  background-image: url('../../images/btn_background_red_bold.png');
  background-color: #8F0002;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ═══════════════════════════════════════════
   Q&A PAGE (page-eservice-qa.php)
═══════════════════════════════════════════ */
.sn-es-qa-search {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 18px;
  width: 100%;
}
.sn-es-qa-search-field {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
}
.sn-es-qa-search-input {
  box-sizing: border-box;
  width: 100%;
  height: 56px;
  padding: 16px 44px 16px 20px;
  border: 1px solid #CDD2D8;
  border-radius: 8px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  color: #061C3D;
}
.sn-es-qa-search-input::placeholder { color: #6A778B; font-weight: 700; }
.sn-es-qa-search-input:focus { outline: none; border-color: #008F8D; }
.sn-es-qa-search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.sn-es-qa-search-btn {
  box-sizing: border-box;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 224px;
  height: 56px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background-image: url('../../images/btn_background_blue.png');
  background-color: #008F8D;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #FFFFFF;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.02em;
  transition: opacity 0.3s;
}
.sn-es-qa-search-btn:hover { opacity: 0.85; }

/* Category chips */
.sn-es-qa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  width: 100%;
}
.sn-es-qa-chip {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid #00C48A;
  border-radius: 8px;
  background: #FFFFFF;
  color: #42526B;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 21px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.sn-es-qa-chip:hover { background: #ECF6F6; }
.sn-es-qa-chip.active {
  background: #008F8D;
  border-color: #008F8D;
  color: #FFFFFF;
}

/* Category heading + empty */
.sn-es-qa-cat-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.02em;
  color: #061C3D;
  margin: 0 0 16px;
}
.sn-es-qa-empty {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  color: #42526B;
  margin: 0;
}

/* Tablet: layout đã stack ở 991px → cho sidebar nav full-width luôn (file này chỉ nạp trên trang eservice) */
@media (max-width: 991px) {
  .sn-req-sidebar .sn-mm-sidebar-nav {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .sn-es-title {
    font-size: 26px;
    line-height: 34px;
  }
  /* Q&A search: input trên, nút full-width dưới */
  .sn-es-qa-search {
    flex-direction: column;
  }
  .sn-es-qa-search-btn {
    width: 100%;
  }
  .sn-es-qa-cat-title {
    font-size: 20px;
    line-height: 28px;
  }
  .sn-es-section-title,
  .sn-es-shead-title,
  .sn-es-subheading,
  .sn-es-plain-title {
    font-size: 20px;
    line-height: 28px;
  }
  .sn-es-lead {
    font-size: 18px;
    line-height: 28px;
  }
  .sn-es-btn {
    width: 100%;
    min-width: 0;
  }
  /* Nút 会員登録 giữ chiều rộng theo nội dung, không full-width */
  .sn-es-btn--register {
    width: auto;
  }
  /* Feature cards: 2 thẻ/hàng */
  .sn-es-feature-card {
    flex-basis: calc((100% - 20px) / 2);
    max-width: calc((100% - 20px) / 2);
  }
  /* Flow: xếp dọc, mũi tên quay xuống, ô full-width */
  .sn-es-flow {
    flex-direction: column;
    align-items: stretch;
  }
  .sn-es-flow-step {
    min-width: 0;
  }
  .sn-es-flow-arrow {
    transform: rotate(90deg);
  }
  .sn-es-flow-send {
    align-self: center;
  }
  /* Nút đồng ý/không đồng ý full-width */
  .sn-es-agree-btns {
    flex-direction: column;
  }
  .sn-es-agree-btns .sn-es-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  /* Feature cards: 1 cột, full-width */
  .sn-es-feature-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
