/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans KR', sans-serif; /* 기본 폰트 설정 */
        /* 텍스트 선택 방지 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

html, body {
    width: 100%;
    min-width: 1000px;
    margin: 0;
    padding: 0;

}

#wrap {
    width: 1000px;
    margin: 0 auto;
    position: relative;
}

.title-img {
    width: 1000px;
    display: block;
    margin: 70px auto 0;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.question-img {
    width: 1000px;
    display: block;
    margin: 0 auto;
}

/* 공통 스타일 */
.choice-box {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.choice-area {
    width: 1000px;
    margin: 0 auto;
    display: flex;
}

/* 섹션 6 스타일 */
#section-6 {
    margin: 0;
}

#section-6 .choice-area {
    justify-content: center;
    gap: 100px;
    padding: 0;
}

#section-6 .choice-text {
    width: 232px;
    height: 55px;
    pointer-events: none;
}

#section-6 .choice-text-2 {
    width: 339px;
    height: 55px;
    pointer-events: none;
}

/* 섹션 8 스타일 */
#section-8 {
    margin: 20px 0;
}

#section-8 .choice-area {
    width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 90px;
    padding-right: 90px;
}

#section-8 .checkbox-row {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    gap: 0;
}

#section-8 .choice-box {
    width: calc((100% - 30px) / 3);
    display: flex;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
}

#section-8 label {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
    padding: 0;
    margin: 0;
}

#section-8 .choice-text {
    margin: 0;
    padding: 0;
    pointer-events: none;
    display: block;
}

/* 체크박스 이미지 크기 - 원래 비율 유지하면서 클릭 영역 확장 */
#section-8 .choice-text-restaurant {
    width: 147px;
    height: 44px;
    pointer-events: none;
}

#section-8 .choice-text-cafe {
    width: 147px;
    height: 44px;
    pointer-events: none;
}

#section-8 .choice-text-beauty {
    width: 272px;
    height: 48px;
    pointer-events: none;
}

#section-8 .choice-text-education {
    width: 149px;
    height: 45px;
    pointer-events: none;
}

#section-8 .choice-text-other {
    width: 241px;
    height: 44px;
    pointer-events: none;
}

/* 체크박스 input 숨김 처리 */
#section-8 input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

/* 체크박스 클릭 영역 확장을 위한 추가 스타일 */
#section-8 .choice-box label {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* 체크박스 이미지 변경을 위한 선택자 최적화 */
[id]:checked ~ [class*="choice-text"],
[id]:checked ~ [class*="status"] {
    content: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section06_question_checkbox01_on.png');
}

/* 각 체크박스별 ON 이미지 */
#perpetrator:checked ~ .choice-text-perpetrator {
    content: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section06_question_checkbox01_on.png');
}

#victim:checked ~ .choice-text-victim {
    content: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section06_question_checkbox02_on.png');
}

#death:checked ~ .death-text {
    content: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section08_question01_checkbox01_on.png');
}

#injury:checked ~ .injury-text {
    content: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section08_question01_checkbox02_on.png');
}

#status_joined:checked ~ .status-joined {
    content: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section08_question04_checkbox01_on.png');
}

#status_not_joined:checked ~ .status-not-joined {
    content: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section08_question04_checkbox02_on.png');
}

#status_unknown:checked ~ .status-unknown {
    content: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section08_question04_checkbox03_on.png');
}

/* 입력 폼 스타일 수정 */
#section-7 .input-area,
#section-8 .input-area {
    width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.input-box {
    width: 800px;
    height: 98px;
    border: 3px solid #444;
    border-radius: 3px;
    padding: 13px 13px 13px 26px;
    font-size: 37px;
    font-weight: 500;
    font-family: 'Noto Sans KR', sans-serif; /* input 박스에도 명시적으로 폰트 지정 */
}

.input-box::placeholder {
    color: #999;
    font-size: 37px;
    font-weight: 500;
    font-family: 'Noto Sans KR', sans-serif; /* placeholder에도 폰트 지정 */
}

.input-box:focus {
    outline: none;
    border-color: #000;
}

/* 이미지 미리 로드를 위한 숨김 처리 */
.preload {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* 보험 상태 체크박스 스타일 */
.status-text {
    height: 39px;
    pointer-events: none;
}

/* 버튼 영역 스타일 */
.button-area {
    width: 1000px;
    margin: 0 auto 0;
    text-align: center;
}

.next-button {
    width: 895px;
    height: 156px;
    cursor: pointer;
    /* 드래그 방지 */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

/* footer 스타일 */
footer {
    width: 100%;
    min-width: 1920px;
    margin: 300px auto 0;
    background-color: #f8f8f8;
    color: #666;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.footer-content {
    width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
    position: relative;
}

.company-info {
    font-size: 17px;
    line-height: 1.4;
    color: #888;
    padding: 0 90px;
}

.company-info p {
    margin: 5px 0;
}

/* 섹션 7 스타일 */
#section-7 {
    margin: 20px 0;
}

#section-7 .choice-area {
    width: 1000px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    padding-left: 90px;
    padding-top: 0;
    padding-bottom: 0;
    gap: 15px;
    justify-content: flex-start;
}

#section-7 .choice-box {
    width: calc(50% - 30px);
    margin-bottom: 5px;
}

#section-7 .choice-text {
    width: 180px;
    height: 45px;
    pointer-events: none;
}

/* 요청유형 이미지 크기 */
#section-7 .choice-text-death {
    width: 315px;
    height: 106px;
    pointer-events: none;
}

#section-7 .choice-text-injury {
    width: 265px;
    height: 104px;
    pointer-events: none;
}

#section-7 .choice-text-hitrun {
    width: 259px;
    height: 104px;
    pointer-events: none;
}

#section-7 .choice-text-teen {
    width: 356px;
    height: 104px;
    pointer-events: none;
}

/* 개인브랜드/프랜차이즈 체크박스 이미지 크기 */
#section-7 .choice-text-before,
#section-7 .choice-text-after {
    width: 290px;
    height: 44px;
    pointer-events: none;
}

/* 매장규모 체크박스 이미지 크기 */
#section-7 .choice-text-custody {
    width: 255px;
    height: 44px;
    pointer-events: none;
}

#section-7 .choice-text-non-custody {
    width: 277px;
    height: 44px;
    pointer-events: none;
}

/* 월 매출 체크박스 세로 배열 및 크기 */
#section-7 input[name="monthly_revenue"] ~ .choice-text {
    margin-bottom: 5px;
}

#section-7 input[name="monthly_revenue"] {
    display: none;
}

#section-7 label[for="revenue_low"],
#section-7 label[for="revenue_high"] {
    display: block;
    width: 100%;
}

#section-7 .choice-text-revenue-low {
    width: 549px;
    height: 45px;
    pointer-events: none;
}
#section-7 .choice-text-revenue-high {
    width: 341px;
    height: 44px;
    pointer-events: none;
}

/* 운영 기간 체크박스 이미지 크기 */
#section-7 .choice-text-operation-short,
#section-7 .choice-text-operation-long {
    width: 399px;
    height: 45px;
    pointer-events: none;
}

/* 지원사업 경험 체크박스 세로 배열 및 크기 */
#section-7 input[name="support_experience"] ~ .choice-text {
    margin-bottom: 20px;
}

#section-7 input[name="support_experience"] {
    display: none;
}

#section-7 label[for="support_yes"],
#section-7 label[for="support_no"] {
    display: block;
    width: 100%;
}

#section-7 .choice-text-support-yes,
#section-7 .choice-text-support-no {
    width: 594px;
    height: 45px;
    pointer-events: none;
}

/* 체크박스 ON 이미지 */
#death_injury:checked ~ .choice-text-death {
    content: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section07_question01_checkbox01_on.png');
}

#serious_injury:checked ~ .choice-text-injury {
    content: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section07_question01_checkbox02_on.png');
}

#hit_and_run:checked ~ .choice-text-hitrun {
    content: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section07_question01_checkbox03_on.png');
}

#teen_accident:checked ~ .choice-text-teen {
    content: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section07_question01_checkbox04_on.png');
}

#before_investigation:checked ~ .choice-text-before {
    content: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section07_question02_checkbox01_on.png');
}

#after_investigation:checked ~ .choice-text-after {
    content: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section07_question02_checkbox02_on.png');
}

#revenue_low:checked ~ .choice-text-revenue-low {
    content: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section07_question04_checkbox01_on.png');
}

#revenue_high:checked ~ .choice-text-revenue-high {
    content: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section07_question04_checkbox02_on.png');
}

#operation_short:checked ~ .choice-text-operation-short {
    content: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section07_question05_checkbox01_on.png');
}

#operation_long:checked ~ .choice-text-operation-long {
    content: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section07_question05_checkbox02_on.png');
}

#support_yes:checked ~ .choice-text-support-yes {
    content: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section07_question06_checkbox01_on.png');
}

#support_no:checked ~ .choice-text-support-no {
    content: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section07_question06_checkbox02_on.png');
}

/* 매장규모 체크박스 ON 이미지 */
#custody:checked ~ .choice-text-custody {
    content: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section07_question03_checkbox01_on.png');
}

#non_custody:checked ~ .choice-text-non-custody {
    content: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section07_question03_checkbox02_on.png');
}

/* 섹션 9 스타일 */
#section-9 {
    width: 1000px;
    margin: 0 auto;
    padding: 0;
}

#section-9 .input-area {
    width: 1000px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 90px;
    padding-top: 0;
    padding-bottom: 0;
}


#section-9 .input-box {
    width: 800px;
    height: 98px;
    border: 3px solid #444;
    border-radius: 3px;
    padding: 13px 13px 13px 26px;
    font-size: 37px;
    font-weight: 500;
    font-family: 'Noto Sans KR', sans-serif;
}

#section-9 .choice-area {
    width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    padding-left: 90px;
    margin-bottom: 10px;
}

/* 개인정보 동의 영역 */
#section-9 .choice-box {
    width: fit-content;
    margin: 0;
    margin-bottom: 10px;
}

/* 보기 버튼 스타일 수정 */
#section-9 .view-policy {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-left: 30px;
    margin-bottom: 10px;
    align-self: flex-start;
}

/* 체크박스 숨김 */
input[type="checkbox"] {
    display: none;
}

/* 체크박스 ON 이미지 */
#privacy_agreement:checked ~ .choice-text-agree {
    content: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section09_checkbox_agree_on.png');
}

#privacy_agreement2:checked ~ .choice-text-agree2 {
    content: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section09_checkbox_agree02_on.png');
}

#privacy_agreement3:checked ~ .choice-text-agree3 {
    content: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section09_checkbox_agree03_on.png');
}

.choice-text {
    margin-left: 10px;
    pointer-events: none;
}

.view-policy {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-left: 30px;
}

/* 제3자 동의와 광고성 수신동의 들여쓰기 */
#section-9 .choice-text-agree2,
#section-9 .choice-text-agree3 {
    margin-left: 60px; /* 들여쓰기 적용 */
}

/* 버튼 영역 */
.button-area {
    width: 1000px;
    margin: 50px auto;
    text-align: center;
}

.submit-button {
    cursor: pointer;
    transition: opacity 0.3s;
}

.submit-button:hover {
    opacity: 0.9;
}

/* 섹션 공통 스타일 */
#section-1, #section-2, #section-4, #section-5 {
    width: 100%;
    min-width: 1920px;
    background: no-repeat center top;
    background-size: 1920px auto;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: -5px;
}

/* section-3 별도 스타일 */
#section-3 {
    width: 100%;
    min-width: 1920px;
    background: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section03_bg.png') no-repeat center top;
    background-size: 1920px auto;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: -5px;
}

#section-3 .content {
    width: 1356px;  /* section3만 1356px */
    margin: 0 auto;
    position: relative;
}

#section-3 .main-content {
    width: 1356px;  /* section3 이미지도 1356px */
    height: auto;
    display: block;
    vertical-align: top;
}

/* 나머지 섹션 content 스타일 */
#section-1 .content,
#section-2 .content,
#section-4 .content,
#section-5 .content {
    width: 1000px;
    margin: 0 auto;
    position: relative;
}
#section-1 { background-image: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section01_bg.png'); }
#section-2 { background-image: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section02_bg.png'); }

#section-4 { background-image: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section04_bg.png'); }
#section-5 { background-image: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section05_bg.png'); }
#section-1 .main-content,
#section-2 .main-content,
#section-4 .main-content,
#section-5 .main-content {
    width: 1000px;
    height: auto;
    display: block;
    vertical-align: top;
}

.content {
    width: 1000px;
    margin: 0 auto;
    position: relative;
}

.main-content {
    width: 1000px;
    height: auto;
    display: block;
    vertical-align: top; /* 이미지 하단 여백 제거 */
}

/* 반응형 스케일링 상세 대응 */
@media screen and (max-width: 1000px) {
    body {
        transform: scale(1);
    }
}

@media screen and (max-width: 900px) {
    body {
        transform: scale(0.9);
    }
}

@media screen and (max-width: 800px) {
    body {
        transform: scale(0.8);
    }
}

@media screen and (max-width: 700px) {
    body {
        transform: scale(0.7);
    }
}

@media screen and (max-width: 600px) {
    body {
        transform: scale(0.6);
    }
}

@media screen and (max-width: 500px) {
    body {
        transform: scale(0.5);
    }
}

@media screen and (max-width: 400px) {
    body {
        transform: scale(0.4);
    }
}

@media screen and (max-width: 320px) {
    body {
        transform: scale(0.32);
    }
}

/* 데스크톱 큰 화면 대응 */
@media screen and (min-width: 1001px) {
    html {
        font-size: 10px;
    }
    
    body {
        width: 1000px;
        margin: 0 auto;
        min-height: 100vh;
    }

    #wrap {
        width: 1000px;
        margin: 0 auto;
        min-height: 100vh;
    }
}

@media screen and (max-width: 1000px) {
    footer {
        width: 1920px;
        transform: scale(calc(100vw / 1000)) translateX(-50%);
        transform-origin: left top;
    }
}

/* 반응형 스케일링 */
@media screen and (max-width: 1000px) {
    html {
        width: 1000px;
        height: 100vh; 
    }

    html, body {
        width: 1000px;
        overflow-x: hidden; /* overflow-x 대신 overflow 사용 */

        margin: 0;
        padding: 0;
     }
    body {
        position: relative;
        width: 1000px;               
        transform-origin: left top;
        -webkit-transform-origin: left top;
        transform: scale(calc(100vw / 1000));
        -webkit-transform: scale(calc(100vw / 1000));
    }

    #wrap {
        width: 1000px;
        margin: 0;
        position: relative;
        min-height: 100%;  /* 최소 높이 설정 */
    }
}

@media screen and (max-width: 1000px) {
    #section-1, #section-2, #section-3, #section-4, #section-5 {
        width: 1920px;
        transform: scale(calc(100vw / 1000)) translateX(-50%);
        transform-origin: left top;
    }
}

/* 업종별 체크박스 ON 이미지 */
#business_restaurant:checked ~ .choice-text-restaurant {
    content: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section08_question01_checkbox01_on.png');
}

#business_cafe:checked ~ .choice-text-cafe {
    content: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section08_question01_checkbox02_on.png');
}

#business_beauty:checked ~ .choice-text-beauty {
    content: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section08_question01_checkbox03_on.png');
}

#business_education:checked ~ .choice-text-education {
    content: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section08_question01_checkbox04_on.png');
}

#business_other:checked ~ .choice-text-other {
    content: url('https://frogstock.speedgabia.com/smi/landing/2025/smi_2025_real_maketing/section08_question01_checkbox05_on.png');
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    position: fixed;
    background-color: #fff;
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s;
    bottom: 500px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translate(-50%, 20px);}
    to {opacity: 1; transform: translate(-50%, 0);}
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: #333;
}

.policy-content {
    padding: 40px;
    max-height: 70vh;
    overflow-y: auto;
    font-size: 130%;
}

.policy-content h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 25px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.policy-content h2 {
    font-size: 21px; /* 16px에서 30% 증가 */
    font-weight: bold;
    margin: 15px 0 10px;
    color: #444;
}

.policy-content p {
    font-size: 18px; /* 14px에서 30% 증가 */
    line-height: 1.6;
    margin-bottom: 12px;
    color: #555;
}

.policy-content ul {
    padding-left: 20px;
    margin: 10px 0;
}

.policy-content li {
    font-size: 18px; /* 14px에서 30% 증가 */
    line-height: 1.5;
    margin-bottom: 8px;
    color: #555;
}

/* 플로팅 배너 스타일 */
.floating-banner {
    position: absolute;
    right: 30px;
    z-index: 9999;
    cursor: pointer;
}

.floating-banner img {
    width: 140px;
    height: auto;
    display: block;
}

/* 모바일 환경에서 플로팅 배너 스타일 조정 */
@media screen and (max-width: 1000px) {
    .floating-banner {
        position: absolute;
        right: 20px;
        transform: scale(calc(100vw / 1000));
        transform-origin: right center;
    }
}
