@charset "utf-8";
/* =========================================================
   1:1 상담요청 하단 고정바 + 우측하단 팝업 퀵메뉴
   - reumjr.com(리움한방병원) UI 이식 (rem→px, 1rem=10px 기준)
   - 아이콘: Remixicon (headHtml.php에서 CDN 로드)
   ========================================================= */

/* ---------- 하단 1:1 상담요청 고정바 ---------- */
.consult-box {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	border-radius: 10px;
	margin: 0 auto;
	color: #000;
	position: fixed;
	bottom: 20px;
	left: 0;
	right: 0;
	flex-wrap: wrap;
	z-index: 9;
	height: auto;
	width: 1200px;
	max-width: calc(100% - 40px);
	box-sizing: border-box;
}
.consult-box .consult-inner {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	background: #eee;
	padding: 16px 28px;
	border-radius: 10px;
	gap: 12px 22px;
	flex: 1;
	justify-content: space-between;
	width: calc(100% - 190px);
	box-shadow: 0 6px 24px rgba(0,0,0,.18);
}
/* 제목은 왼쪽, 이름/연락처 필드는 가운데, 동의는 오른쪽 */
.consult-box .consult-title {
	font-weight: 700;
	font-size: 21px;
	white-space: nowrap;
	color: #222;
	letter-spacing: -1px;
	flex-shrink: 0;
}
/* 라벨 + 입력창을 한 짝으로 묶어 붙여둔다 */
.consult-box .cb-field {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}
.consult-box .consult-inner label {
	font-weight: 500 !important;
	font-size: 16px;
	white-space: nowrap;
	margin: 0 !important;
	color: #333;
	line-height: normal;
}
.consult-box .consult-inner input[type="text"] {
	padding: 0 16px;
	border-radius: 8px;
	border: 1px solid #dcdcdc;
	background: #fff;
	font-size: 14px;
	width: 170px;
	min-width: 90px;
	line-height: normal;
	height: 46px;
	box-sizing: border-box;
	color: #333;
	vertical-align: middle;
}
.consult-box .consult-inner input[type="text"]:focus {
	outline: none;
	border-color: #950000;
}
.consult-box .consult-inner input::placeholder { color: #999; }
.consult-box .consult-inner .agree {
	font-size: 15px;
	display: flex;
	align-items: center;
	gap: 8px;
	color: #929292;
	justify-content: flex-end;
	cursor: pointer;
	flex-shrink: 0;
	white-space: nowrap;
}
.consult-box .consult-inner .agree a { color: #950000; text-decoration: underline; }
.consult-box .consult-inner .agree input { margin: 0; }
.consult-box .consult-btn {
	background: #950000;
	color: #fff;
	padding: 0 26px;
	border: none;
	border-radius: 5px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	margin-left: 10px;
	min-width: 150px;
	justify-content: center;
}
.consult-box .consult-btn:hover { background: #7a0000; }
.consult-box .consult-btn i { font-size: 19px; }

/* ---------- 우측하단 팝업 퀵메뉴 ---------- */
#quick { position: fixed; right: 75px; bottom: 20px; width: 80px; z-index: 999; }
#quick .list { overflow: hidden; position: relative; margin-bottom: 10px; border-radius: 8px; background: rgba(149,0,0,.92); }
#quick .list.open { overflow: initial; border-radius: 0 0 8px 8px; }
#quick .top {
	opacity: 0; position: absolute; bottom: 0; left: 0; width: 100%;
	transition: opacity .3s ease, transform .3s ease;
	pointer-events: none;
}
#quick .list.open .top {
	overflow: initial; opacity: 1; transform: translateY(-80px);
	height: auto; border-radius: 8px 8px 0 0; background: rgba(149,0,0,.92);
	pointer-events: auto;
}
/* PC(마우스): hover로 펼침 — 터치기기는 sticky hover 방지 위해 제외 */
@media (hover: hover) {
	#quick .list:hover { overflow: initial; border-radius: 0 0 8px 8px; }
	#quick .list:hover .top {
		overflow: initial; opacity: 1; transform: translateY(-80px);
		height: auto; border-radius: 8px 8px 0 0; background: rgba(149,0,0,.92);
		pointer-events: auto;
	}
	#quick .list:hover .top .q_icon > i { font-size: 20px; color: #fff; }
	#quick .list:hover .top span { font-size: 12px; }
}
#quick .list .box { width: 100%; height: 80px; }
#quick .list .box > a {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	width: 100%; height: 100%; text-decoration: none;
}
#quick .list .box + .box { border-top: 1px solid rgba(255,255,255,.15); }
#quick .list .q_icon { margin-bottom: 10px; }
#quick .list .q_icon > i { font-size: 20px; color: #fff; }
#quick .list .top .q_icon > i { font-size: 0; }
#quick .list .top span { font-size: 0; }
#quick .list.open .top .q_icon > i { font-size: 20px; color: #fff; }
#quick .list.open .top span { font-size: 12px; }
#quick .list span { font-size: 12px; color: #fff; }
#quick .bot_btn { overflow: hidden; position: relative; border-radius: 10px; z-index: 3; background: rgba(149,0,0,.92); }
#quick .bot_btn > a {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	height: 80px; transition: all .5s; text-decoration: none;
}
#quick .bot_btn:hover > a { background: #7a0000; }
#quick .quick_top {
	display: flex; align-items: center; justify-content: center; width: 100%; height: 80px;
	border-radius: 8px; background: #fff; transition: all .3s; color: #950000; font-size: 23px;
	text-decoration: none;
}
#quick .quick_top.on { box-shadow: 1px 3px 19px -4px rgba(149,0,0,0.5); }

/* ---------- 개인정보 동의 모달 ---------- */
.modal-overlay {
	position: fixed; top: 0; left: 0; width: 100%; height: 100%;
	background-color: rgba(0,0,0,0.6); display: none; justify-content: center; align-items: center;
	z-index: 10000;
}
.modal-overlay .modal-content {
	background-color: #fff; color: #000; padding: 28px 30px; border-radius: 10px;
	width: 90%; max-width: 620px; position: relative; box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.modal-overlay .modal-close {
	position: absolute; top: 12px; right: 16px; font-size: 25px; background: none; border: none; cursor: pointer; line-height: 1; color: #333;
}
.modal-overlay .modal-content h3 { margin: 0 0 14px; font-size: 18px; padding-bottom: 12px; border-bottom: 2px solid #950000; }
.modal-overlay .modal-content p { font-size: 14px; line-height: 1.6; margin: 0; }
.modal-overlay .modal-content .cb-privacy-text {
	font-size: 13px; line-height: 1.7; color: #444;
	max-height: 60vh; overflow-y: auto; white-space: normal; word-break: keep-all;
}

/* 하단 고정바가 콘텐츠/푸터를 가리지 않도록 여백 확보 */
#footer { padding-bottom: 160px; }

/* ---------- 반응형 ---------- */
/* 상담바(상담하기 버튼)와 겹치는 구간: 퀵메뉴를 상담바 위로 올림 (리움 스타일) */
/* 1줄 상담바(넓은편): 살짝만 위로 */
@media (min-width: 1177px) and (max-width: 1520px) {
	#quick { top: auto; bottom: 120px; transform: none; }
}
/* 2~3줄로 접히는 상담바(좁은편): 더 위로 */
@media (min-width: 769px) and (max-width: 1176px) {
	#quick { top: auto; bottom: 205px; right: 20px; transform: none; }
}
@media (max-width: 1024px) {
	#quick { right: 20px; }
}
@media (max-width: 768px) {
	.consult-box { height: auto; padding-bottom: 0; }
	.consult-box .consult-inner {
		width: 100%; flex-wrap: wrap; justify-content: flex-start;
		padding: 18px 18px 22px; position: relative;
	}
	.consult-box .consult-title { width: 100%; font-size: 20px; margin-bottom: 6px; }
	.consult-box .consult-inner label { padding: 0; }
	.consult-box .consult-inner input[type="text"] { width: calc(100% - 60px); line-height: 40px; height: 40px; }
	.consult-box .consult-inner .agree { width: 100%; justify-content: flex-start; margin-top: 8px; }
	.consult-box .consult-btn {
		position: absolute; bottom: 14px; right: 16px; width: auto; height: auto;
		align-self: auto; min-width: 0; font-size: 15px; padding: 8px 16px; margin: 0; z-index: 2;
	}
	.consult-box .consult-btn i { font-size: 17px; }

	#quick { width: 60px; right: 12px; top: auto; bottom: 235px; transform: none; }
	#quick .list .box { height: 60px; }
	#quick .bot_btn > a { height: 60px; }
	#quick .quick_top { height: 60px; }
	#quick .list.open .top { transform: translateY(-60px); }

	#footer { padding-bottom: 230px; }
}
