/* ===========================
   GLOBAL
=========================== */
body {
    margin: 0;
    padding: 0;
    font-family: 'Pretendard';
}

.mo-only-br {
    display: none;
}

/* 모바일에서만 보이게 */
@media screen and (max-width: 768px) {
    .mo-only-br {
        display: inline;
    }
}

.text-bold {
    font-weight: 700;
}

/* ===========================
   SECTION 1 — PC 원본 유지
=========================== */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero img.bg {
    width: 100%;
    height: auto;
    display: block;
}

.hero-content {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    text-align: center;
}

.hero-text {
    color: #ffffff;
    font-size: 60px;
    line-height: 75px;
    font-weight: 700;
    text-shadow: 0 4px 12px rgba(0,0,0,0.35);
    white-space: nowrap;
    margin-bottom: 130px;
}

.hero-text .blue {
    color: #2a72ff;
}

.hero-button img {
    width: auto;
    display: block;
    margin: 0 auto;
    animation: bounce 1.8s infinite ease-in-out;
}

@keyframes bounce {
    0%   { transform: translateY(0); }
    30%  { transform: translateY(-12px); }
    50%  { transform: translateY(0); }
    70%  { transform: translateY(-7px); }
    100% { transform: translateY(0); }
}

/* ===========================
   CONSULT CARD (PC)
=========================== */
.consult-card {
    position: absolute;
    top: 100px;
    right: 8%;
    width: 380px;
    height: 450px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    z-index: 30;
}

.consult-card__header {
    text-align: center;
    padding-top: 35px;
}

.consult-header-icon {
    margin-bottom: 8px;
}

.consult-header-title {
    font-size: 20px;
    font-weight: 700;
}

.consult-card__body {
    padding: 24px 28px;
}

.consult-field {
    margin-bottom: 14px;
}

.consult-input,
.consult-select {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;

    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    display: block;
}

.consult-submit {
    width: 100%;
    padding: 14px 0;
    background: #0a84ff;
    color: #fff;
    font-size: 16px;
    border-radius: 8px;
    margin-top: 8px;
	border: none;
}

.consult-helper {
    margin-top: 10px;
    font-size: 13px;
    color: #777;
}

/* ===========================
   SECTION 1 — MOBILE FULL REBUILD
=========================== */
@media screen and (max-width: 768px) {

    /* 🔥 MOBILE IMAGE */
    .hero img.bg {
        content: url('/landing/img/pe/m/01_mo.jpg');
    }

    .hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }

    /* 🔥 상담폼이 이미지 바로 아래로 */
    .consult-card {
        top: 0 !important;
        right: unset;
        width: 90%;
        height: auto;
        margin-top: 525px;
        padding-bottom: 0px;
        order: 2;
        display: flex !important;
    }

	.consult-card__header {
		text-align: center;
		padding-top: 15px;
	}

    .consult-card__body {
        padding: 20px;
    }

    /* 🔥 텍스트 → 버튼 순서 */
    .hero-content {
        bottom: 10px;
        transform: none;
        left: 0;
        order: 3;
        width: 100%;
        text-align: center;
    }

    .hero-text {
        margin-bottom: 20px;
        font-size: 30px;
        line-height: 40px;
        white-space: normal;
        padding: 0 20px;
    }

    .hero-button img {
        margin-top: 80px;
    }
}

/* ============================================================
   SECTION 2 — 조루 자가진단 (PC 유지)
============================================================ */
.diagnose-section {
    width: 100%;
    background: #ffffff;
    padding: 20px 0;
    text-align: center;
}

.diagnose-title {
    font-size: 60px;
    font-weight: 700;
    color: #066bdd;
    margin-bottom: 40px;
    letter-spacing: -1px;
}

.diagnose-subtitle {
    font-size: 22px;
    font-weight: 400;
    color: #191919;
    margin-top: 20px;
    margin-bottom: 60px;
    letter-spacing: -0.5px;
}

.diagnose-box {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    background: #f5f5f5;
    padding: 75px;
    border-radius: 16px;
}

/* 질문 + 문항 */
.question-item {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #ccc;
    text-align: left;
}

.question-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.question-title {
    font-size: 22px;
    font-weight: 600;
    color: #066bdd;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
}

.q-num {
    width: 36px;        /* 숫자 대비 더 안정적 */
    height: 36px;
    border-radius: 50%;
    background: #066bdd;
    color: #fff;
    font-size: 18px;
    font-weight: 700;

    display: flex;
    justify-content: center;
    align-items: center;

    line-height: 1;     /* 숫자 중심 정렬 핵심 */
    flex-shrink: 0;     /* 줄바꿈 시 찌그러짐 방지 */

    margin-right: 12px;
}

.answer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 46px;
}

.answer-row label {
    display: flex;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
}

.answer-row input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.2);
}

/* 결과보기 버튼 */
.diagnose-result-btn {
    width: 100%;
    padding: 80px 0 150px;
}

.diagnose-result-btn img {
    cursor: pointer;
    width: auto;
}

.hero-bottom {
	text-align: center;
}


/* ============================================================
   SECTION 2 — 모바일 버전 (이미지 교체 + 레이아웃 변경)
============================================================ */
@media screen and (max-width: 768px) {

    /* 🔥 모바일용 이미지 교체 */
	.hero-bottom {
		background: #f5f5f5;
	}

    .hero-bottom img {
        content: url('/landing/img/pe/m/02_1_mo.png');
        height: auto;
    }

    .diagnose-title {
        font-size: 40px;
        margin-bottom: 20px;
		margin-top: 0px;
    }

    .diagnose-subtitle {
        font-size: 16px;
        padding: 0 10px;
        margin-bottom: 0px;
    }

    .diagnose-box {
        padding: 30px 20px;
    }

    .question-title {
        font-size: 18px;
        margin-bottom: 14px;
    }

	 .answer-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 1~3 세 칸 */
        row-gap: 10px;
		gap: 0px;
    }

    /* 4번부터 2칸짜리 줄 */
    .answer-row label:nth-child(n+4) {
        grid-column: span 1;   /* 가운데 두 칸만 쓰도록 */
    }

    .answer-row label {
        font-size: 13px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        white-space: nowrap;
    }

    .answer-row input[type="radio"] {
        transform: scale(1);
        margin-right: 6px;
    }

    .diagnose-result-btn {
        padding-top: 10px;
        padding-bottom: 45px;
    }

    .diagnose-result-btn img {
        width: 80%;
    }

	.question-item {
		margin-bottom: 20px;
		padding-bottom: 30px;
	}

	.diagnose-result-btn img {
        content: url('/landing/img/pe/m/02_btn_mo.png');
        width: 50%; /* 필요하면 조절 */
    }

	.diagnose-section {
		background: #f5f5f5;
	}
}

/* ============================================================
   SECTION 3 — 통이미지
============================================================ */
.section3 img {
    width: 100%;
    display: block;
}

/* MOBILE — 이미지 교체 */
@media screen and (max-width: 768px) {
    .section3 img {
        content: url('/landing/img/pe/m/03_mo.jpg');
    }
}

/* ============================================================
   SECTION 4 — PC 유지
============================================================ */
.section4 {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 15px;
}

.section4-bg {
    width: 100%;
    display: block;
}

.section4-textbox {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.section4-subtitle {
	font-size: 17px;
    font-weight: 400;
    color: #066bdd;
	margin-bottom: 0px;
	letter-spacing: -1.5px;
}

.section4-title {
    font-size: 58px;
    font-weight: 700;
    color: #191919;
	margin-top: 7px;
	letter-spacing: -2px;
}

.section4-gif {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
}

/* ============================================================
   SECTION 4 — 모바일 레이아웃 + 이미지 교체
============================================================ */
@media screen and (max-width: 768px) {
	.section4 {
		padding-top: 0px;
	}

    /* 🔥 통이미지 교체 */
    .section4-bg {
        content: url('/landing/img/pe/m/04_mo.jpg');
    }

    .section4-textbox {
        top: 40px;
		width: 100%
    }

    .section4-subtitle {
        font-size: 15px;
        margin-bottom: 6px;
		letter-spacing: -1px;
		font-weight: 400;
    }

    .section4-title {
        font-size: 40px;
        line-height: 40px;
		margin-top: 7px;
		letter-spacing: -1px;
    }

    .section4-gif {
        bottom: 60px;
        width: 90%;
    }

	.section4-gif img {
        content: url('/landing/img/pe/m/04_gif_mo.gif');
        width: 100%; /* 기존 규칙 유지 */
    }
}

/* ============================================================
   SECTION 5 — PC (탭 구조)
============================================================ */
.section5 {
    width: 100%;
    background: #f0f0f0;
    padding-top: 100px;
    padding-bottom: 150px;
    text-align: center;
}

.section5-subtitle {
    font-size: 17px;
    font-weight: 400;
    color: #066bdd;
	margin-bottom: 0px;
	letter-spacing: -1.5px;
}

.section5-title {
    font-size: 58px;
    font-weight: 700;
    color: #191919;
	margin-top: 7px;
	letter-spacing: -2px;
}

.section5-box {
    width: 1080px;
    height: 455px;
    background: #ffffff;
    margin: 50px auto 0;
    border-radius: 25px;
}

.tab-buttons {
    display: flex;
    width: 1080px;
    border-bottom: 2px solid #e5e5e5;
}

.tab-btn {
    width: 358px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    background: #fff;
    border-right: 1px solid #e5e5e5;
}

.tab-btn:first-child {
	border-left: none;
	border-radius: 25px 0px 0 0;
}

.tab-btn:last-child {
	border-right: none;
	border-radius: 0px 25px 0 0;
}

.tab-btn.active {
    background: #066bdd;
    color: #fff;
    height: 82px;
    position: relative;
}

.tab-image {
    width: 100%;
}

.tab-image img {
    width: 100%;
    object-fit: contain;
}

/* ============================================================
   SECTION 5 — 모바일 이미지 + 탭 재정렬
============================================================ */
@media screen and (max-width: 768px) {
    .section5 {
        padding-top: 50px;
        padding-bottom: 90px;
    }

    .section5-subtitle {
        font-size: 16px;
		margin-bottom: 0px;
		letter-spacing: -1px;
		font-weight: 400;
    }

    .section5-title {
        font-size: 40px;
        line-height: 40px;
		margin-top: 7px;
		letter-spacing: -1px;
    }

    /* 🔥 탭을 세로 정렬 */
    .section5-box {
        width: 94%;
        height: auto;
        padding: 0;
    }

    .tab-buttons {
        flex-direction: column;
        width: 100%;
        border-bottom: none;
    }

    .tab-btn {
        width: 100%;
        height: 60px;
        border-right: none;
        border-bottom: 1px solid #eee;
        font-size: 18px;
    }

    .tab-btn.active {
        height: 60px;
        top: 0;
    }

    .tab-image img {
        width: 100%;
        margin-top: 10px;
    }

	.tab-buttons {
        display: flex;
        flex-direction: row;
        width: 100%;
    }

    .tab-btn {
        flex: 1;              /* 동일 너비 비율 */
        width: auto !important;
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 15px;
        border: 1px solid #e5e5e5;
        border-right: none;
        background: #fff;
    }

    .tab-btn:last-child {
        border-right: 1px solid #e5e5e5;
    }

    .tab-btn.active {
        background: #066bdd;
        color: #fff;
        border-color: #066bdd;
        height: 50px;
    }

    .section5-box {
        width: 100%;
        margin-top: 20px;
    }

	.section5-box {
        width: calc(100% - 32px); /* 양옆 16px 여백 확보 */
        margin: 0 auto;
        box-sizing: border-box;
        background: #ffffff;
        border-radius: 15px;
    }

    .tab-image img {
        width: 100%;
        border-radius: 12px;
        display: block;
    }

	.tab-btn:first-child {
		border-left: none;
		border-radius: 15px 0px 0 0;
	}

	.tab-btn:last-child {
		border-right: none;
		border-radius: 0px 15px 0 0;
	}
}

/* ============================================================
   SECTION 6 — PC (양쪽 텍스트 오버레이)
============================================================ */
.section6 {
    position: relative;
    width: 100%;
}

.section6 img {
    width: 100%;
    display: block;
}

.section6-overlay {
    position: absolute;
    top: 19%;
    width: 100%;
    display: flex;
}

.section6-left,
.section6-right {
    width: 50%;
    position: relative;
}

.section6-left h2,
.section6-right h2 {
    position: absolute;
    top: 19%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px;
    white-space: nowrap;
    color: #fff;
    text-shadow: 0 3px 8px rgba(0,0,0,0.35);
}

.section6-left h2 { left: 66%; }
.section6-right h2 { left: 32%; }

/* ============================================================
   SECTION 6 — 모바일 이미지 + 텍스트 축소
============================================================ */
@media screen and (max-width: 768px) {
    .section6 img {
        content: url('/landing/img/pe/m/06_mo.jpg');
    }

    .section6-left h2,
    .section6-right h2 {
        font-size: 18px;
        top: 50px;
    }
}

@media screen and (max-width: 768px) {

    .section6-overlay {
        position: absolute;
        top: 11%;              /* 원하는 위치 조절 가능 */
        width: 100%;
        display: flex;
        flex-direction: column; /* 세로 정렬 */
        align-items: center;    /* 가운데 정렬 */
        gap: 0vh;              /* 타이틀 사이 간격 */
    }

    .section6-left,
    .section6-right {
        width: 100%;
        text-align: center;
        position: relative;
    }

    .section6-left h2,
    .section6-right h2 {
        font-size: 22px;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        text-shadow: 0 2px 6px rgba(0,0,0,0.25);
        white-space: nowrap;
    }

    /* PC용 예전 위치 제거 */
    .section6-left h2 { left: 50% !important; }
    .section6-right h2 { left: 50% !important; margin-top: 159.5%;}
}


/* ============================================================
   SECTION 7 — PC
============================================================ */
.section7 {
    position: relative;
    width: 100%;
}

.section7 img {
    width: 100%;
    display: block;
}

.section7-buttons {
    position: absolute;
    top: 500px;
    transform: translateX(68.5%);
    display: flex;
    gap: 24px;
}

.section7-buttons .btn:hover {
    transform: translateY(-2px);
}

/* ============================================================
   SECTION 7 — MOBILE 이미지 교체 + 버튼 위치 조정
============================================================ */
@media screen and (max-width: 768px) {
    .section7 img {
        content: url('/landing/img/pe/m/07_mo.jpg');
    }

	/* SECTION 7 버튼 세로 배치 + 위치 조정 */
    .section7-buttons {
        position: absolute;
        top: 300px;           /* 배경 이미지 상단 기준 200px 아래 */
        left: 50%;
        transform: translateX(-50%);
        
        display: flex;
        flex-direction: column; /* 세로 배치 */
        align-items: center;
        gap: 25px;             /* 버튼 사이 간격 */
        width: 100%;
    }

    /* 버튼 크기 (원하면 조절 가능) */
    .section7-buttons img {
        width: 60%;            /* 너비 조절 가능 */
        max-width: 320px;      /* 너무 크게 벌어지는 것 방지 */
		content: none !important; /* PC 이미지 유지 */
    }
}

/* ============================================================
   POPUP — PC
============================================================ */
.result-popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.result-popup-inner {
    width: 100%;
    max-width: 900px;
    position: relative;
}

.popup-bg-img {
    width: 100%;
}

.popup-close {
    position: absolute;
    top: -55px;
    right: 0;
    font-size: 38px;
    background: none;
    border: none;
    color: #fff;
}

.popup-reserve-btn {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
}

/* ============================================================
   POPUP — 모바일 이미지 자동 교체
============================================================ */
@media screen and (max-width: 768px) {

    .popup-bg-img {
        width: 92%;
        margin: 0 auto;
        display: block;
    }

    .result-popup-inner {
        max-width: 92%;
    }

    .popup-close {
        top: -40px;
        right: 10px;
        font-size: 30px;
    }

    .popup-reserve-btn {
        bottom: 40px;
    }

}

/* ==============================
   상담하기 퀵바 (PC & MO)
============================== */
.quick-consult-bar {
    position: fixed;
    right: 8%;
    bottom: 15%;
    width: 80px;
    height: 80px;
    background: #066bdd;
    border-radius: 50%;
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    cursor: pointer;
    z-index: 9999;

    transition: transform 0.25s ease, box-shadow 0.25s ease;
	padding: 5px;
}

/* 호버 효과 (PC 전용) */
@media screen and (min-width: 769px) {
    .quick-consult-bar:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 18px rgba(0,0,0,0.35);
    }
}

/* 아이콘 (종 이미지) */
.quick-consult-bar .quick-icon {
    height: 32px;
    margin-bottom: 3px;
}

/* 텍스트 */
.quick-consult-bar .quick-text {
    font-size: 15px;
    color: #fff;
    font-weight: 600;
    margin-top: 2px;
    white-space: nowrap;
}

/* ==============================
   모바일 버전 — 화면에 더 붙이고 사이즈 축소
============================== */
@media screen and (max-width: 768px) {

    .quick-consult-bar {
        right: 18px;
        bottom: 24px;
        width: 60px;
        height: 60px;
    }

    .quick-consult-bar .quick-icon {
        width: 20px;
        height: 20px;
    }

    .quick-consult-bar .quick-text {
        font-size: 10px;
    }
}

