
	@font-face {
	font-family: 'Graphik Web';
	src: url('../fonts/Graphik-SuperItalic-Web.woff2') format('woff2');
	font-weight: 900;
	font-style: italic;
}

	@font-face {
		font-family: 'Graphik';
		src: url('../fonts/Graphik-Regular-Web.woff2') format('woff2');
		font-weight: 400;
		font-style: normal;
	}


	#popup-wrapper {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.65);
		z-index: 1000000;
		display: none; /* Will be 'flex' when shown */
		backdrop-filter: blur(4px);
		overflow-y: auto;
		/* Added for centering */
		align-items: center;
		justify-content: center;
	}

	 /* POPUP CONTAINER */
	#popup {
		box-sizing: content-box;

		background-color: #F75423;
		color: #EFE3D5;
		box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
		padding: 50px;
		font-family: "Graphik", Helvetica, Arial, sans-serif !important; 

		display: flex;
		flex-wrap: nowrap;           /* ← prevent slogan wrapping under form */
		justify-content: space-between;
		align-items: stretch;        /* ← equal-height columns */

		max-width: 880px;
		width: 90%;
		margin: 40px auto;
		border-radius: 4px;
		position: relative;
	}

	.close-btn {
		position: absolute;
		top: 15px;
		right: 15px;
		font-size: 22px;
		font-weight: bold;
		background: transparent;
		color: #EFE3D5;
		border: none;
		cursor: pointer;
		z-index: 10;
	}

	/* HEADING TEXT */
	.custom-font-heading {
		font-family: 'Graphik Web', sans-serif;
		font-weight: 900;
		font-style: italic;
		
		/* responsive sizing: min 3rem, max 6rem, scales with viewport */
		font-size: clamp(5rem, 8vw, 6rem);
		line-height: 0.85;
		
		text-transform: uppercase;
		letter-spacing: -0.01em;
		
	}
	.custom-font-heading span {
		display: block;              /* one word per line as you have in markup */
	}
	/* SLOGAN COLUMN */
	.slogan-block {
		flex: 1 1 40%;               /* ← allow shrinking to keep on one row */
		display: flex;               /* ← inner flex for top/bottom alignment */
		flex-direction: column;
		justify-content: space-between;

		margin-top: 20px;            /* align top of slogan with form text */
	}

	.slogan-block span {
		display: block;
	}

	.form-description {
		color: #EFE3D5;
		font-size: 14px;
		font-weight: 400;
		line-height: 1.4;
		margin-top: 20px;
		margin-bottom: 10px;
		font-style: normal;
		text-transform: none;
	}

	.form-wrapper {
		flex: 1 1 50%;
		max-width: 420px;
		width: 100%;
	}

	.hs-form fieldset { /* General styling for all fieldsets */
		border: none;
		padding: 0;
		margin: 0;
	}

	.hs-form fieldset.form-columns-2 {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0 20px; /* Keep horizontal gap, vertical gap handled by hs-form-field margin */
	}

	.hs-form fieldset.form-columns-1,
	.hs-form fieldset.form-columns-0 {
		display: block;
	}

	.hs-form .hs-form-field {
		margin-bottom: 5px; /* Increased for error message space */
		padding-right: 0; /* Resetting padding if any was causing issues */
	}

	.hs-form .hs-form-field > div { /* Target the direct div child that usually wraps the input */
		width: 100%;
	}

	.hs-form input.hs-input,
	.hs-form textarea.hs-input,
	.hs-form select.hs-input {
		line-height: 0px;
		width: clamp(100%, 200%, 90vw);
		box-sizing: border-box; /* Ensures padding and border don't add to width */
		padding: 10px;
		border: 1px solid #EFE3D5;
		background: transparent;
		color: #EFE3D5;
		border-radius: 4px;
		font-family: "Graphik", Helvetica, Arial, sans-serif;
		font-size: 14px;
	}

	.hs-form input::placeholder {
		color: #EFE3D5;
	}

	.hs-form ul.inputs-list {
		list-style: none;
		padding: 0;
		margin: 0;
	}

	.hs-form li.hs-form-booleancheckbox {
		display: flex;
		align-items: center;
		font-size: 14px;
		color: #EFE3D5;
		margin-top: 15px; /* Adjusted if needed, but field margin is primary for vertical spacing */
	}

	.hs-form li.hs-form-booleancheckbox > label {
	all: unset; /* wipe inherited styles */
	display: flex;
	align-items: center;
	gap: 15px;  /* ← space between the box and the text */
	}

	.hs-error-msg {
		font-family: "Graphik", Helvetica, Arial, sans-serif !important;
		font-size: 11px;
		color: #f9cfcf;
		margin-top: 4px; /* This provides space below the input for the message */
		display: block; /* Ensure it takes its own line */
	}

	.hs-form .hs-button.primary {
		max-width: none;
		background-color: #EFE3D5 !important;
		color: #F75423  !important;
		font-weight: bold;
		font-family: "Graphik", Helvetica, Arial, sans-serif !important;
		padding: 10px 25px;
		border-radius: 30px;
		font-size: 16px;
		margin-top: 20px; /* This can be adjusted if more/less space is needed above button */
		border: none;
		width: 100%;
		cursor: pointer;
	}

	.hs-richtext,
	.hs-richtext p,
	.hs-richtext span { /* Targeting common elements within richtext for uniform font size */
		font-size: 10px !important; /* Uniform font size for disclaimer */
		color: #EFE3D5;
		margin-top: 0px;
		margin-bottom: 0px;
		line-height: 1.4;
		font-family: "Graphik", Helvetica, Arial, sans-serif !important;
	}

	.hs-richtext a {
		color: #EFE3D5 !important;
		font-size: 10px !important; /* Uniform font size for links */
		text-decoration: underline;
	}

	/* Remove reCAPTCHA */
	.hs_recaptcha {
		display: none !important;
	}

	.hs-anthem-logo-color {
		filter: brightness(0) saturate(100%) invert(92%) sepia(7%) saturate(1262%) hue-rotate(317deg) brightness(108%) contrast(87%);
	}

	.hs-anthem-logo {
		text-align: left;
		margin-top: 20px;
		width: 100%;
	}

	.hs-anthem-logo img {
		max-width: 115px;
		display: inline-block;
		position: relative;
		object-fit: contain;
	}

	/* CUSTOM CHECKBOX STYLE */
	.hs-form li.hs-form-booleancheckbox input[type="checkbox"] {
	/* remove the browser default box */
	-webkit-appearance: none;
	appearance: none;
	
	/* same border & radius as your text fields */
	width: 18px;
	height: 18px;
	border: 1px solid #EFE3D5;
	border-radius: 4px;

	/* transparent until checked */
	background-color: transparent;
	cursor: pointer;
	position: relative;

	/* align vertically with inputs’ text (adjust if needed) */
	vertical-align: middle;
	margin: 0;  
	}

	/* fill it when checked */
	.hs-form li.hs-form-booleancheckbox input[type="checkbox"]:checked {
	background-color: #EFE3D5;
	}

	.hs-form li.hs-form-booleancheckbox input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 5px;
	height: 9px;
	border: solid #F75423;
	border-width: 0 2px 2px 0;
	transform: translate(-50%, -50%) rotate(45deg);
	}

/* Cancel global hidden checkbox hack from main.min.css */
.hs-form li.hs-form-booleancheckbox input[type="checkbox"] {

	position: relative !important;
	left: auto !important;

	
	min-height: 0 !important;
   

}



	/* MOBILE */
	@media all and (max-width: 768px) {
		#popup-wrapper {
			/* Ensure display is flex for centering on mobile too if it's initially none */
			/* display: flex; */ /* Already set globally, ensure it's not overridden */
			padding: 30px 0; /* Add some padding to wrapper on mobile if popup is too close to edges */
		}

		#popup {
			flex-direction: column;
			padding: 30px 20px;
			width: 90%;
			margin-top: 10vh; /* Keeps it centered within the flex wrapper */
			gap: 10px;
		}

		.slogan-block {
			line-height: 1.1;
			text-align: center;
		}

		.form-description {
			margin: 15px auto 5px;
			text-align: center;
		}

		.form-wrapper {
			width: 100%;
			max-width: 100%;
		}

		.hs-form fieldset.form-columns-2 {
			grid-template-columns: 1fr; /* Stacks the fields */
			gap: 0; /* Vertical gap now handled by .hs-form-field margin */
		}
		/* Ensure each field in the former grid takes full width and respects its margin */
		.hs-form fieldset.form-columns-2 .hs-form-field {
			 width: 100%;
		}


		.hs-form li.hs-form-booleancheckbox {
			justify-content: flex-start; /* Or center if preferred: justify-content: center; */
			font-size: 14px;
			margin-top: 10px; /* Or rely on field margin-bottom */
		}

		.hs-richtext,
		.hs-richtext p,
		.hs-richtext span {
			text-align: center;
			font-size: 8px !important; /* Keep uniform font size for disclaimer */
		}
		.hs-richtext a {
			font-size: 8px !important; /* Keep uniform font size for links */
		}

		.hs-anthem-logo {
			text-align: center;
			margin-top: 10px;
		}

		.hs-anthem-logo img {
			width: 120px;
			margin: 0 auto;
			position: relative;
		}

		.hs-form .hs-button.primary {
			width: 100%;
		}
	}

	/* MOBILE LAYOUT TWEAKS */
	@media all and (max-width: 768px) {
	/* 1. Kill any horizontal overflow and reset wrapper padding */
	html, body {
		overflow-x: hidden;
	}
	#popup-wrapper {
		padding: 0;
	}

	/* 2. Equal 20px margin on every side, auto-sized to fit within viewport */
	#popup {
		display: flex;
		flex-direction: column;
		width: calc(160vw - 20px);       /* viewport minus left+right margin */
		max-width: 45vh;                 /* override desktop max-width */
		margin: 10px auto;               /* 20px top/right/bottom/left */
		padding: 20px;                   /* inner breathing room */
		box-sizing: border-box;
	  
		gap: 10px;

transform-origin: center center;

	}

	/* 3. Form description back to left-aligned */
	.form-description {
		font-size: 14px;
		text-align: left;
		margin: 15px 0 5px;
		margin-bottom: 10px;
	}

	/* 4. Hide the slogan’s built-in logo & re-inject at bottom of form */
	.slogan-block .hs-anthem-logo {
		display: none;
	}
	.form-wrapper::after {
		content: "";
		display: block;
		width: 115px;                    /* match your SVG’s width */
		height: 49px;                    /* match your SVG’s height */
		margin: 20px auto 0;
		background: url('/wp-content/themes/soco/imgs/logo-anthem-fff.svg') no-repeat center;
		background-size: contain;
		filter: brightness(0) saturate(100%) invert(92%) sepia(7%) saturate(1262%) hue-rotate(317deg) brightness(108%) contrast(87%);
	}

	/* 5. Preserve your other mobile tweaks */
	.slogan-block {
		font-size: 1rem;
		line-height: 1.1;
		text-align: center;
	}
	.hs-form fieldset.form-columns-2 {
		grid-template-columns: 1fr;
		gap: 0;
	}
	.hs-form fieldset.form-columns-2 .hs-form-field {
		width: 100%;
	}
	.hs-form li.hs-form-booleancheckbox {
		margin-top: 10px;
	}
	.hs-richtext,
	.hs-richtext p,
	.hs-richtext span {
		text-align: center;
		font-size: 8px !important;
	}
	.hs-richtext a {
		font-size: 8px !important;
	}
	.hs-form .hs-button.primary {
		width: 100%;
	}
	}

@media screen and (max-width: 768px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 2) {
  /* iPhone - smaller scale for tighter fit */
  #popup {
	transform: scale(0.70);
	transform-origin: top center;
	max-height: 150vh;
	overflow-y: auto;
	margin-top: 30vh; /* Keeps it centered within the flex wrapper */

  }

  #popup-wrapper {

	overflow-y: hidden;

  }
}

@media screen and (max-width: 768px) and (orientation: portrait) and (min-device-width: 360px) and (max-device-width: 800px) {
  /* Android - slightly larger */
  #popup {
	transform: scale(0.75);
	transform-origin: top center;
	max-height: 115vh;
	overflow-y: auto;
	margin-top: 30vh; /* Keeps it centered within the flex wrapper */

  }

  #popup-wrapper {

	overflow-y: hidden;

  }
}