/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

.cfp-form-container {
	background: var(--cfp-bg-desktop, none) no-repeat center center;
	background-size: cover;
	max-width: 900px;
	height: 60vh;
	margin: 20px auto;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	font-family: 'Poppins', sans-serif;
	position: relative;
	overflow: hidden;
	margin-bottom: 20px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.cfp-form-container > * {
	position: relative;
	z-index: 1;
}

.cfp-intro {
	text-align: center;
	padding: 20px 0;
	width: 100%;
	height: 100%;
	max-width: 500px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.cfp-intro h2 {
	margin-top: 0;
	margin-bottom: 15px;
	color: rgb(117, 47, 133);
	font-size: 32px;
	font-weight: 700;
	text-align: center;
	font-family: 'Poppins', sans-serif;
}

.cfp-intro p {
	margin-bottom: 30px;
	text-align: center;
	color: rgb(117, 47, 133);
	/* color: rgb(88, 35, 100); */
	line-height: 1.6;
	font-size: 14px;
}

.cfp-intro .cfp-btn {
	margin: 0 auto;
	min-width: 200px;
	font-size: 18px;
	padding: 16px 48px;
	box-shadow: 0 4px 16px rgba(117, 47, 133, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Progress Bar */
.cfp-progress-container {
	margin-bottom: 30px;
}

.cfp-progress-bar {
	width: 100%;
	height: 8px;
	background-color: rgb(221, 203, 225);
	border-radius: 9999px;
	overflow: hidden;
	margin-bottom: 10px;
}

.cfp-progress-fill {
	height: 100%;
	width: 6.66%; /* 1/15 */
	background-color: rgb(117, 47, 133);
	transition: width 0.3s ease;
	border-radius: 9999px;
}

.cfp-progress-text {
	text-align: center;
	color: rgb(105, 42, 120);
	font-size: 14px;
	font-weight: 500;
	font-family: 'Poppins', sans-serif;
}

/* Form Steps */
.cfp-step {
	display: none;
	animation: fadeIn 0.3s ease;
}

.cfp-step.cfp-step-active {
	display: block;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

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

.cfp-form-group label {
	display: block;
	margin-bottom: 12px;
	color: rgb(88, 35, 100);
	font-weight: 500;
	font-size: 16px;
	font-family: 'Poppins', sans-serif;
}

.cfp-form-group p {
	margin-bottom: 12px;
	color: rgb(88, 35, 100);
	font-weight: 500;
	font-size: 16px;
	font-family: 'Poppins', sans-serif;
}

.intro-text {
	text-align: center;
	color: rgb(117, 47, 133);
	font-size: 18px;
	font-weight: 600;
	margin: 20px 0;
}

.cfp-form-group input[type="text"],
.cfp-form-group input[type="email"],
.cfp-form-group input[type="number"] {
	width: 100%;
	padding: 12px;
	border: 1px solid rgb(117, 47, 133);
	border-radius: 8px;
	font-size: 15px;
	font-family: 'Poppins', sans-serif;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
	box-sizing: border-box;
}

.cfp-form-group input[type="text"]:focus,
.cfp-form-group input[type="email"]:focus,
.cfp-form-group input[type="number"]:focus {
	outline: none;
	border-color: rgb(117, 47, 133);
	box-shadow: 0 0 0 2px rgba(117, 47, 133, 0.1);
}

.cfp-form-group input.error {
	border-color: rgb(226, 85, 49);
	box-shadow: 0 0 0 2px rgba(226, 85, 49, 0.1);
}

.error-text {
	display: block;
	color: rgb(226, 85, 49);
	font-size: 12px;
	margin-top: 4px;
	font-family: 'Poppins', sans-serif;
	min-height: 18px;
}

/* Selectable Options */
.selectable-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 10px;
}

.selectable-option {
	width: 100%;
	padding: 14px 20px;
	border: 2px solid rgb(208, 189, 213);
	border-radius: 8px;
	background-color: #ffffff;
	color: rgb(88, 35, 100);
	font-size: 15px;
	font-weight: 500;
	font-family: 'Poppins', sans-serif;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: left;
}

.selectable-option:hover {
	border-color: rgb(117, 47, 133);
	background-color: rgb(250, 249, 251);
	color: rgb(117, 47, 133);
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(117, 47, 133, 0.1);
}

.selectable-option.selected {
	border-color: rgb(117, 47, 133);
	background-color: rgb(117, 47, 133);
	color: #ffffff;
	font-weight: 600;
	box-shadow: 0 2px 8px rgba(117, 47, 133, 0.3);
}

.selectable-option.selected:hover {
	background-color: rgb(105, 42, 120);
	border-color: rgb(105, 42, 120);
}

.selectable-option:focus {
	outline: none;
}

.selectable-option:focus:not(.selected) {
	background-color: #ffffff !important;
	border-color: rgb(117, 47, 133) !important;
	color: rgb(88, 35, 100) !important;
	box-shadow: 0 0 0 3px rgba(117, 47, 133, 0.2) !important;
}

.selectable-option.selected:focus {
	background-color: rgb(117, 47, 133) !important;
	border-color: rgb(117, 47, 133) !important;
	color: #ffffff !important;
	box-shadow: 0 2px 8px rgba(117, 47, 133, 0.3) !important;
}

/* Ensure deselected buttons return to normal state (when not focused) */
.selectable-option:not(.selected):not(:focus) {
	background-color: #ffffff !important;
	border-color: rgb(208, 189, 213) !important;
	color: rgb(88, 35, 100) !important;
	box-shadow: none !important;
}

/* Navigation Buttons */
.cfp-navigation {
	display: flex;
	justify-content: space-between;
	margin-top: 30px;
	gap: 10px;
}

.cfp-btn {
	padding: 14px 32px;
	border: none;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	font-family: 'Poppins', sans-serif;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 2px 8px rgba(117, 47, 133, 0.2);
	position: relative;
	overflow: hidden;
}

.cfp-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.cfp-btn:hover::before {
	opacity: 1;
}

.cfp-btn .btn-icon {
	font-size: 24px;
	line-height: 1;
	font-weight: 700;
}

.cfp-btn .btn-text {
	display: inline;
}

.cfp-btn-primary {
	background: linear-gradient(135deg, rgb(117, 47, 133), rgb(140, 70, 155));
	color: #ffffff;
}

.cfp-btn-primary:hover:not(:disabled) {
	background: linear-gradient(135deg, rgb(140, 70, 155), rgb(160, 90, 175));
}

.cfp-btn-secondary {
	background: linear-gradient(135deg, rgb(208, 189, 213), rgb(195, 175, 200));
	color: rgb(70, 28, 80);
	box-shadow: 0 2px 8px rgba(208, 189, 213, 0.4);
}

.cfp-btn-secondary:hover:not(:disabled) {
	background: linear-gradient(135deg, rgb(195, 175, 200), rgb(180, 160, 185));
	box-shadow: 0 6px 20px rgba(208, 189, 213, 0.5);
}

.cfp-btn:disabled {
	background: #ccc;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
	opacity: 0.5;
}

/* Message Container */
#cfp-message-container {
	margin-top: 20px;
	padding: 12px;
	border-radius: 8px;
	font-family: 'Poppins', sans-serif;
	display: none;
}

#cfp-message-container.show {
	display: block;
}

#cfp-message-container.success {
	background-color: rgb(232, 245, 236);
	color: rgb(62, 115, 78);
	border: 1px solid rgb(104, 191, 130);
}

#cfp-message-container.error {
	background-color: rgb(251, 230, 224);
	color: rgb(170, 64, 37);
	border: 1px solid rgb(226, 85, 49);
}

/* Responsive Design */
@media (max-width: 768px) {
	.cfp-form-container {
		background: var(--cfp-bg-mobile, none) no-repeat center center;
		background-size: cover;
		margin: 0;
		padding: 20px;
		height: 100vh;
		max-height: calc(100vh - 190px);
		border-radius: 0;
		display: flex;
		flex-direction: column;
		justify-content: center;
		margin-bottom: 20px;
	}

	#cfp-form {
		display: flex;
		flex-direction: column;
		justify-content: center;
		flex: 1;
	}

	.cfp-intro {
		display: flex;
		flex-direction: column;
		justify-content: center;
		min-height: 80vh;
	}

	.cfp-intro h2 {
		font-size: 26px;
	}

	.cfp-form-container h3 {
		font-size: 16px;
	}

	.cfp-progress-container {
		margin-bottom: 20px;
	}

	.cfp-navigation {
		flex-direction: row;
		justify-content: space-between;
	}

	.cfp-btn {
		width: auto;
		min-width: 56px;
		min-height: 56px;
		padding: 0;
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 0;
		box-shadow: 0 4px 12px rgba(117, 47, 133, 0.25);
	}

	.cfp-btn {
		border-radius: 20px;
	}

	.cfp-btn:active:not(:disabled) {
		transform: scale(0.95);
	}

	.cfp-btn-submit {
		flex: 1;
		border-radius: 12px;
		padding: 14px 24px;
		min-width: auto;
		min-height: auto;
	}

	.cfp-btn .btn-text {
		display: none;
	}

	.cfp-btn .btn-icon {
		display: inline-flex;
		font-size: 32px;
		font-weight: 700;
	}

	.cfp-btn-submit .btn-text {
		display: inline;
	}

	.cfp-btn-submit .btn-icon {
		display: none;
	}

	.cfp-btn-back .btn-icon,
	.cfp-btn-next .btn-icon {
		margin: 0;
	}

	.cfp-form-group label {
		font-size: 15px;
	}

	.selectable-option {
		font-size: 14px;
		padding: 12px 16px;
	}
}