/**
 * Enhanced Form Confirmation UI - Ella Jaymes Photography
 * 
 * Professional form submission confirmation with smooth animations,
 * animated checkmark, and seamless UI transitions that maintain
 * exact form dimensions for zero layout shift.
 * 
 * @version 1.0
 * @package EllaJaymesForms
 */

/* ===== SUCCESS CONFIRMATION CONTAINER ===== */
.form-success-container {
	display: none;
	position: relative;
	min-height: 580px; /* Match approximate form height */
	padding: 40px 30px;
	background-color: var(--primary-color);
	text-align: center;
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
	border-radius: 8px;
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.form-success-container.show {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	opacity: 1;
	transform: translateY(0);
}

/* ===== SUCCESS IMAGE ICON ===== */
.success-checkmark {
	width: 152px;
	height: 152px;
	margin: 0 auto 30px;
	position: relative;
}

.success-image {
	width: 152px;
	height: 152px;
	animation: checkmark-scale 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s both;
}

/* ===== SUCCESS MESSAGE CONTENT ===== */
.success-content {
	max-width: 450px;
	margin: 0 auto;
}

/* CENTER-ALIGNED ELEMENTS */
.success-title {
	font-family: var(--heading-font);
	font-size: 2rem;
	font-weight: 500;
	color: var(--text-color);
	margin-bottom: 15px;
	opacity: 0;
	transform: translateY(20px);
	animation: fade-slide-up 0.6s ease-out 1.0s both;
	text-align: center; /* CENTER: Main title */
}

/* LEFT-ALIGNED ELEMENTS */
.success-message {
	font-family: var(--body-font);
	font-size: 1.1rem;
	line-height: 1.6;
	color: var(--text-color);
	margin-bottom: 30px;
	opacity: 0;
	transform: translateY(20px);
	animation: fade-slide-up 0.6s ease-out 1.2s both;
	text-align: left; /* LEFT: Main message for better readability */
}

.success-details {
	background-color: rgba(208, 78, 125, 0.08); /* var(--accent-color-1) with low opacity */
	border: 1px solid #EF367F;
	border-radius: 6px;
	padding: 20px;
	margin-bottom: 25px;
	font-size: 0.95rem;
	color: var(--text-color);
	opacity: 0;
	transform: translateY(20px);
	animation: fade-slide-up 0.6s ease-out 1.4s both;
	text-align: left; /* LEFT: Details section for scanning */
}

.success-details strong {
	display: block;
	margin-bottom: 12px;
	font-weight: 600;
	color: var(--text-color);
}

.success-steps {
	list-style: none;
	padding: 0;
	margin: 0;
}

.success-steps li {
	position: relative;
	padding-left: 20px;
	margin-bottom: 8px;
	line-height: 1.5;
}

.success-steps li:before {
	content: "•";
	color: var(--accent-color-1);
	font-weight: bold;
	position: absolute;
	left: 0;
	top: 0;
}

.success-actions {
	display: flex;
	flex-direction: column;
	gap: 15px;
	align-items: center;
	opacity: 0;
	transform: translateY(20px);
	animation: fade-slide-up 0.6s ease-out 1.6s both;
}

.success-cta-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 30px;
	background-color: var(--accent-color-1);
	color: var(--light-text);
	text-decoration: none;
	border-radius: 25px;
	font-weight: 600;
	font-size: 0.95rem;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
	min-width: 200px;
}

.success-cta-button:hover {
	background-color: #d17c9c;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(208, 78, 125, 0.3);
	color: var(--light-text);
}

.success-contact-info {
	font-size: 0.9rem;
	color: var(--link-color);
	text-align: center; /* CENTER: Contact information */
}

.success-contact-info a {
	color: var(--accent-color-1);
	text-decoration: none;
	font-weight: 600;
}

.success-contact-info a:hover {
	color: #d17c9c;
}

/* ===== FORM TRANSITION EFFECTS ===== */
.form-content {
	transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-content.fade-out {
	opacity: 0;
	transform: translateY(-20px);
	pointer-events: none;
}

/* Ensure form container maintains dimensions during transition */
.form-wrapper {
	position: relative;
	overflow: hidden;
	transition: min-height 0.6s ease;
}

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes checkmark-scale {
	0% {
		transform: scale(0);
		opacity: 0;
	}
	50% {
		transform: scale(1.1);
		opacity: 1;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}


@keyframes fade-slide-up {
	0% {
		opacity: 0;
		transform: translateY(20px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
	.form-success-container {
		min-height: 500px;
		padding: 30px 20px;
	}

	.success-checkmark {
		width: 120px;
		height: 120px;
		margin-bottom: 25px;
	}

	.success-image {
		width: 120px;
		height: 120px;
	}

	.success-title {
		font-size: 1.8rem;
		margin-bottom: 12px;
	}

	.success-message {
		font-size: 1rem;
		margin-bottom: 25px;
	}

	.success-details {
		padding: 15px;
		font-size: 0.9rem;
		margin-bottom: 20px;
	}

	.success-cta-button {
		padding: 10px 25px;
		font-size: 0.9rem;
		min-width: 180px;
	}
}

@media (max-width: 480px) {
	.form-success-container {
		min-height: 450px;
		padding: 25px 15px;
	}

	.success-checkmark {
		width: 100px;
		height: 100px;
		margin-bottom: 20px;
	}

	.success-image {
		width: 100px;
		height: 100px;
	}

	.success-title {
		font-size: 1.6rem;
	}

	.success-message {
		font-size: 0.95rem;
	}

	.success-actions {
		gap: 12px;
	}

	.success-cta-button {
		padding: 10px 20px;
		font-size: 0.85rem;
		min-width: 160px;
	}
}