/* ==========================================================================
   Quick Quote Bar Widget Styling
   ========================================================================== */
.quick-quote-section {
	width: 100%;
	background-color: #fdf8f6;
	position: relative;
	overflow: hidden;
}

.quick-quote-section__title {
	text-align: center;
	color: #0f172a;
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin-bottom: 2rem;
}

.quick-quote-form {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.quick-quote-form__fields {
	display: flex;
	gap: 1.25rem;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
}

.quick-quote-form__group {
	flex: 1;
	min-width: 260px;
	position: relative;
}

.quick-quote-form__input {
	width: 100%;
	background-color: #ffffff;
	border: 1px solid #e2e8f0;
	color: #0f172a;
	font-size: 1rem;
	font-weight: 500;
	padding: 16px 20px;
	border-radius: 12px;
	outline: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.quick-quote-form__input:focus {
	border-color: var(--color-maroon);
	box-shadow: 0 0 0 4px rgba(180, 6, 50, 0.12), 0 4px 6px rgba(0, 0, 0, 0.05);
	background-color: #ffffff;
}

.quick-quote-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--color-maroon);
	color: #ffffff;
	border: none;
	padding: 16px 36px;
	font-size: 1rem;
	font-weight: 700;
	border-radius: 12px;
	cursor: pointer;
	outline: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 10px rgba(180, 6, 50, 0.2);
}

.quick-quote-form__submit:hover {
	background-color: var(--color-maroon-dark);
	transform: translateY(-2px);
	box-shadow: 0 6px 15px rgba(180, 6, 50, 0.3);
}

.quick-quote-form__submit:active {
	transform: translateY(0);
}

/* Spinner Loader Styling */
.quick-quote-form__btn-loader {
	display: inline-block;
	width: 20px;
	height: 20px;
	margin-left: 8px;
	vertical-align: middle;
}

.quick-quote-spinner {
	animation: rotate 2s linear infinite;
	width: 20px;
	height: 20px;
}

.quick-quote-spinner .path {
	stroke: #ffffff;
	stroke-linecap: round;
	animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
	100% { transform: rotate(360deg); }
}

@keyframes dash {
	0% {
		stroke-dasharray: 1, 150;
		stroke-dashoffset: 0;
	}
	50% {
		stroke-dasharray: 90, 150;
		stroke-dashoffset: -35;
	}
	100% {
		stroke-dasharray: 90, 150;
		stroke-dashoffset: -124;
	}
}

/* ==========================================================================
   Popup Success Modal
   ========================================================================== */
.newrealm-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(15, 23, 42, 0.6);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.newrealm-popup-overlay.is-active {
	opacity: 1;
	pointer-events: all;
}

.newrealm-popup-box {
	background-color: #ffffff;
	padding: 3rem 2.5rem;
	border-radius: 24px;
	width: 90%;
	max-width: 460px;
	text-align: center;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.1);
	transform: scale(0.9) translateY(20px);
	transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.newrealm-popup-overlay.is-active .newrealm-popup-box {
	transform: scale(1) translateY(0);
}

/* Checkmark Icon Animation */
.newrealm-popup-icon-wrap {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background-color: rgba(16, 185, 129, 0.1);
	color: #10b981;
	margin-bottom: 1.5rem;
	position: relative;
}

.newrealm-popup-icon-wrap::after {
	content: '';
	position: absolute;
	inset: -8px;
	border-radius: 50%;
	border: 2px solid rgba(16, 185, 129, 0.25);
	animation: pulse-ring 2s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}

.newrealm-popup-title {
	font-size: 1.75rem;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 0.75rem;
	letter-spacing: -0.01em;
}

.newrealm-popup-msg {
	font-size: 1.05rem;
	line-height: 1.6;
	color: #64748b;
	margin-bottom: 2rem;
}

.newrealm-popup-close-btn {
	background-color: #0f172a;
	color: #ffffff;
	border: none;
	padding: 12px 32px;
	font-size: 0.95rem;
	font-weight: 700;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.2s ease;
	outline: none;
	width: 100%;
}

.newrealm-popup-close-btn:hover {
	background-color: #1e293b;
	transform: translateY(-1px);
}

@keyframes pulse-ring {
	0% { transform: scale(0.95); opacity: 0.8; }
	50% { transform: scale(1.15); opacity: 0; }
	100% { transform: scale(0.95); opacity: 0; }
}

/* ==========================================================================
   Responsive Rules
   ========================================================================== */
@media screen and (max-width: 768px) {
	.quick-quote-section__title {
		font-size: 1.75rem;
	}
	.quick-quote-form__fields {
		flex-direction: column;
		align-items: stretch;
	}
	.quick-quote-form__group {
		width: 100%;
	}
	.quick-quote-form__submit {
		width: 100%;
	}
}
