/**
 * Resha Rugs Lead Popup Styling
 * Matches premium brand styling with gold accents (#c9a24a) and smooth transitions.
 */

/* Modal Overlay & Backdrop */
.resha-lead-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.55); /* Sophisticated dark slate overlay */
	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.165, 0.84, 0.44, 1);
}

.resha-lead-modal-overlay.is-visible {
	opacity: 1;
	pointer-events: auto;
}

/* Prevent body scrolling when modal is open */
body.resha-lead-modal-open {
	overflow: hidden !important;
}

/* Modal Card */
.resha-lead-modal-card {
	background: #ffffff;
	width: 90%;
	max-width: 480px;
	border-radius: 16px;
	border: 1px solid rgba(201, 162, 74, 0.2);
	box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.28);
	position: relative;
	overflow: hidden;
	padding: 44px 36px;
	box-sizing: border-box;
	transform: translateY(24px) scale(0.96);
	transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.resha-lead-modal-overlay.is-visible .resha-lead-modal-card {
	transform: translateY(0) scale(1);
}

/* Modal Close Button */
.resha-lead-modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: transparent;
	border: none;
	color: #64748b;
	cursor: pointer;
	padding: 6px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.25s ease;
	z-index: 10;
}

.resha-lead-modal-close:hover {
	color: #0f172a;
	background: #f1f5f9;
	transform: rotate(90deg);
}

.resha-lead-modal-close svg {
	display: block;
}

/* Modal Content & Typography */
.resha-lead-modal-content {
	text-align: center;
}

.resha-lead-modal-tagline {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: #c9a24a;
	margin-bottom: 12px;
	font-family: inherit;
}

.resha-lead-modal-title {
	font-size: 24px;
	font-weight: 600;
	color: #0f172a;
	margin: 0 0 12px 0;
	line-height: 1.3;
	font-family: "Playfair Display", "Times New Roman", serif;
}

.resha-lead-modal-subtitle {
	font-size: 13.5px;
	color: #475569;
	line-height: 1.55;
	margin: 0 0 28px 0;
}

/* Form Layout */
.resha-lead-popup-form {
	text-align: left;
}

.resha-lead-form-group {
	margin-bottom: 18px;
	display: flex;
	flex-direction: column;
}

.resha-lead-form-group label {
	font-size: 11.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #334155;
	margin-bottom: 6px;
}

.resha-lead-form-group input {
	padding: 12px 14px;
	border: 1.5px solid #e2e8f0;
	border-radius: 8px;
	font-size: 14.5px;
	color: #0f172a;
	background: #f8fafc;
	transition: all 0.3s ease;
	width: 100% !important;
	box-sizing: border-box;
	line-height: normal;
}

.resha-lead-form-group input::placeholder {
	color: #94a3b8;
}

.resha-lead-form-group input:focus {
	border-color: #c9a24a;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.12);
	outline: none;
}

/* Submit Button & Spinner */
.resha-lead-submit-btn {
	width: 100%;
	padding: 13px 20px;
	font-size: 13.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border-radius: 8px;
	border: 1px solid #0f172a;
	background: #0f172a;
	color: #ffffff;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 10px;
}

.resha-lead-submit-btn:hover {
	background: #c9a24a;
	border-color: #c9a24a;
	transform: translateY(-1.5px);
	box-shadow: 0 8px 18px rgba(201, 162, 74, 0.28);
}

.resha-lead-submit-btn:active {
	transform: translateY(0);
}

.resha-lead-submit-btn:disabled {
	background: #64748b;
	border-color: #64748b;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.btn-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: resha-lead-spin 0.75s linear infinite;
	flex-shrink: 0;
}

@keyframes resha-lead-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Error Message Banner */
.resha-lead-error-msg {
	background: #fef2f2;
	border: 1px solid #fee2e2;
	color: #991b1b;
	font-size: 13px;
	font-weight: 500;
	padding: 10px 12px;
	border-radius: 8px;
	margin-bottom: 18px;
	text-align: center;
}

/* Success State View */
.resha-lead-success-view {
	padding: 20px 0;
}

.resha-lead-success-icon {
	display: flex;
	justify-content: center;
	margin-bottom: 24px;
}

.resha-lead-success-icon svg {
	animation: resha-lead-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes resha-lead-pop {
	0% {
		transform: scale(0);
		opacity: 0;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

/* Mobile Adjustments */
@media (max-width: 480px) {
	.resha-lead-modal-card {
		padding: 38px 24px 32px 24px;
		width: 92%;
	}
	.resha-lead-modal-title {
		font-size: 20px;
	}
	.resha-lead-modal-subtitle {
		font-size: 12.5px;
		margin-bottom: 22px;
	}
}
