@charset "utf-8";

/* ==========================================================================
   thenewdental2 - 국산정품 임플란트 35만원
   point color : blue (#2362FF) / navy (#002279) / accent (#FFC600)
   ========================================================================== */

:root {
  --point: #2362ff;
  --point-dark: #002279;
  --point-light: #eef3ff;
  --accent: #ffc600;
  --ink: #16181d;
  --ink-sub: #5d636e;
  --line: #e7e9ee;
  --bg: #333;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(22, 24, 29, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    'Pretendard Variable',
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    system-ui,
    Roboto,
    'Apple SD Gothic Neo',
    'Noto Sans KR',
    'Malgun Gothic',
    sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

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

input,
button,
select,
textarea {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
}

.cursor {
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  overflow: hidden;
  padding-bottom: 100px; /* 하단 고정 CTA 높이 */
}

.point {
  color: var(--point);
}

/* ===== 상단 신청 카운터 바 ===== */
.counter_bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 60px;
  background: var(--ink);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(22, 24, 29, 0.18);
}

/* 하단 포인트 라인 */
.counter_bar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--point) 0%, #6f9bff 100%);
}

/* 실시간 뱃지 */
.counter_live {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px 4px 8px;
  border-radius: 999px;
  background: rgba(35, 98, 255, 0.22);
  color: #9dbcff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* 숫자 + 단위 : flex 라 태그 사이 공백이 렌더링되지 않는다 */
.counter_text {
  display: flex;
  align-items: baseline;
}

.counter_bar .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--point);
  box-shadow: 0 0 0 3px rgba(35, 98, 255, 0.3);
  animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.75);
  }
}

.counter_bar strong {
  color: var(--accent);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* 실시간 +1 될 때 살짝 튀는 효과 */
.counter_bar strong.is_bump {
  animation: count_bump 0.45s ease-out;
}

@keyframes count_bump {
  0% {
    transform: translateY(0);
  }
  35% {
    transform: translateY(-3px);
    color: #ffe07a;
  }
  100% {
    transform: translateY(0);
  }
}

/* ===== 이미지 비주얼 ===== */
.visual img {
  width: 100%;
  height: auto;
}

/* ===== 섹션 공통 ===== */
.section {
  padding: 40px 22px;
  border-top: 1px solid var(--point-light);
}

.section_head {
  text-align: center;
  margin-bottom: 22px;
}

.section_eyebrow {
  display: inline-block;
  color: var(--point);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.section_title {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.4;
}

.section_desc {
  margin-top: 8px;
  color: var(--ink-sub);
  font-size: 17px;
}

/* ===== 설문(개수 선택) ===== */
.survey {
  background: #fff;
}

.survey_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.survey_btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 12px 8px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  transition: all 0.18s ease;
}

.survey_btn:active {
  transform: scale(0.975);
}

.survey_grid.has-selection .survey_btn {
  opacity: 0.5;
}

.survey_btn.is-active,
.survey_grid.has-selection .survey_btn.is-active {
  opacity: 1;
  border-color: var(--point);
  background: var(--point-light);
  color: var(--point-dark);
  box-shadow: 0 8px 20px rgba(35, 98, 255, 0.2);
}

.survey_btn.is-active::after {
  content: '';
  position: absolute;
  top: -9px;
  right: -9px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--point) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* ===== 신청 폼 ===== */
.form_section {
  padding: 40px 22px 44px;
  border-top: 1px solid var(--point-light);
  background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 55%);
}

.field {
  margin-bottom: 16px;
}

.field_label {
  display: block;
  margin-bottom: 7px;
  font-size: 18px;
  font-weight: 800;
}

.field_label .req {
  color: var(--point);
  margin-left: 2px;
}

/* hp_row 안의 input 은 제외 (직계 자식만) */
.field > input[type='text'],
.field > input[type='tel'] {
  width: 100%;
  height: 60px;
  padding: 0 18px;
  border: 2px solid #c3d4ff;
  border-radius: 999px;
  background: #fff;
  font-size: 19px;
  font-weight: 600;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.field input::placeholder {
  color: #b7bcc6;
  font-weight: 500;
}

.field > input:focus {
  border-color: var(--point);
  box-shadow: 0 0 0 4px rgba(35, 98, 255, 0.15);
}

/* 전송 전용 비노출 필드 (landing_v1.js가 값을 읽어간다) */
.hidden_field {
  display: none;
}

/* 전화번호 : 010 고정 접두 + 뒷 8자리 */
.hp_row {
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0 18px;
  border: 2px solid #c3d4ff;
  border-radius: 999px;
  background: #fff;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.hp_row.is-focus {
  border-color: var(--point);
  box-shadow: 0 0 0 4px rgba(35, 98, 255, 0.15);
}

.hp_row .hp_prefix {
  flex: 0 0 auto;
  padding-right: 11px;
  margin-right: 11px;
  border-right: 1px solid #cfdcff;
  line-height: 28px;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}

.hp_row.is-focus .hp_prefix {
  border-right-color: #8fb0ff;
}

.hp_row input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: none;
  background: none;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.submit_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 68px;
  margin-top: 24px;
  border-radius: 999px;
  background: var(--point-dark);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(0, 34, 121, 0.28);
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

.submit_btn .point {
  color: var(--accent);
}

.submit_btn:active {
  transform: translateY(2px);
}

.submit_btn:disabled {
  opacity: 0.55;
}

/* ===== 동의 영역 ===== */
.agree_box {
  margin-top: 6px;
}

.agree_title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}

.agree_title .req {
  color: var(--point);
  margin-left: 2px;
}

.agree_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.agree_row:last-child {
  border-bottom: 1px solid var(--line);
}

.agree_row label {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  color: #3a3f49;
}

.agree_row input[type='checkbox'] {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  accent-color: var(--point);
  cursor: pointer;
}

.agree_view {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 600;
  color: #8b909a;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
}

.agree_all {
  margin-bottom: 4px;
  padding: 13px 15px;
  border: 1px solid #cbd9ff;
  border-radius: 12px;
  background: var(--point-light);
}

.agree_all label {
  font-size: 18px;
  font-weight: 800;
  color: var(--point-dark);
}

/* ===== 푸터 ===== */
.site_footer {
  padding: 22px 22px 26px;
  background: #e4f0fb;
  color: #5a6b8a;
  font-size: 15px;
  line-height: 1.8;
  text-align: center;
}

/* ===== 하단 고정 CTA ===== */
.fixed_cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
}

.fixed_cta a,
.fixed_cta button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 62px;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.cta_apply {
  flex: 1 1 auto;
  background: var(--point);
  color: #fff;
  box-shadow: 0 10px 22px rgba(35, 98, 255, 0.35);
}

/* ===== 개인정보 모달 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 78vh;
  overflow-y: auto;
  padding: 26px 22px 24px;
  border-radius: 18px;
  background: #fff;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  font-size: 28px;
  line-height: 1;
  color: #8b909a;
  cursor: pointer;
}

.modal-title {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 14px;
  padding-right: 30px;
}

.modal-body {
  font-size: 16.5px;
  color: #4a5058;
  line-height: 1.75;
}

.modal-table {
  width: 100%;
  margin: 14px 0;
  border-collapse: collapse;
  font-size: 16px;
}

.modal-table th,
.modal-table td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.modal-table th {
  width: 34%;
  background: #fafbfc;
  font-weight: 700;
  white-space: nowrap;
}

.modal-note {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f6f7f9;
  font-size: 15.5px;
  color: #6b7280;
}

/* 전송용 비노출 폼 */
.hidden_form {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ===== 등장 애니메이션 ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .counter_bar .dot {
    transition: none;
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ===== PC(컨테이너 700px 고정) : 폭에 비해 작아 보이는 텍스트 확대 =====
   모바일 레이아웃은 그대로 두고, 컨테이너가 최대 폭에 도달하는 700px 이상에서만
   본문/버튼/입력 폰트를 약 1.25배로 키우고 그에 맞춰 컨트롤 높이도 함께 올린다. */
@media (min-width: 700px) {
  .container {
    padding-bottom: 118px;
  }

  /* 카운터 바 */
  .counter_bar {
    height: 70px;
    gap: 12px;
    font-size: 24px;
  }

  .counter_live {
    padding: 5px 12px 5px 10px;
    font-size: 17px;
  }

  .counter_bar .dot {
    width: 7px;
    height: 7px;
  }

  .counter_bar strong {
    font-size: 28px;
  }

  /* 섹션 공통 */
  .section {
    padding: 52px 28px;
  }

  .section_head {
    margin-bottom: 28px;
  }

  .section_eyebrow {
    font-size: 19px;
  }

  .section_title {
    font-size: 34px;
  }

  .section_desc {
    margin-top: 10px;
    font-size: 21px;
  }

  /* 설문 */
  .survey_grid {
    gap: 13px;
  }

  .survey_btn {
    min-height: 106px;
    border-radius: 17px;
    font-size: 28px;
  }

  .survey_btn.is-active::after {
    top: -11px;
    right: -11px;
    width: 31px;
    height: 31px;
    background-size: 17px;
  }

  /* 신청 폼 */
  .form_section {
    padding: 52px 28px 56px;
  }

  .field {
    margin-bottom: 20px;
  }

  .field_label {
    margin-bottom: 9px;
    font-size: 22px;
  }

  .field > input[type='text'],
  .field > input[type='tel'],
  .hp_row {
    height: 72px;
    padding: 0 22px;
    font-size: 24px;
  }

  .hp_row .hp_prefix {
    padding-right: 14px;
    margin-right: 14px;
    line-height: 34px;
    font-size: 24px;
  }

  .hp_row input {
    font-size: 24px;
  }

  .submit_btn {
    height: 80px;
    margin-top: 30px;
    font-size: 28px;
  }

  /* 동의 영역 */
  .agree_title {
    margin-bottom: 13px;
    font-size: 22px;
  }

  .agree_row {
    padding: 17px 0;
  }

  .agree_row label {
    gap: 11px;
    font-size: 21px;
  }

  .agree_row input[type='checkbox'] {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
  }

  .agree_view {
    font-size: 18px;
  }

  .agree_all {
    padding: 16px 18px;
  }

  .agree_all label {
    font-size: 22px;
  }

  /* 푸터 */
  .site_footer {
    padding: 26px 28px 30px;
    font-size: 18px;
  }

  /* 하단 고정 CTA */
  .fixed_cta {
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  }

  .fixed_cta a,
  .fixed_cta button {
    height: 74px;
    font-size: 25px;
  }

  /* 모달 */
  .modal {
    max-width: 540px;
    padding: 30px 26px 28px;
  }

  .modal-close {
    width: 40px;
    height: 40px;
    font-size: 34px;
  }

  .modal-title {
    margin-bottom: 18px;
    font-size: 26px;
  }

  .modal-body {
    font-size: 20px;
  }

  .modal-table {
    font-size: 19px;
  }

  .modal-table th,
  .modal-table td {
    padding: 12px 14px;
  }

  .modal-note {
    padding: 14px 16px;
    font-size: 19px;
  }
}

/* ===== 소형 단말 ===== */
@media (max-width: 359px) {
  .survey_btn {
    font-size: 20px;
  }
}
