@charset "utf-8";

/*
 * inslife.co.kr — 원큐보험
 * sub.css : 서브페이지 공통 (구조는 모든 서브페이지 동일)
 *
 * 기획안 지시
 *   1  배경 색상 : 메인페이지와 동일하게 그라데이션
 *   9  비교 탭 색상 : #595959
 *   10 보험사 영역 : 기본 테두리 없음 / 마우스 오버 시 #3B6D11 테두리
 *   11 실시간 신청현황 : 좌측 빨간 점 점멸 반복
 */

.sub { width: 100%; height: auto; }

/* ── 메인 배너 (기획안 1·2·3·4·5·6번) ──── */
.visual {
    width: 100%;
    display: flex; flex-direction: column; align-items: center;
    background: linear-gradient(90deg, var(--green) 0%, var(--green) 29%, #C3D69B 88%, #C3D69B 100%);
    position: relative; overflow: hidden;
}

.visual > .inner {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    position: relative; z-index: 2;
    padding: 3.2rem 0 0;
}

.visual .txt { display: flex; flex-direction: column; align-items: flex-start; gap: 2rem; }   /* 260916 수정 1 : 1.1rem → 2rem (PC만) */

/* "* 태아보험 = 출생 후 보장." : strong (기획안 2번) */
.visual .txt > strong {
    display: inline-block;
    font-size: 1.25rem; font-weight: 700; color: #fff;
}

/* H1 (기획안 3번) */
.visual .txt > h1 {
    font-size: 3.2rem; font-weight: 800; color: #fff;
    line-height: 1.34; letter-spacing: -0.02em;
}

.visual .txt > h1 .mark {
    display: inline-block;
    background: #F2F2F2; color: var(--green-dark);
    border-radius: 6px; padding: 0 14px; margin: 0 2px;
}

/* "상담 신청하기" 버튼 (기획안 4번) */
.go__cs {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 190px; height: 56px; padding: 0 2rem;
    background: #F2F2F2; color: var(--green-dark);
    font-size: 1.1rem; font-weight: 700;
    border: 0; border-radius: 8px; cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .10);
    margin-top: 0.6rem;
}

.visual .img { flex: none; align-self: center; }
.visual .img img { width: 470px; height: auto; object-fit: contain; }

/* 통계 3칸 (기획안 5번 : strong) */
.visual__stat {
    width: 100%; display: flex;
    position: relative; z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, .28);
}

.visual__stat li {
    flex: 1 1 0;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 1.5rem 0;
}

.visual__stat li + li { border-left: 1px solid rgba(255, 255, 255, .28); }

.visual__stat li > strong { font-size: 2.1rem; font-weight: 800; color: #fff; line-height: 1.2; }
.visual__stat li > span   { font-size: 1rem; font-weight: 400; color: #fff; }   /* 260916 수정 2 : 700 → 400 */

/* ── 상담신청 (기획안 7번 : h2) ────────── */
.cs {
    width: 100%; display: flex; justify-content: center;
    background: #fff; padding: 3rem 0 3.5rem;
}

.cs > .inner { width: 100%; }

.cs__head { margin-bottom: 1.6rem; }
.cs__head > h2 { font-size: 1.6rem; font-weight: 800; color: #222; margin-bottom: 12px; }
.cs__head > p  { font-size: 1.05rem; color: #666; line-height: 1.6; }

.cs__inputs { display: flex; flex-wrap: wrap; gap: 0.9rem 1.4rem; }

.cs__inputs .input { width: calc(50% - 0.7rem); display: flex; align-items: center; }
.cs__inputs .input.last { width: 100%; align-items: flex-start; }

.cs__inputs .input > span { flex: none; width: 74px; font-size: 0.9rem; font-weight: 700; color: #333; }

.cs__inputs .input > input {
    width: calc(100% - 74px); height: 46px;
    border: 1px solid #ddd; border-radius: 4px; padding: 0 14px;
    font-size: 0.95rem;
}

.cs__inputs .input > input::placeholder,
.cs__inputs .cs__textarea::placeholder { color: #bbb; }   /* 260916 : 문의사항 placeholder 도 동일 연회색 */

.cs__inputs .radio { width: calc(100% - 74px); height: 46px; display: flex; gap: 10px; }
.cs__inputs .radio input[type=radio] { display: none; }

.cs__inputs .radio input[type=radio] + label {
    width: 50%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    font-size: 0.95rem; color: #bbb;
    border: 1px solid #ddd; border-radius: 4px; cursor: pointer;
}

.cs__inputs .radio input[type=radio]:checked + label {
    background: var(--green); border-color: var(--green);
    color: #fff; font-weight: 700;
}

.cs__inputs .cs__textarea {
    width: calc(100% - 74px); height: 76px;
    border: 1px solid #ddd; border-radius: 4px; padding: 12px 14px;
    font-size: 0.95rem; resize: none; outline: 0;
}

.cs__apply { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: 1.4rem; }

.cs__apply .label__wrap { display: flex; align-items: center; gap: 6px; }
.cs__apply label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.cs__apply label > input { width: 14px; height: 14px; accent-color: var(--green); }
.cs__apply label > span { font-size: 0.87rem; color: #555; }

.cs__apply .label__wrap > button {
    font-size: 0.85rem; color: #4a7ec0; text-decoration: underline;
    background: none; border: 0; cursor: pointer; padding: 0;
}

.cs__apply .submits { width: 80%; display: flex; gap: 1rem; }

.cs__apply .submits > a {
    flex: 1 1 0; height: 52px;
    display: flex; justify-content: center; align-items: center;
    font-size: 1rem; font-weight: 700; border-radius: 4px; cursor: pointer;
}

.cs__apply .submits > a:nth-of-type(1) { background: var(--green); color: #fff; }
.cs__apply .submits > a:nth-of-type(2) { background: var(--kakao); color: #3c1e1e; }

/* ── 비교 포인트 (기획안 8~12번) ────────── */
.compare {
    width: 100%; display: flex; justify-content: center;
    background: var(--rec-bg); padding: 3.2rem 0 3.6rem;
}

.compare > .inner { width: 100%; }

.compare > .inner > h2 { font-size: 1.6rem; font-weight: 800; color: #222; }
.compare > .inner > p  { font-size: 1.05rem; color: #666; margin: 10px 0 1.4rem; line-height: 1.6; }

/* 비교 키워드 (기획안 9번 : #595959) */
.compare__key { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1.8rem; }

.compare__key > li {
    background: var(--key-txt); color: #fff;
    font-size: 0.95rem; font-weight: 700;
    border-radius: 30px; padding: 9px 22px;
}

/* 260916 수정 5 : 실시간 신청현황 높이를 A~D 카드영역과 동일하게 맞춘다.
   카드영역이 높이를 정하고, .live 는 그 안에서 절대배치로 같은 높이를 차지한다.
   넘치는 줄은 잘라내고 기존 롤링으로 차례차례 노출된다. */
.compare__body {
    display: flex; gap: 1.6rem; align-items: flex-start;
    position: relative; padding-right: calc(370px + 1.6rem);
}

/* 보험사 4칸 (기획안 10번) */
.plan__list {
    flex: 1 1 auto;
    display: flex; flex-wrap: wrap; gap: 1.2rem;
}

.plan__list > li {
    width: calc(50% - 0.6rem);
    background: #fff; border-radius: 20px;
    border: 2px solid transparent;          /* 기본값 : 테두리색 없음 */
    padding: 1.3rem 1.3rem 1.6rem;
}

.plan__list > li:hover { border-color: var(--green-dark); }   /* 오버 시 초록 테두리 */

.plan__tag {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--green-dark); color: #fff;
    font-size: 0.9rem; font-weight: 700;
    border-radius: 30px; padding: 7px 20px;
    margin-bottom: 1.2rem;
}

.plan__row { display: flex; gap: 1.2rem; align-items: stretch; }

.plan__left { flex: 10 1 0; display: flex; flex-direction: column; }
.plan__left > .plan__nm { font-size: 1.15rem; font-weight: 800; color: #222; }
.plan__left > span { font-size: 0.92rem; color: #888; margin-top: 4px; white-space: nowrap; }
.plan__left > .price {
    font-size: 1.45rem; font-weight: 800; color: var(--green-dark);
    margin-top: 1.4rem; letter-spacing: -0.01em; white-space: nowrap;
}

.plan__right {
    flex: 11 1 0;
    border-left: 1px solid #e2e2e2; padding-left: 1.2rem;
    display: flex; flex-direction: column; gap: 8px;
}

.plan__right > li { font-size: 0.93rem; color: #555; line-height: 1.5; }

/* 실시간 신청현황 (기획안 11·12번) */
.live {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: 370px;
    display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border-radius: 20px;
    padding: 1.4rem 1.4rem 1.6rem;
}

.live__head { display: flex; align-items: center; gap: 8px; margin-bottom: 1rem; }

.live__dot {
    width: 9px; height: 9px; flex: none;
    background: #e02020;
    animation: liveBlink 1s steps(1, end) infinite;
}

@keyframes liveBlink {
    0%, 49%   { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.live__head > .live__tit { font-size: 1rem; font-weight: 700; color: #333; }

.live__list { display: flex; flex-direction: column; gap: 8px; flex: 1 1 0; min-height: 0; overflow: hidden; }

.live__list > li {
    display: flex; align-items: center; justify-content: space-between;
    background: #D9D9D9; border-radius: 6px;
    padding: 12px 16px;
}

.live__list .nm  { font-size: 0.95rem; font-weight: 700; color: #333; }
.live__list .age { font-size: 0.95rem; font-weight: 700; color: #333; }
.live__list .ago { font-size: 0.9rem; font-weight: 700; color: #558ED5; }

/* ── 대표특약 (2페이지 1·2·3번) ────────── */
.feature {
    width: 100%; display: flex; justify-content: center;
    background: #fff; padding: 3.2rem 0 3.6rem;
}

.feature > .inner { width: 100%; }

.feature > .inner > h2 { font-size: 1.6rem; font-weight: 800; color: #222; }
.feature > .inner > p  { font-size: 1.05rem; color: #666; margin: 10px 0 1.8rem; line-height: 1.6; }

.feature__list { display: flex; gap: 1.6rem; }

.feature__list > li { flex: 1 1 0; }

.feature__list .thumb {
    width: 100%; aspect-ratio: 4 / 3;
    overflow: hidden; margin-bottom: 1.1rem;
}

.feature__list .thumb > img { width: 100%; height: 100%; object-fit: cover; }

.feature__list h3 { font-size: 1.2rem; font-weight: 800; color: #222; margin-bottom: 12px; }
.feature__list p  { font-size: 1rem; color: #555; line-height: 1.7; }

/* ── 자주 묻는 질문 (2페이지 4·5번) ─────── */
.faq {
    width: 100%; display: flex; justify-content: center;
    background: var(--rec-bg); padding: 3.2rem 0 3.6rem;
}

.faq > .inner { width: 100%; }

.faq > .inner > h2 { font-size: 1.6rem; font-weight: 800; color: #222; margin-bottom: 1.8rem; }

.faq__list { display: flex; flex-direction: column; gap: 2.2rem; }

.faq__q, .faq__a { display: flex; gap: 14px; align-items: flex-start; }

.faq__q { align-items: center; }

.faq__q > .mark, .faq__a > .mark {
    width: 52px; height: 52px; flex: none;
    display: flex; justify-content: center; align-items: center;
    border-radius: 50%;
    font-size: 1.3rem; font-weight: 800;
}

.faq__q > .mark { background: var(--green-dark); color: #fff; }
.faq__a > .mark { background: #E4EFDA; color: var(--green); }

.faq__q > h3 { font-size: 1.35rem; font-weight: 800; color: #222; }

.faq__a { margin-top: 14px; padding-left: 3rem; }
.faq__a > p { font-size: 1.05rem; color: #555; line-height: 1.7; padding-top: 12px; }

/* ── 태블릿 ─────────────────────────── */
@media screen and (min-width: 768px) and (max-width: 1200px) {
    .visual > .inner { padding: 2.4rem 1rem 0; }
    .visual__stat { padding: 0 1rem; }
    .visual .txt > h1 { font-size: 2.4rem; }
    .visual .img img { width: 300px; }
    .visual__stat li > strong { font-size: 1.8rem; }

    .cs { padding: 2.2rem 1rem 2.6rem; }
    .compare { padding: 2.6rem 1rem 3rem; }
    .feature { padding: 2.6rem 1rem 3rem; }
    .faq { padding: 2.6rem 1rem 3rem; }

    .compare__body { flex-direction: column; padding-right: 0; }
    .live { position: static; width: 100%; }
    .live__list { flex: none; }
    .plan__list > li { padding: 1.2rem 1.2rem 1.5rem; }
    .feature__list { gap: 1rem; }
}

/* ── 모바일 ─────────────────────────── */
@media screen and (max-width: 767px) {
    /* 모바일구조 시안 : 텍스트 가운데 정렬 + 이미지는 글 아래 가운데 + 히어로 버튼 없음 */
    .visual > .inner {
        flex-direction: column; align-items: center;
        padding: 2rem 1rem 0;
    }

    .visual__stat { padding: 0 1rem; }

    .visual .txt { gap: 0.8rem; width: 100%; align-items: center; text-align: center; }
    .visual .txt > strong { font-size: 1rem; }
    .visual .txt > h1 { font-size: 2rem; line-height: 1.38; }   /* 260916 수정 3 : 1.75rem → 2rem */
    .visual .txt > h1 .mark { padding: 0 8px; border-radius: 4px; }

    .go__cs { display: none; }

    /* 모바일구조 시안 : 서브 히어로 이미지는 거의 전체폭 */
    .visual .img { align-self: center; width: 100%; margin-top: 1.6rem; margin-bottom: 2.4rem; }
    .visual .img img { width: 88%; max-width: 280px; display: block; margin: 0 auto; }   /* 260916 수정 4 : 360 → 280px */

    .visual__stat li { padding: 1rem 0; }
    .visual__stat li > strong { font-size: 1.35rem; }
    .visual__stat li > span { font-size: 0.78rem; text-align: center; }

    /* 상담신청 */
    .cs { padding: 1.6rem 1rem 2rem; }
    .cs__head > h2 { font-size: 1.3rem; }
    .cs__head > p { font-size: 0.92rem; }

    .cs__inputs { gap: 0.7rem; }
    .cs__inputs .input { width: 100%; }
    .cs__inputs .input > span { width: 62px; font-size: 0.83rem; }
    .cs__inputs .input > input,
    .cs__inputs .radio,
    .cs__inputs .cs__textarea { width: calc(100% - 62px); }
    .cs__inputs .input > input { height: 42px; font-size: 0.88rem; }
    .cs__inputs .radio { height: 42px; }
    .cs__inputs .radio input[type=radio] + label { font-size: 0.88rem; }

    .cs__apply .submits { width: 100%; flex-direction: column; gap: 14px; }
    .cs__apply .submits > a { height: auto; padding: 10px 0; font-size: 0.95rem; border-radius: 8px; }
    .cs__apply label > span { font-size: 0.8rem; }
    .cs__apply .label__wrap > button { font-size: 0.78rem; }

    /* 비교 포인트 */
    .compare { padding: 2rem 1rem 2.4rem; }
    .compare > .inner > h2 { font-size: 1.3rem; }
    .compare > .inner > p { font-size: 0.92rem; margin-bottom: 1.1rem; }

    .compare__key { gap: 7px; margin-bottom: 1.2rem; }
    .compare__key > li { font-size: 0.83rem; padding: 7px 16px; }

    .compare__body { flex-direction: column; gap: 1rem; }

    .plan__list { gap: 0.9rem; }
    .plan__list > li { width: 100%; border-radius: 16px; padding: 1.1rem 1.1rem 1.4rem; }
    .plan__tag { font-size: 0.82rem; padding: 6px 16px; margin-bottom: 1rem; }
    .plan__row { gap: 1rem; }
    .plan__left > .plan__nm { font-size: 1.02rem; }
    .plan__left > span { font-size: 0.83rem; white-space: normal; }
    .plan__left > .price { font-size: 1.2rem; margin-top: 1rem; }
    .plan__right { padding-left: 1rem; gap: 6px; }
    .plan__right > li { font-size: 0.83rem; }

    .compare__body { padding-right: 0; }
    .live { position: static; width: 100%; border-radius: 16px; padding: 1.1rem 1.1rem 1.3rem; }
    /* 260916 수정 5 : 모바일은 3칸만 노출, 나머지는 롤링으로 차례차례 */
    .live__list { flex: none; max-height: 140px; }
    .live__head > .live__tit { font-size: 0.93rem; }
    .live__list > li { padding: 10px 12px; }
    .live__list .nm, .live__list .age { font-size: 0.85rem; }
    .live__list .ago { font-size: 0.8rem; }

    /* 대표특약 */
    .feature { padding: 2rem 1rem 2.4rem; }
    .feature > .inner > h2 { font-size: 1.3rem; }
    .feature > .inner > p { font-size: 0.92rem; margin-bottom: 1.2rem; }

    .feature__list { flex-direction: column; gap: 1.6rem; }
    .feature__list .thumb { margin-bottom: 0.8rem; }
    .feature__list h3 { font-size: 1.12rem; margin-bottom: 8px; }
    .feature__list p { font-size: 0.9rem; }

    /* 자주 묻는 질문 */
    .faq { padding: 2rem 1rem 2.4rem; }
    .faq > .inner > h2 { font-size: 1.3rem; margin-bottom: 1.2rem; }
    .faq__list { gap: 1.3rem; }

    .faq__q > .mark, .faq__a > .mark { width: 38px; height: 38px; font-size: 1rem; }
    .faq__q > h3 { font-size: 1.08rem; }
    .faq__a { padding-left: 1.6rem; margin-top: 8px; }
    .faq__a > p { font-size: 0.9rem; padding-top: 6px; }
}

/* ── 소형 단말 (깨짐 방지) ───────────── */
@media screen and (max-width: 380px) {
    .visual__stat li > span { font-size: 0.66rem; }
}

@media screen and (max-width: 340px) {
    .visual .txt > h1 { font-size: 1.5rem; }
    .visual__stat li > strong { font-size: 1.15rem; }
    .visual__stat li > span { font-size: 0.58rem; }
}
