/* ==========================================================================
   Forms
   ========================================================================== */

input[type="checkbox"],
input[type="radio"],
input[type="range"],
progress {
	accent-color: var(--color-secondary);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid var(--color-grisclair);
	border-radius: 4px;
	font-family: var(--font-primary);
	font-size: var(--font-size-small);
	transition: border-color 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--color-secondary);
}

label {
	display: block;
	margin-bottom: 5px;
	font-weight: var(--font-weight-medium);
}

/* Search form */
.search-form {
	display: flex;
	gap: 10px;
	max-width: 400px;
}

.search-form .search-field {
	flex: 1;
}

.search-form .search-submit {
	flex-shrink: 0;
}

/* ==========================================================================
   Gravity Forms — classic forms (excludes footer newsletter)
   ========================================================================== */

.gform_wrapper:not(.newsletter-form .gform_wrapper) .gform_footer,
.gform_wrapper:not(.newsletter-form .gform_wrapper) .gform_page_footer {
	margin-top: 24px !important;
	padding: 0 !important;
}

.gform_wrapper:not(.newsletter-form .gform_wrapper) input[type="submit"],
.gform_wrapper:not(.newsletter-form .gform_wrapper) button[type="submit"],
.gform_wrapper:not(.newsletter-form .gform_wrapper) .gform-button,
.gform_wrapper:not(.newsletter-form .gform_wrapper) .gform_button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: auto !important;
	min-height: 0 !important;
	padding: 16px 32px !important;
	font-family: var(--font-primary) !important;
	font-size: var(--font-size-small) !important;
	font-weight: var(--font-weight-semi-bold) !important;
	line-height: var(--line-height-medium) !important;
	background-color: var(--color-primary) !important;
	color: var(--color-contrast) !important;
	border: 1px solid var(--color-primary) !important;
	border-radius: 4px !important;
	box-shadow: none !important;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gform_wrapper:not(.newsletter-form .gform_wrapper) input[type="submit"]:hover,
.gform_wrapper:not(.newsletter-form .gform_wrapper) button[type="submit"]:hover,
.gform_wrapper:not(.newsletter-form .gform_wrapper) .gform-button:hover,
.gform_wrapper:not(.newsletter-form .gform_wrapper) .gform_button:hover {
	background-color: var(--color-contrast) !important;
	border-color: var(--color-contrast) !important;
	color: var(--color-base) !important;
}
