/*
====================================================
Universal Form Styles
Works with: Contact Form 7, Omnisend, WPForms, Gravity Forms, etc.
====================================================
*/

/* Form Input Placeholders */
input::placeholder,
textarea::placeholder {
	color: var(--carp-black);
	opacity: 1;
}
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
	color: var(--carp-black);
	opacity: 1;
}
input::-moz-placeholder,
textarea::-moz-placeholder {
	color: var(--carp-black);
	opacity: 1;
}
input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
	color: var(--carp-black);
	opacity: 1;
}
input::-ms-input-placeholder,
textarea::-ms-input-placeholder {
	color: var(--carp-black);
	opacity: 1;
}

/* Form Labels - Universal */
.contact-form-wrapper label,
.contact-form-wrapper .form-label,
.wpcf7-form-control-wrap label,
form label {
	font-size: 1.0625rem; /* 17px */
	font-weight: 400;
	line-height: 150%;
	font-family: 'Avenir', sans-serif;
	color: var(--carp-black);
	display: block;
	margin-bottom: 0.5rem; /* 8px */
}
@media only screen and (max-width:767px) {

	.contact-form-wrapper label,
	.contact-form-wrapper .form-label,
	.wpcf7-form-control-wrap label,
	form label {
		font-size: 1rem;
	}

}
/* Form Field Container */
.field,
.form-field,
.wpcf7-form-control-wrap,
.contact-form-wrapper p {
	margin-bottom: 1.25rem;
}

/* Universal Input & Textarea Styles */
.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper input[type="tel"],
.contact-form-wrapper input[type="url"],
.contact-form-wrapper input[type="number"],
.contact-form-wrapper input[type="date"],
.contact-form-wrapper input[type="time"],
.contact-form-wrapper input[type="password"],
.contact-form-wrapper select,
.contact-form-wrapper textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="password"],
select,
textarea {
	font-size: 1.0625rem; /* 17px */
	font-weight: 400;
	line-height: 150%;
	font-family: 'Avenir', sans-serif;
	border-radius: 0.625rem; /* 10px */
	background: var(--carp-white);
	border: none;
	color: var(--carp-black);
	width: 100%;
	padding: .8125rem 1.25rem; /* 25px 20px */
	transition: 0.3s all ease;
}

/* Textarea Specific */
.contact-form-wrapper textarea,
.field textarea,
textarea {
	height: 9.375rem;
	resize: vertical;
	min-height: 9.375rem;
	resize: none;
}
/* Checkbox Styles - Universal */
.contact-form-wrapper input[type="checkbox"],
input[type="checkbox"] {
	width: 1.5625rem; /* 25px */
	height: 1.5625rem; /* 25px */
	margin: 0;
	margin-right: 0.75rem; /* 12px */
	position: relative;
	border-radius: 0.3125rem; /* 5px */
	border: none;
	appearance: none;
	-webkit-appearance: none;
	padding: 0;
	cursor: pointer;
	background: var(--carp-white);
	transition: 0.3s all ease;
	flex-shrink: 0;
}
.contact-form-wrapper input[type="checkbox"]:checked,
input[type="checkbox"]:checked {
	background: var(--carp-green-dark);
}
.contact-form-wrapper input[type="checkbox"]:checked::after,
input[type="checkbox"]:checked::after {
	content: '';
	position: absolute;
	top: 5px;
	left: 9px;
	width: 5px;
	height: 10px;
	border: solid var(--carp-white);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* Checkbox/Radio Label Wrapper - Universal */
.contact-form-wrapper label:has(input[type="checkbox"]),
.contact-form-wrapper label:has(input[type="radio"]),
.wpcf7-list-item label,
.checkbox-label,
.radio-label {
	display: flex;
	align-items: flex-start;
	column-gap: 0.75rem; /* 12px */
	margin: 0;
	cursor: pointer;
	font-size: 1.0625rem; /* 17px */
	font-weight: 400;
	line-height: 150%;
	font-family: 'Avenir', sans-serif;
}

/* Checkbox/Radio Label Text */
.contact-form-wrapper .wpcf7-list-item-label,
.contact-form-wrapper .checkbox-text,
.contact-form-wrapper .radio-text,
.wpcf7-list-item-label {
	color: var(--carp-black);
	font-size: 1.0625rem; /* 17px */
	font-weight: 400;
	line-height: 150%;
	font-family: 'Avenir', sans-serif;
	flex: 1;
}

/* Links in Checkbox/Radio Labels */
.contact-form-wrapper label a,
.wpcf7-list-item label a {
	color: var(--carp-white);
	text-decoration: underline;
	transition: 0.3s all ease;
}
.contact-form-wrapper label a:hover,
.wpcf7-list-item label a:hover {
	color: var(--carp-green-light);
}

/* List Items */
.wpcf7-list-item,
.contact-form-wrapper .form-list-item {
	margin: 0;
	margin-bottom: 0.75rem; /* 12px */
}

/* Hide unnecessary breaks */
.field br,
.contact-form-wrapper br {
	display: none;
}

/* Hide CF7 spinner */
.wpcf7-spinner {
	display: none;
}
/* Radio Button Styles - Universal */
.contact-form-wrapper input[type="radio"],
input[type="radio"] {
	-webkit-appearance: none;
	appearance: none;
	background-color: var(--carp-white);
	margin: 0;
	margin-right: 0.75rem; /* 12px */
	font: inherit;
	width: 1.75rem; /* 28px */
	height: 1.75rem; /* 28px */
	border: 0.125rem solid var(--carp-green-mid); /* 2px */
	border-radius: 50%;
	display: grid;
	place-content: center;
	cursor: pointer;
	transition: 0.3s all ease;
	flex-shrink: 0;
}
.contact-form-wrapper input[type="radio"]:hover,
input[type="radio"]:hover {
	border-color: var(--carp-green-dark);
}
.contact-form-wrapper input[type="radio"]::before,
input[type="radio"]::before {
	content: '';
	width: 0.75rem; /* 12px */
	height: 0.75rem; /* 12px */
	border-radius: 50%;
	transform: scale(0);
	transition: 120ms transform ease-in-out;
	background: var(--carp-green-mid);
}
.contact-form-wrapper input[type="radio"]:checked::before,
input[type="radio"]:checked::before {
	transform: scale(1);
}

/* Autofill Styles */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
	-webkit-box-shadow: 0 0 0 30px var(--carp-white) inset !important;
	box-shadow: 0 0 0 30px var(--carp-white) inset !important;
	-webkit-text-fill-color: var(--carp-black) !important;
}

/* Submit Button - Universal */
.contact-form-wrapper input[type="submit"],
.contact-form-wrapper button[type="submit"],
.contact-form-wrapper .submit-button,
.contact-form-wrapper .site-btn {
	background: var(--carp-black);
	color: var(--carp-white);
	border: none;
}
.contact-form-wrapper input[type="submit"]:hover,
.contact-form-wrapper button[type="submit"]:hover,
.contact-form-wrapper .submit-button:hover,
.contact-form-wrapper .site-btn:hover {
	background: var(--carp-white);
	color: var(--carp-black);
	border: none;
}
/* Form Response Messages - Universal */
.contact-form-wrapper .wpcf7-response-output,
.contact-form-wrapper .form-message,
.contact-form-wrapper .success-message,
.contact-form-wrapper .error-message,
.wpcf7 form .wpcf7-response-output {
	margin: 0;
	margin-top: 1.25rem; /* 20px */
	padding: 1.125rem 1.25rem; /* 18px 20px */
	border: 2px solid var(--carp-green-mid);
	border-radius: 0.625rem; /* 10px */
	background: var(--carp-black);
	position: relative;
	color: var(--carp-white);
	font-size: 1rem; /* 16px */
	line-height: 1.5rem; /* 24px */
	font-family: 'Avenir', sans-serif;
}

/* Hide initial state */
.wpcf7 form.init .wpcf7-response-output {
	display: none;
}

/* Success Messages */
.contact-form-wrapper .success-message,
.wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--carp-green-mid);
	background: var(--carp-green-dark);
}

/* Error Messages */
.contact-form-wrapper .error-message,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
	border-color: #dc3232;
	background: #a82828;
}

/* Spam Messages */
.wpcf7 form.spam .wpcf7-response-output {
	border-color: #f56e28;
	background: #c4551f;
}

/* Validation Messages */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
	border-color: var(--carp-gold);
	background: #9a6515;
}

/* Field Validation Errors - Universal */
.contact-form-wrapper .wpcf7-not-valid-tip,
.contact-form-wrapper .validation-error {
	background: #ff6b6b;
	color: var(--carp-white);
	width: max-content;
	padding: .3125rem .625rem .125rem .625rem;
	border-radius: .25rem;
	line-height: 1;
	font-size: 0.875rem; /* 14px */
	margin-top: 0.5rem; /* 8px */
	display: block;
}

@media only screen and (max-width: 991px) {
	.contact-form-wrapper .wpcf7-response-output,
	.contact-form-wrapper .form-message,
	.wpcf7 form .wpcf7-response-output {
		width: 100%;
	}
}
/* Form Layout - Field Rows - Universal */
.field-row,
.form-row-wrapper,
.contact-form-wrapper .form-grid,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-billing-fields__field-wrapper {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	column-gap: 1.25rem;
}

/* Field Width Classes */
.field-full,
.form-row,
.contact-form-wrapper .full-width {
	width: 100%;
}
.field-half,
.contact-form-wrapper .half-width {
	width: calc((100% - 1.625rem) / 2);
}
.field-third,
.contact-form-wrapper .third-width {
	width: calc((100% - 1.625rem) / 3);
}

/* Select Dropdown Styling - Universal */
.contact-form-wrapper select,
select {
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23000' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1.25rem center;
	background-size: 0.75rem;
	padding-right: 3rem;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
}

/* Required Field Indicator */
.contact-form-wrapper .required,
.contact-form-wrapper abbr[title="required"],
abbr[title="required"] {
	color: #ff6b6b;
	text-decoration: none;
	border: none;
}

/* Disabled Fields */
.contact-form-wrapper input:disabled,
.contact-form-wrapper textarea:disabled,
.contact-form-wrapper select:disabled,
input:disabled,
textarea:disabled,
select:disabled {
	/* opacity: 0.6; */
	cursor: not-allowed;
	/* background: rgba(255, 255, 255, 0.5); */
}

/* Responsive Styles */
@media only screen and (max-width: 991px) {
	.field-half,
	.field-third,
	.contact-form-wrapper .half-width,
	.contact-form-wrapper .third-width {
		width: 100%;
	}
}



