

/* ================================================
   즉시 전화 상담 (모바일)
   ================================================ */
/* 플로팅 버튼 - 최근본매물 왼편 */
.m_call_consult_btn { position:fixed; bottom:0px; right:58px; width:58px; height:40px; background:#f7931e; display:flex; justify-content:center; align-items:center; cursor:pointer; z-index:9999; padding: 8px 0 7px; }
.m_call_consult_btn span { color:#fff; font-size:11px; font-weight:700; text-align:center; line-height:1.3; }

/* 모달 오버레이 */
.m_call_consult_modal { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.6); z-index:10000; justify-content:center; align-items:center; }

/* 모달 컨텐츠 */
.m_call_consult_content { position:relative; width:90%; max-width:350px; max-height:90vh; overflow-y:auto; background:#fff; border-radius:10px; padding:20px 15px; box-sizing:border-box; }
.m_modal_close { position:absolute; top:10px; right:12px; background:none; border:none; font-size:24px; color:#999; cursor:pointer; }
.m_modal_title { font-size:18px; font-weight:700; text-align:center; margin:0 0 8px; color:#333; }
.m_modal_desc { font-size:12px; color:#666; text-align:center; margin:0 0 20px; line-height:1.4; }

/* 폼 스타일 */
.m_form_row { margin-bottom:12px; }
.m_form_label { display:block; font-size:13px; font-weight:700; color:#333; margin-bottom:5px; }
.m_form_select, .m_form_text { width:100%; height:40px; padding:0 10px; border:1px solid #ddd; border-radius:4px; font-size:14px; box-sizing:border-box; -webkit-appearance:none; appearance:none; background:#fff; }
.m_form_select { background:#fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23333" d="M6 8L1 3h10z"/></svg>') no-repeat right 10px center; }
.m_phone_input { display:flex; gap:5px; }
.m_phone_select { width:80px; flex-shrink:0; }
.m_phone_input .m_form_text { flex:1; text-align:center; }

/* 동의 영역 */
.m_agree_row { margin-top:15px; }
.m_agree_label { display:flex; align-items:center; font-size:12px; color:#333; }
.m_agree_label input { margin-right:6px; width:16px; height:16px; }
.m_privacy_toggle { display:block; font-size:11px; color:#888; margin-top:5px; text-decoration:none; }
.m_privacy_detail { margin-top:8px; padding:10px; background:#f5f5f5; border-radius:4px; font-size:11px; color:#666; line-height:1.5; }

/* 제출 버튼 */
.m_submit_btn { display:block; width:100%; height:45px; margin-top:15px; background:#6b8e23; border:none; border-radius:6px; font-size:16px; font-weight:700; color:#fff; cursor:pointer; }
.m_submit_btn:active { background:#5a7a1e; }

/* 전화상담 폼 */
.m_call_consult_page { width: 100%; max-width: 500px; margin:0 auto; padding:20px 15px 40px; box-sizing:border-box; }
.m_call_consult_page .page_title { font-size:22px; font-weight:700; text-align:center; margin:20px 0 8px; color:#333; }
.m_call_consult_page .page_desc { font-size:13px; color:#666; text-align:center; margin:0 0 25px; line-height:1.5; }
.m_call_consult_page .form_box { background:#fff; border-radius:10px; padding:20px 15px; box-shadow:0 1px 5px rgba(0,0,0,0.1); }
.m_call_consult_page .form_row { margin-bottom:15px; }
.m_call_consult_page .form_label { display:block; font-size:14px; font-weight:700; color:#333; margin-bottom:8px; }
.m_call_consult_page .form_select { width:100%; height:45px; padding:0 12px; border:1px solid #ddd; border-radius:5px; font-size:15px; color:#333; background:#fff; -webkit-appearance:none; appearance:none; background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23333" d="M6 8L1 3h10z"/></svg>'); background-repeat:no-repeat; background-position:right 12px center; }
.m_call_consult_page .form_text { width:100%; height:45px; padding:0 12px; border:1px solid #ddd; border-radius:5px; font-size:15px; color:#333; box-sizing:border-box; }
.m_call_consult_page .phone_input { display:flex; gap:8px; }
.m_call_consult_page .phone_select { width:85px; flex-shrink:0; }
.m_call_consult_page .phone_num { flex:1; text-align:center; }
.m_call_consult_page .agree_row { margin-top:20px; padding-top:15px; border-top:1px solid #eee; }
.m_call_consult_page .agree_label { display:flex; align-items:flex-start; font-size:13px; color:#333; cursor:pointer; line-height:1.4; }
.m_call_consult_page .agree_label input { margin-right:8px; margin-top:2px; width:18px; height:18px; flex-shrink:0; }
.m_call_consult_page .privacy_toggle { display:block; font-size:12px; color:#888; margin-top:8px; text-decoration:none; }
.m_call_consult_page .privacy_detail { margin-top:10px; padding:12px; background:#f8f8f8; border-radius:5px; font-size:12px; color:#666; line-height:1.6; }
.m_call_consult_page .submit_btn { display:block; width:100%; height:50px; margin-top:20px; background:#6b8e23; border:none; border-radius:8px; font-size:17px; font-weight:700; color:#fff; cursor:pointer; }
.m_call_consult_page .submit_btn:active { background:#5a7a1e; }

/* ================================================
   에이전트 콜 화면 (accept, success, fail, complete)
   ================================================ */
.agent_call_wrap * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.agent_call_wrap {
    font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
}

/* 확인 화면 */
.agent_call_wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.confirm_box {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.confirm_header {
    background: #6b8e23;
    padding: 30px 25px;
    text-align: center;
}

.confirm_header .icon {
    width: 70px;
    height: 70px;
    background: #fff;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm_header .icon svg {
    width: 40px;
    height: 40px;
    fill: #6b8e23;
}

.confirm_header h1 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
}

.confirm_body {
    padding: 35px 30px;
    text-align: center;
}

.confirm_body .message {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    line-height: 1.5;
    margin-bottom: 10px;
}

.confirm_body .message .highlight {
    color: #6b8e23;
}

.customer_info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.customer_info .info_row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
}

.customer_info .info_row:last-child {
    margin-bottom: 0;
}

.customer_info .label {
    color: #888;
}

.customer_info .value {
    color: #333;
    font-weight: 600;
}

.btn_wrap {
    display: flex;
    gap: 15px;
}

.btn {
    flex: 1;
    height: 55px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn_no {
    background: #e0e0e0;
    color: #666;
}

.btn_no:hover {
    background: #d0d0d0;
}

.btn_yes {
    background: #6b8e23;
    color: #fff;
}

.btn_yes:hover {
    background: #5a7a1e;
}

/* 실패 화면 */
.fail_screen {
    display: none;
}

.fail_box {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    text-align: center;
}

.fail_header {
    background: #f5f5f5;
    padding: 35px 25px 25px;
}

.fail_header .badge {
    display: inline-block;
    background: #ff6b6b;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 15px;
    border-radius: 15px;
    margin-bottom: 15px;
}

.fail_header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
}

.fail_body {
    padding: 30px;
}

.fail_body .message {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn_confirm {
    width: 100%;
    height: 55px;
    background: #6b8e23;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn_confirm:hover {
    background: #5a7a1e;
}

/* 로딩 */
.loading_overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.loading_spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #e0e0e0;
    border-top: 5px solid #6b8e23;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.call_consult_wrap { max-width:500px; margin:50px auto; padding:30px; background:#fff; border-radius:10px; box-shadow:0 2px 20px rgba(0,0,0,0.1); }
.call_consult_wrap .page_title { font-size:28px; font-weight:700; text-align:center; margin:0 0 10px; color:#333; }
.call_consult_wrap .page_desc { font-size:14px; color:#666; text-align:center; margin:0 0 30px; line-height:1.6; }
.call_consult_wrap .form_row { display:flex; align-items:center; margin-bottom:15px; }
.call_consult_wrap .form_label { width:80px; font-size:15px; font-weight:700; color:#333; flex-shrink:0; }
.call_consult_wrap .form_input { flex:1; }
.call_consult_wrap .form_select { width:100%; height:42px; padding:0 12px; border:1px solid #ddd; border-radius:5px; font-size:14px; color:#333; background:#fff; }
.call_consult_wrap .form_text { width:100%; height:42px; padding:0 12px; border:1px solid #ddd; border-radius:5px; font-size:14px; color:#333; box-sizing:border-box; }
.call_consult_wrap .phone_input { display:flex; gap:8px; }
.call_consult_wrap .phone_select { width:90px; flex-shrink:0; }
.call_consult_wrap .phone_num { flex:1; text-align:center; }
.call_consult_wrap .agree_row { flex-direction:column; align-items:flex-start; margin-top:25px; padding-top:20px; border-top:1px solid #eee; }
.call_consult_wrap .agree_label { display:flex; align-items:center; font-size:14px; color:#333; cursor:pointer; }
.call_consult_wrap .agree_label input { margin-right:10px; width:18px; height:18px; }
.call_consult_wrap .privacy_toggle { font-size:13px; color:#888; margin-top:8px; text-decoration:none; cursor:pointer; }
.call_consult_wrap .privacy_toggle:hover { color:#333; }
.call_consult_wrap .privacy_detail { margin-top:12px; padding:15px; background:#f8f8f8; border-radius:5px; font-size:13px; color:#666; line-height:1.7; }
.call_consult_wrap .submit_btn { display:block; width:100%; height:55px; margin-top:25px; background:#6b8e23; border:none; border-radius:8px; font-size:18px; font-weight:700; color:#fff; cursor:pointer; transition:background 0.2s; }
.call_consult_wrap .submit_btn:hover { background:#5a7a1e; }

@media screen and (max-width:480px) {
    .call_consult_wrap .phone_select { width:70px; }
    .call_consult_wrap .form_label { width: 50px; }
}