/* ReaderFAQ_addui - category grid + form */

.faq-ask-cat-wrap {
	width: 100%;
	max-width: 640px;
	margin: 0 auto;
	padding: 8px 0 24px;
}

.faq-ask-test-cat-row {
	display: none;
}

.page-report-form .qa-field > .form-group:first-of-type {
	display: none;
}

.faq-ask-cat-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	width: 100%;
}

.faq-ask-cat-btn {
	align-items: center;
	background: #4080bf;
	border-radius: 14px;
	box-sizing: border-box;
	color: #fff;
	display: flex;
	font-family: "微軟正黑體", "Microsoft JhengHei", sans-serif;
	font-size: 18px;
	font-weight: bold;
	justify-content: center;
	line-height: 1.35;
	min-height: 74px;
	padding: 14px 10px;
	text-align: center;
	text-decoration: none;
	transition: background 0.2s ease;
}

.faq-ask-cat-btn:hover,
.faq-ask-cat-btn:focus {
	background: #2f6aab;
	color: #fff;
	text-decoration: none;
}

.faq-ask-test-banner {
	background: #fff3cd;
	border: 1px solid #ffc107;
	color: #856404;
	font-size: 13px;
	line-height: 1.5;
	margin-bottom: 12px;
	padding: 8px 12px;
	text-align: center;
}

.faq-ask-selected {
	background: #f5f7fa;
	border-left: 4px solid #4080bf;
	color: #333;
	font-size: 16px;
	font-weight: bold;
	margin-bottom: 16px;
	padding: 10px 14px;
}

.faq-ask-test-form {
	background: #fafafa;
	border: 1px solid #e8e8e8;
	padding: 20px 16px 8px;
}

.faq-ask-test-form .form-row {
	margin-bottom: 18px;
}

.faq-ask-test-form .form-label {
	color: #333;
	display: block;
	font-size: 15px;
	font-weight: bold;
	line-height: 1.5;
	margin-bottom: 6px;
}

.faq-ask-test-form .form-label .req {
	color: #e60012;
	margin-right: 4px;
}

.faq-ask-test-form .form-control,
.faq-ask-test-form textarea.form-control {
	background: #fff;
	border: 1px solid #eee;
	box-sizing: border-box;
	color: #333;
	font-family: "微軟正黑體", "Microsoft JhengHei", sans-serif;
	font-size: 15px;
	line-height: 1.5;
	max-width: 100%;
	padding: 8px 10px;
	width: 100%;
}

.faq-ask-test-form textarea.form-control {
	min-height: 100px;
	resize: vertical;
}

.faq-ask-test-form .form-hint {
	color: #1774c1;
	font-size: 14px;
	line-height: 1.6;
	margin-top: 6px;
}

.faq-ask-test-actions {
	margin-top: 20px;
	padding: 10px 0 20px;
	text-align: center;
}

.faq-ask-test-actions .btn-submit {
	background: #4080bf;
	border: 0;
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
	font-size: 16px;
	min-width: 140px;
	padding: 10px 24px;
}

.faq-ask-test-actions .btn-submit:hover {
	background: #2f6aab;
}

.faq-ask-test-actions .btn-back {
	background: #888;
	border-radius: 8px;
	color: #fff;
	display: inline-block;
	font-size: 15px;
	margin-left: 10px;
	min-width: 120px;
	padding: 10px 20px;
	text-decoration: none;
}

@media screen and (min-width: 768px) {
	.faq-ask-cat-grid {
		gap: 18px;
	}

	.faq-ask-cat-btn {
		font-size: 20px;
		min-height: 82px;
	}

	.faq-ask-test-form .form-row {
		align-items: flex-start;
		display: flex;
		margin-bottom: 20px;
	}

	.faq-ask-test-form .form-label {
		flex: 0 0 120px;
		margin-bottom: 0;
		padding-top: 8px;
		text-align: right;
	}

	.faq-ask-test-form .form-field {
		flex: 1 1 auto;
		min-width: 0;
		padding-left: 16px;
	}
}

@media screen and (max-width: 360px) {
	.faq-ask-cat-btn {
		font-size: 16px;
		min-height: 68px;
	}
}

/* 版權推薦 / 書籍瑕疵 專用區塊 */
.faq-ask-back-link {
	margin: 0 0 10px;
}

.faq-ask-back-link a {
	color: #4080bf;
	font-size: 14px;
	text-decoration: none;
}

.faq-special-box,
.faq-copyright-box {
	background: #eef1f5;
	border-radius: 0;
	margin: 12px auto 0;
	max-width: 640px;
	overflow: hidden;
	padding: 0 0 16px;
}

.faq-special-tab,
.faq-copyright-tab {
	background: #4080bf;
	border-radius: 10px;
	color: #fff;
	display: inline-block;
	font-size: 16px;
	font-weight: bold;
	line-height: 1.4;
	margin: 0 0 0 14px;
	padding: 8px 20px;
}

.faq-special-body,
.faq-copyright-body {
	background: #eef1f5;
	padding: 14px 14px 4px;
}

.faq-info-body {
	padding-top: 10px;
}

.faq-info-text {
	background: #fff;
	border-radius: 8px;
	color: #333;
	font-family: "微軟正黑體", "Microsoft JhengHei", sans-serif;
	font-size: 15px;
	line-height: 1.75;
	padding: 16px 14px 8px;
}

.faq-info-text p {
	margin: 0 0 10px;
}

.faq-info-text a {
	color: #4080bf;
	word-break: break-all;
}

.faq-copyright-field {
	align-items: center;
	background: #fff;
	border: 1px solid #4080bf;
	border-radius: 10px;
	box-sizing: border-box;
	display: flex;
	margin-bottom: 12px;
	min-height: 44px;
	overflow: hidden;
	width: 100%;
}

.faq-copyright-label {
	color: #4080bf;
	flex-shrink: 0;
	font-size: 15px;
	font-weight: bold;
	padding: 10px 0 10px 12px;
	white-space: nowrap;
}

.faq-copyright-input,
.faq-copyright-field input.faq-copyright-input {
	background: transparent;
	border: 0;
	box-shadow: none;
	box-sizing: border-box;
	color: #333;
	flex: 1 1 auto;
	font-family: "微軟正黑體", "Microsoft JhengHei", sans-serif;
	font-size: 15px;
	line-height: 1.4;
	min-width: 0;
	outline: none;
	padding: 10px 12px 10px 4px;
	width: 100%;
}

.faq-copyright-input::placeholder {
	color: #999;
}

.faq-copyright-input-readonly,
.faq-copyright-input[readonly] {
	background: #f0f0f0;
	color: #333;
}

.faq-typo-form-wrap {
	padding-top: 4px;
}

.faq-other-body {
	padding-top: 10px;
}

.faq-other-intro {
	color: #333;
	font-size: 15px;
	line-height: 1.75;
	margin-bottom: 14px;
}

.faq-other-intro p {
	margin: 0 0 10px;
}

.faq-other-textarea {
	border: 1px solid #4080bf;
	border-radius: 10px;
	box-sizing: border-box;
	color: #333;
	display: block;
	font-family: "微軟正黑體", "Microsoft JhengHei", sans-serif;
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 14px;
	min-height: 180px;
	padding: 12px 14px;
	resize: vertical;
	width: 100%;
}

.faq-other-textarea:focus {
	outline: none;
}

.faq-other-visibility {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin-bottom: 12px;
}

.faq-other-radio,
.faq-other-radio input {
	cursor: pointer;
	font-size: 15px;
}

.faq-other-disclaimer {
	color: #333;
	font-size: 13px;
	line-height: 1.7;
	margin: 0 0 12px;
}

.faq-other-actions {
	margin-top: 4px;
}

.faq-hidden-postback {
	display: none !important;
	height: 0;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 0;
}

.faq-special-actions,
.faq-copyright-actions {
	padding: 8px 4px 0;
	text-align: right;
}

.faq-special-actions .btn-special-action,
.faq-special-actions .btn-special-link,
.faq-copyright-actions .btn-recommend {
	background: #4080bf;
	border: 0;
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
	display: inline-block;
	font-family: "微軟正黑體", "Microsoft JhengHei", sans-serif;
	font-size: 15px;
	min-width: 72px;
	padding: 8px 20px;
	text-align: center;
	text-decoration: none;
}

.faq-special-actions .btn-special-action:hover,
.faq-special-actions .btn-special-link:hover,
.faq-copyright-actions .btn-recommend:hover {
	background: #2f6aab;
	color: #fff;
	text-decoration: none;
}

/* 漫畫進度查詢 */
.faq-progress-body {
	padding-top: 10px;
}

.faq-progress-search-types {
	margin: 0 0 12px;
}

.faq-progress-type-btn,
.faq-progress-type-btn:hover,
.faq-progress-type-btn:focus {
	background: #fff;
	border: 1px solid #4080bf;
	border-radius: 6px;
	color: #4080bf;
	display: inline-block;
	font-family: "微軟正黑體", "Microsoft JhengHei", sans-serif;
	font-size: 14px;
	margin: 0 8px 0 0;
	padding: 6px 14px;
	text-decoration: none;
}

.faq-progress-type-btn.faq-progress-type-active,
.faq-progress-type-btn.faq-progress-type-active:hover,
.faq-progress-type-btn.faq-progress-type-active:focus {
	background: #4080bf;
	border-color: #4080bf;
	color: #fff;
}

.faq-info-text .font-red {
	color: #e74c3c;
}

.faq-ebook-notice {
	color: #333;
	font-size: 14px;
	line-height: 1.75;
	margin: 0 0 12px;
}

.faq-ebook-notice .font-red {
	color: #e74c3c;
}

.faq-ebook-notice a {
	color: #4080bf;
	word-break: break-all;
}

.faq-progress-gbookid-bar {
	color: #4080bf;
	font-size: 15px;
	font-weight: bold;
	margin: 0 0 8px;
	text-align: right;
}

.faq-progress-search-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 4px;
}

.faq-progress-no-result {
	color: #999;
	font-size: 16px;
	padding: 18px 0 8px;
	text-align: center;
}

.faq-progress-result-wrap {
	margin-top: 14px;
}

.faq-progress-result {
	display: flex;
	gap: 12px;
}

.faq-progress-cover {
	flex: 0 0 96px;
}

.faq-progress-cover img {
	display: block;
	height: auto;
	max-width: 96px;
	width: 100%;
}

.faq-progress-message {
	color: #333;
	flex: 1 1 auto;
	font-size: 15px;
	line-height: 1.75;
	min-width: 0;
}

.faq-progress-book-list-wrap {
	margin-top: 14px;
}

.faq-progress-book-item {
	border-bottom: 1px solid #dde3ea;
}

.faq-progress-book-item:last-child {
	border-bottom: 0;
}

.faq-progress-book-link,
.faq-progress-book-link:hover,
.faq-progress-book-link:focus {
	align-items: center;
	background: #fff;
	border: 0;
	border-radius: 8px;
	color: #333;
	display: flex;
	gap: 12px;
	margin-bottom: 8px;
	padding: 10px 8px;
	text-align: left;
	text-decoration: none;
	width: 100%;
}

.faq-progress-book-link:hover {
	background: #f5f9fd;
}

.faq-progress-book-thumb {
	flex: 0 0 56px;
}

.faq-progress-book-thumb img {
	display: block;
	height: auto;
	max-width: 56px;
	width: 100%;
}

.faq-progress-book-info {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.faq-progress-book-title {
	color: #333;
	font-size: 15px;
	font-weight: bold;
	line-height: 1.5;
}

.faq-progress-book-meta {
	color: #666;
	font-size: 13px;
	line-height: 1.4;
}

.faq-progress-gbook-status {
	background: #f5f8fb;
	border-left: 3px solid #2f6fad;
	color: #333;
	font-size: 14px;
	line-height: 1.75;
	margin: 0 0 12px;
	padding: 10px 12px;
}

.faq-progress-book-select-wrap {
	margin-top: 4px;
}

.faq-progress-selected-gbook {
	color: #4080bf;
	font-size: 16px;
	font-weight: bold;
	line-height: 1.5;
	margin: 0 0 12px;
}

.faq-progress-form-wrap {
	margin-top: 4px;
}

.faq-progress-form {
	background: #fff;
	border-radius: 8px;
	margin-top: 8px;
	padding: 8px 4px 0;
}

.faq-progress-form-label {
	color: #333;
	display: block;
	font-size: 15px;
	font-weight: bold;
	margin-bottom: 6px;
}

.faq-progress-form .form-group {
	margin-bottom: 16px;
}

.faq-progress-form .form-control {
	box-sizing: border-box;
	width: 100%;
}

.faq-progress-form-actions {
	margin-top: 8px;
}

.faq-reprint-confirm-wrap {
	margin-top: 12px;
}

.faq-reprint-confirm-box {
	background: #fff;
	border: 1px solid #333;
	border-radius: 10px;
	box-sizing: border-box;
	margin: 0 auto;
	max-width: 720px;
	min-height: 160px;
	padding: 36px 40px 28px;
}

.faq-reprint-confirm-question {
	color: #111;
	font-family: "微軟正黑體", "Microsoft JhengHei", sans-serif;
	font-size: 20px;
	font-weight: normal;
	line-height: 1.8;
	margin: 0 0 36px;
	text-align: left;
}

.faq-reprint-confirm-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 0;
	padding: 0;
}
