/* Ads for Blogs — sidebar lead form */

.afb-card {
	background: #fefefe;
	border: 1px solid #e4e4e4;
	border-radius: 10px;
	padding: 22px 20px 24px;
	margin: 0 0 24px;
	box-shadow: 0 2px 10px rgba(15, 35, 65, 0.05);
	font-family: inherit;
	color: #1a1f2b;
}

.afb-card .afb-image {
	margin: -22px -20px 0;
	overflow: hidden;
	border-radius: 10px 10px 0 0;
	background: #f6f7f9;
}

.afb-card .afb-image img {
	display: block;
	width: 100%;
	height: auto;
}

.afb-card .afb-image-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 130px;
	background: linear-gradient(135deg, #0b2341 0%, #1d3b64 60%, #eb619f 100%);
	position: relative;
}

.afb-card .afb-image-placeholder .afb-badge {
	color: #ffffff;
	font-weight: 800;
	font-size: 20px;
	letter-spacing: 1px;
	text-align: center;
	line-height: 1.05;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
	border: 2px solid rgba(255, 255, 255, 0.9);
	border-radius: 8px;
	padding: 10px 16px;
	background: rgba(255, 255, 255, 0.06);
	backdrop-filter: blur(2px);
}

.afb-card .afb-heading {
	text-align: center;
	font-size: 1.35rem;
	line-height: 1.2;
	color: #0b2341;
	margin: 0 0 8px;
	font-weight: 800;
}

.afb-card .afb-heading span {
	display: inline-block;
}

.afb-card .afb-sub {
	text-align: center;
	color: #5a6472;
	font-size: 0.88rem;
	margin: 0 0 18px;
	line-height: 1.45;
}

.afb-card .afb-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.afb-card .afb-field {
	display: block;
	position: relative;
	margin: 0;
	border: 0;
	padding: 0;
}

.afb-card .afb-field input[type="text"],
.afb-card .afb-field input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid #dfe3e8;
	border-radius: 6px;
	background: #ffffff;
	font-size: 0.95rem;
	color: #1a1f2b;
	font-family: inherit;
	line-height: 1.3;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.afb-card .afb-field input::placeholder {
	color: #98a0ad;
	opacity: 1;
}

.afb-card .afb-field input:focus {
	outline: none;
	border-color: #eb619f;
	box-shadow: 0 0 0 3px rgba(235, 97, 159, 0.18);
}

/* Quantity dropdown */
.afb-card .afb-qty-field {
	margin: 0;
}

.afb-card .afb-select {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 38px 12px 14px;
	border: 1px solid #dfe3e8;
	border-radius: 6px;
	background-color: #ffffff;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%235a6472' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/></svg>");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 12px 8px;
	font-size: 0.95rem;
	color: #1a1f2b;
	font-family: inherit;
	line-height: 1.3;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.afb-card .afb-select:focus {
	outline: none;
	border-color: #eb619f;
	box-shadow: 0 0 0 3px rgba(235, 97, 159, 0.18);
}

.afb-card .afb-select:invalid,
.afb-card .afb-select option[disabled] {
	color: #98a0ad;
}

.afb-card .afb-select option {
	color: #1a1f2b;
}

.afb-card .afb-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.afb-card .afb-consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 0.76rem;
	color: #5a6472;
	line-height: 1.45;
	margin: 2px 0 4px;
}

.afb-card .afb-consent input {
	margin-top: 3px;
	flex-shrink: 0;
	accent-color: #eb619f;
}

.afb-card .afb-consent a {
	color: #eb619f;
	text-decoration: underline;
}

.afb-card .afb-btn {
	display: block;
	width: 100%;
	padding: 14px 18px;
	background: #eb619f;
	color: #ffffff;
	border: 0;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	letter-spacing: 0.2px;
	text-transform: none;
	box-shadow: 0 2px 6px rgba(235, 97, 159, 0.25);
	transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}

.afb-card .afb-btn:hover {
	background: #d84f8d;
	box-shadow: 0 3px 10px rgba(216, 79, 141, 0.3);
}

.afb-card .afb-btn:active {
	transform: translateY(1px);
}

.afb-card .afb-btn:disabled {
	background: #c7ccd4;
	box-shadow: none;
	cursor: not-allowed;
}

.afb-card .afb-status {
	min-height: 1em;
	font-size: 0.82rem;
	color: #5a6472;
	text-align: center;
}

.afb-card .afb-status.afb-error {
	color: #c0392b;
	font-weight: 600;
}

.afb-card .afb-thanks {
	text-align: center;
	padding: 22px 16px;
	background: #f3fbf6;
	border: 1px solid #c5e7d2;
	border-radius: 6px;
	color: #16794d;
	font-size: 0.95rem;
	line-height: 1.5;
}

/* Hide the screen-reader-text visually but keep it accessible. */
.afb-card .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	-webkit-clip-path: inset(50%);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

@media (max-width: 600px) {
	.afb-card {
		padding: 18px 16px 20px;
	}
	.afb-card .afb-image {
		margin: -18px -16px 0;
	}
	.afb-card .afb-heading {
		font-size: 1.25rem;
	}
}
