﻿@charset "utf-8";

/* ==========================================================================
   전체 레이아웃 및 초기화
   ========================================================================== */
.resultWrap {
    padding: 20px;
    box-sizing: border-box;
}

/* 모바일 폼 요소 브라우저 기본 스타일 초기화 (아이폰/안드로이드 대응) */
.dateRow input,
.birthRow input,
.phoneRow input,
.phoneRow select,
.fullInput {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none; /* 브라우저 기본 내장 스타일 제거 */
    box-sizing: border-box;
    font-family: inherit;
    font-size: 16px; /* 모바일 인풋 클릭 시 화면 자동확대(줌인) 방지선 */
}

/* select 요소의 화살표 공간 확보 (필요 시) */
.phoneRow select {
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 12px center;
    background-size: 12px;
    padding-right: 30px !important;
}

/* ==========================================================================
   상단 민트 알림 박스 (.noticeBox)
   ========================================================================== */
.noticeBox {
    background: #E6F7F6;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.noticeBox p {
    position: relative;
    padding-left: 18px;
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.6;
    color: #1F2937;
    font-weight: 600;
    text-align: left;
}

.noticeBox p:last-child {
    margin-bottom: 0;
}

.noticeBox p:before {
    content: "";
    position: absolute;
    left: 4px;
    top: 9px;
    width: 6px;
    height: 6px;
    background: #0F766E;
    border-radius: 50%;
}

/* ==========================================================================
   콘텐츠 박스 공통 (.guideBox, .confirmBox)
   ========================================================================== */
.guideBox,
.confirmBox {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    box-sizing: border-box;
}

/* 확인사항 박스는 결과신청 버튼 아래에 배치되므로 상단 여백 추가 */
.confirmBox {
    margin-top: 20px;
}

.guideBox h3,
.confirmBox h4 {
    margin: 0 0 18px;
    color: #E34B41;
    font-size: 18px;
    font-weight: 700;
}

/* ==========================================================================
   안내 내용 (.guideBox 내부 리스트 및 이미지)
   ========================================================================== */
.guideContent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.guideContent ul {
    flex: 1;
    margin: 0;
    padding: 0;
    list-style: none;
}

.guideContent li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.7;
    color: #333333;
    text-align: left;
}

.guideContent li:last-child {
    margin-bottom: 0;
}

/* 빨간색 이중원 불릿 */
.guideContent li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 13px;
    height: 13px;
    border: 2px solid #E34B41;
    border-radius: 50%;
    box-shadow:
        inset 0 0 0 2px #fff,
        inset 0 0 0 5px #E34B41;
    box-sizing: border-box;
}

.guideImage {
    flex-shrink: 0;
}

.guideImage img {
    display: block;
    width: 140px;
    height: auto;
}

/* ==========================================================================
   결과신청 버튼 (.btnApply)
   ========================================================================== */
.btnApply {
    display: block;
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 28px;
    background: #EC4D40;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    margin-top: 15px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(236, 77, 64, 0.2); /* 버튼 입체감 부여 */
    -webkit-tap-highlight-color: transparent; /* 모바일 터치 시 하이라이트 잔상 제거 */
}

/* ==========================================================================
   확인사항 리스트 (.confirmBox 내부)
   ========================================================================== */
.confirmBox ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.confirmBox li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    line-height: 1.7;
    font-size: 15px;
    color: #333333;
    text-align: left;
}

.confirmBox li:last-child {
    margin-bottom: 0;
}

/* 차분한 회색 이중원 불릿 */
.confirmBox li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 10px;
    height: 10px;
    border: 1.5px solid #555;
    border-radius: 50%;
    box-shadow:
        inset 0 0 0 1.5px #fff,
        inset 0 0 0 4px #555;
    box-sizing: border-box;
}

/* ==========================================================================
   레이어 팝업 전체 구조 (.popupDim, .popupWrap)
   ========================================================================== */
.popupDim {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .65);
    z-index: 9998;
}

.popupWrap {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 460px;
    max-height: 85vh; /* 상하 여백 확보를 위해 90vh -> 85vh로 소폭 조정 */
    overflow-y: auto;
    background: #fff;
    border-radius: 18px;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* 팝업 헤더 */
.popupHeader {
    background: #6D4B2E;
    color: #fff;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 18px 18px 0 0;
}

.popupHeader h3 {
    margin: 0;
    font-size: 19px;
    color: #fff;
    font-weight: 700;
}

.popupClose {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

/* 팝업 본문 및 폼 스타일 */
.popupBody {
    padding: 22px;
    text-align: left;
}

.popupBody label {
    display: block;
    margin: 18px 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

/* 첫 번째 라벨은 상단 여백 제거 */
.popupBody label:first-of-type {
    margin-top: 0;
}

.dateRow,
.birthRow,
.phoneRow {
    display: flex;
    gap: 10px;
    margin-bottom: 4px;
}

.dateRow input,
.birthRow input,
.phoneRow input,
.phoneRow select,
.fullInput {
    width: 100%;
    height: 46px;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
    padding: 0 12px;
    background: #fff;
    color: #333;
}

/* 인풋창 포커스 스타일 정의 */
.dateRow input:focus,
.birthRow input:focus,
.phoneRow input:focus,
.phoneRow select:focus,
.fullInput:focus {
    border-color: #6D4B2E;
    outline: none;
}

.radioRow {
    display: flex;
    gap: 24px;
    margin: 10px 0;
}

.radioRow label {
    display: inline-flex;
    align-items: center;
    margin: 0;
    font-weight: 600;
    cursor: pointer;
}

.radioRow input[type="radio"] {
    margin: 0 6px 0 0;
    width: 18px;
    height: 18px;
    accent-color: #6D4B2E; /* 라디오 버튼 테마 컬러 통일 */
}

.warnText {
    color: #D63B2B;
    font-size: 13px;
    font-weight: 700;
    margin: 6px 0 0 0;
    line-height: 1.4;
}

/* 팝업 하단 버튼 구조 */
.popupBtnRow {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.btnSubmit,
.btnCancel {
    flex: 1;
    height: 48px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.btnSubmit {
    background: #6D4B2E;
    color: #fff;
    border: none;
}

.btnCancel {
    background: #fff;
    border: 1px solid #D1D5DB;
    color: #666;
}

/* ==========================================================================
   1. 날짜 입력 영역 (모바일 화면에 맞춰 반응형 레이아웃 변경)
   ========================================================================== */
.dateRow {
    display: flex;
    flex-direction: column; /* 세로로 배치하여 좁은 화면에서도 안 깨지게 변경 */
    gap: 8px; /* 입력창 간격 */
    margin-bottom: 4px;
}

/* 768px 이상의 넓은 태블릿이나 PC 환경에서는 다시 가로 배치 */
@media (min-width: 768px) {
    .dateRow {
        flex-direction: row;
    }
}


/* ==========================================================================
   2. 라디오 버튼 노출 오류 해결 (초기화 코드 분리)
   ========================================================================== */

/* 기존에 뭉뚱그려져 있던 초기화 선언에서 'input[type="radio"]'는 제외해야 합니다.
   혹시 기존 CSS 상단에 아래처럼 묶여있다면 radio는 빼주셔야 합니다. */
.dateRow input,
.birthRow input,
.phoneRow input,
.phoneRow select,
.fullInput {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none; /* 일반 텍스트형 인풋만 초기화 */
    box-sizing: border-box;
    font-size: 16px;
}

/* [핵심] 라디오 버튼 스타일 수정 */
.radioRow input[type="radio"] {
    /* 기존의 appearance: none 영향력을 없애기 위해 브라우저 기본 스타일 복원 */
    -webkit-appearance: radio !important;
       -moz-appearance: radio !important;
            appearance: radio !important; 
    
    margin: 0 6px 0 0;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    accent-color: #6D4B2E; /* 브라우저 지원 테마색 설정 */
}

.radioRow label {
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

/* ==========================================================================
   미디어 쿼리 (반응형 모바일 화면 최적화)
   ========================================================================== */
@media (max-width: 768px) {
    .guideContent {
        flex-direction: column-reverse;
        align-items: center; /* 중앙 정렬로 레이아웃 균형 확보 */
        gap: 16px;
    }

    .guideImage {
        width: 100%;
        text-align: center;
    }

    .guideImage img {
        width: 110px;
        margin: 0 auto;
    }
    
    .popupBody {
        padding: 18px; /* 모바일 화면 공간 확보를 위해 패딩 축소 */
    }
}