@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,500;9..144,600&family=Inter:wght@400;500;600;700&display=swap');

.hhr-overlay {
	position: fixed;
	inset: 0;
	background: rgba(11, 28, 46, 0.6);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	padding: 20px;
	backdrop-filter: blur(3px);
	animation: hhr-fade 0.25s ease;
	color-scheme: light;
	accent-color: #1d6fa5;
	-webkit-tap-highlight-color: transparent;
}
.hhr-overlay * {
	-webkit-tap-highlight-color: transparent;
}
.hhr-overlay ::selection {
	background: rgba(29, 111, 165, 0.22);
	color: #0b1c2e;
}
.hhr-overlay.hhr-open {
	display: flex;
}
@keyframes hhr-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

.hhr-modal {
	position: relative;
	background: #fff;
	width: 100%;
	max-width: 440px;
	border-radius: 20px;
	box-shadow: 0 24px 70px rgba(11, 28, 46, 0.35);
	font-family: 'Inter', sans-serif;
	color: #0b1c2e;
	max-height: 92vh;
	overflow-y: auto;
	overflow-x: hidden;
	box-sizing: border-box;
	animation: hhr-pop 0.35s cubic-bezier(.2, .9, .3, 1.2);
}
.hhr-modal * {
	box-sizing: border-box;
	min-width: 0;
}
@keyframes hhr-pop {
	from { opacity: 0; transform: translateY(18px) scale(0.97); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.hhr-modal-top {
	position: relative;
	padding: 24px 26px 16px;
	background: linear-gradient(135deg, #123a58 0%, #1d6fa5 55%, #2f8fc9 100%);
	overflow: hidden;
	border-radius: 20px 20px 0 0;
}
.hhr-glow {
	position: absolute;
	top: -60px;
	right: -40px;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
	pointer-events: none;
}
.hhr-modal .hhr-close {
	position: absolute;
	top: 14px;
	right: 14px;
	background: rgba(255, 255, 255, 0.14);
	border: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	padding: 0;
	line-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #fff;
	z-index: 2;
	outline-color: rgba(255, 255, 255, 0.6);
	transition: background 0.2s ease, transform 0.2s ease;
}
.hhr-modal .hhr-close svg {
	width: 14px;
	height: 14px;
	display: block;
}
.hhr-modal .hhr-close:hover,
.hhr-modal .hhr-close:focus-visible {
	background: rgba(255, 255, 255, 0.26);
	transform: rotate(90deg);
}
.hhr-eyebrow {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #bfe0f2;
	font-weight: 600;
	margin-bottom: 6px;
	opacity: 0;
	animation: hhr-rise 0.6s 0.05s forwards;
}
.hhr-modal h2 {
	position: relative;
	z-index: 1;
	font-family: 'Fraunces', serif;
	font-weight: 500;
	font-size: 1.3rem;
	line-height: 1.25;
	margin: 0 0 4px;
	padding-right: 24px;
	color: #fff;
	opacity: 0;
	animation: hhr-rise 0.6s 0.1s forwards;
}
.hhr-sub {
	position: relative;
	z-index: 1;
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.85rem;
	margin: 0;
	opacity: 0;
	animation: hhr-rise 0.6s 0.15s forwards;
}
@keyframes hhr-rise {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

.hhr-step {
	padding: 20px 26px 26px;
}

.hhr-field {
	display: block;
	margin-bottom: 14px;
}
.hhr-field span:first-child {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	margin-bottom: 6px;
	color: #0b1c2e;
}
.hhr-field em {
	color: #cf2e2e;
	font-style: normal;
}
.hhr-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}
.hhr-input-icon {
	position: absolute;
	left: 12px;
	width: 17px;
	height: 17px;
	color: #94a9bd;
	pointer-events: none;
}
#hhr-overlay .hhr-input-wrap input {
	width: 100%;
	padding: 11px 12px 11px 40px !important;
	text-indent: 0;
	border: 1.5px solid rgba(29, 111, 165, 0.2);
	border-radius: 10px;
	font-size: 0.95rem;
	font-family: inherit;
	box-sizing: border-box;
	caret-color: #1d6fa5;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hhr-input-wrap input:focus {
	outline: none;
	border-color: #1d6fa5;
	box-shadow: 0 0 0 3px rgba(29, 111, 165, 0.14);
}
.hhr-input-wrap input:invalid {
	box-shadow: none;
}
.hhr-input-wrap input:-webkit-autofill,
.hhr-input-wrap input:-webkit-autofill:focus {
	-webkit-text-fill-color: #0b1c2e;
	-webkit-box-shadow: 0 0 0 1000px #fff inset;
	transition: background-color 9999s ease-in-out 0s;
}
.hhr-input-wrap.is-valid input {
	border-color: #16a34a;
}
.hhr-input-wrap.is-invalid input {
	border-color: #cf2e2e;
}
.hhr-input-check {
	position: absolute;
	right: 12px;
	width: 17px;
	height: 17px;
	color: #16a34a;
	opacity: 0;
	transform: scale(0.6);
	transition: opacity 0.15s ease, transform 0.15s ease;
}
.hhr-input-wrap.is-valid .hhr-input-check {
	opacity: 1;
	transform: scale(1);
}
.hhr-phone-wrap .hhr-phone-prefix {
	position: absolute;
	left: 12px;
	font-size: 0.9rem;
	color: #5b7691;
	font-weight: 600;
	padding-right: 8px;
	border-right: 1px solid rgba(91, 118, 145, 0.3);
}
#hhr-overlay .hhr-phone-wrap input {
	padding-left: 56px !important;
}
.hhr-phone-wrap .hhr-input-icon {
	display: none;
}
.hhr-field-error {
	display: block;
	font-size: 0.74rem;
	color: #cf2e2e;
	line-height: 1.3;
}
.hhr-field-error:not(:empty) {
	margin-top: 4px;
}

.hhr-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}
.hhr-error {
	color: #cf2e2e;
	font-size: 0.85rem;
	margin: 0;
}
.hhr-error:not(:empty) {
	margin-bottom: 10px;
}
.hhr-modal .hhr-submit {
	position: relative;
	width: 100%;
	background: linear-gradient(135deg, #2f8fc9, #1d6fa5);
	color: #fff;
	border: none;
	padding: 14px;
	border-radius: 100px;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	overflow: hidden;
	box-shadow: 0 10px 26px -10px rgba(29, 111, 165, 0.6);
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.hhr-modal .hhr-submit::after {
	content: '';
	position: absolute;
	top: 0;
	left: -75%;
	width: 45%;
	height: 100%;
	background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
	transform: skewX(-20deg);
	animation: hhr-shine 3.2s ease-in-out infinite;
}
@keyframes hhr-shine {
	0% { left: -75%; }
	35% { left: 130%; }
	100% { left: 130%; }
}
.hhr-modal .hhr-submit:hover:not(:disabled),
.hhr-modal .hhr-submit:focus-visible:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 14px 32px -10px rgba(29, 111, 165, 0.7);
	color: #fff;
	outline: none;
}
.hhr-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}
.hhr-submit:disabled::after {
	animation: none;
	display: none;
}

.hhr-step-success {
	text-align: center;
	padding: 32px 26px 28px;
}
.hhr-check {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #e6f7ee;
	color: #16a34a;
	margin: 0 auto 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: hhr-check-pop 0.5s cubic-bezier(.2, .9, .3, 1.4);
}
.hhr-check svg {
	width: 26px;
	height: 26px;
}
@keyframes hhr-check-pop {
	from { transform: scale(0.4); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}
#hhr-success-message {
	font-size: 0.95rem;
	color: #0b1c2e;
	margin: 0 0 20px;
	line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
	.hhr-overlay, .hhr-modal, .hhr-eyebrow, .hhr-modal h2, .hhr-sub, .hhr-check, .hhr-modal .hhr-submit::after {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

@media (max-width: 480px) {
	.hhr-modal { max-width: 100%; border-radius: 16px; }
}
