/* Base wrapper (keeps layout stable) */
.uffizio-btn {
	display: inline-block;
}

.uffizio-btn a {
	display: inline-block;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
	font-family: Antonio, sans-serif;
	text-transform: uppercase;
	padding: 6px 50px;
	border-radius: 4px;
	font-weight: 400;
	font-size: 18px;
}

/* -----------------------------------
   PRIMARY BUTTON
----------------------------------- */

.uffizio-btn-primary a {
	background: #0057ff;
	color: #fff;
	border: 2px solid transparent;
}

.uffizio-btn-primary:hover a {
	background: #fff !important;
	color: var(--uffizio-color-accent) !important;
	border-color: var(--uffizio-color-accent) !important;
	transition: all 0.5s ease;
}

.uffizio-btn-secondary a {
	background: #fff !important;
	color: var(--uffizio-color-accent) !important;
	border: 2px solid transparent;
}

.uffizio-btn-secondary:hover a {
	background: var(--uffizio-color-accent) !important;
	color: var(--uffizio-text-white) !important;
	border-color: var(--uffizio-color-accent) !important;
	transition: all 0.5s ease;
}

/* -----------------------------------
   SECONDARY BUTTON
----------------------------------- */
.uffizio-btn-secondary a {
	background: #f3f3f3;
	color: #222;
	border: 1px solid #ccc;
}

.uffizio-btn-secondary a:hover {
	background-color: #e8e8e8;
}

/* -----------------------------------
   OUTLINE BUTTON
----------------------------------- */
.uffizio-btn-outline a {
	background-color: transparent;
	border: 2px solid #0057ff;
	color: #0057ff;
}

.uffizio-btn-outline a:hover {
	background-color: #0057ff;
	color: #fff;
}

/* -----------------------------------
   PRODUCT HERO BUTTON
----------------------------------- */
.uffizio-btn-product_hero a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 300px;
	height: 60px;
	padding: 0 18px !important;
	background-color: transparent !important;
	color: var(--uffizio-text-white);
	margin: 0 auto;
	font-family: var(--uffizio-font-heading);
	font-weight: 400;
	font-size: 20px;
	letter-spacing: 1%;
	border: 1.5px solid #fff;
	border-radius: 10px;
}

.uffizio-btn-product_hero:hover a {
	background-color: #fff !important;
	color: var(--uffizio-color-accent);
	border: 1.5px solid var(--uffizio-color-accent);
}

/* ----------------------------------------------------
   RESPONSIVE — PERFECT FOR ALL DEVICES
---------------------------------------------------- */

/* Tablets (1024px and below) */
@media (max-width: 1024px) {
	.uffizio-btn a {
		font-size: 18px;
		padding: 6px 40px;
	}

	.uffizio-btn-product_hero a {
		width: 260px;
		height: 56px;
		font-size: 18px;
		padding: 16px !important;
	}
}

/* Large Mobiles / Small Tablets (768px) */
@media (max-width: 768px) {
	.uffizio-btn a {
		font-size: 16px;
		padding: 6px 32px;
	}

	.uffizio-btn-product_hero a {
		width: 230px;
		height: 52px;
		font-size: 17px;
		padding: 14px !important;
	}
}

/* Mobiles (480px and below) */
@media (max-width: 480px) {
	.uffizio-btn a {
		font-size: 15px;
		padding: 6px 26px;
	}

	.uffizio-btn-product_hero a {
		width: 200px;
		height: 48px;
		font-size: 16px;
		padding: 12px !important;
	}
}

/* Small phones (380px and below) */
@media (max-width: 380px) {
	.uffizio-btn a {
		font-size: 16px;
		padding: 6px 22px;
	}

	.uffizio-btn-product_hero a {
		width: 180px;
		height: 45px;
		font-size: 15px;
		padding: 10px !important;
	}
}

/* HubSpot Popup Modal Styling */
.uffizio-hubspot-popup-modal {
	align-items: flex-start !important;
	/* Prevents jumping/centering issues when form grows */
	padding: 50px 20px;
}

.uffizio-hubspot-popup-modal .uffizio-video-popup-modal-content {
	background-color: #fff;
	padding: 30px;
	max-width: 600px;
	border-radius: 12px;
	margin: auto;
}

.uffizio-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #efefef;
}

.uffizio-modal-title {
	font-family: 'Antonio', sans-serif;
	font-size: 28px;
	line-height: 1;
	font-weight: 700;
	color: #111;
	margin: 0;
	text-align: left;
	text-transform: uppercase;
}

.uffizio-hubspot-popup-modal .uffizio-video-popup-close {
	background: #0057ff;
	color: #fff;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	line-height: 0;
	position: static;
	cursor: pointer;
	transition: transform 0.2s ease;
	font-family: sans-serif;
	font-weight: bold;
}

.uffizio-hubspot-popup-modal .uffizio-video-popup-close:hover {
	transform: scale(1.1);
}

.uffizio-hubspot-popup-modal .uffizio-video-popup-modal-content-body {
	min-height: 300px;
}



/* HubSpot Loader & Spinner */
.hs-loader {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 400px;
	width: 100%;
	color: #666;
	font-family: sans-serif;
	gap: 15px;
}

.hs-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #0057ff;
	border-radius: 50%;
	animation: hs-spin 1s linear infinite;
}

@keyframes hs-spin {
	0% {
		transform: rotate(0deg);
	}

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

.uffizio-hubspot-form {
	animation: hs-fade-in 0.5s ease forwards;
	opacity: 0;
}

@keyframes hs-fade-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}