@charset "UTF-8";

/* ==================================================== */
/* 아이백의원 - 상담·예약(상담신청) 페이지                  */
/* Figma 22-12965 / 브라운·베이지 테마                     */
/* 헤더·푸터·퀵메뉴는 Elementor 전역, 여기선 본문만          */
/* 폼은 랜딩 CF7(id=36360ba) 재사용 → consult 테마로 재정의  */
/* ==================================================== */

.ibaek-consult {
	font-family: 'Pretendard', sans-serif;
	color: var(--black-02);
	background: var(--white);
	overflow-x: hidden;
}
.ibaek-consult * { box-sizing: border-box; }

/* ==================== */
/* Hero                 */
/* ==================== */
.consult-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 688px;
	padding: 200px 40px;
	overflow: hidden;
	text-align: center;
}
.consult-hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 0;
}
.consult-hero-inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	color: var(--brown-02);
}
.consult-hero-en {
	font-family: 'Montserrat', serif;
	font-size: 24px;
	letter-spacing: 0.02em;
}
.consult-hero-title {
	font-size: 80px;
	font-weight: 700;
	line-height: 1;
}
.consult-hero-sub {
	margin-top: 16px;
	font-size: 28px;
	font-weight: 400;
}

/* ==================== */
/* Section wrapper      */
/* ==================== */
.consult-section {
	max-width: 1400px;
	margin: 0 auto;
	padding: 120px 40px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 60px;
}

.consult-head {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 36px;
	max-width: 782px;
	width: 100%;
}
.consult-head-en {
	font-family: 'Montserrat', serif;
	font-size: 24px;
	color: var(--brown-01);
}
.consult-head-title {
	font-size: 56px;
	font-weight: 500;
	color: var(--black-02);
	line-height: 1;
}
.consult-head-desc {
	margin-top: 16px;   /* 시안: 제목-설명 간격 52 (제목 위 36보다 넓게) */
	font-size: 20px;
	line-height: 1.6;
	color: var(--black-02);
}

/* 상단/하단 그라데이션 구분선 */
.consult-divider {
	width: 100%;
	max-width: 782px;
	height: 1px;
	background: linear-gradient(
		to right,
		rgba(170,147,113,0) 0%,
		rgba(170,147,113,0.8) 50%,
		rgba(170,147,113,0) 100%
	);
}

/* ==================== */
/* Form (CF7 재사용)     */
/* ==================== */
.consult-form {
	width: 100%;
	max-width: 782px;
}
.consult-form .wpcf7,
.consult-form .wpcf7-form { width: 100%; }
.consult-form .wpcf7-form p { margin: 0 !important; }

/* 한 줄 = 라벨 + 입력 */
.consult-form .cf-row {
	display: flex;
	align-items: stretch;   /* 라벨/입력 래퍼 높이 통일 → 세로 중앙정렬 기준 확보 */
	gap: 32px;
	margin-bottom: 40px !important;
}
/* CF7 이 필드 태그를 <p>로 감싸도 줄바꿈 안 되도록 + 입력 폭 차지 + 세로 중앙 */
.consult-form .cf-row > p {
	margin: 0 !important;
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
}
.consult-form .cf-row br { display: none; }
/* CF7 컨트롤 래퍼가 입력 폭을 차지 */
.consult-form .cf-row .wpcf7-form-control-wrap {
	flex: 1 1 auto;
	display: block;
	width: 100%;
}
.consult-form .cf-label {
	/* 시안: 라벨 150 + 간격 32 + 입력 600 = 782 */
	flex: 0 0 150px;
	display: flex;
	align-items: center;   /* input(60px) 높이 기준 세로 중앙 */
	min-height: 60px;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--black-02);
	white-space: nowrap;
}
.consult-form .cf-label .req { color: var(--brown-01); margin-left: 8px; }
.consult-form .cf-label .opt { color: var(--brown-01); font-size: 16px; margin-left: 8px; }

/* 입력/선택 공통: 브라운 보더 박스 */
.consult-form input.lp-input,
.consult-form input[type="text"],
.consult-form input[type="tel"],
.consult-form input[type="number"],
.consult-form select.lp-select,
.consult-form select {
	flex: 1 1 auto;
	width: 100%;
	height: 60px;
	background: var(--white) !important;
	border: 1px solid var(--brown-01) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 20px !important;
	font-family: 'Pretendard', sans-serif;
	font-size: 16px !important;
	font-weight: 500;
	color: var(--black-02) !important;
	outline: none !important;
}
.consult-form input::placeholder { color: var(--gray-01); font-weight: 500; }

/* select 화살표 */
.consult-form select {
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	padding-right: 48px !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23443a35' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 16px center !important;
}

/* 동의 체크박스 영역 — 시안: 제출버튼 위 중앙 배치(블록 중앙, 항목은 좌측 정렬) */
.consult-form .cf-agree {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	width: max-content;
	max-width: 100%;
	margin: 0 auto 40px !important;
}
/* 각 동의 항목: 체크박스 + 텍스트 한 줄 (시안 gap 16px) */
.consult-form .cf-agree-item {
	display: flex;
	align-items: center;
	gap: 16px;
	cursor: pointer;
	margin: 0;
}
/* CF7 가 acceptance 를 감싸는 span 들을 인라인 정렬 */
.consult-form .cf-agree-item .wpcf7-form-control-wrap,
.consult-form .cf-agree-item .wpcf7-acceptance,
.consult-form .cf-agree-item .wpcf7-list-item {
	display: inline-flex;
	align-items: center;
	margin: 0 !important;
}
.consult-form .cf-agree-item .wpcf7-list-item label { display: inline-flex; align-items: center; margin: 0; }
.consult-form .cf-agree-text {
	font-size: 16px;
	font-weight: 400;
	color: var(--black-02);
	line-height: 1.4;
}
.consult-form .cf-agree-text a {
	color: var(--gray-01);
	text-decoration: underline;
	text-underline-offset: 3px;
	margin-left: 6px;
}
.consult-form .cf-agree input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	border: 1px solid #c7c7c7;
	background: var(--white);
	border-radius: 0;
	cursor: pointer;
	position: relative;
	vertical-align: middle;
}
.consult-form .cf-agree input[type="checkbox"]:checked {
	background: var(--brown-01);
	border-color: var(--brown-01);
}
.consult-form .cf-agree input[type="checkbox"]:checked::after {
	content: '';
	position: absolute;
	left: 6px; top: 2px;
	width: 5px; height: 10px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(45deg);
}

/* 제출 버튼 */
.consult-form input.lp-submit,
.consult-form input[type="submit"],
.consult-form .wpcf7-submit {
	display: block;
	margin: 0 auto;
	width: 350px;
	max-width: 100%;
	height: 54px;
	background: var(--brown-01) !important;
	border: none !important;
	border-radius: 50px !important;
	color: var(--beige-01) !important;
	font-family: 'Pretendard', sans-serif;
	font-size: 18px !important;
	font-weight: 700;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background 0.3s ease;
}
.consult-form input[type="submit"]:hover,
.consult-form .wpcf7-submit:hover { background: var(--brown-02) !important; }

/* 폼 하단 안내문구 */
.consult-form .cf-note {
	margin: 40px 0 0 !important;
	text-align: center;
	font-size: 16px;
	line-height: 1.6;
	letter-spacing: -0.02em;
	color: var(--gray-01);
}

/* CF7 유효성/응답 메시지 */
.consult-form .wpcf7-not-valid-tip {
	color: #ff5757;
	font-size: 13px;
	margin-top: 6px;
}
.consult-form .wpcf7-response-output {
	margin: 24px auto 0 !important;
	padding: 12px 16px !important;
	border-radius: 8px;
	font-size: 14px;
	text-align: center;
	color: var(--black-02);
}

/* ==================== */
/* 예약 상담 바로가기     */
/* ==================== */
.consult-contact {
	width: 100%;
	max-width: 782px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
}
.consult-contact-title {
	font-size: 32px;
	font-weight: 700;
	color: var(--brown-01);
	text-align: center;
}
.consult-contact-cards {
	display: flex;
	gap: 44px;
	flex-wrap: wrap;
	justify-content: center;
}
.cc-card {
	width: 231px;
	padding: 40px;
	background: var(--white);
	border: 1px solid var(--gray-01);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
	text-align: center;
	text-decoration: none;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.cc-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 28px rgba(68,58,53,0.12);
	border-color: var(--brown-01);
}
.cc-card--naver { border: 2px solid var(--brown-01); }
.cc-icon { width: 60px; height: 60px; object-fit: contain; }
.cc-text { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cc-label {
	font-size: 24px;
	font-weight: 500;
	color: var(--gray-01);
	line-height: 1;
}
.cc-label--brown { font-weight: 700; color: var(--brown-01); }
.cc-desc {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--gray-01);
}
.cc-desc--dark { color: var(--black-02); }

/* ==================== */
/* CTA 배너              */
/* ==================== */
.consult-cta {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 607px;
	padding: 120px 40px;
	overflow: hidden;
	text-align: center;
}
.consult-cta-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 0;
}
.consult-cta-inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 52px;
	color: var(--brown-02);
}
.consult-cta-title {
	font-size: 56px;
	font-weight: 700;
	line-height: 1.4;
}
.consult-cta-sub {
	margin-top: -32px;
	font-size: 20px;
	font-weight: 400;
}
.consult-cta-buttons {
	display: flex;
	gap: 16px;
}
.consult-cta-buttons .btn-pill { width: 195px; }

/* ==================================================== */
/* Responsive                                            */
/* ==================================================== */
@media (max-width: 1024px) {
	.consult-hero-title { font-size: 60px; }
	.consult-head-title { font-size: 44px; }
	.consult-cta-title { font-size: 44px; }
}

@media (max-width: 767px) {
	/* 좁은 폭에서 어절 중간 개행 방지 */
	.consult-head-desc,
	.consult-form .cf-note,
	.cc-desc,
	.consult-cta-title { word-break: keep-all; }

	/* hero: 시안(22-12839) — 텍스트 상단 + 모바일 전용 이미지 */
	.consult-hero {
		min-height: 557px;
		padding: 110px 40px 80px;
		justify-content: flex-start;
	}
	/* 모바일 전용 이미지 (인라인 style 덮어쓰기 위해 !important) */
	.consult-hero-bg { background-image: url('/iback/m/site/assets/imgs/sub/consult/hero_mo.webp') !important; }
	.consult-hero-en { font-size: 14px; }
	.consult-hero-title { font-size: 40px; }
	.consult-hero-sub { font-size: 16px; margin-top: 8px; }

	.consult-section { padding: 60px 40px; gap: 40px; }
	.consult-head { gap: 20px; }
	.consult-head-en { font-size: 14px; }
	.consult-head-title { font-size: 28px; }
	.consult-head-desc { font-size: 15px; margin-top: 12px; }

	/* 폼: 라벨 위 / 입력 아래로 세로 배치 (시안: 라벨-입력 20, 행 간 32)
	   CF7이 라벨+입력을 같은 <p>로 감싸므로 <p>도 세로 전환 */
	.consult-form .cf-row {
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
		margin-bottom: 32px !important;
	}
	.consult-form .cf-row > p {
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
	}
	.consult-form .cf-label { flex: none; min-height: 0; font-size: 18px; }
	.consult-form input.lp-input,
	.consult-form input[type="text"],
	.consult-form input[type="tel"],
	.consult-form input[type="number"],
	.consult-form select { height: 54px; font-size: 16px !important; }
	.consult-form input[type="submit"],
	.consult-form .wpcf7-submit { width: 100%; }
	.consult-form .cf-agree { width: 100%; margin: 0 0 40px !important; }
	.consult-form .cf-note { font-size: 15px; }

	/* 예약 상담 바로가기 : 시안 — PC와 동일한 세로형 카드(231px)를 중앙 적층 */
	.consult-contact { gap: 32px; }
	.consult-contact-title { font-size: 24px; }
	.consult-contact-cards { flex-direction: column; align-items: center; gap: 20px; }
	.cc-card { width: 231px; padding: 40px 20px; gap: 40px; }
	.cc-desc { font-size: 14px; }

	.consult-cta { min-height: 414px; padding: 64px 40px; }
	.consult-cta-inner { gap: 40px; }
	.consult-cta-title { font-size: 28px; }
	.consult-cta-sub { font-size: 15px; margin-top: -24px; }
	.consult-cta-buttons { flex-direction: column; width: 240px; gap: 12px; }
	.consult-cta-buttons .btn-pill { width: 100%; }
}
