/* Resource Download (email-gated download box). Used in resource articles. */

.resource-download {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 30px 40px;
	align-items: center;
	margin: 50px 0;
	padding: 40px;
	background: var(--primary);
	border-radius: 8px;
	border-left: 6px solid var(--secondary);
	color: #fff;
}

.resource-download__eyebrow {
	display: block;
	font-family: var(--font2);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--secondary);
	margin-bottom: 12px;
}

.resource-download .resource-download__heading {
	font-size: 28px;
	line-height: 1.25;
	color: #fff;
	margin: 0;
}

.resource-download .resource-download__text {
	margin: 12px 0 0;
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
}

.resource-download__note {
	margin: 10px 0 0 !important;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.7);
}

/* Gravity Form inside the box */
.resource-download .gform_wrapper,
.resource-download .gform_wrapper form {
	margin: 0;
}

.resource-download .gform_wrapper .gform_fields {
	row-gap: 0 !important;
}

.resource-download .gform_wrapper .gfield {
	margin: 0 !important;
}

.resource-download .gform_wrapper input[type="email"] {
	width: 100%;
	height: 54px;
	padding: 0 18px !important;
	border: 2px solid transparent !important;
	border-radius: 4px !important;
	background: #fff !important;
	font-size: 16px !important;
	color: var(--primary) !important;
	box-shadow: none !important;
}

.resource-download .gform_wrapper input[type="email"]:focus {
	border-color: var(--secondary) !important;
	outline: none;
}

.resource-download .gform_wrapper .gform_footer {
	margin: 12px 0 0 !important;
	padding: 0 !important;
}

.resource-download .gform_wrapper .gform_button,
.resource-download .gform_wrapper input[type="submit"] {
	width: 100% !important;
	text-transform: uppercase !important;
	height: 54px;
	padding: 0 24px !important;
	border: 0 !important;
	border-radius: 4px !important;
	background: var(--secondary) !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.3s ease, color 0.3s ease;
}

.resource-download .gform_wrapper .gform_button:hover,
.resource-download .gform_wrapper input[type="submit"]:hover {
	background: #fff !important;
	color: var(--primary) !important;
}

.resource-download .gform_wrapper .validation_message,
.resource-download .gform_wrapper .gform_validation_errors {
	color: #fff !important;
	background: rgba(220, 53, 69, 0.85) !important;
	border: 0 !important;
	border-radius: 4px;
	padding: 6px 10px !important;
	margin-top: 8px !important;
	font-size: 14px !important;
	box-shadow: none !important;
}

.resource-download .gform_wrapper .gform_validation_errors a,
.resource-download .gform_wrapper .gform_validation_errors li {
	color: #fff !important;
}

.resource-download .gform_wrapper .gform_validation_errors .gform-icon {
	display: none;
}

.resource-download .gform_wrapper .gform_validation_errors > h2 {
	color: #fff !important;
	font-size: 14px !important;
	margin: 0 !important;
}

/* After submit */
.resource-download .gform_confirmation_message {
	color: #fff;
	font-size: 16px;
	line-height: 1.6;
}

.resource-download .gform_confirmation_message h3 {
	color: #fff;
	font-size: 24px;
	margin: 0 0 8px;
}

.resource-download .gform_confirmation_message p {
	margin: 0 0 16px !important;
}

.resource-download a.resource-download-btn,
.resource-download-btn {
	display: inline-block;
	padding: 14px 28px;
	border-radius: 4px;
	background: var(--secondary);
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: background 0.3s ease, color 0.3s ease;
}

.resource-download a.resource-download-btn:hover {
	background: #fff;
	color: var(--primary) !important;
}

/* Editor preview */
.resource-download__fake {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.resource-download__fake-input {
	display: block;
	height: 54px;
	line-height: 54px;
	padding: 0 18px;
	border-radius: 4px;
	background: #fff;
	color: #999;
}

.resource-download__fake-btn {
	display: block;
	height: 54px;
	line-height: 54px;
	border-radius: 4px;
	background: var(--secondary);
	color: #fff;
	text-align: center;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.resource-download-empty {
	padding: 20px 24px;
	border: 2px dashed var(--secondary);
	border-radius: 8px;
	background: rgba(59, 191, 173, 0.08);
	color: var(--primary);
	font-size: 15px;
	line-height: 1.5;
}

@media (max-width: 900px) {
	.resource-download {
		grid-template-columns: minmax(0, 1fr);
		padding: 30px 24px;
		gap: 20px;
	}

	.resource-download .resource-download__heading {
		font-size: 24px;
	}
}
