/* CSS Reset & 기본 설정 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

:root {
    /* 하나손해보험 브랜드 컬러: 연두색(배경/포인트), 청록색(메인 텍스트/버튼) */
    --primary-bg: #E6F5EC;
    /* 밝고 화사한 연두색 배경 */
    --primary-light: #cbeada;
    --accent-color: #008485;
    /* 청록색 (Hana Insurance Teal) */
    --accent-dark: #006b6b;
    --text-main: #333333;
    --text-secondary: #555555;
    --bg-light: #f5f8f6;
    --border-color: #d1dfd7;
    --primary-text: #006060;
    /* 제목용 청록 텍스트 */
    --faq-answer-font-size: 0.9375rem;
    /* 15px — FAQ 답변 통일 */
    --faq-answer-line-height: 1.75;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-main);
    /* 4. 디자인 가이드: 본문 폰트 사이즈 16px 이상, 줄간격 1.6 이상 */
    font-size: 16px;
    line-height: 1.6;
    background-color: #fdfdfd;
}

/* 공통 레이아웃: 모바일 우선 (단일 디바이스용 래퍼) */
.wrapper {
    max-width: 600px;
    margin: 0 auto;
    background-color: #ffffff;
    /* 데스크탑에서도 모바일처럼 보이도록 박스 섀도우 처리 */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

section {
    padding: 3.5rem 1.5rem;
}

h1,
h2,
h3 {
    line-height: 1.4;
    word-break: keep-all;
}

h2 {
    font-size: 1.7rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-main);
}

/* 4. 디자인 가이드: 핵심 문구 Bold 처리 */
.bold {
    font-weight: 700;
}

/* 자리표시자 스타일 - 페이지 톤과 통일 (청록 포인트) */
.placeholder {
    background-color: rgba(0, 132, 133, 0.12);
    color: var(--accent-dark);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 700;
    display: inline-block;
}

.btn-cta {
    display: block;
    width: 100%;
    padding: 1.25rem;
    background-color: var(--accent-color);
    color: #ffffff;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 10px rgba(0, 132, 133, 0.2);
}

.btn-cta:hover,
.btn-cta:active {
    background-color: var(--accent-dark);
}

/* ===== Section 1: Hero ===== */
.hero {
    background-color: var(--primary-bg);
    color: var(--primary-text);
    text-align: center;
    padding: 4.5rem 1.5rem 5rem;
    position: relative;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    line-height: 1.3;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 2.5rem;
    word-break: keep-all;
}

.hero .bold {
    color: var(--accent-color);
    font-weight: 800;
}

.hero-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* ===== Section 2: Pain Point ===== */
.pain-point {
    background-color: var(--bg-light);
}

.pain-point .alert-box {
    background-color: #ffffff;
    border: 2px solid #ff4d4f;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.pain-point .alert-box p {
    color: #ff4d4f;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 700;
    word-break: keep-all;
}

.pain-point .desc {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.risk-list {
    list-style: none;
}

.risk-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.risk-list li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
    top: 2px;
}

/* ===== Section 3: Solution (Product Features) ===== */
.solution {
    background-color: #ffffff;
}

.solution .feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.solution .feature-item {
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary-light);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.solution .feature-name {
    color: var(--accent-color);
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.solution .feature-name::before {
    content: '🏠';
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.solution .feature-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    word-break: keep-all;
}

/* ===== Section 4: Process ===== */
.process {
    background-color: var(--primary-bg);
    color: var(--text-main);
}

.process h2 {
    color: var(--accent-color);
}

.step-container {
    margin-top: 1.5rem;
    padding-left: 0.5rem;
}

.step {
    display: flex;
    position: relative;
    margin-bottom: 2rem;
}

.process.process-ready .step {
    opacity: 0;
    transform: translateY(14px);
}

.process.process-animated .step {
    animation: stepReveal 0.5s ease forwards;
}

.process.process-animated .step:nth-child(1) { animation-delay: 0s; }
.process.process-animated .step:nth-child(2) { animation-delay: 0.22s; }
.process.process-animated .step:nth-child(3) { animation-delay: 0.44s; }
.process.process-animated .step:nth-child(4) { animation-delay: 0.66s; }

.process.process-animated .step .step-circle {
    animation: stepCirclePop 0.55s ease forwards;
}

.process.process-animated .step:nth-child(1) .step-circle { animation-delay: 0.08s; }
.process.process-animated .step:nth-child(2) .step-circle { animation-delay: 0.3s; }
.process.process-animated .step:nth-child(3) .step-circle { animation-delay: 0.52s; }
.process.process-animated .step:nth-child(4) .step-circle { animation-delay: 0.74s; }

@keyframes stepReveal {
    0% { opacity: 0; transform: translateY(14px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes stepCirclePop {
    0% { transform: scale(0.85); box-shadow: 0 2px 6px rgba(0, 132, 133, 0.3); }
    55% { transform: scale(1.18); box-shadow: 0 6px 20px rgba(0, 132, 133, 0.45); }
    100% { transform: scale(1); box-shadow: 0 2px 8px rgba(0, 132, 133, 0.35); }
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 2.5rem;
    bottom: -1rem;
    width: 2px;
    background-color: var(--primary-light);
    z-index: 1;
}

.step-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-right: 1.2rem;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 132, 133, 0.3);
}

.step-info {
    padding-top: 0.3rem;
}

.step-info h3 {
    color: var(--accent-color);
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
    font-weight: 800;
}

.step-info p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.step-info .placeholder {
    background-color: rgba(0, 132, 133, 0.1);
    color: var(--accent-dark);
}

/* ===== Section 5: Trust & FAQ ===== */
.accordion {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #ffffff;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    padding: 1.1rem 1.25rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.accordion-header-content {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.accordion-header::after {
    content: '+';
    font-size: 1.35rem;
    color: var(--accent-color);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.accordion-header.active::after {
    transform: rotate(45deg);
}

/* 열림/닫힘: max-height 대신 grid로 전체 높이 반영(잘림 방지) */
.accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.38s ease-out;
    background-color: var(--bg-light);
    box-sizing: border-box;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    /* 접힘 시 답변 영역이 밖으로 비치지 않도록 */
}

.accordion-content.is-open {
    grid-template-rows: 1fr;
    overflow: visible;
}

.accordion-content-inner {
    overflow: hidden;
    min-height: 0;
    max-height: 100%;
    padding: 0 1.25rem;
    box-sizing: border-box;
    font-size: var(--faq-answer-font-size);
    line-height: var(--faq-answer-line-height);
    color: #444;
    letter-spacing: 0.01em;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.accordion-content.is-open .accordion-content-inner {
    overflow: visible;
    padding-top: 1rem;
    padding-bottom: 1.2rem;
}

.accordion-content-inner > p {
    margin: 0 0 0.65em;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.accordion-content-inner > p:last-child {
    margin-bottom: 0;
}

.accordion-content-inner > ul,
.accordion-content-inner > ol {
    margin: 0.25em 0 0.65em;
    padding-left: 1.35rem;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.accordion-content-inner > ul:last-child,
.accordion-content-inner > ol:last-child {
    margin-bottom: 0;
}

.accordion-content-inner li {
    margin-bottom: 0.5em;
}

.accordion-content-inner li:last-child {
    margin-bottom: 0;
}

.accordion-content-inner .faq-answer-title {
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5em;
}

.accordion-content-inner .faq-answer-list {
    margin-top: 0;
    margin-bottom: 0.65em;
    padding-left: 1.5rem;
    list-style-position: outside;
}

.accordion-content-inner .faq-answer-list:last-child {
    margin-bottom: 0;
}

.accordion-content-inner .faq-answer-note {
    margin-top: 0.85em;
    margin-bottom: 0;
    font-weight: 700;
    font-size: inherit;
    line-height: inherit;
    color: #d32f2f;
    text-align: center;
}

.accordion-content .faq-point {
    margin-top: 0.85em;
    margin-bottom: 0;
    padding: 0.85em 1em;
    background: rgba(0, 132, 133, 0.1);
    border-left: 3px solid var(--accent-color);
    border-radius: 0 8px 8px 0;
    color: var(--accent-dark);
    font-size: inherit;
    line-height: inherit;
}

.accordion-content .faq-point .faq-point-lead {
    margin: 0 0 0.5em;
    font-weight: 800;
    font-size: inherit;
    color: var(--accent-color);
}

.accordion-content .faq-point ul {
    margin: 0;
    padding: 0 0 0 1.1rem;
    color: var(--accent-dark);
    font-size: inherit;
    line-height: inherit;
}

.accordion-content .faq-point li {
    margin-bottom: 0.45em;
}

.accordion-content .faq-point li:last-child {
    margin-bottom: 0;
}

/* FAQ: 가입·보험기간 타임라인 (점선·포인트 연결) */
.faq-timeline {
    margin-top: 0.9em;
    padding: 0.75rem 0.5rem 0.65rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.65rem;
    line-height: 1.35;
    color: #444;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.15rem 0.2rem;
    align-items: start;
}

.faq-tl-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}

.faq-tl-col .faq-tl-label {
    display: inline-block;
    padding: 0.25rem 0.2rem;
    border-radius: 6px;
    font-weight: 600;
    word-break: keep-all;
}

.faq-tl-vline {
    width: 0;
    flex: 0 0 auto;
    min-height: 14px;
    margin: 0.2rem 0 0.15rem;
    border-left: 1px dashed var(--accent-color);
    opacity: 0.55;
}

.faq-tl-col--deadline .faq-tl-vline {
    border-left-color: #c62828;
    border-left-style: dashed;
    opacity: 0.85;
    min-height: 12px;
}

.faq-tl-bubble-teal {
    background: rgba(0, 132, 133, 0.15);
    color: var(--accent-dark);
}

.faq-tl-bubble-mint {
    background: var(--primary-light);
    color: var(--accent-dark);
}

.faq-tl-deadline {
    color: #c62828;
    font-weight: 700;
    padding: 0.2rem 0.1rem !important;
}

.faq-tl-deadline::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    margin: 0 auto 0.2rem;
    background: #c62828;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.2);
}

.faq-tl-bar-wrap {
    grid-column: 1 / -1;
    position: relative;
    margin: 0.1rem 0 0.35rem;
}

.faq-tl-bar-wrap::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 0;
    border-top: 1px dashed rgba(0, 132, 133, 0.25);
    z-index: 0;
    pointer-events: none;
}

.faq-tl-bar-row {
    display: grid;
    grid-template-columns: 1fr 14px 1.2fr;
    align-items: stretch;
    gap: 0;
    min-height: 2.1rem;
    position: relative;
    z-index: 1;
}

.faq-tl-seg-apply {
    background: var(--accent-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.68rem;
    border-radius: 6px 0 0 6px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    position: relative;
}

.faq-tl-seg-apply::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    background: #fff;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    z-index: 2;
}

.faq-tl-seg-gap {
    background: rgba(255, 255, 255, 0.9);
    position: relative;
}

.faq-tl-seg-gap::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 2px dashed #c62828;
    transform: translateX(-50%);
    opacity: 0.65;
}

.faq-tl-seg-gap::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #c62828;
    border-radius: 50%;
    z-index: 1;
}

.faq-tl-seg-cover {
    background: var(--primary-light);
    color: var(--accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.68rem;
    border-radius: 0 6px 6px 0;
    box-shadow: inset 0 0 0 1px rgba(0, 132, 133, 0.12);
    position: relative;
}

.faq-tl-seg-cover::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    background: #fff;
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 1px var(--accent-color);
}

.faq-tl-bot {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.15rem;
    text-align: center;
    color: #555;
    font-size: 0.64rem;
    font-weight: 500;
    padding-top: 0.15rem;
    border-top: 1px dashed var(--border-color);
}

.faq-tl-bot span {
    word-break: keep-all;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.faq-tl-bot span::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
    opacity: 0.7;
    flex-shrink: 0;
}

.faq-tl-bot span:nth-child(2)::before {
    background: var(--accent-color);
    opacity: 0.5;
}

.faq-tl-bot span:nth-child(3)::before {
    background: var(--accent-dark);
    opacity: 0.85;
}

.faq-tl-bot span:nth-child(4)::before {
    background: var(--primary-light);
    border: 1px solid var(--accent-color);
    box-sizing: border-box;
}

/* FAQ 답변 안 타임라인: 답변 본문과 동일 글자 크기 */
.accordion-content .faq-timeline {
    font-size: 1em;
    line-height: 1.45;
}

.accordion-content .faq-tl-seg-apply,
.accordion-content .faq-tl-seg-cover {
    font-size: 1em;
}

.accordion-content .faq-tl-bar-row {
    min-height: 2.55rem;
}

.accordion-content .faq-tl-bot {
    font-size: 1em;
}

/* 효력 FAQ: 표(타임라인)만 약간 축소 */
.accordion-content .faq-timeline.faq-timeline--compact {
    font-size: 0.88em;
    line-height: 1.38;
    margin-top: 0.75em;
    padding: 0.6rem 0.4rem 0.5rem;
    gap: 0.1rem 0.15rem;
    border-radius: 8px;
}

.accordion-content .faq-timeline--compact .faq-tl-col .faq-tl-label {
    padding: 0.18rem 0.12rem;
}

.accordion-content .faq-timeline--compact .faq-tl-vline {
    min-height: 11px;
    margin: 0.12rem 0 0.08rem;
}

.accordion-content .faq-timeline--compact .faq-tl-col--deadline .faq-tl-vline {
    min-height: 9px;
}

.accordion-content .faq-timeline--compact .faq-tl-bar-wrap {
    margin: 0.06rem 0 0.28rem;
}

.accordion-content .faq-timeline--compact .faq-tl-bar-row {
    min-height: 2.15rem;
    grid-template-columns: 1fr 12px 1.2fr;
}

.accordion-content .faq-timeline--compact .faq-tl-deadline::before {
    width: 7px;
    height: 7px;
    margin-bottom: 0.12rem;
}

.accordion-content .faq-timeline--compact .faq-tl-seg-apply::after,
.accordion-content .faq-timeline--compact .faq-tl-seg-cover::before {
    width: 6px;
    height: 6px;
}

.accordion-content .faq-timeline--compact .faq-tl-seg-gap::after {
    width: 7px;
    height: 7px;
}

.accordion-content .faq-timeline--compact .faq-tl-bot {
    font-size: 1em;
    padding-top: 0.1rem;
    gap: 0.1rem;
}

.accordion-content .faq-timeline--compact .faq-tl-bot span {
    gap: 0.18rem;
}

.accordion-content .faq-timeline--compact .faq-tl-bot span::before {
    width: 5px;
    height: 5px;
}

/* ===== Section 6: Final CTA Form ===== */
.final-cta {
    background-color: var(--bg-light);
    /* 가입정보 입력 ↔ 알아두실 사항이 한 구역으로 이어지도록 하단만 여유 */
    padding-bottom: 0.75rem;
    border-top: 4px solid var(--primary-light);
}

.final-cta h2 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.final-cta-sub-em {
    font-weight: 700;
    color: var(--text-main);
}

.form-box {
    background-color: #ffffff;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    margin-top: 1rem;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 132, 133, 0.1);
}

.agreement {
    display: flex;
    align-items: flex-start;
    margin: 1.5rem 0 2rem;
    font-size: 0.85rem;
    color: var(--text-main);
}

.agreement input[type="checkbox"] {
    margin-top: 5px;
    margin-right: 8px;
    transform: scale(1.2);
    accent-color: var(--accent-color);
}

.agreement label {
    cursor: pointer;
}

/* 고지사항 확인 폼 */
.notice-form-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--accent-dark);
    margin: 0 0 1.25rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid var(--primary-light);
}

.notice-question {
    margin-bottom: 1.75rem;
    padding-bottom: 1.55rem;
    border-bottom: 1px solid var(--border-color);
}

.notice-q-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.55;
    margin: 0 0 1.05rem;
}

/* 예/아니오: 글씨 옆 동그라미 라디오 + 넓은 간격 */
.notice-yesno {
    display: flex;
    flex-wrap: wrap;
    gap: 1.85rem;
    align-items: center;
    row-gap: 0.85rem;
}

.notice-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
}

.notice-option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    clip: rect(0, 0, 0, 0);
    pointer-events: none;
}

.notice-option span {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0;
    min-width: unset;
    border: none;
    border-radius: 0;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
    transition: color 0.2s;
}

.notice-option span::before {
    content: '';
    display: block;
    width: 1.38rem;
    height: 1.38rem;
    border-radius: 50%;
    border: 2px solid #b8c9c0;
    background: #fff;
    box-sizing: border-box;
    flex-shrink: 0;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.notice-option:hover span::before,
.notice-option input:focus + span::before {
    border-color: var(--accent-color);
}

.notice-option:has(input:focus-visible) span::before {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

.notice-option input:checked + span::before {
    border-color: var(--accent-color);
    background: var(--accent-color);
    box-shadow: inset 0 0 0 4px #fff;
}

.notice-option input:checked + span {
    color: var(--accent-dark);
}

.notice-warning {
    margin: 0.9rem 0 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #c62828;
    line-height: 1.5;
}

.notice-warning[hidden] {
    display: none !important;
}

.notice-amount-wrap {
    margin-top: 0.95rem;
    padding: 0.95rem 0 0;
}

.notice-amount-wrap[hidden] {
    display: none !important;
}

.notice-amount-wrap label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.notice-amount-wrap .form-control {
    max-width: 100%;
}

.notice-check-block {
    margin: 1.5rem 0 1rem;
    padding: 1rem 1rem;
    background: rgba(0, 132, 133, 0.06);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.notice-check-block .agreement {
    margin: 0;
}

.notice-housing-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
}

.notice-housing-title-row .notice-housing-title {
    margin: 0 !important;
}

.btn-housing-help {
    flex-shrink: 0;
    width: 1.28rem;
    height: 1.28rem;
    border-radius: 50%;
    border: 1.5px solid var(--accent-color);
    color: var(--accent-color);
    background: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    font-family: inherit;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
    vertical-align: middle;
}

.btn-housing-help:hover {
    background: rgba(0, 132, 133, 0.12);
    color: var(--accent-dark);
}

.btn-housing-help:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.notice-housing-select {
    font-size: 0.88rem;
    line-height: 1.45;
    padding: 0.65rem 0.75rem;
}

#popup-housing .popup {
    width: min(360px, 90vw);
    max-height: 68vh;
}

#popup-housing .popup-header h2 {
    font-size: 1.02rem;
}

.popup-body--housing-guide {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 0;
    padding: 0.95rem 0.9rem 1.1rem;
    line-height: 1.65;
}

.popup-housing-guide-text {
    margin: 0;
    font-size: 0.84rem;
    color: var(--text-secondary);
    max-width: 100%;
}

.popup-housing-guide-text + .popup-housing-guide-text {
    margin-top: 0.75rem;
}

.popup-housing-inline-title {
    display: inline-block;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--accent-dark);
}

.notice-field-label {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.2rem 0.45rem;
    margin-bottom: 0.5rem;
}

.notice-field-label-main {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.notice-field-label-sub {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.notice-field-hint {
    margin: 0.4rem 0 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.notice-question--extra {
    margin-top: 0.25rem;
}

.notice-date-field {
    position: relative;
}

.notice-date-trigger {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    text-align: left;
    background: #fff;
    cursor: pointer;
    color: var(--text-main);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.notice-date-trigger:hover {
    border-color: var(--accent-color);
}

.notice-date-trigger:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 132, 133, 0.1);
}

.notice-date-trigger-text--placeholder {
    color: #999;
}

.notice-date-popover {
    position: absolute;
    left: 0;
    right: auto;
    top: calc(100% + 5px);
    z-index: 80;
    width: min(248px, calc(100vw - 2.5rem));
    max-width: 100%;
    padding: 0.5rem 0.45rem 0.55rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.notice-date-popover[hidden] {
    display: none !important;
}

.notice-date-toolbar {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.4rem;
}

.notice-date-select {
    flex: 1;
    padding: 0.32rem 0.35rem;
    font-size: 0.78rem;
    border-radius: 5px;
}

.notice-date-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.1rem;
    margin-bottom: 0.2rem;
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: center;
}

.notice-date-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.12rem;
}

.notice-date-cell {
    height: 1.68rem;
    min-height: 1.68rem;
    border: none;
    border-radius: 5px;
    font-size: 0.74rem;
    font-weight: 600;
    font-family: inherit;
    background: var(--bg-light);
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    padding: 0;
}

.notice-date-cell:hover:not(:disabled) {
    background: rgba(0, 132, 133, 0.18);
    color: var(--accent-dark);
}

.notice-date-cell--today:not(:disabled) {
    box-shadow: inset 0 0 0 1.5px var(--accent-color);
}

.notice-date-cell--past,
.notice-date-cell:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: #f0f0f0;
    color: #999;
}

.notice-date-cell--empty {
    height: 1.68rem;
    min-height: 1.68rem;
    background: transparent;
    pointer-events: none;
}

.notice-foot-list {
    list-style: none;
    margin: 1.35rem 0 0;
    padding: 1rem 0.85rem 1.1rem;
    background: rgba(0, 132, 133, 0.05);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.notice-foot-list li {
    position: relative;
    margin: 0 0 0.85rem;
    padding-left: 2rem;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-main);
}

.notice-foot-list li:last-child {
    margin-bottom: 0;
}

.notice-foot-list li::before {
    content: '!';
    position: absolute;
    left: 0;
    top: 0.12em;
    width: 1.38rem;
    height: 1.38rem;
    border-radius: 50%;
    background: #e53935;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.38rem;
}

.notice-foot-em {
    color: #c62828;
    font-weight: 700;
}

/* ===== Footer: 요약 + 상세 약관 (페이지 컬러 적용) ===== */
.site-footer {
    margin-top: 0;
}
.footer-top {
    background-color: var(--primary-bg);
    border-top: 3px solid var(--primary-light);
    color: var(--text-secondary);
    padding: 2rem 1.5rem 1.75rem;
    text-align: center;
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
}
.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-nav a:hover {
    color: var(--accent-color);
}
.footer-nav-sep {
    color: var(--border-color);
    user-select: none;
}
.footer-top-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0 auto 1.5rem;
    max-width: 100%;
}
.footer-company-card {
    margin-bottom: 1.75rem;
}
.footer-company-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0 0 0.65rem;
    letter-spacing: -0.02em;
}
.footer-company-line {
    font-size: 0.8rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0 0 0.35rem;
    word-break: keep-all;
}
.footer-inline-sep {
    color: var(--border-color);
    margin: 0 0.25rem;
}
.footer-disclaimer-box {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem 1.1rem 1.35rem;
    margin: 0 auto 1.5rem;
    text-align: left;
    max-width: 100%;
    box-shadow: 0 2px 8px rgba(0, 132, 133, 0.06);
}
.footer-disclaimer-list {
    margin: 0;
    padding: 0 0 0 1.1rem;
    font-size: 0.75rem;
    line-height: 1.7;
    color: var(--text-secondary);
}
.footer-disclaimer-list li {
    margin-bottom: 0.55rem;
}
.footer-disclaimer-list li:last-child {
    margin-bottom: 0;
}

/* 알아두실 사항 — 가입정보 입력과 동일 배경(bg-light)으로 단절감 완화, 폼 카드와 폭·여백 정렬 */
section.faq.legal-notice {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    min-height: 0;
    padding: 0 1.5rem 2.5rem;
    box-sizing: border-box;
    background-color: var(--bg-light);
}

.legal-notice .accordion {
    width: 100%;
    max-width: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    margin-top: 0.35rem;
}

.legal-notice .accordion-header {
    padding: 0.72rem 0.95rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.legal-notice .accordion-header::after {
    font-size: 1.05rem;
}

.legal-notice .accordion-content-inner {
    font-size: 0.8125rem;
    line-height: 1.62;
    padding-left: 0.95rem;
    padding-right: 0.95rem;
}

.legal-notice .accordion-content.is-open .accordion-content-inner {
    padding-top: 0.7rem;
    padding-bottom: 0.85rem;
}

.legal-notice .accordion-content-inner > ul,
.legal-notice .accordion-content-inner > ol {
    padding-left: 1.1rem;
}

.legal-notice .accordion-content-inner li {
    margin-bottom: 0.35em;
}

.legal-notice .legal-notice-block-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0.85rem 0 0.45rem;
    line-height: 1.4;
}
.legal-notice .legal-notice-block-title:first-of-type {
    margin-top: 0;
}

.legal-notice .accordion-content-inner > p:last-child {
    margin-bottom: 0;
}

.legal-notice .legal-notice-sub {
    margin-top: 0.55em;
    margin-bottom: 0;
    font-size: 0.78rem;
    line-height: 1.55;
}

.footer-compliance {
    margin: 1rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-dark);
    text-align: center;
    line-height: 1.55;
}
.footer-copy {
    font-size: 0.68rem;
    color: var(--text-secondary);
    margin: 0;
    letter-spacing: 0.02em;
    opacity: 0.85;
}
.footer-details {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 2.25rem 1.5rem 3rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: left;
}
.footer-details h2 {
    font-size: 1.2rem;
    text-align: left;
    margin: 2rem 0 1.25rem;
    color: var(--accent-color);
    scroll-margin-top: 0.75rem;
}
.footer-details h2:first-of-type {
    margin-top: 0;
}
.privacy-block {
    margin-bottom: 1.5rem;
}
.privacy-block h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 1rem 0 0.5rem;
}
.privacy-block h3:first-child { margin-top: 0; }
.privacy-block p, .privacy-block ul {
    margin: 0 0 0.5rem;
    padding-left: 1rem;
    line-height: 1.65;
}
.privacy-block ul { list-style-type: disc; }
.footer-details .contact-highlight {
    color: var(--accent-dark);
    font-weight: 600;
}
.footer-details .effective {
    margin-top: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
}
.footer-company-intro .intro-block { margin-bottom: 1.25rem; }
.footer-company-intro .intro-block h3 { font-size: 0.95rem; font-weight: 700; color: var(--text-main); margin: 0 0 0.5rem; }
.footer-company-intro .intro-block p { margin: 0 0 0.25rem; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.65; }
.footer-company-intro .intro-block .label { display: inline-block; min-width: 8em; font-weight: 600; color: var(--text-main); }

/* ===== 약관/회사소개 팝업 ===== */
.popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}
.popup-overlay.is-open {
    opacity: 1;
    visibility: visible;
}
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    z-index: 1101;
    width: min(560px, 92vw);
    max-height: 85vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease;
    overflow: hidden;
}
.popup-overlay.is-open .popup {
    transform: translate(-50%, -50%) scale(1);
}
.popup-header {
    flex-shrink: 0;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary-bg);
}
.popup-header h2 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--accent-color);
    text-align: left;
}
.popup-close {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.5rem;
    line-height: 1;
    transition: background 0.2s, color 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.popup-close:hover,
.popup-close:active {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-main);
}
.popup-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.25rem 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    -webkit-overflow-scrolling: touch;
}
.popup-body .privacy-block,
.popup-body .footer-company-intro .intro-block { margin-bottom: 1.25rem; }
.popup-body .privacy-block h3 { font-size: 0.98rem; margin: 0.75rem 0 0.4rem; }
.popup-body .privacy-block h3:first-child { margin-top: 0; }
.popup-body .intro-block h3 { margin: 0.5rem 0 0.35rem; }

/* 무료 상담 신청 팝업 */
.popup--consult {
    width: min(420px, 94vw);
}
.popup-body--consult {
    padding: 1.35rem 1.25rem 1.5rem;
}
.consult-field {
    margin-bottom: 1.1rem;
}
.consult-field:last-of-type {
    margin-bottom: 0;
}
.consult-field label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
}
.consult-optional {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.consult-textarea {
    min-height: 5.5rem;
    resize: vertical;
    font-family: inherit;
    line-height: 1.55;
}
.consult-actions {
    display: flex;
    gap: 0.65rem;
    margin-top: 1.35rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border-color);
}
.consult-actions .btn-consult-cancel {
    flex: 1;
    padding: 0.95rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    color: var(--text-main);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, border-color 0.2s;
}
.consult-actions .btn-consult-cancel:hover,
.consult-actions .btn-consult-cancel:active {
    background: var(--bg-light);
    border-color: var(--accent-color);
}
.consult-actions .btn-consult-submit {
    flex: 1.15;
    margin: 0;
    font-size: 1.05rem;
}

/* ===== 상단 헤더 & 햄버거 메뉴 ===== */
.header-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 52px;
    padding: 0 1rem;
    padding-top: env(safe-area-inset-top, 0);
    padding-left: calc(1rem + env(safe-area-inset-left, 0));
    padding-right: calc(1rem + env(safe-area-inset-right, 0));
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.header-bar .logo-text {
    margin-right: auto;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.hamburger-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s;
}
.hamburger-btn:hover,
.hamburger-btn:active {
    background-color: var(--primary-bg);
}
.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2.5px;
    background-color: var(--accent-color);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s;
}
.hamburger-btn[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
.hamburger-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}
.nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
}
.nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(280px, 85vw);
    max-width: 280px;
    z-index: 1001;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.12);
    padding: 2rem 1.25rem;
    padding-top: calc(52px + env(safe-area-inset-top, 0) + 0.5rem);
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0));
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
}
.nav-overlay.is-open .nav-drawer {
    transform: translateX(0);
}
.nav-drawer a {
    display: block;
    padding: 0.85rem 0.75rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background-color 0.15s, color 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.nav-drawer a:hover,
.nav-drawer a:active {
    background-color: var(--primary-bg);
    color: var(--accent-color);
}
.nav-drawer .nav-call {
    margin-top: 1rem;
    background-color: var(--accent-color);
    color: #fff !important;
    text-align: center;
    font-weight: 700;
}
.nav-drawer .nav-call:hover,
.nav-drawer .nav-call:active {
    background-color: var(--accent-dark);
    color: #fff !important;
}

/* ===== 하단 플로팅 버튼 (오른쪽 통합) ===== */
.floating-right {
    position: fixed;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0));
    right: calc(1rem + env(safe-area-inset-right, 0));
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
}
.floating-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 14px rgba(0, 132, 133, 0.25);
}
.floating-btn:active {
    transform: scale(0.98);
}
.floating-btn-detail {
    background: #fff;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}
.floating-btn-detail:hover,
.floating-btn-detail:active {
    background: var(--accent-color);
    color: #fff;
}
.floating-btn-call {
    background: var(--accent-color);
    color: #fff;
    border: 2px solid var(--accent-color);
}
.floating-btn-call:hover,
.floating-btn-call:active {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}
.floating-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
/* 헤더 높이만큼 본문 상단 여백 (노치 대응) */
body { padding-top: calc(52px + env(safe-area-inset-top, 0)); }
    </style>
