/* ========================================
   [Common] START
   ======================================== */

/* ========================================
   [Pill-cta] pill + icon circle CTA START
   ======================================== */

.pill-cta {
	position: relative;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 216px;
	height: 54px;
	padding: 0 12px 0 24px;
	border: 1px solid var(--point);
	border-radius: 40px;
	/* background: var(--sub-color); */
	color: #232220;
	text-decoration: none;
	overflow: hidden;
	transition:
		border-color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.pill-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	border-radius: inherit;
	background: linear-gradient(120deg, rgba(255, 255, 255, 0.1) 0%, transparent 55%);
	opacity: 0;
	transition: opacity 0.45s ease;
	pointer-events: none;
}

.pill-cta__text {
	position: relative;
	z-index: 1;
	color: inherit;
}

.pill-cta__icon {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--point);
	transition:
		transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
		background-color 0.4s ease,
		box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.pill-cta__icon img {
	display: block;
	width: 18px;
	height: 18px;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
	.pill-cta:hover {
		border-color: rgba(255, 252, 243, 0.38);
		box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
		transform: translateY(-1px);
	}

	.pill-cta:hover::before {
		opacity: 1;
	}

	.pill-cta:hover .pill-cta__icon {
		transform: scale(1.05);
		box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
	}

	.pill-cta:hover .pill-cta__icon img {
		transform: rotate(90deg);
	}
}

.pill-cta:focus-visible {
	outline: 2px solid rgba(255, 252, 243, 0.55);
	outline-offset: 3px;
}

/* --- max-width: 640px --- */
@media screen and (max-width: 640px) {
	.pill-cta {
		width: 200px;
		height: 50px;
		padding-left: 20px;
	}
}

/* ========================================
   [Pill-cta] END
   ======================================== */

/* ========================================
   [Ba-join-modal] 임상증례 간편 로그인 모달 START
   ======================================== */

.before-after-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.55);
}

.before-after-modal[hidden] {
	display: none;
}

.before-after-modal__box {
	width: 100%;
	max-width: 420px;
	overflow: hidden;
	background: var(--bg-color);
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.before-after-modal__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 20px 24px;
	border-bottom: 1px solid var(--gray-200);
}

.before-after-modal__title {
	margin: 0 0 4px;
	color: var(--main-color);
}

.before-after-modal__desc {
	margin: 0;
	color: var(--gray-500);
}

.before-after-modal__close {
	position: relative;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border: none;
	background: transparent;
	cursor: pointer;
}

.before-after-modal__close::before,
.before-after-modal__close::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 16px;
	height: 2px;
	background: var(--gray-700);
	transform-origin: center;
}

.before-after-modal__close::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.before-after-modal__close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.before-after-modal__body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 20px 24px;
}

.before-after-modal__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.before-after-modal__label {
	color: var(--gray-500);
}

.before-after-modal__field input {
	width: 100%;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--gray-200);
	border-radius: 8px;
	font: inherit;
	color: var(--main-color);
	background: var(--gray-100);
}

.before-after-modal__notice {
	margin: 0;
	padding: 10px 14px;
	color: var(--gray-500);
	background: var(--gray-100);
	border-radius: 8px;
}

.before-after-modal__foot {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 10px;
	padding: 16px 24px;
	border-top: 1px solid var(--gray-200);
}

.before-after-modal__cancel,
.before-after-modal__submit {
	height: 44px;
	border: none;
	border-radius: 8px;
	font: inherit;
	cursor: pointer;
}

.before-after-modal__cancel {
	color: var(--gray-700);
	background: var(--gray-100);
}

.before-after-modal__submit {
	color: var(--white);
	background: var(--sub-color);
}

/* ========================================
   [Ba-join-modal] END
   ======================================== */

/* ========================================
   [Common] END
   ======================================== */
