/**
 * Basic CSS for Dynamic Forms 
 */

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400&display=swap');

.dfl-form-wrapper {
	max-width: 900px;
	margin: 0 auto;
	font-family: 'Lato', sans-serif;
}

.dfl-dynamic-form {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.dfl-form-group {
	display: flex;
	flex-direction: column;
}

.dfl-form-group label {
	margin-bottom: 0;
	font-family: 'Lato', sans-serif;
	font-weight: 700;
	font-size: 16px;
	line-height: 26px;
	color: #000000;
}

.dfl-req {
	color: #000000;
}

/* Inputs */
.dfl-input,
.dfl-dynamic-form input[type="text"],
.dfl-dynamic-form input[type="email"],
.dfl-dynamic-form input[type="tel"],
.dfl-textarea,
.dfl-dynamic-form textarea,
.dfl-select,
.dfl-dynamic-form select {
	width: 100%;
	padding: 5px 0;
	border: none;
	border-bottom: 1px solid #9A9A9A;
	border-radius: 0;
	box-sizing: border-box;
	font-family: 'Lato', sans-serif;
	font-size: 16px;
	line-height: 26px;
	background: transparent;
	transition: border-color 0.3s ease;
}

.dfl-input::placeholder,
.dfl-dynamic-form input::placeholder,
.dfl-textarea::placeholder,
.dfl-dynamic-form textarea::placeholder {
	font-family: 'Lato', sans-serif;
	font-style: italic;
	font-weight: 400;
	color: #9A9A9A;
}

.dfl-textarea,
.dfl-dynamic-form textarea {
	min-height: 100px;
	resize: vertical;
}

.dfl-input:focus,
.dfl-dynamic-form input:focus,
.dfl-textarea:focus,
.dfl-dynamic-form textarea:focus,
.dfl-select:focus,
.dfl-dynamic-form select:focus {
	outline: none;
	border-bottom: 1px solid #000000;
}

/* Select2 Customization to match text inputs */
.dfl-dynamic-form .select2-container {
	width: 100% !important;
}

.dfl-dynamic-form .select2-container--default .select2-selection--single {
	background-color: transparent;
	border: none;
	border-bottom: 1px solid #9A9A9A;
	border-radius: 0;
	height: 37px;
	padding: 5px 0;
	outline: none;
	box-shadow: none;
	transition: border-color 0.3s ease;
}

.dfl-dynamic-form .select2-container--default.select2-container--focus .select2-selection--single,
.dfl-dynamic-form .select2-container--default.select2-container--open .select2-selection--single {
	border-bottom: 1px solid #000000;
}

.dfl-dynamic-form .select2-container--default .select2-selection--single .select2-selection__rendered {
	color: #000000;
	font-family: 'Lato', sans-serif;
	font-size: 16px;
	line-height: 26px;
	padding-left: 0;
}

.dfl-dynamic-form .select2-container--default .select2-selection--single .select2-selection__placeholder {
	color: #9A9A9A;
	font-family: 'Lato', sans-serif;
	font-style: italic;
	font-weight: 400;
}

.dfl-dynamic-form .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 36px;
	right: 0;
}

/* Radios and Checkboxes */
.dfl-options-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 5px;
}

.dfl-radio-wrapper,
.dfl-checkbox-wrapper {
	display: flex;
	align-items: center;
	gap: 8px;
}

.dfl-radio-wrapper input,
.dfl-checkbox-wrapper input {
	margin: 0;
	cursor: pointer;
}

.dfl-radio-wrapper label,
.dfl-checkbox-wrapper label {
	margin: 0;
	font-weight: normal;
	cursor: pointer;
}

/* Display rules */
.dfl-hp-field {
	display: none !important;
}

/* Errors & Messages */
.dfl-form-messages {
	margin-top: 10px;
	font-weight: 500;
}

.dfl-form-messages.dfl-success {
	color: #2f855a;
	padding: 10px;
	background: #f0fff4;
	border: 1px solid #c6f6d5;
	border-radius: 4px;
}

.dfl-form-messages.dfl-error {
	color: #c53030;
	padding: 10px;
	background: #fff5f5;
	border: 1px solid #fed7d7;
	border-radius: 4px;
}

.dfl-input-error {
	border-color: #e53e3e !important;
}

.dfl-field-error {
	color: #e53e3e;
	font-size: 13px;
	margin-top: 4px;
}

/* Submit Button & Spinner */
.dfl-submit-btn {
	padding: 12px 20px;
	background-color: #3182ce;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	transition: background-color 0.3s ease;
}

.dfl-submit-btn:hover {
	background-color: #2b6cb0;
}

.dfl-submit-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* Basic CSS Spinner */
.dfl-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #fff;
	animation: dfl-spin 1s ease-in-out infinite;
}

.dfl-submit-btn.dfl-loading .dfl-spinner {
	display: inline-block;
}

@keyframes dfl-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Dropzone Custom Styles */
#dfl-custom-dropzone {
	background-color: #F5F5F5;
	border: #E5E5E5;
	border-style: dashed;
	border-radius: 8px;
	padding: 40px 20px;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.3s ease, border-color 0.3s ease;
	min-height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

#dfl-custom-dropzone:hover {
	background-color: #f1f5f9;
	border-color: #cbd5e1;
}

#dfl-custom-dropzone .dz-message {
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.dz-icon-box {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 4px;
	margin-bottom: 15px;
}

.dz-icon-box svg {}

.dz-main-text {
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	color: #64748b;
	margin-bottom: 4px;
}

.dz-sub-text {
	font-family: inherit;
	font-size: 13px;
	font-weight: 400;
	color: #94a3b8;
}