@charset "utf-8";

/*
 * inslife.co.kr — 원큐보험
 * style.css : 메인페이지 (비주얼 / 상담신청 / 추천상품)
 */

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

/* ── 메인 배너 ───────────────────────
   기획안 2번: #639922 기준 그라데이션 (전 페이지 동일)
   시안 실측 : 좌측 #639922 유지 → 우측 #C3D69B, 세로 변화 없음(수평) */
.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 (기획안 3번)
   시안 : 배경 박스 없이 흰 글씨만 */
.visual .txt > strong {
    display: inline-block;
    font-size: 1.25rem; font-weight: 700; color: #fff;
}

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

/* 시안 실측 : 배경 #F2F2F2 / 글씨 #3B6D11 */
.visual .txt > h1 .mark {
    display: inline-block;
    background: #F2F2F2; color: var(--green-dark);
    border-radius: 6px; padding: 0 14px; margin: 0 2px;
}

/* "상담 신청하기" 버튼 (기획안 5번)
   시안 실측 : 배경 #F2F2F2 / 글씨 #3B6D11 / 모서리 살짝 둥근 사각(알약 아님) */
.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: flex-end; }
.visual .img img { width: 460px; height: auto; object-fit: contain; }

/* 통계 3칸 (기획안 3-2번 : 숫자 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 */

/* ── 상담신청 ───────────────────────── */
.cs {
    width: 100%; display: flex; justify-content: center;
    background: #fff; padding: 3rem 0 3.5rem;
}

.cs > .inner {
    width: 100%;
    border: 1px solid #e2e2e2; border-radius: 12px;
    padding: 2rem 2.2rem 2.4rem;
}

/* "상담신청" : H2 (기획안 7번) */
.cs__head { margin-bottom: 1.6rem; }

.cs__head > h2 {
    display: inline-block;
    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; }

/* 상품선택 (기획안 6번) */
.cs__type { display: flex; align-items: flex-start; gap: 1.4rem; margin-bottom: 1.6rem; }

.cs__type > .label { flex: none; width: 74px; padding-top: 1.2rem; font-size: 0.9rem; font-weight: 700; color: #333; }

.cs__type .list { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 6px; }

.cs__type .list li {
    width: calc(10% - 6px);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 12px 4px; border-radius: 8px;
    cursor: pointer;
}


/* 기본값 비활성 → 클릭 시 초록 박스 */
.cs__type .list li.active { background: var(--green); }

.cs__type .list img { width: 38px; height: 38px; object-fit: contain; }
.cs__type .list li.active img { filter: invert(1) brightness(2); }

.cs__type .list p { font-size: 0.83rem; font-weight: 500; color: #444; }
.cs__type .list li.active p { color: #fff; font-weight: 700; }

/* 입력칸 */
.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번) ─────────────── */
.recommend {
    width: 100%; display: flex; justify-content: center;
    background: var(--rec-bg); padding: 3.2rem 0 3.6rem;
}

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

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

.rec__list { display: flex; gap: 1.4rem; }

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

.rec__list > li > a {
    display: flex; flex-direction: column; height: 100%;
    background: #fff; border-radius: 24px; padding: 1.7rem 1.6rem 1.9rem;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .10);
}


.rec__list .ico { width: 70px; height: 70px; margin-bottom: 0.9rem; }
.rec__list .ico img { width: 100%; height: 100%; object-fit: contain; }

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

/* ── 태블릿 ─────────────────────────── */
@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: 320px; }
    .visual__stat li > strong { font-size: 1.8rem; }

    .cs { padding: 2.2rem 1rem 2.6rem; }
    .cs > .inner { padding: 1.6rem 1.4rem 2rem; }
    .cs__type .list li { width: calc(12.5% - 6px); }

    .recommend { padding: 2.6rem 1rem 3rem; }
    .rec__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; margin-top: 1.6rem; margin-bottom: 2.4rem; }
    .visual .img img { width: 240px; }

    .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 > .inner { border: 0; border-radius: 0; padding: 0; }

    .cs__head > h2 { font-size: 1.1rem; }
    .cs__head > p { font-size: 0.85rem; }

    .cs__type { flex-direction: column; gap: 0.6rem; }
    .cs__type > .label { width: auto; padding-top: 0; }
    .cs__type .list { gap: 2px; }
    .cs__type .list li { width: calc(20% - 2px); padding: 10px 2px; }
    .cs__type .list img { width: 26px; height: 26px; }
    .cs__type .list p { font-size: 0.7rem; }

    .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; }

    /* 추천상품 */
    .recommend { padding: 2rem 1rem 2.4rem; }
    .recommend > .inner > h2 { font-size: 1.1rem; }
    .recommend > .inner > p { font-size: 0.85rem; margin-bottom: 1.1rem; }

    .rec__list { flex-direction: column; gap: 0.9rem; }
    .rec__list > li > a { border-radius: 18px; padding: 1.2rem 1.1rem 1.3rem; }
    .rec__list .ico { width: 54px; height: 54px; margin-bottom: 0.7rem; }
    .rec__list h3 { font-size: 1rem; }
    .rec__list p { font-size: 0.85rem; }
}

/* ── 소형 단말 (깨짐 방지) ─────────────
   통계 라벨 "상담신청 시 신속응대" 가 1/3 칸에 들어가지 않아 줄이 깨진다. */
@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; }
    .cs__type .list img { width: 22px; height: 22px; }
    .cs__type .list p { font-size: 0.62rem; }
}
