/* ============================================================
   maintenance.css — 수정요청 목록 / 상세 / 글쓰기
   Figma 298:248 · 318:440 · 320:827
   ============================================================ */

.mq {
	position: relative;
	overflow: hidden;
	padding: calc(var(--header-h) + 20px) var(--gutter) 120px;
}
.mq > .inner {
	position: relative;
	z-index: 1;
	max-width: 1280px; /* 시안 x320~1600 */
	margin: 0 auto;
}

/* 시안 367:295 — 오른쪽 위 파란 둥근 빛, 천천히 떠다님 */
.mq-glow {
	position: absolute;
	right: -4vw;
	top: -15vw;
	z-index: 0;
	width: min(68vw, 1040px);
	pointer-events: none;
	animation: mqGlowFloat 10s ease-in-out infinite alternate;
	will-change: transform;
}
.mq-glow img {
	display: block;
	width: 100%;
	height: auto;
}
@keyframes mqGlowFloat {
	from { transform: translate3d(0, 0, 0) rotate(0deg); }
	to   { transform: translate3d(-28px, 32px, 0) rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) {
	.mq-glow { animation: none; }
}
@media (max-width: 900px) {
	.mq-glow {
		right: -18vw;
		top: -4vw;
		width: 90vw;
		opacity: .85;
	}
}

/* ---------- 공통 머리말 ---------- */
.mq-head { text-align: center; }
.mq-head__title {
	margin: 0;
	font-size: clamp(30px, 2.917vw, 42px); /* 시안 42 */
	font-weight: 800;
	line-height: 1.6;
	color: #000;
}
.mq-head__lead {
	margin: 12px 0 0;
	font-size: clamp(16px, 1.667vw, 24px); /* 시안 24 */
	font-weight: 400;
	line-height: 1.4;
	color: #000;
}
.mq-head__bar {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 40px;
	margin-top: 40px;
	text-align: left;
}
.mq-head__notes {
	margin: 0;
	padding: 0 0 0 1.25em;
	text-align: left;
	list-style: disc;
}
.mq-head__notes li {
	font-size: clamp(13px, 1.111vw, 16px);
	font-weight: 500;
	line-height: 1.6;
	color: #000;
}
/* 상세·글쓰기 — 안내문만 왼쪽 정렬 (시안 318:513) */
.mq-view .mq-head__notes,
.mq-write .mq-head__notes {
	margin-top: 52px;
}

/* ---------- 검색 (셀렉트 + 인풋·버튼 일체형) ---------- */
.mq-search {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	align-items: center;
	margin:28px 0 0;
	flex-wrap: wrap;
}
.mq-search__field select {
	height: 50px;
	width: 191px;
	padding: 0 16px;
	border: 1px solid #e1e1e1;
	border-radius: 8px;
	background: var(--c-white, #fff);
	font-family: inherit;
	font-size: 14px;
	color: #000;
	cursor: pointer;
}
.mq-search__field select:focus-visible {
	outline: none;
	border-color: #4a43ee;
	box-shadow: 0 0 0 3px rgba(74, 67, 238, .16);
}
/* 인풋 + 검색버튼 한 덩어리 */
.mq-search__box {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	width: min(443px, 52vw);
	height: 50px;
	padding: 7px 7px 7px 0;
	border: 1px solid #e1e1e1;
	border-radius: 8px;
	background: #fff;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.mq-search__box:focus-within {
	border-color: #4a43ee;
	box-shadow: 0 0 0 3px rgba(74, 67, 238, .16);
}
.mq-search__kw {
	flex: 1 1 auto;
	min-width: 0;
	display: block;
}
.mq-search__kw input { 
	display: block;
	width: 100%;
	height: 36px;
	padding: 0 14px 0 18px;
	border: 0;
	background: transparent; 
	font-family: inherit;
	font-size: 14px;
	color: #000;
}
.mq-search__kw input::placeholder { color: #999; }
.mq-search__kw input:focus { outline: none; }
.mq-search__kw input::-webkit-search-decoration,
.mq-search__kw input::-webkit-search-cancel-button { -webkit-appearance: none; }
.mq-search__btn {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: #4a43ee;
	cursor: pointer;
	transition: background .2s ease;
}
.mq-search__btn img {
	width: 22px;
	height: 22px;
	filter: brightness(0) invert(1);
}
.mq-search__btn:hover { background: #3730d6; }
.mq-search__reset {
	display: flex;
	align-items: center;
	padding: 0 8px;
	color: #666;
	font-size: 14px;
	font-weight: 600;
}
.mq-search__reset:hover { color: #4a43ee; text-decoration: underline; }

.mq-count {
	margin:20px 0 14px;
	font-size: clamp(13px, 1.2vw, 17px);
	font-weight: 600;
	color: #55565f;
}
.mq-count strong { color: #4a43ee; }
.mq-count em { margin-left: 8px; font-style: normal; color: #8a8b96; }

.mq-empty {
	padding: 90px 0;
	text-align: center;
	font-size: clamp(14px, 1.358vw, 19.5px);
	font-weight: 600;
	color: #8a8b96;
}

/* ---------- 목록 (시안 1280×90 카드) ---------- */
.mq-list { margin: 0; padding: 0; list-style: none; }
.mq-row + .mq-row { margin-top: 5px; }
.mq-row__link {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) 100px 120px 200px;
	gap: 12px 20px;
	align-items: center;
	box-sizing: border-box;
	min-height: 90px;
	padding: 16px 24px;
	border: 1px solid #ececec;
	border-radius: 8px;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: blur(20px);
	        backdrop-filter: blur(20px);
	transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.mq-row__link:hover,
.mq-row__link:focus-visible {
	outline: none;
	border-color: var(--c-blue);
	background: #F8F9FF;
	box-shadow: 0 10px 28px rgba(11, 15, 247, .08);
}
.mq-row__no {
	font-family: var(--font-num, Montserrat), sans-serif;
	font-size: clamp(14px, 1.444vw, 16px);
	font-weight: 600;
	color: #000;
	text-align: center;
}
.mq-row__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.mq-row__com {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	font-size: clamp(16px, 1.667vw, 18px); 
	font-weight: 700;
	line-height: 1.6;
	color: #000;
}
.mq-row__com-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.mq-row__title {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: clamp(14px, 1.444vw, 16px);
	font-weight: 500;
	line-height: 1.4;
	color: #333;
}
.mq-re {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 20px;
	padding: 0 8px;
	border-radius: 4px;
	background: #4a43ee;
	color: #fff;
	font-size: 12px;
	font-style: normal;
	font-weight: 700;
	line-height: 1;
}
.mq-row__won {
	font-size: clamp(14px, 1.444vw, 16px);
	font-weight: 700;
	line-height: 1.6;
	color: #000;
	text-align: left;
}
.mq-row__dates {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.mq-row__date {
	display: grid;
	grid-template-columns: 24px auto 1fr;
	gap: 6px;
	align-items: center;
	font-size: 14px;
	line-height: 1.4;
	color: #000;
}
.mq-row__date img { width: 24px; height: 24px; }
.mq-row__date em {
	font-style: normal;
	font-weight: 600;
	white-space: nowrap;
}
.mq-row__date time { font-weight: 400; white-space: nowrap; }

/* 상태 배지 — 시안 110×32 필 */
.mq-state {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	width: 110px;
	height: 32px;
	padding: 0 12px 0 10px;
	border: 1px solid #ccc;
	border-radius: 300px;
	white-space: nowrap;
}
.mq-state__knob {
	position: relative;
	flex: none;
	width: 31px;
	height: 16px;
	border-radius: 300px;
	background: #ccc;
}
.mq-state__knob::after {
	content: "";
	position: absolute;
	left: 3px;
	top: 3px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #fff;
	transition: left .25s cubic-bezier(.2, .8, .25, 1);
}
.mq-state__label {
	font-size: 14px;
	font-weight: 600;
	color: #333;
}
.mq-state--done .mq-state__knob::after { left: 18px; }
.mq-state--ing  { border-color: #4a43ee; }
.mq-state--ing  .mq-state__knob { background: #4a43ee; }
.mq-state--ing  .mq-state__label { color: #000; }
.mq-state--wait { border-color: #b3a0ff; }
.mq-state--wait .mq-state__knob { background: #b3a0ff; }
.mq-state--wait .mq-state__label { color: #000; }

/* ---------- 페이지 (시안 원형 50) ---------- */
.mq-pager {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-top: 50px;
}
.mq-pager a {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: clamp(40px, 5vw, 50px);
	height: auto;
	aspect-ratio: 1;
	padding: 0;
	border: 1px solid #e1e1e1;
	border-radius: 50%;
	background: #fff;
	color: #000;
	font-family: var(--font-num, Montserrat), sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.mq-pager a:hover { border-color: var(--c-blue); color: var(--c-blue); }
.mq-pager .is-current {
	background: #000;
	border-color: #000;
	color: #fff;
}
.mq-pager__edge { color: #555; }

/* ---------- 상세 (시안 318:440) ---------- */
.mq-card {
	margin-top: 24px;
	padding: 26px 40px 30px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: var(--c-white);
}
.mq-card--title {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin-top: 40px;
	padding: 28px 40px 26px; 
	text-align: center;
}
.mq-view__title {
	margin: 0;
	font-size: clamp(16px, 1.389vw, 20px); /* 시안 20 */
	font-weight: 700;
	line-height: 1.6;
	color: #000;
}
.mq-view__com {
	margin: 0;
	font-size: clamp(14px, 1.111vw, 16px); /* 시안 16 */
	font-weight: 600;
	line-height: 1.4;
	color: #000;
}

.mq-card--body { padding: 26px 40px 36px; }
.mq-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 0;
	margin: 0;
	padding: 0;
}
.mq-meta__i {
	display: flex;
	align-items: center;
	gap: 7px;
}
.mq-meta__i + .mq-meta__i:not(.mq-meta__i--end) {
	margin-left: 24px;
	padding-left: 24px;
	border-left: 1px solid #ddd;
}
.mq-meta__i img {
	display: block;
	width: 24px;
	height: 24px;
	flex: none;
}
.mq-meta dt {
	font-size: 14px;
	font-weight: 600;
	color: #000;
}
.mq-meta dd {
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	color: #000;
}
.mq-meta__i--end { margin-left: auto; }

.mq-files {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	margin: 18px 0 0;
	font-size: 14px;
	color: #000;
}
.mq-files img {
	display: block;
	width: 24px;
	height: 24px;
	flex: none;
}
.mq-files em { font-style: normal; font-weight: 600; }
.mq-files__name { font-weight: 400; }

.mq-view__body {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid #e5e5e5;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.7;
	color: #000;
	word-break: break-word;
}

.mq-card--answer {
	border-color: #4a43ee;
	padding: 26px 40px 28px;
}
.mq-answer__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	margin: 0 0 14px;
	padding: 0 20px;
	border-radius: 300px;
	background: #6136d9;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
}
.mq-answer__body {
	padding: 16px 19px;
	border-radius: 4px;
	background: rgba(221, 213, 254, .99);
	color: #6136d9;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	word-break: break-word;
}

/* ---------- 글쓰기 ---------- */
.mq-form__title {
	margin: 56px 0 16px;
	font-size: clamp(14.4px, 1.597vw, 23px);
	font-weight: 800;
	line-height: 1.6;
	color: #0a090b;
}
.mq-card--form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 30px 40px;
	margin-top: 0;
	padding: 40px;
	box-shadow: 0 10px 22px rgba(0, 0, 0, .03), 0 40px 40px rgba(0, 0, 0, .03);
}
.mq-field { grid-column: 1 / -1; }
.mq-field--half { grid-column: auto; }

.mq-label {
	display: block;
	margin-bottom: 11px;
	font-size: clamp(11.5px, 1.278vw, 18.4px);
	font-weight: 600;
	color: #0a090b;
}
.mq-label.is-req { color: #6136d9; }
.mq-label.is-req::after {
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	margin: 0 0 8px 5px;
	border-radius: 50%;
	background: #6136d9;
	vertical-align: middle;
}

.mq-field input[type="text"],
.mq-field input[type="tel"],
.mq-field input[type="password"],
.mq-field textarea,
.mq-field select {
	width: 100%;
	min-height: 50px;
	padding: 13px 16px;
	border: 1px solid #e1e1e1;
	border-radius: 4px;
	background: var(--c-white);
	font-family: inherit;
	font-size: clamp(10.1px, 1.118vw, 16.1px);
	line-height: 1.6;
	color: #0a090b;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.mq-field textarea { min-height: 150px; resize: vertical; }
.mq-field input::placeholder,
.mq-field textarea::placeholder { color: #999; }
.mq-field input:focus-visible,
.mq-field textarea:focus-visible,
.mq-field select:focus-visible {
	outline: none;
	border-color: #6136d9;
	box-shadow: 0 0 0 3px rgba(97, 54, 217, .14);
}
.mq-hint {
	margin: 9px 0 0;
	font-size: clamp(10.1px, 1.118vw, 16.1px);
	font-weight: 400;
	line-height: 1.6;
	color: #666;
}

.mq-email {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 150px;
	gap: 8px;
	align-items: center;
}
.mq-email__at { text-align: center; font-size: clamp(11.5px, 1.278vw, 18.4px); font-weight: 600; }

.mq-file { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.mq-file__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px;
	padding: 0 18px;
	border-radius: 4px;
	background: #0a090b;
	color: var(--c-white);
	font-size: clamp(11.5px, 1.278vw, 18.4px);
	font-weight: 600;
	cursor: pointer;
	transition: background .2s ease;
}
.mq-file__btn:hover { background: #2b2a30; }
.mq-file__btn svg { width: 20px; height: 20px; }
.mq-file__btn input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.mq-file__names { margin: 0; font-size: clamp(10.1px, 1.118vw, 16.1px); color: #666; }

.mq-check {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
	font-size: clamp(10.1px, 1.118vw, 16.1px);
	line-height: 1.6;
	color: #0a090b;
	cursor: pointer;
}
.mq-check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mq-check__box {
	position: relative;
	flex: none;
	width: 26px;
	height: 26px;
	border: 1px solid #d5d5dd;
	border-radius: 4px;
	background: var(--c-white);
	transition: background .2s ease, border-color .2s ease;
}
.mq-check--round .mq-check__box { border-radius: 300px; }
.mq-check__box::after {
	content: "";
	position: absolute;
	left: 8px;
	top: 4px;
	width: 7px;
	height: 13px;
	border: solid var(--c-white);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(.4);
	opacity: 0;
	transition: transform .2s cubic-bezier(.2, 1.3, .4, 1), opacity .15s ease;
}
.mq-check input:checked + .mq-check__box { background: #6136d9; border-color: #6136d9; }
.mq-check input:checked + .mq-check__box::after { transform: rotate(45deg) scale(1); opacity: 1; }
.mq-check input:focus-visible + .mq-check__box { box-shadow: 0 0 0 3px rgba(97, 54, 217, .2); }
.mq-check em { font-style: normal; font-weight: 700; color: #6136d9; }

.mq-code {
	display: grid;
	grid-template-columns: 130px minmax(0, 1fr);
	gap: 10px;
}
.mq-code__num {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	border-radius: 4px;
	background: #0a090b;
	color: var(--c-white);
	font-family: var(--font-num);
	font-size: clamp(11.5px, 1.278vw, 18.4px);
	font-weight: 800;
	letter-spacing: .18em;
	user-select: none;
}

.mq-card--agree {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 0;
	padding: 16px 24px;
}
.mq-card--agree .mq-check { margin-top: 0; }
.mq-agree__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: clamp(10.1px, 1.118vw, 16.1px);
	color: #0a090b;
}
.mq-agree__more svg { width: 22px; height: 22px; }
.mq-agree__more:hover { color: #6136d9; text-decoration: underline; }

/* ---------- 반응형 ---------- */
@media (max-width: 1100px) {
	.mq-row__link {
		grid-template-columns: 64px minmax(0, 1fr) 90px 110px;
	}
	.mq-row__dates { display: none; }
}
@media (max-width: 900px) {
	.mq { padding-bottom: 80px; }
	.mq-head__bar {
		flex-direction: column;
		align-items: stretch;
	}
	.mq-search { justify-content: stretch; }
	.mq-search__field { flex: 0 0 auto; }
	.mq-search__box { flex: 1 1 auto; width: auto; min-width: 0; }
	.mq-row__link {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 8px 12px;
		padding: 18px;
	}
	.mq-row__no { grid-row: 1; color: #9a9ba6; text-align: left; }
	.mq-row__body { grid-column: 1 / -1; }
	.mq-row__won { grid-column: 1; }
	.mq-state { grid-column: 2; justify-self: end; }
	.mq-card { padding: 22px 20px; }
	.mq-card--title,
	.mq-card--body,
	.mq-card--answer { padding-left: 20px; padding-right: 20px; }

	.mq-card--form { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 26px; }
	.mq-field--half { grid-column: 1 / -1; }
	.mq-email { grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr); }
	.mq-email select { grid-column: 1 / -1; }

}
@media (max-width: 600px) {
	.mq-search { flex-direction: column; align-items: stretch; }
	.mq-search__field select { width: 100%; }
	.mq-search__box { width: 100%; }
	.mq-code { grid-template-columns: 110px minmax(0, 1fr); }
	.mq-meta {flex-direction: column; align-items: flex-start; gap: 10px; position: relative;}
	.mq-meta__i + .mq-meta__i:not(.mq-meta__i--end) { margin-left: 0; padding-left: 0; border-left: 0; }
	.mq-meta__i--end { position: absolute; top: 0; right: 0; }
	.mq-files {margin-top: 10px;}
}

/* ---------- 상세 — 비밀번호 확인 화면 ----------
   글쓰기 폼(.mq-card--form)과 달리 칸이 하나뿐이라 두 칸 격자를 쓰지 않는다.
   가운데로 모으고, 위 안내문과 붙지 않게 20px 을 띄운다. */
.mq-card--lock {
	margin-top: 20px;
	padding: 40px;
	box-shadow: 0 10px 22px rgba(0, 0, 0, .03), 0 40px 40px rgba(0, 0, 0, .03);
	text-align: center;
}
.mq-view__lock {
	margin: 0;
	font-size: clamp(14px, 1.042vw, 20px);
	font-weight: 700;
}
/* 입력칸이 카드 폭만큼 늘어나면 허전해 보여 폭을 잡아 두고 가운데에 놓는다 */
.mq-lock-form {
	max-width: 420px;
	margin: 24px auto 0;
}
.mq-lock-form .mq-cta { display: flex; justify-content: center; margin-top: 24px; }
/* 틀렸을 때만 눈에 띄게 */
.mq-hint--err { color: #e0335b; text-align: center; }

@media (max-width: 1024px) {
	.mq-card--lock { padding: 26px; }
}

/* ---------- 접수 완료 안내 · 접수가 막힌 이유 ---------- */
.mq-done,
.mq-form__err {
	margin: 20px 0 0;
	padding: 14px 18px;
	border-radius: 8px;
	font-size: clamp(13px, 1.111vw, 16px);
	font-weight: 600;
	line-height: 1.6;
}
.mq-done      { border: 1px solid #cdbcf6; background: #f4f0fe; color: #4a2fa8; }
.mq-form__err { border: 1px solid #f3c3ce; background: #fdf2f5; color: #c02749; }
