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

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

/* Form Labels - Universal */
label,
.form-label,
.wpcf7-form-control-wrap label,
form label {
	font-size: 18px;
	font-weight: 400;
	line-height: 165%;
	letter-spacing: normal;
	color: var(--ps-white);
	display: block;
	margin-bottom: 5px;
}
/* Form Field Container */
.field,
.form-field,
.wpcf7-form-control-wrap {
	margin-bottom: 25.008px;
}

/* Universal Input & Textarea Styles */
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: 18px;
	font-weight: 400;
	line-height: 165%;
	font-family: var(--font-inter);
	border-radius: 10px;
	background: transparent;
	border: none;
	color: var(--ps-black);
	background-color: var(--ps-white);
	width: 100%;
	padding: 15.008px 20px; /* 15px 20px */
	transition: 0.3s all ease;
}

/* Textarea Specific */
textarea {
	height: 120px;
	resize: vertical;
	min-height: 120px;
	resize: none;
}
/* Checkbox Styles - Universal */
input[type="checkbox"] {
	width: 25px;
	height: 25px;
	margin: 0;
	margin-right: 12px;
	position: relative;
	border-radius: 5px;
	border: none;
	appearance: none;
	-webkit-appearance: none;
	padding: 0;
	cursor: pointer;
	background: var(--ps-white);
	transition: 0.3s all ease;
	flex-shrink: 0;
}
input[type="checkbox"]:checked {
	background: var(--ps-white);
}
input[type="checkbox"]:checked::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 5px;
	height: 10px;
	border: solid var(--ps-purple);
	border-width: 0 2px 2px 0;
	transform: translate(-50%, -50%) rotate(45deg);
	top: 10px;
}

/* Checkbox/Radio Label Wrapper - Universal */
label:has(input[type="checkbox"]),
label:has(input[type="radio"]),
.wpcf7-list-item label,
.checkbox-label,
.radio-label {
	display: flex;
	align-items: flex-start;
	column-gap: 12px;
	margin: 0;
	cursor: pointer;
	font-size: 17px;
	font-weight: 450;
	line-height: 175%;
	letter-spacing: 0.85px;
	font-family: var(--font-inter);
	color: var(--ps-white);
}

/* Checkbox/Radio Label Text */
.wpcf7-list-item-label,
.checkbox-text,
.radio-text {
	color: var(--ps-white);
	font-size: 16px;
	font-weight: 400;
	line-height: 150%;
	letter-spacing: 0.85px;
	font-family: var(--font-inter);
	flex: 1;
}

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

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

/* Hide unnecessary breaks */
.field br {
	display: none;
}

/* Hide CF7 spinner */
.wpcf7-spinner {
	display: none;
}
/* Radio Button Styles - Universal */
input[type="radio"] {
	-webkit-appearance: none;
	appearance: none;
	background-color: var(--ps-white);
	margin: 0;
	margin-right: 12px;
	font: inherit;
	width: 28px;
	height: 28px;
	border: 2px solid var(--ps-white);
	border-radius: 50%;
	display: grid;
	place-content: center;
	cursor: pointer;
	transition: 0.3s all ease;
	flex-shrink: 0;
}
input[type="radio"]:hover {
	border-color: var(--ps-purple);
}
input[type="radio"]::before {
	content: '';
	width: 12px;
	height: 12px;
	border-radius: 50%;
	transform: scale(0);
	transition: 120ms transform ease-in-out;
	background: var(--ps-purple);
}
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(--ps-white) inset !important;
	box-shadow: 0 0 0 30px var(--ps-white) inset !important;
	-webkit-text-fill-color: var(--ps-purple) !important;
}

/* Submit Button - Universal */
/* input[type="submit"],
button[type="submit"],
.submit-button {
	background: var(--ps-purple);
	color: var(--ps-white);
	border: none;
	padding: 15px 40px; 
	font-size: 16px; 
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.3s ease;
	border-radius: 0;
}
input[type="submit"]:hover,
button[type="submit"]:hover,
.submit-button:hover {
	background: var(--pr-white);
	color: var(--ps-purple);
	border: none;
} */
/* Form Response Messages - Universal */
.wpcf7-response-output,
.form-message,
.success-message,
.error-message,
.wpcf7 form .wpcf7-response-output {
	margin: 0;
	margin-top: 20px;
	padding: 18px 20px; /* 18px 20px */
	border: 2px solid var(--ps-purple);
	border-radius: 10px;
	background: var(--ps-white);
	position: relative;
	color: var(--ps-purple);
	font-size: 16px;
	line-height: 24px;
	font-family: var(--font-inter);
}

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

/* Success Messages */
.success-message,
.wpcf7 form.sent .wpcf7-response-output {
	border-color: #28a745;
	background: #d4edda;
	color: #155724;
}

/* Error Messages */
.error-message,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
	border-color: var(--ps-purple);
	background: #f8d7da;
	color: var(--ps-purple2);
}

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

/* Validation Messages */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
	border-color: #ffc107;
	background: #fff3cd;
	color: #856404;
}

/* Field Validation Errors - Universal */
.wpcf7-not-valid-tip,
.validation-error {
	background: red;
	color: var(--ps-white);
	width: max-content;
	padding: 5px 10px 2px 10px;
	padding-bottom: 4px;
	border-radius: 4px;
	line-height: 1;
	font-size: 14px;
	margin-top: 8px;
	display: block;
}

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

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

/* Select Dropdown Styling - Universal */
select {
	cursor: pointer;
	background-image: url(../svgs/select-arrow.svg);
	background-repeat: no-repeat;
	background-position: right 15px center;
	background-size: 12px;
	padding-right: 48px;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
}

/* Required Field Indicator */
.required,
abbr[title="required"] {
	color: var(--ps-purple);
	text-decoration: none;
	border: none;
}

/* Disabled Fields */
input:disabled,
textarea:disabled,
select:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

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



