/* Custom enhancements for smoother UX */

/* Smooth page transitions */
body {
	animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* Improved button transitions */
.b-btn {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.b-btn::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	transform: translate(-50%, -50%);
	transition: width 0.6s, height 0.6s;
}

.b-btn:hover::before {
	width: 300px;
	height: 300px;
}

.b-btn:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(205, 23, 31, 0.4);
}

.b-btn:active:not(:disabled) {
	transform: translateY(0);
}

.b-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.b-btn--active {
	opacity: 1 !important;
	cursor: pointer !important;
}

/* Input field improvements */
input[type="text"],
input[type="email"],
input[type="date"],
select {
	transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
select:focus {
	transform: scale(1.02);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Radio button enhancements */
.radio-style {
	transition: all 0.3s ease;
	cursor: pointer;
}

.radio-style:hover {
	transform: translateY(-2px);
}

.radio-style input:checked + span {
	animation: pulse 0.4s ease;
}

@keyframes pulse {
	0%, 100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.05);
	}
}

/* Checkbox improvements */
.checkbox-style {
	transition: all 0.3s ease;
	cursor: pointer;
}

.checkbox-style:hover {
	transform: scale(1.05);
}

/* Question wrapper animations */
.form__wrap[data-question] {
	background: rgba(255, 255, 255, 0.05);
	padding: 20px;
	border-radius: 12px;
	margin-bottom: 20px;
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.form__wrap[data-question]:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(205, 23, 31, 0.3);
	transform: translateX(5px);
}

/* Question text styling */
.form__question-text {
	font-size: 18px;
	font-weight: 600;
	color: #fff;
	margin-bottom: 15px;
	padding: 15px;
	background: linear-gradient(135deg, rgba(205, 23, 31, 0.8), rgba(103, 12, 16, 0.8));
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Security badges */
.security__item {
	transition: all 0.3s ease;
}

.security__item:hover {
	transform: scale(1.05);
}

/* Form wrapper improvements */
.form-wrapper {
	animation: slideUp 0.6s ease-out;
}

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

/* Progress indicator */
.progress-bar {
	width: 100%;
	height: 4px;
	background: rgba(255, 255, 255, 0.2);
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9999;
}

.progress-bar__fill {
	height: 100%;
	background: linear-gradient(90deg, #CD171F, #FFD700);
	transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 0 10px rgba(205, 23, 31, 0.5);
}

/* Alert box improvements */
.alert {
	animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
	0% {
		opacity: 0;
		transform: scale(0.8);
	}
	50% {
		transform: scale(1.05);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

/* Modal improvements */
.modal {
	backdrop-filter: blur(5px);
	transition: all 0.3s ease;
}

.modal.active {
	animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.modal-content {
	animation: modalSlideUp 0.4s ease;
}

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

/* Loading spinner for smoother transitions */
.loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10000;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.loading-overlay.active {
	opacity: 1;
	pointer-events: all;
}

.spinner {
	width: 50px;
	height: 50px;
	border: 4px solid rgba(255, 255, 255, 0.3);
	border-top-color: #CD171F;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* Footer hover effects */
.footer__buttons button {
	transition: all 0.3s ease;
}

.footer__buttons button:hover {
	color: #FFD700;
	transform: translateY(-2px);
}

/* Hero improvements */
.hero__img {
	animation: floatAnimation 3s ease-in-out infinite;
}

@keyframes floatAnimation {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
}

/* Jumping ball animation enhancement */
.jumping-ball-wrapper {
	animation: enhancedJump 2s ease-in-out infinite;
}

@keyframes enhancedJump {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-20px);
	}
}

/* Form input error states */
.form__error {
	transition: all 0.3s ease;
	transform-origin: top;
}

/* Success checkmark animation */
@keyframes checkmark {
	0% {
		stroke-dashoffset: 100;
	}
	100% {
		stroke-dashoffset: 0;
	}
}

/* Smooth scroll */
html {
	scroll-behavior: smooth;
}

/* Date input improvements */
input[type="date"] {
	transition: all 0.3s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator {
	cursor: pointer;
	filter: invert(1);
	opacity: 0.7;
	transition: opacity 0.3s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
	opacity: 1;
}

/* Google button hover */
.google__btn a {
	transition: all 0.3s ease;
}

.google__btn a:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

/* Questions title animation */
.questions__title {
	animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
	0%, 100% {
		text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
	}
	50% {
		text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
	}
}

/* Responsive improvements */
@media (max-width: 768px) {
	.form__question-text {
		font-size: 16px;
		padding: 12px;
	}
	
	.form__wrap[data-question]:hover {
		transform: none;
	}
}

/* Accessibility improvements */
*:focus {
	outline: 2px solid #FFD700;
	outline-offset: 2px;
}

/* Tooltip for help text */
[data-tooltip] {
	position: relative;
	cursor: help;
}

[data-tooltip]::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	padding: 8px 12px;
	background: rgba(0, 0, 0, 0.9);
	color: white;
	border-radius: 6px;
	font-size: 14px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	margin-bottom: 5px;
}

[data-tooltip]:hover::after {
	opacity: 1;
}




