/* When upload field is inside .html-div-form wrapper, avoid double grey panel */
.html-div-form .mtf-form-v2.form-widget {
	background-color: #fafafa;
}

.mtf-form-v2.form-widget.contact-form {
	max-width: 100%;
}

.mtf-form-v2.form-widget {
	backdrop-filter: blur(12px);
	background-color: #fafafa;
	border-top: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 40px;
	padding: 32px;
	box-sizing: border-box;
	width: 100%;
}

.mtf-form-v2.form-widget.container,
.mtf-form-v2.form-widget.container-fluid {
	padding-left: 32px;
	padding-right: 32px;
}

.mtf-form-v2 .dpf-fields {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
}

.mtf-form-v2 .dpf-fields > .row {
	margin-left: 0;
	margin-right: 0;
}

.mtf-form-v2 .dpf-fields > .row > [class*="col-"] {
	padding-left: 0;
	padding-right: 0;
	float: none;
	width: 100%;
}

.mtf-form-v2 .form-group {
	margin-bottom: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
}

.mtf-form-v2 .form-group.highlight-addon > label,
.mtf-form-v2 .form-group > .control-label,
.mtf-form-v2 .form-group > label.form-label {
	display: flex;
	gap: 2px;
	align-items: center;
	font-size: 14px;
	font-weight: 500;
	line-height: 22px;
	color: #414651;
	margin-bottom: 0;
	padding-top: 0;
	letter-spacing: normal;
}

.mtf-form-v2 .form-group.required .has-star:not(.custom-control-label)::after,
.mtf-form-v2 .form-group .is-required::after {
	color: #ffc200 !important;
	font-weight: 600;
	margin-left: 2px;
}

.mtf-form-v2 .form-control,
.mtf-form-v2 select.form-control {
	background-color: #ffffff;
	border: 1px solid #d5d7da;
	border-radius: 40px;
	box-shadow: 0 1px 2px 0 rgba(10, 13, 18, 0.05);
	height: 44px;
	padding: 10px 14px;
	box-sizing: border-box;
	width: 100%;
	font-size: 16px;
	line-height: 24px;
	color: #181d27;
	outline: none;
	-webkit-box-shadow: 0 1px 2px 0 rgba(10, 13, 18, 0.05);
}

.mtf-form-v2 .form-control:focus,
.mtf-form-v2 select.form-control:focus {
	border-color: #d5d7da;
	box-shadow: 0 1px 2px 0 rgba(10, 13, 18, 0.05);
}

.mtf-form-v2 .form-control::placeholder {
	color: #717680;
}

.mtf-form-v2 textarea.form-control {
	height: auto;
	min-height: 88px;
	border-radius: 20px;
	resize: vertical;
}

.mtf-form-v2 .has-error .form-control {
	border-color: #e74c3c;
}

.mtf-form-v2 .help-block,
.mtf-form-v2 .hint-block {
	font-size: 12px;
	line-height: 18px;
	color: #717680;
	margin-top: 4px;
	margin-bottom: 0;
}

.mtf-form-v2 .help-block-error {
	color: #e74c3c;
}

/* File upload */
.mtf-form-v2 .form-widget-file-upload-g {
	display: flex;
	align-items: center;
	background-color: #ffffff;
	border: 1px solid #d5d7da;
	border-radius: 40px;
	box-shadow: 0 1px 2px 0 rgba(10, 13, 18, 0.05);
	height: 44px;
	padding: 0 6px 0 16px;
	box-sizing: border-box;
	width: 100%;
	overflow: hidden;
}

.mtf-form-v2 .form-widget-file-upload-g .display-file {
	flex: 1 1 auto;
	min-width: 0;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	height: 42px;
	padding: 0;
	font-size: 14px;
	line-height: 22px;
	color: #717680;
	cursor: pointer;
}

.mtf-form-v2 .form-widget-file-upload-g .display-file:not(:placeholder-shown) {
	color: #181d27;
}

.mtf-form-v2 .form-widget-file-upload-g .input-group-btn {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	width: auto;
	vertical-align: middle;
}

.mtf-form-v2 .form-widget-file-upload-g .form-widget-btn-show-upload {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 9999px;
	background-color: #ffc200 !important;
	border: none !important;
	padding: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-shadow: none;
	line-height: 0;
}

.mtf-form-v2 .form-widget-file-upload-g .form-widget-btn-remove {
	flex-shrink: 0;
	width: 20px;
	height: 28px;
	border-radius: 0;
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-shadow: none;
	line-height: 0;
}

.mtf-form-v2 .form-widget-file-upload-g .form-widget-btn-remove.hidden {
	display: none !important;
}

.mtf-form-v2 .form-widget-btn-show-upload-icon {
	display: block !important;
	width: 14px !important;
	height: 14px !important;
	margin: 0 !important;
}

.mtf-form-v2 .form-widget-btn-remove-upload-icon {
	width: 10px;
	height: auto;
	margin: 0;
}

.mtf-form-v2 .has-success.highlight-addon .form-widget-file-upload-g .form-widget-btn-show-upload,
.mtf-form-v2 .has-error.highlight-addon .form-widget-file-upload-g .form-widget-btn-show-upload {
	background-color: #ffc200 !important;
	border: none !important;
}

/* Phone international */
.mtf-form-v2 .iti {
	display: flex !important;
	align-items: stretch;
	width: 100%;
	background-color: #ffffff;
	border: 1px solid #d5d7da;
	border-radius: 40px;
	box-shadow: 0 1px 2px 0 rgba(10, 13, 18, 0.05);
	height: 44px;
	overflow: hidden;
}

.mtf-form-v2 .iti__flag-container,
.mtf-form-v2 .iti__selected-flag {
	background: transparent;
	border: none;
	border-radius: 40px 0 0 40px;
	height: 42px;
	padding: 0 4px 0 14px;
}

.mtf-form-v2 .iti__selected-dial-code {
	font-size: 16px;
	line-height: 24px;
	color: #535862;
}

.mtf-form-v2 .iti .form-control,
.mtf-form-v2 .iti .FormWidgetPhoneInput {
	flex: 1 1 auto;
	min-width: 0;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	height: 42px;
	padding: 10px 14px 10px 8px;
	border-radius: 0 40px 40px 0 !important;
}

.mtf-form-v2 .form-group.field-formdata-value .iti + .help-block,
.mtf-form-v2 .form-group .iti {
	margin-top: 0;
}

/* Dropdown / select (non-phone) */
.mtf-form-v2 select.form-control {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23535862' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
}

/* Captcha row */
.mtf-form-v2 .dpf-row,
.mtf-form-v2 .dpf-captcha-row {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	width: 100%;
}

.mtf-form-v2 .dpf-row .dpf-field-captcha,
.mtf-form-v2 .dpf-captcha-row .dpf-field-captcha {
	flex: 1 1 0;
	min-width: 0;
}

.mtf-form-v2 .dpf-row .dpf-field-code,
.mtf-form-v2 .dpf-captcha-row .dpf-field-code {
	flex: 0 0 auto;
	min-width: 0;
}

.mtf-form-v2 .dpf-captcha-field-group {
	margin-bottom: 0;
}

.mtf-form-v2 .dpf-captcha-field-group > label.control-label {
	display: none;
}

.mtf-form-v2 .dpf-field .dpf-label {
	display: flex;
	gap: 2px;
	align-items: center;
	font-size: 14px;
	font-weight: 500;
	line-height: 22px;
	color: #414651;
	margin-bottom: 0;
}

.mtf-form-v2 .dpf-req {
	color: #ffc200;
	font-weight: 600;
}

.mtf-form-v2 .dpf-captcha-box {
	background-color: #ffffff;
	border: 1px solid #d5d7da;
	border-radius: 40px;
	box-shadow: 0 1px 2px 0 rgba(10, 13, 18, 0.05);
	height: 44px;
	padding: 0 6px 0 16px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-width: 140px;
	position: relative;
}

/* Reset legacy absolute positioning from form-widget.css */
.mtf-form-v2 .widget-form-captcha-image,
.mtf-form-v2 .dpf-captcha-image-wrap {
	position: static !important;
	right: auto !important;
	top: auto !important;
	width: auto !important;
	height: auto !important;
	border-radius: 0;
	overflow: visible;
	z-index: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	min-width: 0;
}

.mtf-form-v2 .dpf-captcha-box img,
.mtf-form-v2 .widget-form-captcha-image img,
.mtf-form-v2 .dpf-captcha-image-wrap img {
	max-height: 32px;
	width: auto;
	border-radius: 0;
}

.mtf-form-v2 .widget-form-captcha-refresh-btn,
.mtf-form-v2 .dpf-captcha-box .widget-form-captcha-refresh-btn {
	position: static !important;
	right: auto !important;
	top: auto !important;
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	overflow: visible;
	padding: 0;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	line-height: 0;
}

.mtf-form-v2 .dpf-captcha-box a.btn-catcha-refresh,
.mtf-form-v2 .dpf-captcha-box .btn-catcha-refresh,
.mtf-form-v2 a.btn-catcha-refresh {
	width: 28px !important;
	height: 28px !important;
	min-width: 28px;
	min-height: 28px;
	border-radius: 9999px;
	background-color: #ffc200 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	border: none !important;
	padding: 0 !important;
	line-height: 0 !important;
	text-decoration: none !important;
	vertical-align: middle;
	box-sizing: border-box;
}

.mtf-form-v2 .dpf-captcha-box .btn-catcha-refresh img,
.mtf-form-v2 a.btn-catcha-refresh img {
	display: block !important;
	width: 14px !important;
	height: 14px !important;
	margin: 0 !important;
	padding: 0 !important;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

.mtf-form-v2 .widget-form-captcha-div {
	display: none;
}

.mtf-form-v2 .widget-form-captcha-not-load {
	display: block;
	margin-top: 6px;
	font-size: 12px;
}

.mtf-form-v2 .captcha-input {
	width: 100%;
}

/* Radio / checkbox lists */
.mtf-form-v2 .radio label,
.mtf-form-v2 .checkbox label,
.mtf-form-v2 .radio-inline,
.mtf-form-v2 .checkbox-inline {
	font-size: 14px;
	font-weight: 400;
	line-height: 22px;
	color: #414651;
	letter-spacing: normal;
}

.mtf-form-v2 .checkbox-agree .form-label {
	line-height: 22px;
	font-size: 14px;
}

/* Submit */
.mtf-form-v2 .form-widget-buttons {
	display: block;
	width: 100%;
	margin-top: 32px;
}

.mtf-form-v2 .dpf-submit,
.mtf-form-v2 .form-widget-btn-submit,
.mtf-form-v2 .from-widget-btn-submit {
	background-color: #ffc200 !important;
	border: none !important;
	border-radius: 9999px !important;
	padding: 12px 18px !important;
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	height: auto !important;
	line-height: 24px !important;
	cursor: pointer;
	font-size: 16px !important;
	font-weight: 600 !important;
	color: #ffffff !important;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	letter-spacing: normal;
}

.mtf-form-v2 .dpf-submit:hover,
.mtf-form-v2 .dpf-submit:focus,
.mtf-form-v2 .form-widget-btn-submit:hover,
.mtf-form-v2 .form-widget-btn-submit:focus {
	background-color: #e6ae00 !important;
	color: #ffffff !important;
}

.mtf-form-v2 .dpf-submit:disabled,
.mtf-form-v2 .form-widget-btn-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Panel fieldsets */
.mtf-form-v2 .form-widget-panel {
	background: transparent;
	border: none;
	box-shadow: none;
	margin-bottom: 0;
}

.mtf-form-v2 .form-widget-panel .panel-heading {
	background: transparent;
	border: none;
	padding: 0 0 12px;
}

.mtf-form-v2 .form-widget-panel .panel-title {
	font-size: 16px;
	font-weight: 600;
	color: #414651;
}

.mtf-form-v2 .form-widget-panel .panel-body {
	padding: 0;
}

@media (max-width: 1199px) {
	.mtf-form-v2.form-widget {
		padding-top: 32px;
	}
}

@media (max-width: 768px) {
	.mtf-form-v2.form-widget {
		padding: 24px;
		border-radius: 24px;
	}

	.mtf-form-v2.form-widget.container,
	.mtf-form-v2.form-widget.container-fluid {
		padding-left: 24px;
		padding-right: 24px;
	}

	.mtf-form-v2 .dpf-fields {
		gap: 16px;
	}

	.mtf-form-v2 .dpf-row,
	.mtf-form-v2 .dpf-captcha-row {
		flex-direction: column;
		gap: 16px;
	}

	.mtf-form-v2 .dpf-row .dpf-field-code,
	.mtf-form-v2 .dpf-captcha-row .dpf-field-code {
		width: 100%;
	}

	.mtf-form-v2 .dpf-captcha-box {
		width: 100%;
		min-width: 0;
	}
}

/* Above fixed header (z-index: 1020) */
.modal-form-widget-file-upload,
.modal-form-confirmation,
.modal-form-submitted,
.modal-form-error-message {
	z-index: 10050 !important;
}
