/* ===========================
	Ninja Forms Widget
===========================*/

.ekl-ninja-forms-wrapper {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.ekl-ninja-forms__header {
	margin-bottom: 20px;
}

.ekl-ninja-forms__title {
	margin: 0 0 10px;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
}

.ekl-ninja-forms__description {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #666;
}

/* Hide Title */
.ekl-ninja-forms--hide-title .nf-form-title,
.ekl-ninja-forms--hide-title .nf-form-title h3,
.ekl-ninja-forms--hide-title .ekl-ninja-forms__title {
	display: none !important;
}

/* Hide Labels */
.ekl-ninja-forms--hide-labels .nf-field-label,
.ekl-ninja-forms--hide-labels .nf-field-label label,
.ekl-ninja-forms--hide-labels label.nf-field-label,
.ekl-ninja-forms--hide-labels .nf-field-container label:not(.nf-field-element label),
.ekl-ninja-forms--hide-labels .ninja-forms-req-symbol {
	display: none !important;
}

/* Hide Placeholder */
.ekl-ninja-forms--hide-placeholder .nf-element::placeholder,
.ekl-ninja-forms--hide-placeholder input.ninja-forms-field::placeholder,
.ekl-ninja-forms--hide-placeholder textarea.ninja-forms-field::placeholder {
	opacity: 0 !important;
	color: transparent !important;
}

/* Hide Error Messages */
.ekl-ninja-forms--hide-error-messages .nf-form-errors,
.ekl-ninja-forms--hide-error-messages .nf-error-msg,
.ekl-ninja-forms--hide-error-messages .ninja-forms-error-msg,
.ekl-ninja-forms--hide-error-messages .nf-response-msg.nf-error {
	display: none !important;
}

/* Hide Validation Errors */
.ekl-ninja-forms--hide-validation-errors .nf-error-field-errors,
.ekl-ninja-forms--hide-validation-errors .nf-error-wrap,
.ekl-ninja-forms--hide-validation-errors .nf-error-required-error,
.ekl-ninja-forms--hide-validation-errors .nf-error-wrap .nf-error-required-error {
	display: none !important;
}

/* Base Form Elements Reset & Layout */
.ekl-ninja-forms-wrapper .nf-form-cont,
.ekl-ninja-forms-wrapper .nf-form-wrap,
.ekl-ninja-forms-wrapper .nf-form-layout {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.ekl-ninja-forms-wrapper .nf-field-container {
	margin-bottom: 16px;
	box-sizing: border-box;
}

.ekl-ninja-forms-wrapper .nf-field-label label {
	display: inline-block;
	font-weight: 600;
	margin-bottom: 6px;
}

.ekl-ninja-forms-wrapper .ninja-forms-req-symbol {
	color: #e53e3e;
	margin-left: 4px;
}

.ekl-ninja-forms-wrapper .nf-form-fields-required {
	font-size: 13px;
	margin-bottom: 15px;
	box-sizing: border-box;
}

.ekl-ninja-forms-wrapper .nf-response-msg {
	margin-bottom: 20px;
	box-sizing: border-box;
}

.ekl-ninja-forms-wrapper .nf-form-errors {
	margin-bottom: 15px;
	box-sizing: border-box;
}

.ekl-ninja-forms-wrapper .nf-error-msg,
.ekl-ninja-forms-wrapper .nf-error-field-errors {
	font-size: 13px;
	margin-top: 4px;
	box-sizing: border-box;
}

.ekl-ninja-forms-wrapper input:not([type="button"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.ekl-ninja-forms-wrapper textarea,
.ekl-ninja-forms-wrapper select {
	box-sizing: border-box;
	transition: all 0.2s ease-in-out;
}

.ekl-ninja-forms-wrapper input[type="button"],
.ekl-ninja-forms-wrapper input[type="submit"],
.ekl-ninja-forms-wrapper button[type="submit"] {
	cursor: pointer;
	box-sizing: border-box;
	transition: all 0.2s ease-in-out;
}

/* Radio & Checkbox Styling */
.ekl-ninja-forms-wrapper .list-checkbox-wrap label,
.ekl-ninja-forms-wrapper .list-radio-wrap label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}

/* Custom Radio & Checkbox */
.ekl-ninja-forms--custom-radio input[type="checkbox"],
.ekl-ninja-forms--custom-radio input[type="radio"] {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	outline: none;
	position: relative;
	cursor: pointer;
	box-sizing: border-box;
	vertical-align: middle;
	margin: 0 6px 0 0;
	transition: background-color 0.2s, border-color 0.2s;
}

.ekl-ninja-forms--custom-radio input[type="checkbox"]:checked::after {
	content: '';
	width: 35%;
	height: 60%;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	margin-top: -2px;
	display: block;
}

.ekl-ninja-forms--custom-radio input[type="radio"]:checked::after {
	content: '';
	width: 40%;
	height: 40%;
	border-radius: 50%;
	background: #fff;
	display: block;
}
