*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 스무스 스크롤 */
html {
    scroll-behavior: smooth;
}

/* =========================
   기본 설정
========================= */

body {
    margin: 0;
    padding: 0;
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: #f9fafb;
    color: #0f172a;
    line-height: 1.7;
    font-size: 16px;
}

/* 앵커 점프 시 헤더에 안가려지게 여유 */
.hero,
.section,
.cta-section,
#female,
#highrisk,
[id^="age-"] {
    scroll-margin-top: 80px;
}

/* 문단 간 기본 여백 */
p {
    margin: 0 0 1.2em;
    line-height: 1.7;
}

/* 공통 레이아웃 */
.inner {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

/* =========================
   헤더
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
    white-space: nowrap;
}

.site-header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    overflow-x: auto;
    scrollbar-width: none;
}

.site-header .inner::-webkit-scrollbar {
    display: none;
}

.logo {
    flex-shrink: 0;
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    margin-right: 20px;
}

.logo span {
    color: #2563eb;
}

/* =========================
   메뉴
========================= */

.gnb {
    flex-shrink: 0;
}

.gnb ul {
    display: flex;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gnb a {
    text-decoration: none;
    color: #4b5563;
    padding: 6px 10px;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
}

.gnb a:hover {
    background: #2563eb;
    color: #ffffff;
}

/* =========================
   섹션 배경 & 간격
========================= */

.hero {
    background: radial-gradient(circle at top left, #e3f2ff 0, #f5f7ff 40%, #ffffff 100%);
    padding: 80px 0 72px;
}

.section {
    padding: 90px 0;
    background: #ffffff;
}

.section.section-alt {
    padding: 96px 0;
    background: linear-gradient(180deg, #f9fafb 0%, #eef2ff 100%);
}

.cta-section {
    padding: 64px 0 72px;
    background: radial-gradient(circle at top, #eef2ff 0, #e0f2fe 45%, #ffffff 100%);
    border-top: 1px solid rgba(148, 163, 184, 0.3);
}

/* =========================
   히어로 내부
========================= */

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 32px;
    align-items: stretch;
}

.hero-text {
    padding-right: 8px;
}

.hero-label {
    display: inline-block;
    padding: 4px 10px;
    margin-bottom: 12px;
    font-size: 13px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}

.hero h1 {
    font-size: 34px;
    line-height: 1.3;
    margin: 0 0 24px;
    color: #0f172a;
}

.hero h1 span {
    color: #1d4ed8;
}

.hero-sub {
    margin: 0 0 22px;
    color: #4b5563;
    font-size: 16px;
}

.hero-sub strong {
    color: #111827;
}

.hero-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.hero-bullets li {
    position: relative;
    padding-left: 18px;
    font-size: 15px;
    margin-bottom: 10px;
    color: #374151;
}

.hero-bullets li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #2563eb;
}

/* =========================
   통계 카드
========================= */

.hero-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 14px;
}

.stat-card {
    flex: 1 1 100px;
    min-width: 100px;
    padding: 14px 16px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
    text-align: center;
}

.stat-card .num {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #1d4ed8;
}

.stat-card .label {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

/* =========================
   상담 폼
========================= */

.hero-form-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px 18px 18px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.hero-form-card h2 {
    font-size: 20px;
    margin: 0 0 6px;
    color: #111827;
    text-align: center;
}

.form-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 16px;
    text-align: center;
}

#consultForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-row label,
.label-inline {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

input[type="text"],
input[type="tel"],
textarea {
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 9px 10px;
    font-size: 14px;
    outline: none;
    transition: border 0.15s, box-shadow 0.15s, background 0.15s;
    background: #f9fafb;
}

input[type="text"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.1);
    background: #ffffff;
}

textarea {
    resize: vertical;
}

/* 성별 토글 */

.form-row-gender {
    flex-direction: column;
    gap: 6px;
}

.gender-toggle {
    display: flex;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.gender-option {
    flex: 1;
}

.gender-option input {
    display: none;
}

.gender-option span {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    font-size: 13px;
    border-radius: 999px;
    cursor: pointer;
    background: transparent;
    color: #4b5563;
    font-weight: 500;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
    border: 1px solid transparent;
}

.gender-option input:checked + span {
    background: #2563eb;
    color: #ffffff;
    border-color: #1d4ed8;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.3);
}

/* 개인정보 동의 */

.form-agree-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.agree-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #4b5563;
}

.agree-label input[type="checkbox"] {
    width: 14px;
    height: 14px;
}

.link-button {
    border: none;
    background: none;
    padding: 0;
    font-size: 12px;
    color: #2563eb;
    cursor: pointer;
    text-decoration: underline;
}

/* 버튼 */

.submit-btn {
    margin-top: 2px;
    border: none;
    border-radius: 999px;
    padding: 11px 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.4);
    transition: transform 0.1s, box-shadow 0.1s, opacity 0.15s;
}

.submit-btn:hover:enabled {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.5);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.form-notice {
    margin: 6px 0 0;
    font-size: 11px;
    color: #9ca3af;
}

/* =========================
   섹션 공통 요소
========================= */

.section h2 {
    font-size: 26px;
    margin: 0 0 10px;
    color: #111827;
}

.section-sub {
    font-size: 15px;
    color: #4b5563;
    margin: 0 0 22px;
}

/* 카드 그리드 */

.cards-grid {
    display: grid;
    gap: 18px;
}

.cards-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid.six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px 14px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    color: #111827;
}

.card p {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.16);
    border-color: rgba(37, 99, 235, 0.6);
}

/* 연령대 상세 카드 */

.age-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.age-card {
    display: block; /* a 태그 전체 클릭 */
    text-decoration: none;
    color: inherit;

    border-radius: 16px;
    padding: 22px 24px;
    border: 1px solid transparent;
    box-shadow:
        0 14px 35px rgba(15, 23, 42, 0.08),
        0 1px 3px rgba(148, 163, 184, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.age-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.14),
        0 4px 10px rgba(15, 23, 42, 0.12);
    border-color: rgba(37, 99, 235, 0.45);
}

.age-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 14px;
}

.age-card p,
.age-card li {
    font-size: 15px;
    line-height: 1.75;
    color: #4b5563;
}

/* 연령대별 파스텔 배경색 */

.age-card-20 {
    background: #e0f2fe; /* 연한 파스텔 블루 */
}

.age-card-30 {
    background: #fee2e2; /* 연한 코랄/핑크 */
}

.age-card-40 {
    background: #fef3c7; /* 파스텔 옐로우 */
}

.age-card-50 {
    background: #dcfce7; /* 연한 파스텔 그린 */
}

.age-card-60 {
    background: #faeefd; /* 연한 라일락/보라 */
}

.age-card-70 {
    background: #f3e8ff; /* 조금 더 진한 라벤더 톤 */
}



/* 여성 / 유병자 카드 파스텔 버전 (연령카드 동일 스타일) */
/* 2개의 큰 카드 전용 레이아웃 */
.big-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

/* 큰 카드 공통 스타일 (연령대 카드와 동일, 단 너비만 더 큼) */
.big-card {
    display: block;
    text-decoration: none;
    color: inherit;

    background: #ffffff;
    border-radius: 20px;
    padding: 28px 26px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.10);

    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.big-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14);
    border-color: rgba(37, 99, 235, 0.55);
}

.big-card h3 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
}

.big-card li {
    font-size: 16px;
    line-height: 1.55;
    color: #374151;
    margin-bottom: 8px;
}


/* 2개의 큰 카드 전용 레이아웃 */
.big-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

/* 큰 카드 공통 스타일 */
.big-card {
    display: block;
    text-decoration: none;
    color: inherit;

    background: #ffffff;
    border-radius: 20px;
    padding: 28px 26px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.10);

    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.big-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14);
    border-color: rgba(37, 99, 235, 0.55);
}

.big-card h3 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
}

.big-card li {
    font-size: 16px;
    line-height: 1.55;
    color: #374151;
    margin-bottom: 8px;
}

/* 파스텔 색상 */
.big-card-female {
    background: #fdf2f8; /* 파스텔 핑크 */
    border-color: rgba(236, 72, 153, 0.25);
}

.big-card-highrisk {
    background: #ecfdf5; /* 파스텔 민트 */
    border-color: rgba(16, 185, 129, 0.25);
}

.big-card-female:hover {
    border-color: rgba(236, 72, 153, 0.6);
}

.big-card-highrisk:hover {
    border-color: rgba(16, 185, 129, 0.6);
}

/* 모바일은 1열 */
@media (max-width: 768px) {
    .big-card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}


/* 파스텔 색상 */
.big-card-female {
    background: #fdf2f8; /* 파스텔 핑크 */
    border-color: rgba(236, 72, 153, 0.25);
}

.big-card-highrisk {
    background: #d4f8e7; /* 파스텔 민트 */
    border-color: rgba(16, 185, 129, 0.25);
}

.big-card-female:hover {
    border-color: rgba(236, 72, 153, 0.6);
}

.big-card-highrisk:hover {
    border-color: rgba(16, 185, 129, 0.6);
}

/* 모바일은 1열 */
@media (max-width: 768px) {
    .big-card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}



/* 2컬럼 레이아웃 */

.two-column {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 리스트 도트 */

.list-dot {
    margin: 0;
    padding-left: 18px;
    font-size: 14px;
    color: #4b5563;
}

.list-dot li + li {
    margin-top: 4px;
}

/* 여성/유병자 메뉴 링크 버튼 */

.section-menu-link {
    display: inline-flex;
    align-items: center;
    margin: 4px 0 10px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: #1d4ed8;
    background: #e0edff;
    text-decoration: none;
}

/* =========================
   CTA
========================= */

.cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cta-text h2 {
    margin: 0 0 8px;
    font-size: 24px;
    color: #111827;
}

.cta-text p {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.55);
    transition: transform 0.1s, box-shadow 0.1s, background 0.15s;
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.6);
    background: #020617;
}

/* =========================
   모달
========================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 16px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 420px;
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    padding: 48px 18px 16px; /* 위쪽 여백 추가 (닫기 버튼 자리) */
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.4);
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h3 {
    margin: 0 0 10px;
    font-size: 17px;
}

.modal-content p {
    margin: 0 0 8px;
    font-size: 13px;
    color: #4b5563;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #111827;
    color: #ffffff;
    font-size: 18px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: background 0.2s, transform 0.2s;
}

.modal-close-btn:hover {
    background: #1f2937;
    transform: scale(1.05);
}

/* =========================
   푸터
========================= */

.site-footer {
    background: #020617;
    color: #e5e7eb;
    padding: 28px 0 16px;
    font-size: 15px;
    border-top: 1px solid rgba(148, 163, 184, 0.4);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 24px;
    margin-bottom: 20px;
}

.footer-col h4 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: #e5e7eb;
}

.footer-logo {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
}

.footer-logo span {
    color: #60a5fa;
}

.footer-desc {
    margin: 0;
    color: #9ca3af;
    font-size: 15px;
}

.footer-text {
    margin: 0;
    color: #9ca3af;
    line-height: 1.6;
}

/* 책임고지 */

.footer-disclaimer {
    padding: 18px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.7;
}

.footer-disclaimer p {
    margin: 0 0 10px;
}

.footer-planner {
    color: #e2e8f0;
    font-weight: 500;
}

.footer-compliance {
    color: #94a3b8;
    font-size: 11px;
}

/* =========================
   반응형
========================= */

@media (max-width: 960px) {
    .hero-inner {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .hero-form-card {
        order: 1;
        max-width: 440px;
        margin: 0 auto;
    }

    .hero-text {
        order: 2;
        padding-right: 0;
    }

    .cards-grid.three,
    .cards-grid.six,
    .age-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    .site-header .inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        height: auto;
        padding: 8px 12px 10px;
    }

    .logo {
        font-size: 20px;
        margin-right: 0;
    }

    .gnb {
        width: 100%;
    }

    .gnb ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
    }

    .gnb ul::-webkit-scrollbar {
        height: 3px;
    }

    .gnb ul::-webkit-scrollbar-thumb {
        background: rgba(148, 163, 184, 0.7);
        border-radius: 999px;
    }

    .hero {
        padding: 52px 0 40px;
    }

    .hero h1 {
        font-size: 24px;
        line-height: 1.35;
    }

    .hero-sub {
        font-size: 15px;
    }

    .hero-bullets li {
        font-size: 14px;
    }

    .hero-stats {
        padding: 12px;
        gap: 10px;
    }

    .stat-card {
        padding: 12px 10px;
    }

    .cards-grid.three,
    .cards-grid.six,
    .age-grid {
        grid-template-columns: 1fr;
    }

    .section,
    .section.section-alt {
        padding: 54px 0;
    }

    .cta-section {
        padding: 42px 0 46px;
    }

    .section h2 {
        font-size: 22px;
    }

    .section-sub {
        font-size: 14px;
    }

    .site-footer {
        font-size: 13px;
    }
}

.logo,
.logo:hover,
.logo:focus {
    text-decoration: none !important;
}




/* 20대 hero 배경 – 파스텔 블루 그라데이션 */
.page-age20 .hero {
    background-image: linear-gradient(
        135deg,
        #e0f2fe 0%,
        #f9fbff 40%,
        #dbeafe 100%
    ) !important;
    background-color: #e0f2fe;
}

/* 30대 hero 배경 – 파스텔 핑크 */
.page-age30 .hero {
    background-image: linear-gradient(
        135deg,
        #ffe4e6 0%,
        #fef2f2 40%,
        #fecaca 100%
    ) !important;
    background-color: #ffe4e6;
}

/* 40대 hero 배경 – 파스텔 옐로우 */
.page-age40 .hero {
    background-image: linear-gradient(
        135deg,
        #fef3c7 0%,
        #fffbeb 40%,
        #fde68a 100%
    ) !important;
    background-color: #fef3c7;
}

/* 50대 hero 배경 – 파스텔 그린 */
.page-age50 .hero {
    background-image: linear-gradient(
        135deg,
        #dcfce7 0%,
        #f0fdf4 40%,
        #bbf7d0 100%
    ) !important;
    background-color: #dcfce7;
}

/* 60대 hero 배경 – 파스텔 라일락 */
.page-age60 .hero {
    background-image: linear-gradient(
        135deg,
        #fae8ff 0%,
        #fdf4ff 40%,
        #e9d5ff 100%
    ) !important;
    background-color: #fae8ff;
}

/* 70대 hero 배경 – 파스텔 퍼플 */
.page-age70 .hero {
    background-image: linear-gradient(
        135deg,
        #ede9fe 0%,
        #f5f3ff 40%,
        #ddd6fe 100%
    ) !important;
    background-color: #ede9fe;
}

/* 종합보험 hero 배경 – 파스텔 퍼플 */
.page-allinsu .hero {
    background-image: linear-gradient(
        135deg,
        #ccfbf1 0%,
        #f0fdfa 40%,
        #99f6e4 100%
    ) !important;
    background-color: #ccfbf1;
}


/* 여성종합보험 – 파스텔 로즈핑크 */
.page-women .hero {
    background-image: linear-gradient(
        135deg,
        #ffe4e6 0%,
        #fff1f2 40%,
        #fecdd3 100%
    ) !important;
    background-color: #ffe4e6;
    background-repeat: no-repeat;
    background-size: cover;
}

/* 유병자보험 hero – 파스텔 라벤더 */
.page-risk .hero {
    background-image: linear-gradient(
        135deg,
        #ede9fe 0%,
        #f5f3ff 40%,
        #ddd6fe 100%
    ) !important;
    background-color: #ede9fe;
    background-repeat: no-repeat;
    background-size: cover;
}

