/* pc에서도 모바일 비율인 화면들 */

/* =========================================================================
   login
  ========================================================================= */

:root {
	--max-w: 768px;
}

.section-login, .section-register, .section-result {
	display: flex;
	flex-direction: column;
	gap: calc(var(--spacing) * 25);
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 0 var(--spacing-3) calc(var(--spacing-6) * 5);
}

.logo-box {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: var(--spacing-7) 0 var(--spacing-9);
}

.login-form-box {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-7);
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-5);
}

.login-option-wrapper {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: var(--spacing-7);
	width: 100%;
}

.login-option-box {
	display: flex;
	align-items: center;
	gap: calc(var(--spacing) * 5);
}

.login-option-button {
	font-size: var(--text-body-md);
	font-weight: 400;
	line-height: 1.4285; /* 20px */
}

.circle-3 {
	width: 3px;
	height: 3px;
	border-radius: var(--radius-6);
	background: var(--gray-300);
}

.social-login-box {
	display: flex;
	gap: var(--spacing-7);
}

.login-button {
	display: flex;
	background: transparent;
}

.login-button svg {
	width: 45px;
	height: 45px;
}

/* google icon button */
.login-button.google-login-button .google-login-button-stroke {
	stroke: var(--color-stroke);
}


footer {
	display: none;
}


/* =========================================================================
   register terms
   ========================================================================= */
.section-register {
	gap: var(--spacing-7);
	padding: var(--spacing-7) var(--spacing-3) calc(var(--spacing-6) * 5);
}

/* checkbox */
.register-terms-checkbox {
	width: 100%;
	padding: 13px 15px 11px;
}

.register-terms-checkbox.check-all {
	border-radius: var(--radius-3);
	border: 1px solid var(--color-stroke);
}

.register-terms-checkbox .checkmark {
	margin-bottom: 1px;
}

.register-terms-checkbox .label-text {
	font-size: var(--text-body-lg);
	line-height: 1.3333;
	color: var(--text-secondary);
}

.register-terms-checkbox.check-all .label-text {
	font-size: var(--text-heading-xs);
	font-weight: 600;
	color: var(--text-primary);
}

.register-terms-box .custom-checkbox {
	gap: 15px;
}

.label-essential {
	font-size: inherit;
	line-height: inherit;
	color: var(--primary);
}

.label-choice {
	font-size: inherit;
	line-height: inherit;
	color: var(--gray-400);
}


/* 이용약관 내용 스타일 */
.terms-content {
	max-height: 200px;
	overflow-y: auto;
	font-size: var(--text-body-sm);
	line-height: 1.6;
	color: var(--text-secondary);
	white-space: pre-wrap;
	word-wrap: break-word;
}

/* =========================================================================
   register form
   ========================================================================= */
.section-register.register-form {
	padding-bottom: var(--spacing-7);
}

.register-form-box {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-7);
}

.required {
	color: var(--red-text);
	margin-left: 2px;
}

.input-with-button-box {
	display: flex;
	gap: 8px;
	width: 100%;
}
.input-with-button-box .form-item {
	width: 100%;
}

#recommenderSearchResult {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-2);
	max-height: 150px;
	overflow-y: auto;
	-ms-overflow-style: none;  /* IE and Edge */
	scrollbar-width: none;  /* Firefox */
}
#recommenderSearchResult::-webkit-scrollbar {
	display: none;
}
#recommenderSearchResult:has(:nth-child(1)) {
	padding-top: 17px;
	border-top: 1px solid var(--color-stroke);
}
.recommender-result-row {
	display: flex;
	justify-content: space-between;
}
.recommender-result-info {
	display: flex;
	flex-direction: column;
	gap: var(--spacing);
	margin-bottom: 6px;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s;
}

.recommender-result-info.selected {
	border-color: var(--primary);
}
.recommender-result-info .name {
	font-size: var(--text-body-lg);  /* 16px */
	font-weight: 700;
	line-height: 1.5;  /* 24px */
	color: var(--primary);
}
.recommender-result-info .phone {
	font-size: var(--text-body-sm);  /* 12px */
	line-height: 1.3333;  /* 16px */
	color: var(--text-secondary);
}


.section-register.go-login {
	gap: 56px;
}

/* =========================================================================
   result
   ========================================================================= */
.section-result {
	justify-content: center;
	align-items: center;
	gap: var(--spacing-7);
	min-height: calc(100vh - var(--header-h) - var(--tab-bar-h));
	padding: var(--spacing-7) var(--spacing-3);
}
.section-result .page-title-box {
	align-items: center;
	gap: var(--spacing-5);
}

.complete-icon-box {
	display: flex;
	justify-content: center;
	align-items: center;
	width: fit-content;
	height: fit-content;
	padding: 7.27px;
	border-radius: var(--radius-6);
	background: var(--blue-200);
}
.complete-icon-inner {
	display: flex;
	justify-content: center;
	align-items: center;
	width: fit-content;
	height: fit-content;
	padding: 10.18px;
	border-radius: var(--radius-6);
	background: var(--primary);
}
.complete-icon-box svg {
	width: 45.09px;
	height: 45.09px;
}
.complete-icon-box path {
	stroke: var(--white);
}

@media (max-width: 1440px) {
	:root {
		--header-h: 48px; /* titleOnly height */
	}

	main {
		min-height: 100vh;
		padding: var(--header-h) var(--spacing-5) var(--tab-bar-h);
	}
}

@media (max-width: 767px) {
	:root {
		--header-h: 64px;
	}
}
