.rehab-check-wrap {
  max-width: 920px;
  margin: 0 auto;
}

.rehab-check-card {
  padding: 24px;
  margin-bottom: 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
}

.rehab-check-card h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.rehab-check-card p {
  color: #64748b;
  line-height: 1.7;
}

.rehab-check-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rehab-check-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.rehab-check-option:has(input:checked) {
  background: #f5f9ff;
  border-color: #2684ff;
}

.rehab-selection {
  background: #f8fbff;
  border-left: 4px solid #2684ff;
}

.rehab-selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.rehab-selected-tag {
  padding: 7px 10px;
  color: #1d4ed8;
  font-size: 13px;
  background: #eaf3ff;
  border-radius: 999px;
}

.rehab-check-btn {
  width: 100%;
  padding: 15px 18px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  background: #2684ff;
  border: 0;
  border-radius: 12px;
}

.rehab-check-btn:hover {
  background: #1d4ed8;
}

.rehab-check-consult[hidden],
.rehab-check-calc[hidden] {
  display: none;
}

.rehab-check-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

.rehab-check-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #eef2f7;
}

#rehabConsultModal,
#rehabPrivacyModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(4px);
}

#rehabConsultModal .modal-box,
#rehabPrivacyModal .modal-box {
  position: relative;
  width: min(100%, 520px);
  max-height: calc(100vh - 40px);
  padding: 26px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
}

#rehabConsultModal .app-modal-title,
#rehabPrivacyModal .app-modal-title {
  margin: 0 44px 8px 0;
  color: #111827;
  font-size: 24px;
}

#rehabConsultModal .modal-desc,
#rehabPrivacyModal .privacy-sub-title {
  margin: 0 0 20px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
}

#rehabConsultModal .modal-close,
#rehabPrivacyModal .modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  color: #475569;
  font-size: 26px;
  cursor: pointer;
  background: #f8fafc;
  border: 0;
  border-radius: 50%;
}

#rehabConsultForm {
  display: grid;
  gap: 8px;
}

#rehabConsultForm > label {
  margin-top: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

#rehabConsultForm .app-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: #111827;
  font-size: 15px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
}

#rehabConsultForm .app-input:focus {
  border-color: #2684ff;
  box-shadow: 0 0 0 3px rgba(38, 132, 255, 0.12);
}

.required-mark {
  color: #ef4444;
  font-size: 12px;
}

#rehabConsultForm .privacy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 6px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

#rehabConsultForm .privacy-row label {
  flex: 1;
  color: #334155;
  font-size: 13px;
  line-height: 1.5;
}

.rehab-privacy-detail-btn {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: #eef6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
}

#rehabConsultForm .app-modal-btn {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  background: #2684ff;
  border: 0;
  border-radius: 11px;
}

#rehabConsultForm .app-modal-btn:hover {
  background: #1d4ed8;
}

#rehabPrivacyModal {
  z-index: 10020;
}

#rehabPrivacyModal .privacy-table {
  overflow: hidden;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
}

#rehabPrivacyModal .privacy-info-row {
  display: grid;
  grid-template-columns: 105px 1fr;
  border-bottom: 1px solid #e5e7eb;
}

#rehabPrivacyModal .privacy-info-row:last-child {
  border-bottom: 0;
}

#rehabPrivacyModal .privacy-label,
#rehabPrivacyModal .privacy-value {
  padding: 14px 12px;
  font-size: 13px;
  line-height: 1.5;
}

#rehabPrivacyModal .privacy-label {
  color: #334155;
  font-weight: 800;
  background: #f8fafc;
}

#rehabPrivacyModal .privacy-value {
  color: #64748b;
}

#rehabPrivacyModal .privacy-safe-box {
  margin-top: 14px;
  padding: 13px 14px;
  color: #1d4ed8;
  font-size: 13px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
}

#rehabPrivacyModal .privacy-guide {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 12px;
}

@media (max-width: 700px) {
  .rehab-check-options,
  .rehab-check-summary {
    grid-template-columns: 1fr;
  }

  .rehab-check-card {
    padding: 18px;
  }
}


/* =========================================================
   메인 화면: 대형 배너 아래 2개 카드
   아이콘 없이, 대형 배너 CTA와 같은 버튼 흐름으로 구성
   ========================================================= */
.rehab-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0 18px;
}

.rehab-entry-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  min-height: 154px;
  overflow: hidden;
  color: #111827;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.rehab-entry-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 20px 22px;
}

.rehab-entry-kicker {
  display: inline-flex;
  width: max-content;
  padding: 5px 9px;
  color: #2684ff;
  font-size: 12px;
  font-weight: 800;
  background: #eef6ff;
  border-radius: 999px;
}

.rehab-entry-title {
  color: #111827;
  font-size: 18px;
  line-height: 1.45;
}

.rehab-entry-description {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.rehab-entry-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  background: #475569;
  transition: background-color 0.2s ease;
}

.rehab-entry-card:hover .rehab-entry-cta {
  background: #1d4ed8;
}

.rehab-entry-arrow {
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

@media (max-width: 1000px) {
  .rehab-entry-card {
    grid-template-columns: 1fr;
  }

  .rehab-entry-cta {
    min-height: 48px;
    padding: 12px 18px;
  }
}

@media (max-width: 700px) {
  .rehab-entry-grid {
    grid-template-columns: 1fr;
  }

  .rehab-entry-content {
    padding: 18px;
  }
}

/* =========================================================
   메인 카드 CTA 최종 조정
   - CTA 배경 제거
   - 대형 배너보다 낮은 시각적 위계
   ========================================================= */
.rehab-entry-card {
  grid-template-columns: 1fr;
  min-height: 0;
}

.rehab-entry-content {
  padding: 16px 18px 8px;
}

.rehab-entry-title {
  font-size: 16px;
  line-height: 1.45;
}

.rehab-entry-description {
  font-size: 12px;
  line-height: 1.55;
}

.rehab-entry-cta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: max-content;
  min-height: auto;
  margin: 0 18px 14px;
  padding: 0;
  color: #2684ff;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  background: transparent;
}

.rehab-entry-card:hover .rehab-entry-cta {
  color: #1d4ed8;
  background: transparent;
}

.rehab-entry-arrow {
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

@media (max-width: 1000px) {
  .rehab-entry-card {
    grid-template-columns: 1fr;
  }

  .rehab-entry-cta {
    min-height: auto;
    padding: 0;
  }
}

/* 메인 대형 배너 아래 보조 카드: CTA 배경 없음 */
.rehab-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0 18px;
}

.rehab-entry-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 16px 18px 14px;
  color: #111827;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.rehab-entry-content {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rehab-entry-kicker {
  display: inline-flex;
  width: max-content;
  padding: 4px 8px;
  color: #2684ff;
  font-size: 12px;
  font-weight: 800;
  background: #eef6ff;
  border-radius: 999px;
}

.rehab-entry-title {
  color: #111827;
  font-size: 16px;
  line-height: 1.45;
}

.rehab-entry-description {
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
}

.rehab-entry-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  margin-top: 10px;
  color: #2684ff;
  font-size: 13px;
  font-weight: 800;
  background: transparent;
}

.rehab-entry-card:hover .rehab-entry-cta {
  color: #1d4ed8;
}

.rehab-entry-arrow {
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 700px) {
  .rehab-entry-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .rehab-entry-title {
    font-size: 14px;
    line-height: 1.4;
  }

  .rehab-entry-description {
    font-size: 11px;
    line-height: 1.5;
  }

  .rehab-entry-cta {
    font-size: 12px;
  }
}

/* =========================================================
   메인 보조 카드 카테고리 배지 + 추천/인기 말풍선
   ========================================================= */
.rehab-entry-card {
  position: relative;
}

.rehab-entry-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: calc(100% - 70px);
}

.rehab-entry-bubble {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.rehab-entry-bubble::after {
  content: "";
  position: absolute;
  right: 11px;
  bottom: -5px;
  width: 0;
  height: 0;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}

.rehab-entry-bubble--recommend {
  background: #2684ff;
}

.rehab-entry-bubble--recommend::after {
  border-top: 6px solid #2684ff;
}

.rehab-entry-bubble--popular {
  background: #f97316;
}

.rehab-entry-bubble--popular::after {
  border-top: 6px solid #f97316;
}

@media (max-width: 700px) {
  .rehab-entry-bubble {
    top: 13px;
    right: 14px;
  }

  .rehab-entry-badges {
    max-width: calc(100% - 62px);
  }
}

/* 메인 통합 3열 카드 사용 시 기존 2열 메인 카드 여백 충돌 방지 */
.main-check-grid + .calc-live-banner { margin-top:0; }
