/* Customer Pain Points and Best Offers presentation. */
/* Shared ownership migration: page shell and header use marby-forms-public.css. */
.frm-customer-pain-points-page {
	--marby-textarea-extra-height: 24px;
	width: 100vw;
	max-width: none;
	margin: 0;
	overflow: hidden;
}

.frm-customer-pain-points-page .marby-form-questions,
.frm-customer-pain-points-page .marby-question:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
}

.frm-customer-pain-points-builder {
	margin: 0;
}

.frm-customer-pain-points-page .marby-form,
.frm-customer-pain-points-page .marby-question {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.frm-customer-pain-points-page .marby-form-questions {
	display: grid;
	gap: 28px;
}

.frm-customer-pain-points-page .marby-q-header[hidden],
.frm-customer-pain-points-page .frm-response-source[hidden] {
	display: none !important;
}

/* Legacy question-shell and input styling. Shared question-card styling now owns this presentation.
.frm-customer-pain-points-question {
	min-width: 0;
	border: 1px solid var(--marby-color-border-light) !important;
	background: var(--marby-color-white) !important;
	box-shadow: var(--marby-shadow-soft);
}

.frm-customer-pain-points-top {
	border-bottom: 1px solid var(--marby-color-border-light);
	background: var(--marby-color-light-tan);
}

.frm-customer-pain-points-intro {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 20px;
	align-items: start;
	padding: 28px;
}

.frm-customer-pain-points-intro-icon {
	display: grid;
	width: 50px;
	height: 50px;
	place-items: center;
	border-radius: 50%;
	background: var(--marby-color-marby-blue);
	color: var(--marby-color-white);
	font-size: 21px;
	font-weight: 700;
}

.frm-customer-pain-points-intro h2 {
	margin: 0 0 8px;
	font-size: 26px;
}

.frm-customer-pain-points-intro p {
	margin: 0;
	color: var(--marby-color-text);
}

.frm-customer-pain-points-input-panel {
	display: flex;
	min-width: 0;
	flex-direction: column;
	justify-content: center;
	padding: 28px;
	border-left: 1px solid var(--marby-color-border-light);
	background: var(--marby-color-white);
}

.frm-customer-pain-points-page .marby-input-row {
	min-width: 0;
	padding: 0;
}

.frm-customer-pain-points-page .marby-input-label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 500;
}

.frm-customer-pain-points-page .marby-inputs textarea {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	padding: 14px;
	border: 1px solid var(--marby-color-border);
	border-radius: var(--marby-radius-xs);
	background: var(--marby-color-white);
	color: var(--marby-color-marby-blue) !important;
	line-height: 1.55;
}

.frm-customer-pain-points-page .marby-ai-editor-wrap {
	margin: 0;
	padding: 0;
}
*/

/* Shared ownership migration: response list width and spacing use
   marby-forms-public.css so questions and responses share one column. */

/* Legacy response, detail-card, and offer-card styling. Shared response groups and lists now own this presentation.
.frm-customer-pain-points-report-section,
.frm-customer-pain-points-list-card,
.frm-customer-pain-points-offer-drivers,
.frm-customer-pain-points-offer-card {
	border: 1px solid var(--marby-color-border-light);
	background: var(--marby-color-white);
}

.frm-customer-pain-points-section-heading {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 20px 22px;
	border-bottom: 1px solid var(--marby-color-border-light);
}

.frm-customer-pain-points-section-heading > span,
.frm-customer-pain-points-offer-number {
	display: grid;
	width: 32px;
	height: 32px;
	flex: 0 0 auto;
	place-items: center;
	border-radius: 50%;
	background: var(--marby-color-marby-blue);
	color: var(--marby-color-white);
	font-size: 14px;
	font-weight: 700;
}

.frm-customer-pain-points-section-heading h2 {
	margin: 0;
	font-size: 24px;
}

.frm-customer-pain-points-analysis-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	padding: 22px;
}

.frm-customer-pain-card {
	min-width: 0;
	padding: 20px;
	border: 1px solid var(--marby-color-border-light);
	background: var(--marby-color-white);
}

.frm-customer-pain-card:nth-child(even) {
	background: var(--marby-color-soft-tan);
}

.frm-customer-pain-card:nth-child(5) {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.frm-customer-pain-card:nth-child(5) .frm-customer-pain-card-head {
	grid-column: 1 / -1;
}

.frm-customer-pain-card:nth-child(5) .frm-customer-pain-points-detail {
	margin: 0;
	padding: 0 14px 0 0;
	border-top: 0;
	border-right: 1px solid var(--marby-color-border-light);
}

.frm-customer-pain-card:nth-child(5)
	.frm-customer-pain-points-detail:last-child {
	padding-right: 0;
	border-right: 0;
}

.frm-customer-pain-card-head {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	margin-bottom: 8px;
}

.frm-customer-pain-card-head > .frm-customer-pain-icon {
	display: grid;
	width: 28px;
	height: 28px;
	margin-top: 0;
	place-items: center;
	border-radius: 50%;
	background: var(--marby-color-marby-blue);
	color: var(--marby-color-white);
	font-size: 15px;
	font-weight: 700;
}

.frm-customer-pain-points-detail {
	min-width: 0;
	margin-top: 13px;
	padding-top: 13px;
	border-top: 1px solid var(--marby-color-border-light);
}

.frm-customer-pain-points-detail > h4 {
	display: block;
	margin-bottom: 5px;
}

.frm-customer-pain-points-page .frm-customer-pain-points-textarea {
	display: block;
	box-sizing: border-box;
	width: 100% !important;
	max-width: none;
	min-width: 0;
	margin: 0;
	padding: 10px 11px;
	border: 1px solid transparent !important;
	border-radius: var(--marby-radius-xs);
	background: transparent !important;
	color: var(--marby-color-black) !important;
	font: inherit;
	line-height: 1.55;
	box-shadow: none;
}

.frm-customer-pain-points-page .frm-customer-pain-points-textarea:focus {
	border-color: var(--marby-color-marby-blue) !important;
	outline: 0;
	box-shadow: 0 0 0 3px rgba(112, 170, 221, 0.15);
}

.frm-customer-pain-points-topic-title {
	display: flex;
	min-width: 0;
	min-height: 32px;
	align-items: center;
	font-family: var(--marby-font-heading);
	font-size: 20px;
	font-weight: 400;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.frm-customer-pain-points-support-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.frm-customer-pain-points-list-card {
	padding-bottom: 16px;
}

.frm-customer-pain-points-list-card.is-tan {
	background: var(--marby-color-light-tan);
}

.frm-customer-pain-points-list-row {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	margin: 0 20px;
	padding: 12px 0;
	border-bottom: 1px solid var(--marby-color-border-light);
}

.frm-customer-pain-points-list-row:last-child {
	border-bottom: 0;
}

.frm-customer-pain-points-list-row > span {
	display: grid;
	width: 24px;
	height: 24px;
	margin-top: 10px;
	place-items: center;
	color: var(--marby-color-marby-blue);
	font-size: 19px;
	font-weight: 700;
}

.frm-customer-pain-points-summary-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	padding: 22px;
}

.frm-customer-pain-points-summary-grid .frm-customer-pain-points-detail {
	margin: 0;
	padding: 18px;
	border: 1px solid var(--marby-color-border-light);
}

.frm-customer-pain-points-summary-grid
	.frm-customer-pain-points-detail:last-child {
	grid-column: 1 / -1;
	border-left: 4px solid var(--marby-color-marby-blue);
	background: var(--marby-color-soft-blue);
}

.frm-customer-pain-points-offer-drivers {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding: 0;
	background: var(--marby-color-white);
}

.frm-customer-pain-points-offer-drivers h2,
.frm-customer-pain-points-offer-summary h2 {
	margin: 0 0 15px;
	font-size: 24px;
}

.frm-customer-pain-points-offer-drivers h2 {
	grid-column: 1 / -1;
	margin: 0;
	padding: 20px 22px;
	border-bottom: 1px solid var(--marby-color-border-light);
}

.frm-customer-pain-points-offer-drivers .frm-customer-pain-points-detail,
.frm-customer-pain-points-offer-summary .frm-customer-pain-points-detail {
	min-width: 0;
	margin: 0;
	padding: 20px;
	border-top: 0;
	border-right: 1px solid var(--marby-color-border-light);
	background: var(--marby-color-white);
}

.frm-customer-pain-points-offer-drivers
	.frm-customer-pain-points-detail:nth-child(3),
.frm-customer-pain-points-offer-summary
	.frm-customer-pain-points-detail:nth-child(3) {
	background: var(--marby-color-light-tan);
}

.frm-customer-pain-points-offer-drivers
	.frm-customer-pain-points-detail:last-child,
.frm-customer-pain-points-offer-summary
	.frm-customer-pain-points-detail:last-child {
	border-right: 0;
}

.frm-customer-pain-points-offers-grid {
	display: grid;
	gap: 16px;
}

.frm-customer-pain-points-offer-card {
	min-width: 0;
}

.frm-customer-pain-points-offer-head {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	gap: 11px;
	align-items: center;
	padding: 18px 21px;
	border-bottom: 1px solid var(--marby-color-border-light);
}

.frm-customer-pain-points-offer-number {
	margin-top: 0;
}

.frm-customer-pain-points-offer-title-row {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 14px;
}

.frm-customer-pain-points-offer-title-row
	> .frm-customer-pain-points-topic-title {
	min-width: 180px;
	flex: 1 1 auto;
}

.frm-customer-pain-points-offer-meta {
	display: flex;
	flex: 0 1 auto;
	justify-content: flex-end;
	gap: 8px;
	margin-left: auto;
}

.frm-customer-pain-points-tag {
	display: inline-flex;
	box-sizing: border-box;
	min-width: 100px;
	min-height: 34px;
	align-items: center;
	justify-content: center;
	padding: 6px 14px;
	border: 1px solid var(--marby-color-marby-blue);
	border-radius: var(--marby-radius-pill);
	background: var(--marby-color-marby-blue);
	color: var(--marby-color-white);
	text-align: center;
	white-space: nowrap;
}

.frm-customer-pain-points-offer-body {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.frm-customer-pain-points-offer-body > .frm-customer-pain-points-detail {
	min-width: 0;
	min-height: 180px;
	margin: 0;
	padding: 20px;
	border-top: 0;
	border-right: 1px solid var(--marby-color-border-light);
	border-bottom: 1px solid var(--marby-color-border-light);
}

.frm-customer-pain-points-offer-body
	> .frm-customer-pain-points-detail:nth-child(even) {
	border-right: 0;
}

.frm-customer-pain-points-offer-body
	> .frm-customer-pain-points-detail.is-full-width {
	grid-column: 1 / -1;
	min-height: 0;
	border-right: 0;
	border-bottom: 0;
}

.frm-customer-pain-points-offer-summary {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding: 0;
	border: 1px solid var(--marby-color-border-light);
	background: var(--marby-color-white);
}

.frm-customer-pain-points-offer-summary h2 {
	grid-column: 1 / -1;
	margin: 0;
	padding: 20px 22px;
	border-bottom: 1px solid var(--marby-color-border-light);
}
*/

/* Shared ownership migration: save panel layout uses marby-forms-public.css. */

.frm-customer-pain-points-response.is-contract-pilot {
	margin-bottom: 40px;
}
/*
.frm-customer-pain-points-page .marby-save-actions { ... }
*/

/* Legacy save-copy typography. Shared save-panel typography now owns this presentation.
.frm-customer-pain-points-save-copy h3 {
	margin: 0 0 4px;
	color: var(--marby-color-white);
	font-size: 22px;
}

.frm-customer-pain-points-save-copy p {
	margin: 0;
}
*/

/* Shared ownership migration: save status and save button styling use marby-forms-public.css. */

/* Legacy responsive rules for the retired custom question and response layouts.
@media (max-width: 1100px) {
	.frm-customer-pain-card:nth-child(5) {
		display: block;
	}

	.frm-customer-pain-card:nth-child(5) .frm-customer-pain-points-detail {
		margin-top: 13px;
		padding: 13px 0 0;
		border-top: 1px solid var(--marby-color-border-light);
		border-right: 0;
	}
}

@media (max-width: 800px) {
	.frm-customer-pain-points-top,
	.frm-customer-pain-points-analysis-grid,
	.frm-customer-pain-points-support-grid,
	.frm-customer-pain-points-summary-grid,
	.frm-customer-pain-points-offer-drivers,
	.frm-customer-pain-points-offer-summary,
	.frm-customer-pain-points-offer-body {
		grid-template-columns: 1fr;
	}

	.frm-customer-pain-points-input-panel {
		border-top: 1px solid var(--marby-color-border-light);
		border-left: 0;
	}

	.frm-customer-pain-points-summary-grid
		.frm-customer-pain-points-detail:last-child {
		grid-column: auto;
	}

	.frm-customer-pain-points-offer-drivers .frm-customer-pain-points-detail,
	.frm-customer-pain-points-offer-summary .frm-customer-pain-points-detail,
	.frm-customer-pain-points-offer-body > .frm-customer-pain-points-detail {
		border-right: 0;
		border-bottom: 1px solid var(--marby-color-border-light);
	}

	.frm-customer-pain-points-offer-drivers
		.frm-customer-pain-points-detail:last-child,
	.frm-customer-pain-points-offer-summary
		.frm-customer-pain-points-detail:last-child,
	.frm-customer-pain-points-offer-body
		> .frm-customer-pain-points-detail:last-child {
		border-bottom: 0;
	}

	.frm-customer-pain-points-offer-body
		> .frm-customer-pain-points-detail.is-full-width {
		grid-column: auto;
	}
}

@media (max-width: 560px) {
	.frm-customer-pain-points-intro {
		grid-template-columns: 1fr;
		padding: 22px 18px;
	}

	.frm-customer-pain-points-input-panel,
	.frm-customer-pain-points-response {
		padding: 20px 18px;
	}

	.frm-customer-pain-points-page .ask-mai-btn,
	.frm-customer-pain-points-page .save-mai-btn {
		width: 100%;
	}

	.frm-customer-pain-points-offer-title-row {
		align-items: stretch;
		flex-direction: column;
	}

	.frm-customer-pain-points-offer-meta {
		width: 100%;
		justify-content: flex-start;
		margin-left: 0;
	}

	.frm-customer-pain-points-tag {
		min-width: min(50%, 150px);
	}
}
*/
