/**
 * Closing Guide for Buyers — interactive timeline checklist.
 */
.fp-closing-guide-scope,
.fp-closing-guide-scope .fpp-section-wrapper {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.fp-closing-guide-scope .fpp-section-wrapper {
	font-family: 'IBM Plex Sans', sans-serif;
	color: var(--fp-navy, #0c0c30);
}

.fp-closing-guide-scope .fpp-closing-guide-auditor {
	--border-light: #e6e6e3;
	--fp-text: #333333;

	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	background: #ffffff;
	border: 1px solid var(--border-light);
	border-radius: 4px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
	overflow-x: clip;
	overflow-y: visible;
	font-family: 'IBM Plex Sans', sans-serif;
	color: var(--fp-text);
}

.fp-closing-guide-scope .fpp-closing-guide-auditor * {
	box-sizing: border-box;
}

.fp-closing-guide-scope .fpp-timeline-header {
	background: var(--fp-navy, #0c0c30);
	color: #fff;
	padding: 40px;
	border-bottom: 4px solid var(--fp-gold, #b87f0d);
	display: flex;
	flex-direction: column;
}

.fp-closing-guide-scope .fpp-header-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 30px;
	gap: 20px;
}

.fp-closing-guide-scope .fpp-header-titles {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.fp-closing-guide-scope .fpp-header-titles h1 {
	font-family: 'Vollkorn', serif;
	margin: 0 0 10px;
	font-size: 2.2rem;
}

.fp-closing-guide-scope .fpp-header-titles p {
	margin: 0;
	color: #b0b0c0;
	font-size: 1.05rem;
}

.fp-closing-guide-scope .fpp-btn-gold {
	background: var(--fp-gold, #b87f0d);
	color: #ffffff;
	text-decoration: none;
	padding: 10px 18px;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	border-radius: 3px;
	transition: background 0.2s, opacity 0.2s;
	display: inline-block;
	text-align: center;
	flex: 0 0 auto;
	align-self: flex-start;
	width: 360px;
	max-width: 100%;
	white-space: normal;
	line-height: 1.4;
}

.fp-closing-guide-scope .fpp-btn-gold:hover {
	opacity: 0.9;
}

.fp-closing-guide-scope .fpp-global-controls {
	display: flex;
	align-items: center;
	background: rgba(255, 255, 255, 0.1);
	padding: 20px;
	border-radius: 4px;
}

.fp-closing-guide-scope .fpp-progress-wrapper {
	flex-grow: 1;
	width: 100%;
}

.fp-closing-guide-scope .fpp-progress-labels {
	display: flex;
	justify-content: space-between;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 8px;
	font-weight: 700;
}

.fp-closing-guide-scope .fpp-progress-bar-bg {
	height: 8px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 4px;
	overflow: hidden;
}

.fp-closing-guide-scope .fpp-progress-bar-fill {
	height: 100%;
	background: var(--fp-gold, #b87f0d);
	width: 0%;
	transition: width 0.4s ease;
}

.fp-closing-guide-scope .fpp-timeline-body {
	padding: 40px;
}

.fp-closing-guide-scope .fpp-phase-card {
	border: 1px solid var(--border-light, #e6e6e3);
	border-radius: 4px;
	margin-bottom: 30px;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	background: #fff;
}

.fp-closing-guide-scope .fpp-phase-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

.fp-closing-guide-scope .fpp-phase-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 30px;
	background: #fafafa;
	border-bottom: 1px solid var(--border-light, #e6e6e3);
	border-radius: 4px 4px 0 0;
}

.fp-closing-guide-scope .fpp-phase-title {
	font-family: 'Vollkorn', serif;
	font-size: 1.8rem;
	color: var(--fp-gold, #b87f0d);
	margin: 0;
}

.fp-closing-guide-scope .fpp-task-list {
	padding: 20px 30px;
}

.fp-closing-guide-scope .fpp-task-item {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 30px;
	padding: 20px 0;
	border-bottom: 1px solid var(--border-light, #e6e6e3);
}

.fp-closing-guide-scope .fpp-task-item:last-child {
	border-bottom: none;
	padding-bottom: 10px;
}

.fp-closing-guide-scope .fpp-task-info {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	flex: 1;
}

.fp-closing-guide-scope .fpp-task-checkbox {
	margin-top: 4px;
}

.fp-closing-guide-scope .fpp-task-checkbox input[type='checkbox'] {
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: var(--fp-navy, #0c0c30);
}

.fp-closing-guide-scope .fpp-task-content label {
	cursor: pointer;
	display: block;
}

.fp-closing-guide-scope .fpp-task-desc {
	color: var(--fp-navy, #0c0c30);
	line-height: 1.5;
	margin: 0;
	font-size: 1.05rem;
	transition: all 0.2s;
}

.fp-closing-guide-scope .fpp-task-actions {
	flex: 0 0 500px;
	display: flex;
	align-items: flex-start;
	gap: 15px;
}

.fp-closing-guide-scope .fpp-task-actions textarea {
	flex: 1;
	height: 42px;
	min-height: 42px;
	resize: vertical;
	padding: 9px 12px;
	border: 1px solid var(--border-light, #e6e6e3);
	border-radius: 4px;
	font-family: 'IBM Plex Sans', sans-serif;
	font-size: 0.9rem;
	color: var(--fp-text, #333333);
	background: #fafafa;
	box-sizing: border-box;
	transition: border-color 0.2s, background 0.2s;
}

.fp-closing-guide-scope .fpp-task-actions textarea:focus {
	border-color: var(--fp-navy, #0c0c30);
	background: #ffffff;
	outline: none;
}

.fp-closing-guide-scope .fpp-task-actions textarea::placeholder {
	color: #ccc;
}

.fp-closing-guide-scope .fpp-task-date-wrapper input[type='date'] {
	width: 140px;
	height: 42px;
	padding: 9px 12px;
	border: 1px solid var(--border-light, #e6e6e3);
	border-radius: 4px;
	font-family: 'IBM Plex Sans', sans-serif;
	font-size: 0.9rem;
	color: var(--fp-text, #333333);
	background: #fafafa;
	box-sizing: border-box;
	transition: border-color 0.2s, background 0.2s;
	cursor: pointer;
}

.fp-closing-guide-scope .fpp-task-date-wrapper input[type='date']:hover,
.fp-closing-guide-scope .fpp-task-date-wrapper input[type='date']:focus {
	border-color: var(--fp-navy, #0c0c30);
	background: #ffffff;
	outline: none;
}

.fp-closing-guide-scope .fpp-task-item.completed .fpp-task-desc {
	text-decoration: line-through;
	opacity: 0.5;
}

/* Footer inside auditor — full card width; 0 top margin (section wrapper owns bottom gutter) */
.fp-closing-guide-scope .fpp-closing-guide-auditor .fpp-action-footer {
	margin-top: 0;
	margin-bottom: 0;
	border-radius: 0;
	align-items: stretch;
}

.fp-closing-guide-scope .fpp-action-buttons-wrap {
	width: 100%;
	max-width: 100%;
}

@media (max-width: 1024px) {
	.fp-closing-guide-scope .fpp-task-item {
		flex-direction: column;
		gap: 15px;
	}

	.fp-closing-guide-scope .fpp-task-actions {
		flex: 1;
		width: 100%;
		padding-left: 33px;
		flex-direction: column;
	}

	.fp-closing-guide-scope .fpp-task-actions textarea {
		width: 100%;
	}

	.fp-closing-guide-scope .fpp-task-date-wrapper {
		width: 100%;
	}

	.fp-closing-guide-scope .fpp-task-date-wrapper input[type='date'] {
		width: 100%;
	}
}

@media (max-width: 768px) {
	.fp-interactive-wrapper.fp-tool-root .fp-closing-guide-scope .fpp-section-wrapper {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.fp-closing-guide-scope .fpp-timeline-header {
		padding: 20px;
	}

	.fp-closing-guide-scope .fpp-header-top {
		flex-direction: column;
		gap: 15px;
	}

	.fp-closing-guide-scope .fpp-btn-gold {
		width: 100%;
		max-width: none;
		align-self: stretch;
		text-align: center;
	}

	.fp-closing-guide-scope .fpp-global-controls {
		padding: 15px;
		width: 100%;
		box-sizing: border-box;
	}

	.fp-closing-guide-scope .fpp-header-titles h1 {
		font-size: 1.75rem;
	}

	.fp-closing-guide-scope .fpp-timeline-body {
		padding: 20px;
	}

	.fp-closing-guide-scope .fpp-phase-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
		padding: 15px 20px;
	}

	.fp-closing-guide-scope .fpp-phase-title {
		font-size: 1.5rem;
	}

	.fp-closing-guide-scope .fpp-task-list {
		padding: 15px 20px;
	}

	.fp-closing-guide-scope .fpp-task-actions {
		padding-left: 0;
		flex-direction: column;
	}

	.fp-closing-guide-scope .fpp-task-date-wrapper input[type='date'] {
		width: 100%;
	}

	.fp-closing-guide-scope .fpp-closing-guide-auditor .fpp-action-footer {
		padding: 20px !important;
	}

	.fp-closing-guide-scope .fpp-action-buttons-wrap {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.fp-closing-guide-scope .fpp-action-footer .fpp-btn-vault {
		width: 100%;
		max-width: 100%;
		flex: 1 1 auto;
	}
}

@media (max-width: 480px) {
	.fp-closing-guide-scope .fpp-timeline-header,
	.fp-closing-guide-scope .fpp-timeline-body {
		padding: 15px;
	}

	.fp-closing-guide-scope .fpp-phase-header,
	.fp-closing-guide-scope .fpp-task-list {
		padding-left: 15px;
		padding-right: 15px;
	}

	.fp-closing-guide-scope .fpp-header-titles h1 {
		font-size: 1.5rem;
	}
}
