:root {
  --blue: #00a5c8;
  --blue-deep: #0084a3;
  --yellow: #ffd37f;
  --orange: #ff9f5b;
  --bg: #fdf6e9;
  --mint: #6ed6c3;
  --text-main: #015d66;
  --text-sub: #4b5b60;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans KR", sans-serif;
  background: linear-gradient(
    180deg,
    #c7f1ff 0%,
    #c7f1ff 37%,   /* 히어로 이미지 높이까지 하늘색 유지 */
    #fff7df 40%,
    #fff7df 100%  /* 아래는 전부 크림색 */
  );
  color: var(--text-main);
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 16px 80px;
}

/* ================= HERO 이미지 ================= */

.hero {
  text-align: center;
  margin-bottom: 32px;
}

.hero-img {
  max-width: 960px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: none;
}

/* ================= Section 공통 ================= */

.section {
  margin: 28px 0;
}

.section-center {
  text-align: center;
  margin-top: 40px;       /* 위쪽 여백 조금 늘림 (기존에 없었다면 추가) */
}

/* ================= 상품 카드 ================= */

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.card {
  background: #fffaf0;
  border-radius: 24px;
  padding: 28px 24px 32px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

/* 🔁 여기부터 카드 아이콘 변경 부분 */
.card-icon {
  margin-bottom: 12px;
}

.card-icon img {
  width: 100px;       /* 아이콘 실제 표시 크기 */
  height: 100px;
  display: block;
  margin: 0 auto;    /* 가운데 정렬 */
}

.price {
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--text-sub);
}

.price strong {
  font-size: 20px;
  color: var(--text-main);
}

/* ================= 버튼 ================= */

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--mint);
  color: #ffffff;
  width: 100%;
  padding: 11px 0;
  font-size: 15px;
}

.btn-primary:hover {
  background: #55c3b0;
}

.btn-kakao {
  background: #ff7f9b;
  color: #fff;
}

.btn-call {
  background: var(--orange);
  color: #fff;
}

/* ================= DB 품질 기준 ================= */

.as-section {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  background: #fffef6;
  border-radius: 24px;
  padding: 18px 20px 24px;  /* 위 24 → 18로 줄임 */
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

/* 🔁 여기부터 AS 아이콘 변경 부분 */
.as-icon {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 20px 18px;  /* 위쪽 줄이고 전체가 위로 올라오게 */
  
}

.as-icon img {
  width: 40px;
  height: 40px;
  display: block;
  margin-top: 6px;   /* 👈 이 줄 추가 (4~8px 정도에서 취향대로 조절 가능) */
}
.as-section ol {
  color: var(--text-sub);
  margin: 0 0 8px 1.1rem;
  font-size: 15px;
  line-height: 1.7;
}

.as-note {
  font-size: 13px;
  color: var(--blue-deep);
}

.as-content h2 {
  margin: 0 0 6px;
}

.as-summary {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--text-sub);
}

.btn-outline {
  background: #ffffff;
  color: var(--blue-deep);
  border: 1px solid var(--blue-deep);
  padding: 9px 18px;
  font-size: 14px;
}

.btn-outline:hover {
  background: var(--blue-deep);
  color: #ffffff;
}
/* ================= CTA ================= */

.cta-section {
  text-align: center;
  margin-top: 24px;          /* 위 섹션과 간격 적당히 */
  margin-bottom: 4px !important;   /* footer랑는 아주 살짝만 띄우기 */
}


.cta-info {
  margin-top: 12px;
  color: var(--text-sub);
}

.cta-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* CTA 아래 간격 줄이기 */
.cta-sub {
  margin-bottom: 4px !important;
}

/* 푸터 위쪽 여백 최소화 */
.footer {
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 30px;
  display: flex;
  justify-content: center;   /* 안에 있는 footer-links 전체를 가운데 배치 */
}

.footer-links {
  margin: 0;
}

.footer-link-btn {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: #666;
  cursor: pointer;
}

.footer-link-btn:hover {
  text-decoration: underline;
}

.footer .divider {
  margin: 0 8px;
  color: #aaa;
}

/* 모달 공통 */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9999;
  padding: 16px;
}

.modal.open {
  display: flex;
}

.modal-dialog {
  position: relative;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  padding: 24px 24px 18px;
  overflow-y: auto;
}

.modal-body {
  font-size: 14px;
  line-height: 1.7;
  color: #333;
}

.modal-body h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 20px;
}

.modal-body h3 {
  margin-top: 16px;
  margin-bottom: 6px;
  font-size: 15px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}


/* ================= DB 교환/AS 기준 모달 내용 전용 스타일 ================= */

/* 설명 문구 (모달 제목 아래 한 줄 안내) */
.db-quality-desc {
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-sub);
}

/* 1~5 / 6~10 두 컬럼 레이아웃 (지금은 사용 안 함, 혹시 몰라 남겨둠) 
.db-quality-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px; 
} */

/* 각 리스트 컬럼 스타일 */
.db-quality-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 14px;
  color: #333;
}

/* 항목 여백 */
.db-quality-list > li {
  margin-bottom: 10px;
}

/* 항목 제목(볼드) */
.db-quality-list > li > strong {
  display: block;
  margin-bottom: 2px;
}

/* 각 항목 안의 서브 리스트 */
.db-quality-list ul {
  margin: 0 0 4px 0.8rem;
  padding-left: 0.8rem;
  font-size: 13px;
  color: #555;
}

/* 아래 빨간색 안내 문구 리스트 */
.db-quality-notes {
  margin-top: 14px;
  padding-left: 1.1rem;
  font-size: 13px;
  color: #d9412b; /* 빨간 강조 */
  list-style: none;
}

/* 빨간 문구 앞에 ※ 자동 추가 */
.db-quality-notes li {
  margin-bottom: 4px;
}

.db-quality-notes li::before {
  content: "※ ";
  margin-right: 4px;
}

/* DB 교환 기준 내 서브 라벨 (교환 가능/불가/증빙자료 등) */
.db-sub-label {
  font-weight: 600;
  color: var(--text-sub);
  margin-right: 4px;
}


/* ================= 샘플 스크립트 모달용 테이블 ================= */

/* 전체 스크립트 표 */
.script-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 8px;
}

/* 모든 셀 공통 */
.script-table th,
.script-table td {
  border: 1px solid #ddd;
  padding: 8px 10px;
  vertical-align: top;
}

/* 맨 위 제목 행 */
.script-title-row .script-title-main {
  background: #f1f1f1;
  font-weight: 700;
  text-align: left;
}

.script-title-row .script-title-label {
  background: #4f88d3;
  color: #fff;
  font-weight: 700;
  text-align: center;
  width: 80px;
}

/* 왼쪽 섹션(도입/왜/안내/마무리/녹취) 칼럼 */
.script-section {
  width: 70px;
  background: #f9ece0;
  text-align: center;
  font-weight: 700;
}

/* 본문 칸 */
.script-content {
  background: #fff;
}

/* 빨간 강조 문구 */
.script-highlight {
  color: #d9412b;
  font-weight: 600;
}



/* ================= 스크립트 배경 색 구분 ================= */

/* 1차 영업 구간 → 연한 베이지 */
.script-table tr:first-of-type .script-section {
  background: #fff8e6;
  font-weight: 700;
}

.script-table tr:first-of-type .script-content {
  background: #fffdf7;
}

/* 녹취 구간 → 연한 블루/민트 */
.script-table tr:last-of-type .script-section {
  background: #e8f4ff;
  font-weight: 700;
}

.script-table tr:last-of-type .script-content {
  background: #f6fbff;
}


/* 강조 문구 */
.script-highlight {
  font-weight: 700;
  color: #d62828;
}


/* 샘플 스크립트 안내 상담사 아이콘 위치 조정 */
#script-agent-icon {
  width: 64px;          /* 아이콘 크기 */
  height: auto;
  margin-right: 10px;
  vertical-align: middle;
  position: relative;
  top: -10px;            /* 아이콘을 위로 4px 올림 (값 조절 가능) */
}

/* A/S 기준 안내 버튼 정렬 */
.as-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 버튼 폭 자동으로 */
.as-actions .btn {
  width: auto;
  padding: 9px 20px;
}

.as-guide-wrap {
  text-align: center;
}

.as-guide-img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  border-radius: 12px;
}



/* -------- 모바일 버튼 확장 스타일 -------- */
@media (max-width: 640px) {
  button:not(.modal-close),   /* ← modal-close 제외 */
  .btn,
  .btn-outline,
  .btn-default,
  .cta-buttons .btn,
  .as-actions .btn {
    padding: 18px 22px !important;
    font-size: 18px !important;
    border-radius: 14px !important;
    width: 100%;
  }

/* A/S 버튼 영역 정렬 수정 */
  .as-actions {
    display: flex;
    flex-direction: column;
    align-items: center !important; /* 모든 버튼 가운데 정렬 */
  }

  /* A/S 다운로드 버튼 텍스트 정렬 통일 */
  .as-actions a.btn {
    display: flex;               /* 버튼 안 정렬 제어 */
    justify-content: center;     /* 가로 중앙 */
    align-items: center;         /* 세로 중앙 */
    text-align: center;
  }


  .footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;       /* 한 줄 유지 */
  }

  .footer .divider {
    margin: 0 4px;
  }
}


