/* H1 Header Styles */
h1 {
	text-align: center;
	font-size: 20px !important;
}

@media (max-width: 768px) {
	h1 {
		font-size: 18px !important;
	}
}

@media (min-width: 769px) {
	h1 {
		font-size: 18px !important;
	}
}

.upq-question-list {
	display: grid;
	gap: 20px;
}

.mq-question-card {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.mq-question-top-center {
	text-align: center;
	margin-bottom: 15px;
}

.mq-question-title {
	margin: 0 0 10px;
	font-size: 16px;
}

.mq-question-meta .mq-badge {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	background: #f2f2f2;
}

.mq-question-content {
	font-size: 15px;
	line-height: 1.6;
}

.upq-ask-question-form-wrapper {
	max-width: 800px;
	margin: 30px auto;
}

.upq-ask-question-form {
	border: 1px solid #e0e0e0;
	padding: 30px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.upq-form-row {
	margin-bottom: 20px;
	display: flex;
	flex-direction: column;
}

.upq-form-row label {
	font-weight: 600;
	margin-bottom: 8px;
	color: #333;
}

.upq-required {
	color: #d32f2f;
	margin-left: 3px;
}

.upq-form-row input,
.upq-form-row select,
.upq-form-row textarea {
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
	transition: border-color 0.2s;
}

.upq-form-row input:focus,
.upq-form-row select:focus,
.upq-form-row textarea:focus {
	outline: none;
	border-color: #0057d8;
	box-shadow: 0 0 0 2px rgba(0, 87, 216, 0.1);
}

.upq-form-row input.upq-error,
.upq-form-row select.upq-error,
.upq-form-row textarea.upq-error {
	border-color: #d32f2f;
}

.upq-form-row select[multiple] {
	min-height: 120px;
	padding: 8px;
}

/* Draggable (Resizable) Textarea for Question Title */
.upq-draggable-textarea {
	resize: both;
	min-width: 100%;
	min-height: calc(4 * 1.5em + 20px); /* Minimum height for 4 rows */
	overflow: auto;
}

.upq-form-row .description {
	margin-top: 6px;
	font-size: 13px;
	color: #666;
	font-style: italic;
}

.upq-field-error {
	display: block;
	margin-top: 6px;
	color: #d32f2f;
	font-size: 13px;
}

/* Correct Answer Options Styling */
.upq-correct-answer-options {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 10px;
	max-width: 400px;
}

.upq-correct-option-label {
	display: flex;
	align-items: center;
	padding: 6px 10px;
	border: none;
	border-radius: 4px;
	background: transparent;
	cursor: pointer;
	transition: all 0.2s;
	gap: 6px;
	width: 100%;
}

/* Fix gap between radio buttons and labels in front-end form */
.upq-question-form .upq-correct-answer label,
.upq-question-form .upq-correct-answer .upq-correct-option,
.upq-ask-question-form .upq-correct-answer-options label,
.upq-ask-question-form .upq-correct-answer-options .upq-correct-option-label {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	width: auto;
}

.upq-question-form .upq-correct-answer label,
.upq-ask-question-form .upq-correct-answer-options label {
	margin-left: 0;
	padding-left: 0;
}

.upq-correct-option-label:hover {
	background: transparent;
}

.upq-correct-option-radio:checked + .upq-correct-option-text {
	color: #0057d8;
	font-weight: 500;
}

.upq-correct-option-label.upq-option-selected,
.upq-correct-option-label:has(.upq-correct-option-radio:checked) {
	border: none;
	background: transparent;
}

.upq-correct-option-radio {
	margin: 0;
	cursor: pointer;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	order: 1;
}

.upq-correct-option-text {
	font-size: 14px;
	line-height: 1.5;
	color: #333;
	flex: 1;
	order: 2;
	margin: 0;
	white-space: nowrap;
}

.upq-form-row-terms {
	margin-top: 20px;
	margin-bottom: 20px;
}

.upq-terms-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.5;
}

.upq-terms-checkbox-label input[type="checkbox"] {
	margin-top: 3px;
	cursor: pointer;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

.upq-terms-checkbox-label input[type="checkbox"].upq-error {
	border-color: #d32f2f;
	outline: 2px solid rgba(211, 47, 47, 0.2);
}

.upq-terms-text {
	flex: 1;
	color: #333;
}

.upq-terms-text a {
	color: #0057d8;
	text-decoration: none;
}

.upq-terms-text a:hover {
	text-decoration: underline;
}

.upq-form-row-submit {
	margin-top: 0;
}

.upq-button-primary {
	background: #0057d8;
	border: none;
	color: #fff;
	padding: 12px 30px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	transition: background-color 0.2s;
}

.upq-button-primary:hover {
	background: #0042a4;
}

.upq-button-primary:active {
	background: #003080;
}

/* Messages */
.upq-message {
	padding: 15px 20px;
	margin-bottom: 20px;
	border-radius: 4px;
	border-left: 4px solid;
}

.upq-message-success {
	background-color: #e8f5e9;
	border-color: #4caf50;
	color: #2e7d32;
}

.upq-message-error {
	background-color: #ffebee;
	border-color: #f44336;
	color: #c62828;
}

.upq-message-error ul {
	margin: 0;
	padding-left: 20px;
}

.upq-message-error ul li {
	margin-bottom: 5px;
}

.upq-message-error ul li:last-child {
	margin-bottom: 0;
}

/* Questions List Wrapper */
.upq-questions-list-wrapper {
	margin: 10px 0;
}

/* Filter Container */
.upq-filter-container {
	margin-bottom: 20px;
	padding: 10px;
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
}

.upq-filter-form {
	display: flex;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
}

.upq-filter-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	flex: 1;
}

.upq-filter-row label {
	font-weight: 600;
	color: #333;
	white-space: nowrap;
}

.upq-filter-select {
	padding: 8px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	min-width: 200px;
}

.upq-filter-button,
.upq-filter-reset {
	padding: 8px 20px;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
	transition: background-color 0.2s;
}

.upq-filter-button {
	background: #0057d8;
	color: #fff;
}

.upq-filter-button:hover {
	background: #0042a4;
}

.upq-filter-reset {
	background: #e53935;
	color: #fff;
}

.upq-filter-reset:hover {
	background: #c62828;
}

/* Question Card Styles (reusing My Questions classes) */
.mq-question-card {
	margin-bottom: 10px;
	padding: 20px;
	border: 1px solid #000000;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
	position: relative;
	--mq-top-badge-spacing: 14px;
	transition: box-shadow 0.3s ease;
}

.mq-question-card:hover {
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* Top Section - Absolute Positioning */
.mq-question-top-left {
	position: absolute;
	top: 5px;
	left: 5px;
	display: flex;
	gap: 2px;
	flex-wrap: wrap;
	justify-content: flex-start;
	z-index: 10;
	align-items: flex-start;
	line-height: 1;
}

.mq-question-top-right {
	position: absolute;
	top: 5px;
	right: 5px;
	display: flex;
	gap: 2px;
	flex-wrap: wrap;
	justify-content: flex-end;
	z-index: 10;
	align-items: flex-start;
	line-height: 1;
}

.mq-question-top-center {
	position: absolute;
	top: 5px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
	z-index: 10;
	align-items: flex-start;
	line-height: 1;
}

/* Badges */
.mq-badge {
	display: inline-block;
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 500;
	border-radius: 12px;
	line-height: 1.5;
	text-decoration: none !important;
	transition: opacity 0.2s ease;
}

.mq-badge:hover {
	opacity: 0.8;
	text-decoration: none !important;
}

.mq-badge,
.mq-badge:link,
.mq-badge:visited,
.mq-badge:hover,
.mq-badge:active,
.mq-badge:focus {
	text-decoration: none !important;
}

.mq-badge-difficulty {
	background: #e3f2fd;
	color: #1976d2;
}

.mq-badge-origin {
	background: #f3e5f5;
	color: #7b1fa2;
}

.mq-badge-unit {
	background: #e8f5e9;
	color: #388e3c;
}

.mq-badge-concept {
	background: #fff3e0;
	color: #f57c00;
}

/* Question Info */
.mq-question-info {
	margin-top: 20px; /* Space for top badges */
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid #e0e0e0;
}

.mq-question-card--has-top-badges .mq-question-info {
	margin-top: var( --mq-top-badge-spacing, 60px );
}

.mq-info-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
}

.mq-info-row:last-child {
	margin-bottom: 0;
}

.mq-info-label {
	font-weight: 600;
	color: #333;
	font-size: 12px;
}

/* Question Text */
.mq-question-text {
	margin-bottom: 20px;
}

.mq-question-title {
	margin: 0 0 15px 0;
	font-size: 18px;
	font-weight: 700;
	color: #333;
}

.mq-question-content {
	font-size: 16px;
	line-height: 1.6;
	color: #555;
}

.mq-question-content p {
	margin: 0 0 10px 0;
}

.mq-question-content p:last-child {
	margin-bottom: 0;
}

/* Answer & Explanation Accordion */
.mq-answer-accordion {
	border-top: 1px solid #e0e0e0;
	padding-top: 15px;
}

.mq-accordion-toggle {
	width: 100%;
	padding: 12px 15px;
	font-size: 16px;
	font-weight: 700;
	text-align: left;
	background-color: #f5f5f5 !important;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: none;
}

.mq-accordion-toggle:hover {
	background-color: #f5f5f5 !important;
}

.mq-accordion-toggle[aria-expanded="true"] {
	background-color: #f5f5f5 !important;
}

.mq-accordion-title {
	flex: 1;
	color: #333 !important;
	font-weight: 700;
}

.mq-accordion-title * {
	color: #333 !important;
	font-weight: 700;
}

.mq-accordion-toggle[aria-expanded="true"] .mq-accordion-title {
	color: #333 !important;
}

.mq-accordion-toggle[aria-expanded="true"] .mq-accordion-title * {
	color: #333 !important;
}

.mq-accordion-icon {
	font-size: 20px;
	font-weight: bold;
	color: #666;
	line-height: 1;
}

.mq-accordion-content {
	padding: 15px;
	margin-top: 10px;
	background-color: #fafafa;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
}

.mq-answer-prompt-message {
	padding: 12px 15px;
	margin-bottom: 15px;
	background-color: #FEE2E2;
	border-left: 4px solid #B91C1C;
	border-radius: 4px;
	color: #B91C1C;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
}

.mq-correct-answer,
.mq-explanation {
	margin-bottom: 20px;
}

.mq-correct-answer,
.mq-explanation {
	margin-bottom: 20px;
}

.mq-correct-answer:last-child,
.mq-explanation:last-child {
	margin-bottom: 0;
}

.mq-correct-answer h4,
.mq-explanation h4 {
	margin: 0 0 10px 0;
	font-size: 16px;
	font-weight: 700;
	color: #333;
}

.mq-correct-answer p {
	margin: 0;
	line-height: 1.6;
	color: #555;
}

.mq-explanation-content {
	line-height: 1.6;
	color: #555;
}

.mq-explanation-content p {
	margin: 0 0 10px 0;
}

.mq-explanation-content p:last-child {
	margin-bottom: 0;
}

/* Submission Info */
.mq-submission-info {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #e0e0e0;
}

.mq-submission-info h4 {
	margin: 0 0 10px;
	font-size: 16px;
	color: #333;
}

.mq-submission-info p {
	margin: 5px 0;
	font-size: 14px;
	color: #666;
}

/* Pagination */
.upq-pagination {
	margin-top: 30px;
	text-align: center;
}

.upq-pagination ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: inline-flex;
	gap: 5px;
}

.upq-pagination li {
	display: inline-block;
}

.upq-pagination a,
.upq-pagination span {
	display: inline-block;
	padding: 8px 12px;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	text-decoration: none;
	color: #333;
	transition: background-color 0.2s;
}

.upq-pagination a:hover {
	background: #f5f5f5;
}

.upq-pagination .current {
	background: #0057d8;
	color: #fff;
	border-color: #0057d8;
}

/* No Questions Message */
.upq-no-questions {
	text-align: center;
	padding: 40px 20px;
	color: #666;
	font-size: 16px;
}

/* Responsive Styles - Mobile First */
@media (max-width: 768px) {
	.mq-question-card {
		padding: 15px;
	}

	.mq-question-top-left {
		position: absolute;
		top: 10px;
		left: 10px;
		max-width: calc(50% - 20px);
	}

	.mq-question-top-right {
		position: absolute;
		top: 10px;
		right: 10px;
		max-width: calc(50% - 20px);
		justify-content: flex-end;
	}

	.mq-question-top-center {
		position: absolute;
		top: 10px;
		left: 50%;
		transform: translateX(-50%);
		max-width: calc(100% - 20px);
	}

	.mq-badge {
		font-size: 11px;
		padding: 3px 10px;
	}

	.mq-question-title {
		font-size: 16px;
	}

	.mq-question-content {
		font-size: 14px;
	}

	.upq-filter-container {
		padding: 15px;
	}

	.upq-filter-form {
		flex-direction: column;
		align-items: stretch;
	}

	.upq-filter-row {
		flex-direction: column;
		align-items: stretch;
	}

	.upq-filter-select {
		width: 100%;
		min-width: 100%;
	}

	.upq-filter-button,
	.upq-filter-reset {
		width: 100%;
		margin-top: 10px;
	}

	.upq-ask-question-form {
		padding: 20px;
	}
}

/* Prevent overflow on all screen sizes */
.upq-filter-container,
.upq-filter-form,
.upq-filter-row,
.upq-filter-item {
	box-sizing: border-box;
	max-width: 100%;
	overflow-x: hidden;
}

.upq-filter-item {
	flex: 1 1 0;
	min-width: 0;
}

/* Hide author info on single question pages */
body.single-ugcnet_question .entry-meta,
body.singular.ugcnet_question .entry-meta,
body.single-ugcnet_question .post-meta,
body.singular.ugcnet_question .post-meta,
body.single-ugcnet_question .entry-footer,
body.singular.ugcnet_question .entry-footer {
	display: none !important;
}

/* Hide WordPress comments on single question pages */
body.single-ugcnet_question #comments,
body.singular.ugcnet_question #comments,
body.single-ugcnet_question .comments-area,
body.singular.ugcnet_question .comments-area {
	display: none !important;
}

/* Ensure single question content is properly displayed */
body.single-ugcnet_question .entry-content,
body.singular.ugcnet_question .entry-content {
	max-width: 100%;
	width: 100%;
}

/* Answer Options */
.mq-answer-options {
	margin: 20px 0;
	padding: 20px;
	background: #fafafa;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
}

.mq-answer-prompt-message {
	padding: 12px 15px;
	margin-bottom: 15px;
	background-color: #FEE2E2;
	border-left: 4px solid #B91C1C;
	border-radius: 4px;
	color: #B91C1C;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
}

.mq-options-list {
	margin-bottom: 20px;
}

.mq-option-label {
	display: block;
	padding: 12px 15px;
	margin-bottom: 10px;
	border: 2px solid #e0e0e0;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	transition: all 0.2s;
}

.mq-option-label:hover {
	border-color: #0057d8;
	background: #f0f7ff;
}

.mq-option-label.mq-correct {
	border-color: #28a745;
	background: #d4edda;
}

.mq-option-label.mq-incorrect {
	border-color: #dc3545;
	background: #f8d7da;
}

.mq-option-radio {
	margin-right: 10px;
	cursor: pointer;
}

.mq-option-text {
	font-size: 15px;
	line-height: 1.5;
	color: #333;
}

.mq-option-text::before {
	content: attr(data-option-label) ": ";
	font-weight: 600;
	margin-right: 6px;
	color: inherit;
}

.mq-answer-actions-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 15px;
	gap: 20px;
}

.mq-answer-actions-left {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mq-check-answer-btn {
	padding: 10px 40px;
	background: #0057d8;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s;
	min-width: 200px;
	width: auto;
}

.mq-check-answer-btn:hover {
	background: #0044b3;
}

.mq-answer-feedback {
	margin-top: 15px;
	padding: 12px 15px 12px 20px;
	border-radius: 6px;
	text-align: left;
	font-weight: 500;
}

.mq-feedback-correct {
	color: #155724;
	background: #d4edda;
	border: 1px solid #c3e6cb;
	border-left: 4px solid #28a745;
	padding-left: 20px;
}

.mq-feedback-incorrect {
	color: #721c24;
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	border-left: 4px solid #dc3545;
	padding-left: 20px;
}

.mq-check-icon {
	display: inline-block;
	margin-right: 8px;
	font-size: 18px;
	font-weight: bold;
}

/* Question Interactions */
.mq-question-interactions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.mq-like-btn,
.mq-dislike-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	padding: 4px 8px;
	background: #f5f5f5;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s;
	font-size: 12px;
	width: 36px;
	height: 32px;
	min-width: 36px;
}

.mq-like-btn:hover,
.mq-dislike-btn:hover {
	background: #e9ecef;
	border-color: #ccc;
}

.mq-like-btn.active {
	background: #d4edda;
	border-color: #28a745;
	color: #155724;
}

.mq-dislike-btn.active {
	background: #f8d7da;
	border-color: #dc3545;
	color: #721c24;
}

.mq-icon-thumbs-up,
.mq-icon-thumbs-down {
	font-size: 14px;
	line-height: 1;
}

.mq-report-btn {
	padding: 4px 10px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s;
	font-size: 12px;
	color: #333;
	height: 32px;
	min-width: auto;
}

.mq-report-btn:hover {
	background: #f5f5f5;
	border-color: #ccc;
	color: #000;
}

/* Report Dropdown */
.mq-report-wrapper {
	position: relative; /* wrapper around button + dropdown */
}

.mq-report-dropdown {
	position: absolute;
	top: 100%;          /* just below the button */
	right: 0;           /* align right edge with button (optional) */
	z-index: 9999;
	background: #fff;
	border-radius: 4px;
	border: 1px solid #ddd;
	padding: 16px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
	width: 400px;       /* or whatever size you like */
}

@media (max-width: 540px) {
	.mq-report-dropdown {
		position: fixed;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		width: calc(100vw - 40px);
		max-width: 360px;
		padding: 14px;
		max-height: 90vh;
		overflow-y: auto;
	}

	.mq-form-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.mq-form-actions .mq-btn-submit,
	.mq-form-actions .mq-report-cancel {
		width: 100%;
		text-align: center;
	}
}

.mq-report-form {
	width: 100%;
}

.mq-form-group {
	margin-bottom: 20px;
}

.mq-form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: #333;
	font-size: 14px;
}

.mq-form-group .required {
	color: #dc3545;
}

.mq-form-control {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	box-sizing: border-box;
	transition: border-color 0.2s;
	background: #fff;
}

.mq-form-control:focus {
	outline: none;
	border-color: #0057d8;
	box-shadow: 0 0 0 2px rgba(0, 87, 216, 0.1);
}

.mq-form-control[type="email"] {
	height: 40px;
}

.mq-form-control[type="textarea"],
.mq-form-control textarea {
	min-height: 100px;
	resize: vertical;
}

.mq-form-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-start;
	margin-top: 25px;
}

.mq-btn-submit {
	padding: 10px 20px;
	background: #dc3545;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s;
}

.mq-btn-submit:hover {
	background: #c82333;
}

.mq-btn-cancel,
.mq-report-cancel {
	padding: 10px 20px;
	background: #f5f5f5;
	color: #333;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s;
}

.mq-btn-cancel:hover,
.mq-report-cancel:hover {
	background: #e9ecef;
	color: #000;
}

/* Discuss & Show More Answers Section */
.mq-discuss-section {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #e0e0e0;
}

.mq-discuss-toggle {
	width: 100%;
	padding: 12px 15px;
	background: #f5f5f5 !important;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 15px;
	font-weight: 700;
	color: #000 !important;
	transition: none;
}

.mq-discuss-toggle:hover {
	background: #f5f5f5 !important;
	color: #000 !important;
}

.mq-discuss-toggle.active {
	background: #f5f5f5 !important;
	color: #000 !important;
}

.mq-discuss-icon {
	font-size: 12px;
	transition: transform 0.3s;
}

.mq-discuss-toggle.active .mq-discuss-icon {
	transform: rotate(180deg);
}

.mq-discuss-content {
	margin-top: 15px;
	padding: 20px;
	background: #fafafa;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
}

.mq-comment-section {
	margin-bottom: 30px;
}

.mq-login-prompt {
	padding: 20px;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 6px;
	text-align: center;
}

.mq-login-prompt p {
	margin: 0 0 15px 0;
	color: #856404;
	font-size: 14px;
}

.mq-login-btn {
	padding: 10px 20px;
	background: #ff9800;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s;
}

.mq-login-btn:hover {
	background: #f57c00;
}

.mq-login-form-container,
.mq-signup-form-container {
	margin-top: 20px;
	padding: 20px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
}

.mq-login-form-container h5,
.mq-signup-form-container h5 {
	margin: 0 0 20px 0;
	font-size: 18px;
	font-weight: 600;
	color: #333;
}

.mq-login-form .mq-form-group,
.mq-signup-form .mq-form-group {
	margin-bottom: 15px;
}

.mq-login-form label,
.mq-signup-form label {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
	color: #333;
	font-size: 14px;
}

.mq-signup-link {
	margin-top: 15px;
	text-align: center;
	font-size: 14px;
	color: #666;
}

.mq-signup-link a {
	color: #0057d8;
	text-decoration: none;
}

.mq-signup-link a:hover {
	text-decoration: underline;
}

.mq-password-requirements {
	margin-top: 10px;
	padding: 15px;
	background: #f5f5f5;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
}

.mq-password-requirements p {
	margin: 0 0 10px 0;
	font-size: 13px;
	font-weight: 600;
	color: #333;
}

.mq-password-requirements ul {
	margin: 0;
	padding-left: 20px;
	list-style: disc;
}

.mq-password-requirements li {
	margin-bottom: 5px;
	font-size: 13px;
	color: #666;
}

.mq-form-error {
	padding: 12px 15px;
	margin-bottom: 15px;
	background: #ffebee;
	border: 1px solid #f44336;
	border-left: 4px solid #f44336;
	border-radius: 4px;
	color: #c62828;
	font-size: 14px;
	line-height: 1.5;
}

.mq-password-field-wrapper {
	position: relative;
}

.mq-password-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.mq-password-input-wrapper .mq-form-control {
	padding-right: 40px;
}

.mq-toggle-password {
	position: absolute;
	right: 12px;
	cursor: pointer;
	font-size: 18px;
	user-select: none;
	z-index: 10;
	background: transparent;
	border: none;
	padding: 0;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mq-toggle-password:hover {
	opacity: 0.7;
}

.mq-signup-success {
	padding: 15px 20px;
	margin-bottom: 20px;
	background: #d4edda;
	border: 1px solid #c3e6cb;
	border-left: 4px solid #28a745;
	border-radius: 4px;
	color: #155724;
	font-size: 14px;
	line-height: 1.5;
}

.mq-signup-success p {
	margin: 0;
	font-weight: 500;
}

.mq-countdown-timer {
	font-weight: bold;
	color: #155724;
	font-size: 16px;
}

.mq-comment-section h4,
.mq-comments-list h4 {
	margin: 0 0 15px 0;
	font-size: 16px;
	font-weight: 600;
	color: #333;
}

.mq-comment-form {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.mq-comment-textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	resize: vertical;
	min-height: 100px;
	box-sizing: border-box;
}

.mq-comment-textarea:focus {
	outline: none;
	border-color: #0057d8;
	box-shadow: 0 0 0 2px rgba(0, 87, 216, 0.1);
}

.mq-submit-comment-btn {
	padding: 10px 20px;
	background: #0057d8;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s;
	align-self: center;
}

.mq-submit-comment-btn:hover {
	background: #0044b3;
}

.mq-comment-submit-message {
	margin-top: 10px;
	color: #dc3545;
	font-size: 14px;
	font-weight: 500;
	text-align: center;
	display: none;
}

.mq-comments-list {
	margin-top: 30px;
	padding-top: 30px;
	border-top: 1px solid #e0e0e0;
}

.mq-comments-container {
	margin-top: 15px;
}

.mq-no-comments {
	text-align: center;
	padding: 30px;
	background: #f5f5f5;
	border-radius: 6px;
	color: #666;
	font-size: 14px;
	margin: 0;
}

.mq-comment-item {
	padding: 15px;
	margin-bottom: 15px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
}

.mq-comment-item:last-child {
	margin-bottom: 0;
}

.mq-comment-meta {
	font-size: 12px;
	color: #666;
	margin-bottom: 8px;
}

.mq-comment-content {
	font-size: 14px;
	line-height: 1.6;
	color: #333;
}

/* Responsive adjustments for new elements */
@media (max-width: 768px) {
	.mq-answer-options {
		padding: 15px;
	}

	.mq-option-label {
		padding: 10px 12px;
	}

	.mq-answer-actions-wrapper {
		flex-direction: column;
		align-items: stretch;
		gap: 15px;
	}

	.mq-answer-actions-left {
		width: 100%;
	}

	.mq-question-interactions {
		justify-content: flex-end;
		width: 100%;
	}

	.mq-report-modal-content {
		width: 95%;
		max-height: 95vh;
	}

	.mq-form-actions {
		flex-direction: column;
	}

	.mq-btn-submit,
	.mq-btn-cancel {
		width: 100%;
	}
}

