/* ============================================================
   DB 카트 모듈 스타일 — 색은 아래 변수만 바꾸면 랜딩 톤에 맞춰집니다
============================================================ */
.dbc {
  --dbc-accent:   #3B4BFF;   /* 포인트(체크·링크) */
  --dbc-dark:     #000A24;   /* 선택된 칩·STEP 배지 배경 */
  --dbc-soft:     #AEB6FF;   /* STEP 글자·선택 링 */
  --dbc-text:     #0B0F1E;
  --dbc-muted:    #6B7280;
  --dbc-field:    #F4F5FB;
  --dbc-line:     #E3E6F3;
  --dbc-red:      #FF4545;
  --dbc-btn-from: #1B1B1F;
  --dbc-btn-to:   #3A3A40;
  --dbc-radius:   22px;
  font-family: inherit;
  letter-spacing: -0.02em;
  word-break: keep-all;
}
.dbc *, .dbc *::before, .dbc *::after { box-sizing: border-box; }

.dbc-card {
  position: relative;
  background: #fff;
  color: var(--dbc-text);
  border-radius: var(--dbc-radius);
  padding: 52px 22px 26px;
  margin-top: 30px;
  text-align: left;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.dbc-pill {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  padding: 11px 30px; border-radius: 999px;
  background: linear-gradient(180deg, #FF6B5A 0%, #F2352B 100%);
  border: 1.5px solid #FF8A7A;
  color: #fff; font-weight: 800; font-size: 20px;
  box-shadow: 0 8px 22px rgba(242,53,43,0.45);
}
.dbc-title { text-align: center; font-size: 20px; font-weight: 800; margin: 0; }
.dbc-sub { text-align: center; font-size: 14px; color: var(--dbc-muted); margin: 6px 0 22px; }

.dbc-step { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; margin: 6px 0 14px; }
.dbc-step span {
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
  padding: 4px 9px; border-radius: 999px;
  background: var(--dbc-dark); color: var(--dbc-soft);
}
.dbc-step ~ .dbc-step { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--dbc-line); }

.dbc-field { display: block; margin-bottom: 14px; }
.dbc-label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 7px; padding: 0; }
.dbc-label em { color: var(--dbc-red); font-style: normal; margin-left: 2px; }
.dbc-label small { font-weight: 500; color: var(--dbc-muted); margin-left: 4px; }
.dbc-input {
  width: 100%; height: 54px; padding: 0 16px;
  font: inherit; font-size: 16px; color: var(--dbc-text);
  background: var(--dbc-field);
  border: 1.5px solid var(--dbc-line); border-radius: 12px;
  outline: none; transition: border-color .2s, background .2s;
}
.dbc-textarea { height: 96px; padding: 14px 16px; resize: vertical; }
.dbc-input::placeholder { color: #A3A8BD; }
.dbc-input:focus { border-color: var(--dbc-soft); background: #fff; }
.dbc-input.dbc-invalid { border-color: var(--dbc-red); background: #FFF5F5; }
.dbc-other { margin-top: 8px; }

.dbc-q { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.dbc-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dbc-chip { position: relative; cursor: pointer; }
.dbc-chip-wide { grid-column: 1 / -1; }
.dbc-chip input { position: absolute; opacity: 0; pointer-events: none; }
.dbc-chip span {
  display: flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 8px 10px; border-radius: 12px;
  background: var(--dbc-field); border: 1.5px solid var(--dbc-line);
  font-size: 14px; font-weight: 600; color: #374151; text-align: center; line-height: 1.3;
  transition: background .15s, border-color .15s, color .15s;
}
.dbc-chip input:checked + span {
  background: var(--dbc-dark); border-color: var(--dbc-dark); color: #fff;
  box-shadow: 0 0 0 3px rgba(174,182,255,0.45);
}
.dbc-chip input:focus-visible + span { outline: 2px solid var(--dbc-accent); outline-offset: 2px; }
.dbc-q.dbc-invalid .dbc-chip span { border-color: var(--dbc-red); background: #FFF5F5; }

/* 동의 */
.dbc-consents { margin-top: 18px; padding: 14px 14px 12px; border-radius: 14px; background: #F8F9FD; border: 1px solid #E8EAF4; }
.dbc-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #374151; margin: 0 0 10px; cursor: pointer; }
.dbc-consent input { width: 20px; height: 20px; accent-color: var(--dbc-accent); flex-shrink: 0; margin: 1px 0 0; }
.dbc-consent button { font: inherit; font-size: 12.5px; color: var(--dbc-accent); text-decoration: underline; margin-left: 4px; background: none; border: 0; cursor: pointer; padding: 0; }
.dbc-consent-head { display: flex; align-items: flex-start; gap: 8px; }
.dbc-consent-head .dbc-consent { flex: 1; margin: 0; }
.dbc-consent-all { font-weight: 800; color: var(--dbc-text); font-size: 14.5px; line-height: 1.45; }
.dbc-consent-all input { width: 22px; height: 22px; }
.dbc-more { flex-shrink: 0; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--dbc-muted); background: none; border: 0; cursor: pointer; padding: 2px 0; }
.dbc-more i { font-style: normal; display: inline-block; margin-left: 3px; transition: transform .2s; }
.dbc-more[aria-expanded="true"] i { transform: rotate(180deg); }
.dbc-consent-items { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--dbc-line); }
.dbc-consent-items.dbc-open { display: block; }
.dbc-detail {
  display: none; margin: -2px 0 12px; padding: 12px 14px;
  background: #fff; border: 1px solid #E8EAF4; border-radius: 10px;
  font-size: 12px; color: var(--dbc-muted); line-height: 1.6;
}
.dbc-detail.dbc-open { display: block; }
.dbc-detail table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.dbc-detail th, .dbc-detail td { padding: 6px 4px; vertical-align: top; text-align: left; border-bottom: 1px solid #EEF0F6; font-size: 12px; line-height: 1.55; }
.dbc-detail th { width: 84px; color: var(--dbc-text); font-weight: 700; white-space: nowrap; }
.dbc-detail b { color: var(--dbc-text); }
.dbc-detail p { margin: 0; }
.dbc-note { font-size: 11.5px; color: var(--dbc-muted); line-height: 1.6; margin: 4px 0 0; }

.dbc-error { min-height: 20px; font-size: 13px; color: var(--dbc-red); font-weight: 600; margin: 6px 0 0; }

.dbc-submit {
  position: relative; width: 100%; min-height: 70px; margin-top: 10px;
  padding: 16px 60px 16px 28px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(90deg, var(--dbc-btn-from) 0%, var(--dbc-btn-to) 100%);
  border: 3px solid var(--dbc-soft); color: #fff;
  font: inherit; font-size: clamp(18px, 5.2vw, 22px); font-weight: 800;
  box-shadow: 0 14px 34px rgba(0,0,0,0.25);
  transition: transform .15s;
}
.dbc-submit::after {
  content: ''; position: absolute; right: 30px; top: 50%;
  width: 12px; height: 12px;
  border-top: 3px solid #fff; border-right: 3px solid #fff;
  transform: translateY(-50%) rotate(45deg);
}
.dbc-submit:active { transform: scale(0.98); }
.dbc-submit[disabled] { opacity: .6; cursor: wait; }

/* 잠금 */
.dbc-body { position: relative; }
.dbc-lock {
  position: absolute; inset: -8px; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border-radius: 14px; text-align: center;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  transition: opacity .35s;
}
.dbc-lock i { font-style: normal; font-size: 30px; }
.dbc-lock p { font-size: 15.5px; font-weight: 700; line-height: 1.45; margin: 0; }
.dbc-unlocked .dbc-lock { opacity: 0; pointer-events: none; }

/* 2페이지 구성 (INTRO 설정 시) */
.dbc-formwrap { position: relative; }
.dbc-paged .dbc-formwrap { display: none; }
.dbc-paged.dbc-page2 .dbc-formwrap { display: block; }
.dbc-paged.dbc-page2 .dbc-intro { display: none; }

.dbc-pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 22px; }
.dbc-pager span {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 800;
  background: var(--dbc-field); color: var(--dbc-muted); border: 1.5px solid var(--dbc-line);
}
.dbc-pager i { width: 34px; height: 2px; border-radius: 2px; background: var(--dbc-line); }
.dbc-paged:not(.dbc-page2) .dbc-pager-1,
.dbc-page2 .dbc-pager-2 { background: var(--dbc-dark); border-color: var(--dbc-dark); color: #fff; }
.dbc-page2 .dbc-pager-1 { color: var(--dbc-dark); border-color: var(--dbc-soft); }
.dbc-page2 .dbc-pager i { background: var(--dbc-soft); }
.dbc-submitted .dbc-pager { display: none; }

.dbc-intro-hello { font-size: 17px; font-weight: 700; margin: 0 0 8px; text-align: center; }
.dbc-intro-hello b { color: var(--dbc-accent); }
.dbc-intro-lead { font-size: 15px; line-height: 1.7; color: #4B5263; margin: 0 0 20px; text-align: center; }
.dbc-intro-lead b { color: var(--dbc-text); }
.dbc-box { background: var(--dbc-field); border: 1px solid var(--dbc-line); border-radius: 16px; padding: 18px 16px; margin-bottom: 12px; }
.dbc-box-title { font-size: 15.5px; font-weight: 800; margin: 0 0 12px; }
.dbc-num { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: dbcn; }
.dbc-num li { position: relative; padding-left: 34px; counter-increment: dbcn; }
.dbc-num li::before {
  content: counter(dbcn); position: absolute; left: 0; top: 1px;
  width: 23px; height: 23px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--dbc-dark); color: #fff; font-size: 12px; font-weight: 800;
}
.dbc-num b { display: block; font-size: 15px; font-weight: 800; line-height: 1.45; }
.dbc-num span { display: block; font-size: 13.5px; color: var(--dbc-muted); line-height: 1.55; margin-top: 2px; }
.dbc-box-warn { background: #FFFAF0; border-color: #F5E3C0; }
.dbc-dot { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dbc-dot li { position: relative; padding-left: 13px; font-size: 13.5px; line-height: 1.6; color: #4B5263; }
.dbc-dot li::before { content: ''; position: absolute; left: 1px; top: 9px; width: 4px; height: 4px; border-radius: 50%; background: #C08A2E; }
.dbc-next { margin-top: 10px; }
.dbc-next-off { display: none; }
.dbc-paged:not(.dbc-unlocked) .dbc-next { background: var(--dbc-field); color: var(--dbc-muted); border-color: var(--dbc-line); box-shadow: none; font-size: 15.5px; padding-right: 28px; }
.dbc-paged:not(.dbc-unlocked) .dbc-next::after { display: none; }
.dbc-paged:not(.dbc-unlocked) .dbc-next-on { display: none; }
.dbc-paged:not(.dbc-unlocked) .dbc-next-off { display: inline; }
.dbc-prev { font: inherit; font-size: 13.5px; font-weight: 600; color: var(--dbc-muted); background: none; border: 0; padding: 0; margin: -6px 0 16px; cursor: pointer; }

/* 전송 중 — 버튼 스피너 + 카드 위 로딩 화면 */
.dbc-spin {
  display: inline-block; width: 20px; height: 20px; margin-right: 10px; vertical-align: -4px;
  border: 3px solid rgba(255,255,255,0.35); border-top-color: #fff; border-radius: 50%;
  animation: dbcSpin .8s linear infinite;
}
.dbc-spin-lg { width: 46px; height: 46px; margin: 0 0 16px; border-width: 4px; border-color: var(--dbc-line); border-top-color: var(--dbc-accent); }
@keyframes dbcSpin { to { transform: rotate(360deg); } }
.dbc-sending .dbc-submit[type="submit"] { opacity: 1; cursor: wait; z-index: 11; }
.dbc-sending .dbc-submit[type="submit"]::after { display: none; }
.dbc-loading {
  display: none; position: absolute; inset: 0; z-index: 10;
  flex-direction: column; align-items: center; justify-content: flex-end; text-align: center;
  padding-bottom: 130px; /* 긴 카드에서도 제출 버튼 바로 위에 보이도록 */
  border-radius: var(--dbc-radius); background: rgba(255,255,255,0.88);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.dbc-loading p { margin: 0; font-size: 18px; font-weight: 800; color: var(--dbc-text); }
.dbc-loading span { margin-top: 6px; font-size: 14px; color: var(--dbc-muted); }
.dbc-sending .dbc-loading { display: flex; }

/* 완료 */
.dbc-done { display: none; text-align: center; padding: 18px 0 8px; }
.dbc-done-icon {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: #4ADE80; color: #fff; font-size: 28px; font-weight: 800;
}
.dbc-done h3 { font-size: 22px; font-weight: 800; margin: 0; }
.dbc-done p { font-size: 15px; color: var(--dbc-muted); margin: 8px 0 0; line-height: 1.55; }
.dbc-submitted .dbc-body, .dbc-submitted .dbc-title, .dbc-submitted .dbc-sub { display: none; }
.dbc-submitted .dbc-done { display: block; }
