/*
| 본 소스는 SPIDERWEB(spiderweb.kr)에서 제작한 유료 소스입니다.
| 1도메인 1소스 원칙으로 제공되며, 다른 도메인/서브도메인 사용 시 별도 구매가 필요합니다.
| 추가 구매 및 문의는 spiderweb.kr에서 진행합니다.
| 무단 복제, 재배포, 타 도메인 적용 등 라이선스 위반 시 법적 조치가 진행될 수 있습니다.
*/

 :root{
  --brand:#f59b1a;         /* 주황 */
  --brand-dark:#e68910;
  --ink:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;
  --bg:#f3f4f6;
  --shell:#ffffff;
}

body{
  font-family:Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",Arial,sans-serif;
  background:var(--bg);
  color:var(--ink);
}

/* ====== 앱 쉘(반응형 폭) ====== */
.app-shell{
  width:100%;
  margin:0 auto;
  background:var(--shell);
  min-height:100vh;
  box-shadow:0 10px 30px rgba(17,24,39,.08);
  border-left:1px solid rgba(17,24,39,.06);
  border-right:1px solid rgba(17,24,39,.06);
}
/* 모바일: 풀폭 */
@media (max-width: 575.98px){
  .app-shell{
    box-shadow:none;
    border-left:0;
    border-right:0;
  }
}
/* 태블릿/PC: 점점 넓게 */
@media (min-width: 576px){
  .app-shell{
    max-width:520px;
    border-radius:14px;
    overflow:hidden;
    margin:18px auto;
  }
}
@media (min-width: 768px){ .app-shell{ max-width:760px; } }
@media (min-width: 992px){ .app-shell{ max-width:980px; } }

/* ====== Topbar ====== */
.topbar{
  height:56px;
  display:flex;
  align-items:center;
  padding:0 14px;
  border-bottom:1px solid var(--line);
  background:#fff;
  position:sticky;
  top:0;
  z-index:10;
}
.brandmark{
  font-weight:800;
  letter-spacing:-.3px;
  display:flex;
  align-items:baseline;
  gap:8px;
}
.brandmark .g{ color:var(--brand); }
.brandmark small{ color:var(--muted); font-weight:600; }

/* ====== Hero ====== */
.hero{
  position:relative;
  overflow:hidden;
  border-bottom:1px solid var(--line);
  background:#ddd;
  height:160px;
}
.hero img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter:saturate(1.05);
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.35) 65%, rgba(0,0,0,.25) 100%);
}
.hero-text{
  position:absolute;
  inset:0;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:0 16px;
  color:#fff;
  font-weight:800;
  letter-spacing:-.4px;
  line-height:1.15;
}
.hero-text .em{ color:var(--brand); }
.hero-text .sub{ display:block; font-size:20px; }
.hero-text .main{ display:block; font-size:22px; }
/* 큰 화면에서 히어로 확대 */
@media (min-width: 768px){
  .hero{ height:400px;  }
  .hero-text .sub{ font-size:24px; }
  .hero-text .main{ font-size:28px; }
  .hero img{ object-position: top center; } /* ← 추가 */
}

/* ====== 탭바 ====== */
.tabbar-wrap{
  background:#fff;
  border-bottom:1px solid var(--line);
}
.tabbar{ padding:10px 12px; }
.seg{
  display:grid;
  grid-template-columns:1fr 1fr;
  width:100%;
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
  background:#fff;
}
.seg .btn{
  border:0;
  border-radius:0;
  padding:11px 0;
  font-weight:900;
}
.seg .btn.active{
  background:var(--brand);
  color:#fff;
}

/* ====== 섹션 ====== */
.section{
  padding:18px 14px 10px;
  background:#fff;
}
.kicker{
  font-weight:900;
  color:var(--brand);
  letter-spacing:-.3px;
  margin-bottom:4px;
}
.title{
  font-size:22px;
  font-weight:900;
  letter-spacing:-.6px;
  margin:0;
}

/* 상세유형(2버튼) */
.subseg{
  margin-top:12px;
  display:grid;
  grid-template-columns:1fr 1fr;
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
}
.subseg .btn{
  border:0;
  border-radius:0;
  padding:11px 0;
  font-weight:900;
  background:#fff;
  color:var(--ink);
}
.subseg .btn.active{
  background:var(--brand);
  color:#fff;
}

/* ====== 입력 카드 ====== */
.form-card{
  border-top:1px solid var(--line);
  background:#fff;
  padding:18px 14px 0;
}
/* md 이상에서 좌우 여백 증가 */
@media (min-width: 768px){
  .section, .form-card{ padding-left:22px; padding-right:22px; }
  .tabbar{ padding-left:22px; padding-right:22px; }
  .topbar{ padding-left:22px; padding-right:22px; }
}

.form-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.form-head .txt .k{ color:var(--brand); font-weight:900; margin-bottom:2px; }
.form-head .txt .t{ font-size:22px; font-weight:900; letter-spacing:-.6px; margin:0; }

.badge-bubble{
  width:54px; height:54px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  line-height:1.1;
  text-align:center;
  box-shadow:0 6px 18px rgba(17,24,39,.06);
  flex:0 0 auto;
}
.badge-bubble .b{ font-size:12px; }
.badge-bubble .c{ font-size:12px; color:var(--muted); }

/* 인풋: 밑줄 스타일 */
.form-control, .form-select{
  border:0;
  border-bottom:1px solid var(--line);
  border-radius:0;
  padding-left:0;
  padding-right:0;
  box-shadow:none !important;
}
.form-control:focus, .form-select:focus{
  border-bottom-color:var(--brand);
}

/* 성별 토글 */
.gender{
  display:grid;
  grid-template-columns:1fr 1fr;
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
  margin:8px 0 2px;
}
.gender .btn{
  border:0;
  border-radius:0;
  padding:11px 0;
  font-weight:900;
  background:#fff;
}
.gender .btn.active{
  background:var(--brand);
  color:#fff;
}

/* 전화번호 */
.phone-row{
  display:grid;
  grid-template-columns:88px 1fr 1fr;
  gap:14px;
  align-items:center;
}

@media (min-width: 768px){
  .phone-row{
    grid-template-columns:100px 1fr 1fr;
    gap:16px;
  }
}

.phone-col{
  position:relative;
}

.phone-col-mid::before,
.phone-col-last::before{
  content:"-";
  position:absolute;
  left:-8px;
  top:50%;
  transform:translate(-50%, -50%);
  color:var(--muted);
  font-weight:800;
  line-height:1;
}

.phone-row .form-control,
.phone-row .form-select{
  height:52px;
  padding:.375rem .75rem;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  box-shadow:none !important;
}

.phone-row .form-control:focus,
.phone-row .form-select:focus{
  border-color:var(--brand);
  box-shadow:none !important;
}

/* 동의 */
.agree{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 0 14px;
  border-bottom:1px solid var(--line);
  margin-top:8px;
}
.agree .left{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}
.agree .btn{
  border:1px solid var(--line);
  background:#fff;
  font-weight:900;
  font-size:12px;
  padding:6px 10px;
  border-radius:10px;
}

/* CTA */
.cta-wrap{ padding:14px 0 18px; background:#fff; }
.cta{
  width:100%;
  background:var(--brand);
  color:#fff;
  font-weight:900;
  border:0;
  border-radius:12px;
  padding:14px 0;
  font-size:16px;
}
.cta:hover{ background:var(--brand-dark); }

/* 아래 삼각형 */
.notch{
  width:0;height:0;
  margin:0 auto;
  border-left:14px solid transparent;
  border-right:14px solid transparent;
  border-top:14px solid #fff;
}

/* =========================================================
   결과 카드(로고 + 월/별/금액): 첨부 이미지 스타일
   ========================================================= */
.results{
  background:var(--bg);
  padding:12px 12px 18px;
  border-top:1px solid var(--line);
}

/* 그리드: 2열 -> 3열 -> 4열 */
.grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:10px;
}
@media (min-width:768px){
  .results{ padding:18px 18px 22px; }
  .grid{ grid-template-columns:repeat(3, 1fr); gap:12px; }
}
@media (min-width:992px){
  .grid{ grid-template-columns:repeat(4, 1fr); gap:12px; }
}

/* 카드 본체 */
.r-card{
  background:#fff;
  border:1px solid #d1d5db;
  border-radius:0;          /* 각진 박스 */
  padding:16px 14px;
  min-height:96px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:14px;
}

/* 상단 로고 */
.r-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:90px;
}
.r-logo img{
  max-width:100%;
  max-height:128px;
  object-fit:contain;
  display:block;
}

/* 하단 한 줄: 월 | 별 | 금액 */
.r-line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  font-weight:900;
  line-height:1;
}
.r-unit{
  color:#111827;
  font-size:15px;
  letter-spacing:-.2px;
}
.r-stars{
  color:#ef4444;
  font-size:13px;
  letter-spacing:2px;
  transform:translateY(-1px);
  white-space:nowrap;
}
.r-price{
  color:#ef4444;
  font-size:15px;
  letter-spacing:-.2px;
  white-space:nowrap;
}

/* ====== 하단 안내 ====== */
.fineprint{
  padding:14px 14px 40px;
  background:#f7f7f8;
  border-top:1px solid var(--line);
  font-size:12px;
  color:#4b5563;
  line-height:1.55;
}
@media (min-width: 768px){
  .fineprint{ padding-left:22px; padding-right:22px; }
}
.fineprint .warn{ color:#dc2626; font-weight:900; }
.footer-links{
  margin-top:10px;
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  color:#6b7280;
  font-weight:900;
}


/* footer 링크 버튼(모달 트리거) */
.link-btn{
  background:transparent;
  border:0;
  padding:0;
  margin:0;
  color:#6b7280;
  font-weight:900;
  cursor:pointer;
}
.link-btn:hover{ text-decoration:underline; }

