/* ABOUTME: Styles for the DHM Resource Download Gate modal and confirmation. */
/* ABOUTME: Builds on Bootstrap 5 modal base styles from the dhm theme. */

/* Modal sizing */
#dhm-download-gate-modal .modal-dialog {
	max-width: 540px;
}

/* Instruction text above the form */
.dhm-gate-instructions {
	margin-bottom: 1.25rem;
	font-size: 1.05rem;
	line-height: 1.5;
}

/* Tighten GF form spacing inside the modal */
.dhm-gate-form-wrapper .gform_wrapper {
	margin: 0;
}

.dhm-gate-form-wrapper .gform_footer {
	padding-top: 1rem;
}

/* Hide the hidden fields visually (GF may already do this, belt-and-suspenders) */
.dhm-field-resource-id,
.dhm-field-resource-title {
	display: none !important;
}

/* GF honeypot field — normally hidden by GF's own CSS, but needs reinforcement inside modals */
#dhm-download-gate-modal .gform_validation_container,
#dhm-download-gate-modal .gfield--type-honeypot {
	display: none !important;
	position: absolute !important;
	left: -9000px !important;
}

/* Confirmation state (post-submission) */
.dhm-download-confirmation {
	text-align: center;
	padding: 2rem 1rem;
}

.dhm-download-success-msg {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
}

.dhm-download-btn {
	display: inline-block;
	padding: 0.875rem 2rem;
	font-size: 1.05rem;
	font-weight: 600;
	text-transform: uppercase;
	text-decoration: none;
	letter-spacing: 0.03em;
}

.dhm-download-email-note {
	font-size: 0.9rem;
	color: #666;
	margin-top: 1.5rem;
}
