/**
 * MarryQ Public Styles
 *
 * All styles scoped under .mq-wrap to avoid theme conflicts.
 * Uses !important sparingly only where theme overrides typically bite
 * (button styling, form elements). System font stack to feel native.
 *
 * Colour: warm, considered, premium-feeling. Deep teal accent (#0e6e6e)
 * with soft cream background. Avoids the saccharine pink/red palette
 * that wedding industry sites often default to.
 */

.mq-wrap {
	max-width: 760px;
	margin: 2rem auto;
	padding: 0 1rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1a1a1a;
	line-height: 1.6;
}

.mq-wrap * {
	box-sizing: border-box;
}

.mq-wrap h1,
.mq-wrap h2,
.mq-wrap h3 {
	color: #0e3a3a;
	line-height: 1.3;
	margin-top: 0;
}

.mq-wrap h1 {
	font-size: 2rem;
	font-weight: 600;
}

.mq-wrap h2 {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
}

.mq-wrap h3 {
	font-size: 1.15rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.mq-wrap p {
	margin: 0 0 1rem;
}

.mq-card {
	background: #fdfbf7;
	border: 1px solid #e8e2d5;
	border-radius: 8px;
	padding: 2rem;
	margin-bottom: 1.5rem;
}

.mq-button {
	display: inline-block;
	background: #0e6e6e !important;
	color: #fff !important;
	border: none !important;
	padding: 0.75rem 1.5rem !important;
	font-size: 1rem !important;
	font-weight: 500 !important;
	border-radius: 4px !important;
	cursor: pointer !important;
	text-decoration: none !important;
	transition: background 0.15s ease;
}

.mq-button:hover {
	background: #0a5454 !important;
}

.mq-button-secondary {
	background: #f0eee9 !important;
	color: #555 !important;
	border: 1px solid #d4cfc4 !important;
}

.mq-button-secondary:hover {
	background: #e6e2da !important;
	color: #333 !important;
}

/* Notices */
.mq-notice {
	padding: 1rem 1.25rem;
	border-radius: 4px;
	margin-bottom: 1.5rem;
}

.mq-notice-info {
	background: #eef6f6;
	border-left: 4px solid #0e6e6e;
}

.mq-notice-error {
	background: #fceeee;
	border-left: 4px solid #b94a48;
}

/* Progress bar */
.mq-progress {
	margin-bottom: 1.5rem;
}

.mq-progress-bar {
	height: 8px;
	background: #e8e2d5;
	border-radius: 4px;
	overflow: hidden;
}

.mq-progress-fill {
	height: 100%;
	background: #0e6e6e;
	transition: width 0.3s ease;
}

.mq-progress-text {
	margin-top: 0.5rem;
	font-size: 0.875rem;
	color: #666;
}

/* Module description */
.mq-module-description {
	color: #555;
	font-size: 1rem;
	margin-bottom: 1.5rem;
}

/* Question */
.mq-question {
	border: none;
	padding: 0;
	margin: 0 0 2rem;
}

.mq-question legend {
	font-weight: 500;
	font-size: 1.05rem;
	color: #1a1a1a;
	margin-bottom: 0.5rem;
	padding: 0;
}

.mq-question-help {
	font-size: 0.875rem;
	color: #666;
	margin-bottom: 0.75rem;
	font-style: italic;
}

.mq-options {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.mq-option {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.6rem 0.75rem;
	border: 1px solid #e0dbcf;
	border-radius: 4px;
	cursor: pointer;
	background: #fff;
	transition: border-color 0.15s, background 0.15s;
}

.mq-option:hover {
	border-color: #0e6e6e;
	background: #f7f4ee;
}

.mq-option input[type="radio"] {
	margin: 0;
	flex-shrink: 0;
}

.mq-option input[type="radio"]:checked + span {
	font-weight: 500;
}

.mq-option:has(input[type="radio"]:checked) {
	border-color: #0e6e6e;
	background: #eef6f6;
}

/* Consent gate checkboxes */
.mq-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 1rem;
	cursor: pointer;
}

.mq-checkbox input[type="checkbox"] {
	margin: 0.25rem 0 0;
	flex-shrink: 0;
}

/* Safeguarding inline panel */
.mq-safeguarding-panel {
	background: #fdf6e3;
	border-left: 4px solid #b8860b;
	padding: 1.25rem 1.5rem;
	border-radius: 4px;
	margin-bottom: 1.5rem;
}

.mq-safeguarding-panel h3 {
	color: #6b4f00;
	margin-bottom: 0.5rem;
}

.mq-safeguarding-panel p {
	color: #4a3800;
	margin-bottom: 0.5rem;
}

.mq-safeguarding-panel p:last-child {
	margin-bottom: 0;
}

/* Report */
.mq-report-header {
	text-align: center;
	margin-bottom: 2rem;
}

.mq-report-tagline {
	color: #555;
	font-size: 1.1rem;
}

.mq-safety {
	background: #fdf6e3;
	border-left: 4px solid #b8860b;
	padding: 1.5rem 1.75rem;
	border-radius: 4px;
	margin-bottom: 2rem;
}

.mq-safety-elevated {
	background: #fceeee;
	border-left-color: #b94a48;
}

.mq-safety h2 {
	color: #6b4f00;
}

.mq-safety-elevated h2 {
	color: #842c2a;
}

.mq-safety h3 {
	margin-top: 1rem;
	font-size: 1rem;
}

.mq-safety ul {
	margin: 0.5rem 0 1rem;
	padding-left: 1.25rem;
}

.mq-safety li {
	margin-bottom: 0.4rem;
}

/* Scorecards */
.mq-scorecards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1rem;
	margin: 1.5rem 0;
}

.mq-scorecard {
	background: #fdfbf7;
	border: 1px solid #e8e2d5;
	border-radius: 6px;
	padding: 1rem;
	text-align: center;
}

.mq-scorecard h3 {
	font-size: 0.95rem;
	margin-bottom: 0.5rem;
	color: #555;
}

.mq-scorecard-number {
	font-size: 2.25rem;
	font-weight: 600;
	color: #0e3a3a;
	line-height: 1;
	margin-bottom: 0.5rem;
}

.mq-scorecard-bar {
	height: 6px;
	background: #e8e2d5;
	border-radius: 3px;
	overflow: hidden;
}

.mq-scorecard-bar-fill {
	height: 100%;
	background: #0e6e6e;
}

.mq-tone-note {
	color: #555;
	margin-top: 1rem;
}

/* Conversations */
.mq-conversations {
	margin: 2.5rem 0;
}

.mq-conversations-intro {
	color: #555;
	margin-bottom: 1.5rem;
}

.mq-conversation {
	background: #fdfbf7;
	border: 1px solid #e8e2d5;
	border-radius: 8px;
	padding: 1.5rem 1.75rem;
	margin-bottom: 1.25rem;
}

.mq-conversation h3 {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	margin-bottom: 1rem;
	color: #0e3a3a;
}

.mq-conversation-number {
	display: inline-block;
	background: #0e6e6e;
	color: #fff;
	width: 1.75rem;
	height: 1.75rem;
	line-height: 1.75rem;
	text-align: center;
	border-radius: 50%;
	font-size: 0.9rem;
	font-weight: 600;
	flex-shrink: 0;
}

.mq-conversation-block {
	margin-bottom: 1rem;
}

.mq-conversation-block:last-child {
	margin-bottom: 0;
}

.mq-conversation-block h4 {
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #888;
	margin: 0 0 0.4rem;
}

.mq-conversation-block p {
	margin: 0;
}

/* Pre-generate framing message (review screen, before "Generate my report") */
.mq-pre-generate-framing {
	background: #fdfbf7;
	border-left: 4px solid #0e6e6e;
	padding: 1.25rem 1.5rem;
	border-radius: 4px;
	margin: 1.5rem 0;
}

.mq-pre-generate-framing p {
	margin-bottom: 0.85rem;
	font-size: 0.95rem;
	line-height: 1.55;
}

.mq-pre-generate-framing p:last-child {
	margin-bottom: 0;
}

.mq-pre-generate-framing strong {
	color: #0e3a3a;
}

/* Footer */
.mq-report-footer {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e8e2d5;
}

.mq-report-reminder {
	background: #fdfbf7;
	border-left: 4px solid #0e6e6e;
	padding: 1.25rem 1.5rem;
	border-radius: 4px;
	margin-bottom: 1.5rem;
}

.mq-report-reminder h3 {
	margin-top: 0;
	margin-bottom: 0.5rem;
	font-size: 1rem;
	color: #0e3a3a;
}

.mq-report-reminder p {
	margin: 0;
	font-size: 0.9rem;
	color: #555;
	line-height: 1.55;
}

/* Self-reflection section ("What your answers reveal about you") */
.mq-self-reflection {
	margin: 2.5rem 0;
}

.mq-self-reflection-intro {
	color: #555;
	font-size: 1.05rem;
	margin-bottom: 1.5rem;
	font-style: italic;
}

.mq-observation {
	background: #fdfbf7;
	border: 1px solid #e8e2d5;
	border-left: 4px solid #0e6e6e;
	border-radius: 6px;
	padding: 1.25rem 1.5rem;
	margin-bottom: 1rem;
}

.mq-observation h3 {
	margin-top: 0;
	margin-bottom: 0.5rem;
	font-size: 1.1rem;
	color: #0e3a3a;
}

.mq-observation p {
	margin: 0;
	color: #1a1a1a;
}

/* PDF download */
.mq-pdf-download {
	margin: 2rem 0;
	text-align: center;
	padding: 2rem 1rem;
	background: #fdfbf7;
	border: 1px dashed #0e6e6e;
	border-radius: 8px;
}

.mq-pdf-download form {
	margin: 0;
}

.mq-pdf-download-note {
	margin-top: 0.75rem;
	font-size: 0.9rem;
	color: #555;
}

.mq-erase-form {
	margin: 1rem 0 0;
}

/* Notice variants */
.mq-notice-success {
	background: #eef7ee;
	border-left: 4px solid #2a8a3a;
}

/* Larger CTA button */
.mq-button-large {
	font-size: 1.1rem !important;
	padding: 1rem 2rem !important;
}

/* Paywall block */
.mq-paywall {
	background: #fdfbf7;
	border: 2px solid #0e6e6e;
	border-radius: 8px;
	padding: 2rem 1.75rem;
	margin: 1rem 0;
	text-align: center;
}

.mq-paywall-lock {
	color: #0e6e6e;
	margin-bottom: 0.75rem;
	display: inline-flex;
}

.mq-paywall h3 {
	color: #0e3a3a;
	font-size: 1.4rem;
	margin: 0 0 0.75rem;
}

.mq-paywall p {
	max-width: 540px;
	margin: 0 auto 1rem;
	color: #444;
}

.mq-paywall-list {
	display: inline-block;
	text-align: left;
	margin: 1rem auto 1.5rem;
	padding-left: 1.25rem;
	color: #444;
}

.mq-paywall-list li {
	margin-bottom: 0.4rem;
}

.mq-paywall-price {
	margin: 1.5rem 0 1rem;
}

.mq-licence-entry {
	margin-top: 1.5rem;
	font-size: 0.9rem;
	color: #555;
	text-align: left;
	max-width: 480px;
	margin-left: auto;
	margin-right: auto;
}

.mq-licence-entry summary {
	cursor: pointer;
	color: #0e6e6e;
	text-align: center;
	margin-bottom: 0.75rem;
	user-select: none;
}

.mq-licence-entry summary:hover {
	text-decoration: underline;
}

.mq-licence-form {
	background: #fff;
	border: 1px solid #e0dbcf;
	border-radius: 4px;
	padding: 1rem;
	margin-top: 0.5rem;
}

.mq-licence-form label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.85rem;
	color: #555;
}

.mq-licence-form input[type="text"] {
	width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid #d4cfc4;
	border-radius: 4px;
	font-size: 0.95rem;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	margin-bottom: 0.75rem;
	box-sizing: border-box;
}

.mq-licence-form input[type="text"]:focus {
	outline: none;
	border-color: #0e6e6e;
}
