/*
 * HubSpot Popup Styles
 * Matches Figma design: node 1:30 — "Fullscreen form"
 * Colors: bg #2b3c96 | accent #fed03d | required #ef1136
 * Fonts: Urbanist (headings/labels) | Karla (stats numbers, submit)
 */

/* ============================================================
   OVERLAY — full-screen indigo background
   ============================================================ */
.hubspot-popup-overlay {
	position: fixed;
	inset: 0;
	background-color: #2b3c96;
	z-index: 99999;
	overflow-y: auto;
	overflow-x: hidden;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

.hubspot-popup-overlay.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: all;
}

body.hubspot-popup-active {
	overflow: hidden;
}

/* reCAPTCHA badge: hide site-wide, show only inside the open popup */
.grecaptcha-badge {
	visibility: hidden !important;
	opacity: 0 !important;
	transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

body.hubspot-popup-active .grecaptcha-badge {
	visibility: visible !important;
	opacity: 1 !important;
}

/* ============================================================
   CLOSE BUTTON — top-right, fixed to viewport
   ============================================================ */
.hubspot-popup-close {
	position: fixed;
	top: 70px;
	right: 70px;
	width: 48px;
	height: 48px;
	background: none;
	border: none;
	cursor: pointer;
	color: #ffffff;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background-color 0.2s ease, transform 0.25s ease;
	padding: 0;
	line-height: 1;
}

.hubspot-popup-close:hover,
.hubspot-popup-close:focus {
	background-color: rgba(255, 255, 255, 0.15);
	transform: rotate(90deg);
	outline: 2px solid rgba(255, 255, 255, 0.4);
	outline-offset: 2px;
}

/* ============================================================
   MAIN CARD — centered rounded container
   ============================================================ */
.hubspot-popup-card {
	max-width: 1280px;
	width: calc(100% - 80px);
	margin: 110px auto 0;
	background: #2b3c96;
	border-radius: 50px;
	padding: 70px 70px 40px;
	animation: hubspot-slide-in 0.4s ease forwards;
}

@keyframes hubspot-slide-in {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}

.hubspot-popup-inner {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

/* ============================================================
   LEFT PANEL — headline & stats
   ============================================================ */
.hubspot-popup-left {
	width: 452px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 56px;
}

/* Headline */
.hubspot-headline {
	font-family: 'Urbanist', sans-serif;
	font-weight: 700;
	font-size: 52px;
	line-height: 1.1;
	letter-spacing: -1.04px;
	color: #ffffff;
	margin: 0 0 12px;
}

.hubspot-accent {
	color: #fed03d;
}

.hubspot-subheading {
	font-family: 'Urbanist', sans-serif;
	font-weight: 500;
	font-size: 18px;
	line-height: 1.2;
	color: #ffffff;
	margin: 0;
}

/* Stats grid */
.hubspot-stats {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.hubspot-stat-row {
	display: flex;
	gap: 14px;
}

.hubspot-stat-card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 18px;
	background: linear-gradient(
		-89.14deg,
		rgba(255, 255, 255, 0.112) 0.72%,
		rgba(255, 255, 255, 0.152) 99.89%
	);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(43, 60, 150, 0.1);
	border-radius: 10px;
	color: #ffffff;
	white-space: nowrap;
}

.hubspot-stat-full {
	width: 100%;
}

.hubspot-stat-row .hubspot-stat-card {
	flex: 1;
	min-width: 0;
}

.hubspot-stat-number {
	font-family: 'Karla', sans-serif;
	font-weight: 700;
	font-size: 26px;
	line-height: 1;
	flex-shrink: 0;
}

.hubspot-stat-label {
	font-family: 'Urbanist', sans-serif;
	font-weight: 500;
	font-size: 17px;
	line-height: 1;
}

/* ============================================================
   RIGHT PANEL — radio + form
   ============================================================ */
.hubspot-popup-right {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* ── Radio Buttons ── */
.hubspot-radio-group {
	display: flex;
	gap: 26px;
	align-items: center;
}

.hubspot-radio-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-family: 'Urbanist', sans-serif;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.2;
	color: #ffffff;
	user-select: none;
	white-space: nowrap;
}

.hubspot-radio-label input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

/* Custom radio indicator */
.hubspot-radio-custom {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.6);
	background: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: border-color 0.2s ease, background-color 0.2s ease;
	position: relative;
}

.hubspot-radio-label input[type="radio"]:checked + .hubspot-radio-custom {
	background-color: #fed03d;
	border-color: #fed03d;
}

/* Checkmark when selected */
.hubspot-radio-label input[type="radio"]:checked + .hubspot-radio-custom::after {
	content: '';
	display: block;
	width: 7px;
	height: 12px;
	border: 2.5px solid #2b3c96;
	border-top: none;
	border-left: none;
	transform: rotate(45deg) translateY(-2px);
}

.hubspot-radio-label input[type="radio"]:focus + .hubspot-radio-custom {
	outline: 2px solid #fed03d;
	outline-offset: 2px;
}

/* ── Work-seeker message panel ── */
.hubspot-work-message {
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: 36px 0 8px;
}

.hubspot-work-message[hidden] {
	display: none;
}

.hubspot-work-message-text,
.hubspot-work-message-text p {
	font-family: 'Urbanist', sans-serif;
	font-weight: 500;
	font-size: 17px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.9);
	margin: 0 0 1em;
}

.hubspot-work-message-text p:last-child {
	margin-bottom: 0;
}

.hubspot-jobs-page-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 30px;
	background: #fed03d;
	color: #2b3c96;
	font-family: 'Karla', sans-serif;
	font-weight: 700;
	font-size: 18px;
	line-height: 24px;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 100px;
	white-space: nowrap;
	align-self: flex-start;
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.hubspot-jobs-page-btn:hover {
	background: #ffc107;
	transform: translateX(2px);
	color: #2b3c96;
	text-decoration: none;
}

.hubspot-jobs-page-btn:focus {
	outline: 3px solid rgba(255, 255, 255, 0.6);
	outline-offset: 3px;
}

/* ── Form Fields ── */
.hubspot-contact-form {
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* Single-column stacked layout (consultation modal is narrow) */
.hubspot-form--stacked .hubspot-form-row {
	grid-template-columns: 1fr;
	gap: 0;
}

.hubspot-form--stacked .hubspot-submit-btn {
	width: 100%;
}

.hubspot-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
}

.hubspot-form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 20px;
}

.hubspot-form-group label {
	font-family: 'Urbanist', sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.2;
	color: rgba(255, 255, 255, 0.8);
}

.hubspot-required {
	color: #ef1136;
	margin-left: 1px;
}

.hubspot-form-group input[type="text"],
.hubspot-form-group input[type="email"],
.hubspot-form-group input[type="tel"],
.hubspot-form-group textarea {
	width: 100%;
	height: 40px;
	padding: 0 10px;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.16);
	border-radius: 4px;
	font-family: 'Karla', sans-serif;
	font-size: 14px;
	color: #111827;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	outline: none;
	box-sizing: border-box;
	overflow: clip;
}

.hubspot-form-group textarea {
	height: 80px;
	padding: 8px 10px;
	resize: vertical;
}

.hubspot-form-group input:focus,
.hubspot-form-group textarea:focus {
	border-color: #2b3c96;
	box-shadow: 0 0 0 3px rgba(254, 208, 61, 0.35);
}

.hubspot-form-group input.has-error,
.hubspot-form-group textarea.has-error {
	border-color: #ef1136;
	box-shadow: 0 0 0 3px rgba(239, 17, 54, 0.15);
}

/* Field error messages */
.hubspot-field-error {
	font-family: 'Karla', sans-serif;
	font-size: 13px;
	color: #ffb3bf;
	display: block;
	overflow: hidden;
}

.hubspot-field-error:empty {
	height: 0;
}

/* Global error banner */
.hubspot-form-global-error {
	background: rgba(239, 17, 54, 0.15);
	border: 1px solid rgba(239, 17, 54, 0.4);
	border-radius: 6px;
	padding: 10px 14px;
	font-family: 'Karla', sans-serif;
	font-size: 14px;
	color: #ffb3bf;
	margin-bottom: 16px;
}

.hubspot-form-global-error[hidden] {
	display: none;
}

/* ── Submit Button ── */
.hubspot-form-footer {
	margin-top: 4px;
}

.hubspot-submit-btn {
	background: #fed03d;
	color: #2b3c96;
	font-family: 'Karla', sans-serif;
	font-weight: 700;
	font-size: 18px;
	line-height: 24px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	padding: 14px 30px;
	border: none;
	border-radius: 100px;
	width: 210px;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.hubspot-submit-btn:hover:not(:disabled) {
	background: #ffc107;
	transform: translateY(-1px);
}

.hubspot-submit-btn:focus {
	outline: 3px solid rgba(255, 255, 255, 0.6);
	outline-offset: 3px;
}

.hubspot-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

/* ── Success State ── */
.hubspot-success-message {
	text-align: center;
	padding: 40px 20px;
	color: #ffffff;
}

.hubspot-success-message[hidden] {
	display: none;
}

.hubspot-success-icon {
	margin-bottom: 20px;
}

.hubspot-success-message h3 {
	font-family: 'Urbanist', sans-serif;
	font-weight: 700;
	font-size: 28px;
	color: #ffffff;
	margin: 0 0 12px;
}

.hubspot-success-text {
	font-family: 'Urbanist', sans-serif;
	font-size: 18px;
	color: rgba(255, 255, 255, 0.85);
	margin: 0 0 28px;
	line-height: 1.5;
}

.hubspot-success-close-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 36px;
	background: #fed03d;
	color: #2b3c96;
	font-family: 'Karla', sans-serif;
	font-weight: 700;
	font-size: 16px;
	text-transform: uppercase;
	border: none;
	border-radius: 100px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.hubspot-success-close-btn:hover {
	background: #ffc107;
}

/* ============================================================
   BOTTOM JOBS BANNER
   ============================================================ */
.hubspot-jobs-banner {
	max-width: 1280px;
	width: calc(100% - 80px);
	margin: 30px auto 40px;
	background: linear-gradient(
		92.96deg,
		rgba(0, 0, 0, 0.4) 0.41%,
		rgba(0, 0, 0, 0.6) 99.65%
	),
	linear-gradient(90deg, #2b3c96 0%, #2b3c96 100%);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50px;
	box-shadow: 0 16px 20px rgba(0, 0, 0, 0.25);
	overflow: hidden;
}

.hubspot-jobs-banner-inner {
	display: flex;
	align-items: center;
	gap: 45px;
	padding: 30px 65px;
}

.hubspot-jobs-banner-text {
	flex: 0 0 456px;
}

.hubspot-jobs-title {
	font-family: 'Urbanist', sans-serif;
	font-weight: 600;
	font-size: 24px;
	line-height: 1.2;
	letter-spacing: -0.288px;
	color: #ffffff;
	margin: 0 0 6px;
	white-space: nowrap;
}

.hubspot-jobs-sub {
	font-family: 'Urbanist', sans-serif;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.2;
	color: rgba(255, 255, 255, 0.9);
	margin: 0;
}

.hubspot-jobs-perks {
	display: flex;
	flex-grow: 1;
	justify-content: space-between;
	align-items: center;
}

.hubspot-jobs-perk {
	display: flex;
	flex-direction: column;
	gap: 9px;
	align-items: flex-start;
	width: 130px;
}

.hubspot-jobs-perk span {
	font-family: 'Urbanist', sans-serif;
	font-weight: 500;
	font-size: 14px;
	line-height: 1;
	color: rgba(255, 255, 255, 0.9);
	white-space: nowrap;
}

.hubspot-jobs-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 13px 20px 13px 24px;
	background: #ffffff;
	color: #2b3c96;
	font-family: 'Urbanist', sans-serif;
	font-weight: 700;
	font-size: 18px;
	line-height: 24px;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 50px;
	white-space: nowrap;
	transition: background-color 0.2s ease, transform 0.15s ease;
	flex-shrink: 0;
	margin-left: auto;
}

.hubspot-jobs-btn:hover {
	background: #f0f0f0;
	transform: translateX(2px);
	color: #2b3c96;
	text-decoration: none;
}

.hubspot-jobs-btn:focus {
	outline: 3px solid #fed03d;
	outline-offset: 3px;
}

/* ============================================================
   SIDEBAR CARD
   ============================================================ */
.hubspot-sidebar-card {
	background: #2b3c96;
	border-radius: 20px;
	padding: 28px 24px 32px;
	margin-bottom: 24px;
}

.hubspot-sidebar-title {
	font-family: 'Urbanist', sans-serif;
	font-weight: 700;
	font-size: 26px;
	line-height: 1.2;
	color: #ffffff;
	margin: 0 0 10px;
}

.hubspot-sidebar-subtitle {
	font-family: 'Urbanist', sans-serif;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.8);
	margin: 0 0 22px;
}

/* ============================================================
   RESPONSIVE — Tablet (768–1023px)
   ============================================================ */
@media (max-width: 1023px) {
	.hubspot-popup-card {
		padding: 60px 40px 40px;
		border-radius: 32px;
		width: calc(100% - 48px);
		margin-top: 80px;
	}

	.hubspot-popup-close {
		top: 24px;
		right: 24px;
	}

	.hubspot-popup-left {
		width: 340px;
		gap: 40px;
	}

	.hubspot-headline {
		font-size: 38px;
	}

	.hubspot-stat-number {
		font-size: 22px;
	}

	.hubspot-stat-label {
		font-size: 14px;
	}

	.hubspot-jobs-banner {
		width: calc(100% - 48px);
		border-radius: 32px;
	}

	.hubspot-jobs-banner-inner {
		flex-wrap: wrap;
		gap: 24px;
		padding: 24px 32px;
	}

	.hubspot-jobs-banner-text {
		flex: 1 1 auto;
	}

	.hubspot-jobs-perks {
		gap: 24px;
	}

	.hubspot-jobs-btn {
		margin-left: 0;
	}
}

/* ============================================================
   RESPONSIVE — Mobile (< 768px): bottom-sheet style
   ============================================================ */
@media (max-width: 767px) {
	.hubspot-popup-overlay {
		display: block;
		/* flex-direction: column;
		justify-content: flex-end; */
	}

	.hubspot-popup-card {
		width: 100%;
		margin: 0;
		border-radius: 24px 24px 0 0;
		padding: 48px 20px 32px;
		animation: hubspot-slide-up 0.4s ease forwards;
	}

	@keyframes hubspot-slide-up {
		from { transform: translateY(100%); }
		to   { transform: translateY(0); }
	}

	.hubspot-popup-close {
		top: 16px;
		right: 16px;
		background: rgba(255, 255, 255, 0.15);
	}

	.hubspot-popup-inner {
		flex-direction: column;
		gap: 32px;
	}

	.hubspot-popup-left {
		width: 100%;
		gap: 28px;
	}

	.hubspot-headline {
		font-size: 30px;
		letter-spacing: -0.5px;
	}

	.hubspot-subheading {
		font-size: 15px;
	}

	.hubspot-stat-card {
		padding: 14px;
		flex-wrap: wrap;
		white-space: normal;
	}

	.hubspot-form-row {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.hubspot-radio-group {
		flex-wrap: wrap;
		gap: 16px;
	}

	.hubspot-submit-btn {
		width: 100%;
	}

	.hubspot-jobs-banner {
		width: 100%;
		border-radius: 0;
		margin: 0;
	}

	.hubspot-jobs-banner-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		padding: 24px 20px;
	}

	.hubspot-jobs-banner-text {
		flex: none;
		width: 100%;
	}

	.hubspot-jobs-title {
		font-size: 20px;
		white-space: normal;
	}

	.hubspot-jobs-perks {
		gap: 20px;
		flex-wrap: wrap;
	}

	.hubspot-jobs-perk {
		width: auto;
	}

	.hubspot-jobs-btn {
		margin-left: 0;
		font-size: 15px;
		width: 100%;
		justify-content: center;
	}
}
