@charset "utf-8";

/* ============================== 토큰 */
:root {
	--of-navy: #123a63;
	--of-navy-deep: #0f2d4d;
	--of-text: #1f2937;
	--of-muted: #6b7280;
	--of-light: #9aa4b2;
	--of-line: #e5e9ef;
	--of-bg: #f5f7fa;
	--of-max: 1080px;
	--of-pad: 24px;
}

.content-wrapper {
	margin-bottom: 0 !important;
}

/* ============================== 공통 (주문서 / 완료) */
.of-page,
.dn-page {
	padding-bottom: 100px;
	font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
	color: var(--of-text);
	background: var(--of-bg);
}

.of-head,
.dn-head {
	padding: 34px 0;
	text-align: center;
	background: #ffffff;
}

.of-head__title,
.dn-head__title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #111827;
}

.of-steps,
.dn-steps {
	padding: 14px 0;
	background: #ffffff;
	border-top: 1px solid var(--of-line);
}

.of-steps__list,
.dn-steps__list {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 0;
	padding: 0 var(--of-pad);
	list-style: none;
	flex-wrap: wrap;
}

.of-step,
.dn-step {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 12px;
	font-weight: 500;
	color: var(--of-light);
}

.of-step__num,
.dn-step__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 21px;
	height: 21px;
	font-size: 10px;
	font-weight: 700;
	color: #ffffff;
	background: #c9d1db;
	border-radius: 50%;
}

.of-step.is-on,
.dn-step.is-on {
	font-weight: 700;
	color: var(--of-navy);
}

.of-step.is-on .of-step__num,
.dn-step.is-on .dn-step__num {
	background: var(--of-navy);
}

.of-step__sep,
.dn-step__sep {
	font-size: 13px;
	color: #cbd3dd;
}

/* ============================== 레이아웃 */
.of-inner {
	max-width: var(--of-max);
	margin: 0 auto;
	padding: 32px var(--of-pad) 0;
}

.of-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 260px;
	gap: 20px;
	align-items: start;
}

.of-card,
.of-summary {
	background: #ffffff;
	border: 1px solid var(--of-line);
	border-radius: 10px;
}

/* ============================== 주문 장비 */
.of-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 22px;
	border-bottom: 1px solid var(--of-line);
}

.of-card__title {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--of-navy);
}

.of-card__count {
	font-size: 11px;
	font-weight: 500;
	color: var(--of-muted);
}

.of-toggle {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 12px;
	font-size: 11px;
	color: var(--of-muted);
	background: #ffffff;
	border: 1px solid #d7dfe9;
	border-radius: 6px;
	cursor: pointer;
}

.of-toggle svg {
	transition: transform 0.2s ease;
}

.of-toggle.is-folded svg {
	transform: rotate(180deg);
}

.of-card__body {
	padding: 0 22px;
}

.of-card__body[hidden] {
	display: none;
}

.of-item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 18px 0;
	border-bottom: 1px solid var(--of-line);
}

.of-item[hidden] {
	display: none;
}

.of-item__thumb {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 66px;
	height: 62px;
	background: #f7f9fc;
	border-radius: 8px;
	overflow: hidden;
}

.of-item__thumb img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.of-item__info {
	flex: 1;
	min-width: 0;
}

.of-item__name {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--of-muted);
	text-decoration: none !important;
	word-break: keep-all;
}

.of-item__price {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 700;
	color: #111827;
}

.of-item__price.is-quote {
	color: var(--of-navy);
}

.of-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid #d7dfe9;
	border-radius: 6px;
	overflow: hidden;
}

.of-qty button {
	width: 26px;
	height: 26px;
	font-size: 13px;
	line-height: 1;
	color: var(--of-muted);
	background: #ffffff;
	border: 0;
	cursor: pointer;
}

.of-qty button:hover {
	color: var(--of-navy);
	background: #f2f5f9;
}

.of-qty input {
	width: 34px;
	height: 26px;
	padding: 0;
	font-size: 12px;
	text-align: center;
	border: 0;
	border-left: 1px solid #eef1f5;
	border-right: 1px solid #eef1f5;
	-moz-appearance: textfield;
}

.of-qty input::-webkit-outer-spin-button,
.of-qty input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.of-more {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: calc(100% - 44px);
	margin: 16px 22px 0;
	padding: 12px;
	font-size: 13px;
	color: var(--of-muted);
	background: #ffffff;
	border: 1px solid #d7dfe9;
	border-radius: 8px;
	cursor: pointer;
}

.of-more:hover {
	color: var(--of-navy);
	border-color: var(--of-navy);
}

/* ============================== 견적신청 폼 */
.of-form {
	padding: 34px 22px 30px;
}

.of-form__title {
	margin: 0 0 26px;
	font-size: 16px;
	font-weight: 700;
	color: #111827;
}

.of-form__sub {
	margin: 0 0 16px;
	padding-bottom: 12px;
	font-size: 13px;
	font-weight: 700;
	color: var(--of-text);
	border-bottom: 1px solid var(--of-line);
}

.of-form__sub + .of-grid {
	margin-bottom: 30px;
}

.of-req {
	color: #d94a4a;
}

.of-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 22px;
}

.of-field--full {
	grid-column: 1 / -1;
}

.of-field label {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 500;
	color: var(--of-muted);
}

.of-field input,
.of-field select,
.of-field textarea {
	width: 100%;
	padding: 12px 14px;
	font-size: 13px;
	color: var(--of-text);
	background: #ffffff;
	border: 1px solid #dfe4ec;
	border-radius: 6px;
	outline: none;
	transition: border-color 0.2s ease;
}

.of-field select {
	appearance: none;
	-webkit-appearance: none;
	background: #ffffff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa4b2' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
}

.of-field textarea {
	resize: vertical;
	line-height: 1.7;
}

.of-field input::placeholder,
.of-field textarea::placeholder {
	color: #c3cad4;
}

.of-field input:focus,
.of-field select:focus,
.of-field textarea:focus {
	border-color: var(--of-navy);
}

.of-field.is-error input,
.of-field.is-error select {
	border-color: #d94a4a;
}

/* ============================== 주문 요약 */
.of-summary {
	position: sticky;
	top: 24px;
	overflow: hidden;
}

.of-summary__title {
	margin: 0;
	padding: 14px 18px;
	font-size: 14px;
	font-weight: 700;
	color: #ffffff;
	background: var(--of-navy);
}

.of-summary__body {
	padding: 18px;
}

.of-summary__rows div,
.of-summary__extra div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.of-summary__rows dt,
.of-summary__extra dt {
	margin: 0;
	font-size: 12px;
	font-weight: 500;
	color: var(--of-muted);
}

.of-summary__rows dd {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	color: var(--of-text);
}

.of-summary__extra dd {
	margin: 0;
	font-size: 12px;
	color: var(--of-light);
}

.of-summary__total {
	margin: 18px 0 14px;
	padding-top: 16px;
	border-top: 1px solid var(--of-line);
	text-align: right;
}

.of-summary__total-label {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 600;
	color: var(--of-text);
	text-align: left;
}

.of-summary__total-value {
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #111827;
}

.of-summary__notice {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	margin: 0 0 18px;
	padding: 12px 13px;
	font-size: 11px;
	line-height: 1.6;
	color: #3f5a7a;
	background: #eef4fb;
	border-radius: 8px;
}

.of-summary__notice svg {
	flex: none;
	margin-top: 1px;
	color: var(--of-navy);
}

.of-summary__extra {
	margin: 0 0 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--of-line);
}

.of-agree {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 16px;
	font-size: 11px;
	line-height: 1.5;
	color: var(--of-muted);
	cursor: pointer;
}

.of-agree input {
	flex: none;
	width: 15px;
	height: 15px;
	margin: 0;
	accent-color: var(--of-navy);
	cursor: pointer;
}

.of-agree.is-error span {
	color: #d94a4a;
}

/* 버튼 */
.of-btn {
	display: block;
	width: 100%;
	padding: 13px 16px;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	border-radius: 8px;
	cursor: pointer;
	text-decoration: none !important;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.of-btn--primary {
	margin-bottom: 9px;
	color: #ffffff;
	background: var(--of-navy);
	border: 1px solid var(--of-navy);
}

.of-btn--primary:hover {
	background: var(--of-navy-deep);
}

.of-btn--primary:disabled {
	background: #b6bec9;
	border-color: #b6bec9;
	cursor: default;
}

.of-btn--line {
	color: var(--of-navy);
	background: #ffffff;
	border: 1px solid #d7dfe9;
}

.of-btn--line:hover {
	border-color: var(--of-navy);
}

/* ============================== 견적 요청 완료 */
.dn-inner {
	max-width: 520px;
	margin: 0 auto;
	padding: 56px var(--of-pad) 0;
	text-align: center;
}

.dn-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 26px;
	color: var(--of-navy);
	border: 2px solid var(--of-navy);
	border-radius: 50%;
}

.dn-title {
	margin: 0 0 16px;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #111827;
}

.dn-desc {
	margin: 0 0 36px;
	font-size: 13px;
	line-height: 1.9;
	color: var(--of-muted);
}

.dn-receipt {
	padding: 26px 28px;
	margin-bottom: 28px;
	text-align: left;
	background: #ffffff;
	border: 1px solid var(--of-line);
	border-radius: 10px;
}

.dn-receipt__label {
	margin: 0 0 10px;
	font-size: 12px;
	color: var(--of-muted);
}

.dn-receipt__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 20px;
	margin-bottom: 20px;
	border-bottom: 1px dashed #dfe4ec;
}

.dn-receipt__no {
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--of-navy);
	word-break: break-all;
}

.dn-copy {
	flex: none;
	padding: 9px 16px;
	font-size: 12px;
	font-weight: 600;
	color: var(--of-text);
	background: #ffffff;
	border: 1px solid #d7dfe9;
	border-radius: 6px;
	cursor: pointer;
}

.dn-copy:hover {
	border-color: var(--of-navy);
	color: var(--of-navy);
}

.dn-receipt__help {
	margin: 0;
	font-size: 12px;
	line-height: 1.8;
	color: var(--of-muted);
}

.dn-actions .of-btn {
	margin-bottom: 10px;
}

.dn-tel {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 18px;
	padding: 16px;
	font-size: 13px;
	color: var(--of-muted);
	background: #eef1f5;
	border-radius: 8px;
}

.dn-tel strong {
	font-size: 15px;
	font-weight: 800;
	color: var(--of-navy);
}

/* ============================== 반응형 */
@media (max-width: 900px) {
	:root {
		--of-pad: 16px;
	}

	.of-body {
		grid-template-columns: 1fr;
	}

	.of-summary {
		position: static;
	}

	.of-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.of-form {
		padding: 26px 16px 24px;
	}

	.of-card__head,
	.of-card__body {
		padding-left: 16px;
		padding-right: 16px;
	}

	.of-more {
		width: calc(100% - 32px);
		margin-left: 16px;
		margin-right: 16px;
	}

	.dn-inner {
		padding-top: 40px;
	}

	.dn-receipt__no {
		font-size: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.of-btn,
	.of-toggle svg,
	.of-field input,
	.of-field select,
	.of-field textarea {
		transition: none;
	}
}
