/* Age Calculator Tool — only the Day / Month / Year dropdowns. Everything else on the page is styled in Kadence Blocks. */

.ac-form {
	margin: 0 0 14px;
}

.ac-fields {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.ac-label {
	display: block;
	margin-bottom: 6px;
	font-size: 15px;
	font-weight: 600;
	color: var(--global-palette3, #0f172a);
}

.ac-form .ac-field select {
	display: block;
	width: 100%;
	height: 46px;
	padding: 0 38px 0 16px;
	border: 1.5px solid #cfd6e6;
	border-radius: 6px;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 20px;
	color: var(--global-palette3, #0f172a);
	font: inherit;
	font-size: 17px;
	box-shadow: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	cursor: pointer;
}

.ac-form .ac-field select:hover {
	border-color: #a9b4d0;
}

.ac-form .ac-field select:focus-visible {
	outline: none;
	border-color: var(--global-palette1, #3b5bf6);
	box-shadow: 0 0 0 3px rgba(59, 91, 246, 0.22);
}

.ac-error {
	margin: 12px 0 0;
	padding: 10px 14px;
	border-radius: 6px;
	background: #fdecec;
	color: #a11b1b;
	font-size: 15px;
	line-height: 1.4;
}

.ac-calc-btn,
.ac-reset-btn {
	cursor: pointer;
}

@media (max-width: 600px) {
	.ac-fields {
		gap: 10px;
	}

	.ac-form .ac-field select {
		padding: 0 30px 0 12px;
		background-position: right 8px center;
		background-size: 18px;
		font-size: 17px;
	}
}

/* ---------- Calculation feedback (classes are added by the script while it updates the result) ---------- */

.ac-out-age,
.ac-out-months,
.ac-out-days,
.ac-out-hours {
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.ac-busy {
	opacity: 0.3;
	transform: translateY(4px);
}

.ac-working {
	opacity: 0.75;
}

.ac-flash {
	animation: ac-flash 0.9s ease-out;
}

@keyframes ac-flash {
	0% {
		transform: scale(0.97);
		box-shadow: 0 0 0 0 rgba(15, 23, 42, 0.28);
	}

	40% {
		transform: scale(1.02);
	}

	100% {
		transform: scale(1);
		box-shadow: 0 0 0 14px rgba(15, 23, 42, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ac-out-age,
	.ac-out-months,
	.ac-out-days,
	.ac-out-hours {
		transition: none;
	}

	.ac-flash {
		animation: none;
	}
}
