/* Migration Survey Modal Styles */
.migration-survey__modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
}

.migration-survey__modal {
	background: var( --color-white );
	border-radius: 4px;
	box-shadow: rgba(151,150,150,.5) 2px 2px 7px;
	max-width: 600px;
	width: 90%;
	max-height: 80vh;
	overflow-y: auto;
	position: relative;
}

.migration-survey__modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 24px 0;
	border-bottom: 1px solid var( --color-neutral-100 );
	margin-bottom: 20px;
	text-align: left;

	h3 {
		margin: 0 0 20px 0;
		font-size: 20px;
		font-weight: 600;
		color: var( --color-text );
		text-align: left;
	}
}

.migration-survey__modal-close {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: var( --color-neutral-400 );
	position: absolute;
	top: 16px;
	right: 20px;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	
	&:hover {
		color: var( --color-text );
	}
}

.migration-survey__modal-content {
	padding: 0 24px 20px;
	text-align: left;

	> p {
		color: var( --color-text-subtle );
		margin-bottom: 24px;
		line-height: 1.5;
		text-align: left;
	}
}

.migration-survey__question {
	margin-bottom: 24px;
	text-align: left;

	h4 {
		margin: 0 0 16px 0;
		font-size: 16px;
		font-weight: 600;
		color: var( --color-text );
		text-align: left;
	}
}

.migration-survey__followup {
	background: var( --color-neutral-0 );
	padding: 16px;
	border-radius: 4px;
	border-left: 4px solid var( --color-primary );
}

.migration-survey__option {
	display: flex;
	align-items: flex-start;
	margin-bottom: 12px;
	cursor: pointer;
	text-align: left;

	input[type="radio"],
	input[type="checkbox"] {
		margin-right: 8px;
		margin-top: 2px;
		flex-shrink: 0;
	}

	span {
		line-height: 1.4;
		color: var( --color-text );
		flex: 1;
		margin-left: 0 !important;
	}

	&:hover span {
		color: var( --color-primary );
	}

	// For textarea options
	> div {
		width: 100%;
		
		label {
			display: block;
			margin-bottom: 8px;
			font-weight: 500;
			color: var( --color-text );
		}
	}
}

.migration-survey__textarea {
	width: 100%;
	min-height: 80px;
	padding: 8px 12px;
	border: 1px solid var( --color-neutral-200 );
	border-radius: 4px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 14px;
	line-height: 1.4;
	resize: vertical;

	&:focus {
		outline: none;
		border-color: var( --color-primary );
		box-shadow: 0 0 0 1px var( --color-primary );
	}
}

.migration-survey__modal-footer {
	padding: 16px 24px 24px;
	border-top: 1px solid var( --color-neutral-100 );
	display: flex;
	justify-content: space-between;
	gap: 12px;
	text-align: left;

	button {
		min-width: 80px;
		
		&:disabled {
			cursor: not-allowed;
		}
	}
}


/* Responsive adjustments */
@media (max-width: 768px) {
	.migration-survey__modal {
		width: 95%;
		max-height: 90vh;
	}

	.migration-survey__modal-header,
	.migration-survey__modal-content,
	.migration-survey__modal-footer {
		padding-left: 16px;
		padding-right: 16px;
	}

	.migration-survey__notice-actions {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;

		.button {
			width: 100%;
			text-align: center;
		}
	}
}