/* =======================================================================
 * ax-newsletter — "Stay Connected" card with expanding signup form
 * Figma: 1552:4787 (default) / 2302:70 (desktop states) / 2302:75 (mobile)
 * States: default -> click "Get updates" reveals the form -> submit ->
 * green "Subscribed!" confirmation.
 * All selectors are #top-prefixed to beat Enfold specificity.
 * ==================================================================== */
#top .ax-news {
	--ax-purple: #444192;
	--ax-green: #00bd87;
	position: relative;
	overflow: visible;
	max-width: 100%;
	padding: 40px 44px;
	background: #fff;
	border-radius: 24px;
	font-family: "Montserrat", sans-serif;
	box-sizing: border-box;
	background-image: url(/wp-content/uploads/2026/06/9-13.png);
	background-position: center bottom;
	background-repeat: no-repeat;
    background-size: 700px;
	transition: box-shadow .2s ease;
}

#top .ax-news:hover {
	box-shadow: -2px 3px 10px 0 rgba(0, 0, 0, 0.1);
}

#top .ax-news * {
	box-sizing: border-box;
}

/* faint line texture in the lower-right, like the design */

#top .ax-news__inner {
	position: relative;
	z-index: 2;
	max-width: 360px;
}

#top .ax-news__eyebrow {
	display: block;
	margin-bottom: 14px;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 1.95px;
	text-transform: uppercase;
	color: #000;
}

#top .ax-news__title {
	margin: 0 0 16px;
	font-size: 35px;
	line-height: 40px;
	font-weight: 700;
	color: var(--ax-purple);
	letter-spacing: 0px;
	text-transform: unset !important;
	max-width: 204px;
}

#top .ax-news__desc {
	margin: 0;
	font-size: 16px;
	line-height: 1.7;
	color: #292929;
}

/* ---- reveal (the form animates open) ---- */
#top .ax-news__reveal {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows .35s ease, margin-top .35s ease, opacity .3s ease;
	opacity: 0;
	margin-top: 0;
}

#top .ax-news.is-open .ax-news__reveal {
	grid-template-rows: 1fr;
	opacity: 1;
	margin-top: 26px;
}

#top .ax-news.is-open .ax-news__inner {
	max-width: 100%;
}

#top .ax-news__reveal-inner {
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

#top .ax-news__input {
	width: 100%;
	height: 47px;
	padding: 0 24px;
	border: .3px solid #000;
	border-radius: 77px;
	background: #fff;
	font-family: "Inter", sans-serif;
	font-size: 15px;
	color: #292929;
	outline: none;
}

#top .ax-news__input::placeholder {
	color: rgba(41,41,41,.5);
}

#top .ax-news__input:focus {
	border-color: var(--ax-purple);
}

#top .ax-news__input.is-invalid {
	border-color: #e0413f;
}

/* ---- consent checkbox ---- */
#top .ax-news__check {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-top: 6px;
	cursor: pointer;
}

#top .ax-news__check input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

#top .ax-news__check-box {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	margin-top: 1px;
	border: .3px solid #000;
	border-radius: 30px;
	background: #fff;
	position: relative;
	transition: background .15s ease, border-color .15s ease;
}

#top .ax-news__check input:checked + .ax-news__check-box {
	background: var(--ax-purple);
	border-color: var(--ax-purple);
}

#top .ax-news__check input:checked + .ax-news__check-box::after {
	content: "";
	position: absolute;
	left: 8px;
	top: 4px;
	width: 6px;
	height: 11px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

#top .ax-news__check input:focus-visible + .ax-news__check-box {
	outline: 2px solid var(--ax-purple);
	outline-offset: 2px;
}

#top .ax-news__check-text {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.55;
	color: #000;
}

#top .ax-news__note {
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.55;
	color: #000;
}

/* ---- button ---- */
#top .ax-news__btn {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 16px;
	height: 51px;
	margin-top: 36px;
	padding: 0 6px 0 26px;
	border: 0;
	border-radius: 77px;
	background: var(--ax-purple);
	color: #fff;
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition: background .25s ease;
}

#top .ax-news__btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #FFF;
}

#top .ax-news__btn-icon svg {
	width: 18px;
	height: 18px;
}

#top .ax-news__btn .ax-news__icon-check {
	display: none;
}

/* subscribed */
#top .ax-news.is-done .ax-news__btn {
	background: var(--ax-green);
	cursor: default;
}

#top .ax-news.is-done .ax-news__btn .ax-news__icon-mail {
	display: none;
}

#top .ax-news.is-done .ax-news__btn .ax-news__icon-check {
	display: block;
}

#top .ax-news.is-done .ax-news__input {
	opacity: .5;
	pointer-events: none;
}

#top .ax-news.is-done .ax-news__check,
#top .ax-news.is-done .ax-news__note {
	opacity: .35;
	pointer-events: none;
}

#top .ax-news.is-done .ax-news__reveal {
    margin-top: 0px;
}

/* ---- paper-plane art (hidden once the form opens) ---- */
#top .ax-news__art {
    position: absolute;
    right: -40px;
    bottom: -1px;
    width: 330px;
    max-width: 56%;
    z-index: 1;
    pointer-events: none;
    transition: opacity .3s ease, transform .35s ease;
}

#top .ax-news__art img,
#top .ax-news__art svg {
	display: block;
	width: 100%;
	height: auto;
}

#top .ax-news.is-open .ax-news__art {
	opacity: 0;
	transform: translateY(12px);
}

/* ---- mobile ---- */
@media (max-width:760px) {
	#top .ax-news {
        padding: 30px 26px 154px 30px;
		background-size: 500px;
    }
	
	#top .ax-news.is-open {
        padding: 30px 26px 50px 30px;
    }

	#top .ax-news__inner {
		max-width: 100%;
	}

	#top .ax-news__title {
		font-size: 25px;
		line-height: 33px;
	}

	#top .ax-news__desc {
		font-size: 15px;
	}

	#top .ax-news__art {
        width: 262px;
        max-width: 64%;
        right: 19px;
        bottom: -1px;
    }

	#top .ax-news__art img:last-child {
		right: -2px !important;
		bottom: -9px !important;
	}
	
	#top .ax-news.is-open .ax-news__btn {
        width: max-content;
        justify-content: center;
        padding: 0 66px 0px 32px;
        margin: 0 auto !important;
        margin-top: 20px !important;
        display: flex;
    }

	#top .ax-news.is-open .ax-news__btn-icon {
		position: absolute;
		right: 6px;
	}
}

/* =======================================================================
 * Gravity Forms mode — restyle the embedded form to match the card.
 * Field markup varies by GF setup; these target GF's generic classes. If a
 * field doesn't pick up the pill style, send the rendered .gform_wrapper HTML
 * and these selectors can be tightened.
 * ==================================================================== */
#top .ax-news .gform_wrapper,
#top .ax-news .gform_wrapper form {
	margin: 0;
}

#top .ax-news .gform_wrapper .gform_fields {
	display: flex;
	flex-direction: column;
	gap: 12px;
	grid-row-gap: 12px;
}

#top .ax-news .gform_wrapper .gfield {
	margin: 0;
	padding: 0;
}

/* design uses placeholders, not visible labels */
#top .ax-news .gform_wrapper .gfield_label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

#top .ax-news .gform_wrapper input[type="text"],
#top .ax-news .gform_wrapper input[type="email"],
#top .ax-news .gform_wrapper input[type="tel"],
#top .ax-news .gform_wrapper input[type="url"],
#top .ax-news .gform_wrapper input[type="number"] {
	width: 100%;
	height: 47px;
	padding: 0 24px;
	border: 1px solid #000 !important;
	border-radius: 77px;
	background: #fff;
	font-family: "Inter", sans-serif;
	font-size: 15px;
	line-height: 1.2;
	color: #292929;
	box-shadow: none;
}

#top .ax-news .gform_wrapper input::placeholder {
	color: rgba(41,41,41,.5) !important;
}

#top .ax-news .gfield_consent_label br {
	display: block !important;
	margin-bottom: 10px !important;
}

#top .ax-news .gform_wrapper input:focus {
	border-color: var(--ax-purple) !important;
	outline: none;
}

/* consent checkbox -> 24px purple-check circle (GF renders a <fieldset>) */
#top .ax-news .gform_wrapper .gfield--type-consent,
#top .ax-news .gform_wrapper .gfield_consent {
	margin: 0;
	padding: 0;
	border: 0;
}

#top .ax-news .gform_wrapper .gfield--type-consent .ginput_container_consent,
#top .ax-news .gform_wrapper .gfield_consent .ginput_container_consent {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	border: 0;
	padding: 0;
}

#top .ax-news .gform_wrapper .gfield--type-consent input[type="checkbox"],
#top .ax-news .gform_wrapper .gfield_consent input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	margin: 1px 0 0;
	border: .3px solid #000;
	border-radius: 30px;
	background: #fff;
	cursor: pointer;
	position: relative;
}

#top .ax-news .gform_wrapper .gfield--type-consent input[type="checkbox"]:checked,
#top .ax-news .gform_wrapper .gfield_consent input[type="checkbox"]:checked {
	background: var(--ax-purple);
	border-color: var(--ax-purple);
}

#top .ax-news .gform_wrapper .gfield--type-consent input[type="checkbox"]:checked::after,
#top .ax-news .gform_wrapper .gfield_consent input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 8px;
	top: 4px;
	width: 6px;
	height: 11px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

#top .ax-news .gform_wrapper .gfield--type-consent label,
#top .ax-news .gform_wrapper .gfield_consent label {
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.55;
	color: #000;
}

#top .ax-news .gform_wrapper .gfield_description,
#top .ax-news .gform_wrapper .gsection_description {
	padding: 0;
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	line-height: 1.55;
	color: #000;
}

/* validation */
#top .ax-news .gform_wrapper .gfield_error input {
	border-color: #e0413f !important;
}

#top .ax-news .gform_wrapper .validation_message,
#top .ax-news .gform_wrapper .gfield_validation_message {
	margin-top: 4px;
	padding: 0;
	background: none;
	border: 0;
	color: #e0413f;
	font-size: 12px;
}

/* our card button is the submit + the feedback, so hide GF's own */
#top .ax-news--gf .gform_footer,
#top .ax-news--gf .gform_page_footer {
	display: none !important;
}

#top .ax-news--gf .gform_confirmation_message,
#top .ax-news--gf .gforms_confirmation_message {
	display: none;
}

#top .ax-news__art img.ax-news__art-top {
	position: absolute;
	z-index: 2;
	width: var(--ax-news-art-top-w, 60%);
	right: var(--ax-news-art-top-right, 0px);
	bottom: var(--ax-news-art-top-bottom, -6px);
	height: auto;
}