/* Form elements styling */
.form-input,
.form-select,
.form-textarea {
	width: 100%;
	border-radius: 0.5rem;
	border: 2px solid #e5e7eb;
	padding: 0.75rem 1rem;
	transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
	outline: none;
	border-color: #8BA888;
	box-shadow: 0 0 0 3px rgba(139, 168, 136, 0.2);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
	border-color: #EF4444;
}

.form-input.error:focus,
.form-select.error:focus,
.form-textarea.error:focus {
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
}

.form-hint {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.875rem;
	color: #6B7280;
}

.form-error {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.875rem;
	color: #EF4444;
}

/* Custom checkbox and radio */
.custom-checkbox,
.custom-radio {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.checkbox-label,
.radio-label {
	display: inline-flex;
	align-items: center;
	position: relative;
	cursor: pointer;
	user-select: none;
}

.checkbox-indicator {
	position: relative;
	width: 1.25rem;
	height: 1.25rem;
	border: 2px solid #e5e7eb;
	border-radius: 0.25rem;
	margin-right: 0.5rem;
	transition: all 0.3s ease;
}

.custom-checkbox:checked + .checkbox-label .checkbox-indicator {
	background-color: #8BA888;
	border-color: #8BA888;
}

.custom-checkbox:checked + .checkbox-label .checkbox-indicator:after {
	content: '';
	position: absolute;
	left: 0.3rem;
	top: 0.1rem;
	width: 0.4rem;
	height: 0.7rem;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.custom-checkbox:focus + .checkbox-label .checkbox-indicator {
	box-shadow: 0 0 0 3px rgba(139, 168, 136, 0.2);
}

.radio-indicator {
	position: relative;
	width: 1.25rem;
	height: 1.25rem;
	border: 2px solid #e5e7eb;
	border-radius: 50%;
	margin-right: 0.5rem;
	transition: all 0.3s ease;
}

.custom-radio:checked + .radio-label .radio-indicator {
	border-color: #8BA888;
}

.custom-radio:checked + .radio-label .radio-indicator:after {
	content: '';
	position: absolute;
	left: 0.25rem;
	top: 0.25rem;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background-color: #8BA888;
}

.custom-radio:focus + .radio-label .radio-indicator {
	box-shadow: 0 0 0 3px rgba(139, 168, 136, 0.2);
}

/* Toggle switch */
.toggle-switch {
	position: relative;
	display: inline-block;
	width: 3rem;
	height: 1.5rem;
}

.toggle-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.toggle-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #e5e7eb;
	transition: .4s;
	border-radius: 1.5rem;
}

.toggle-slider:before {
	position: absolute;
	content: "";
	height: 1.1rem;
	width: 1.1rem;
	left: 0.2rem;
	bottom: 0.2rem;
	background-color: white;
	transition: .4s;
	border-radius: 50%;
}

input:checked + .toggle-slider {
	background-color: #8BA888;
}

input:focus + .toggle-slider {
	box-shadow: 0 0 0 3px rgba(139, 168, 136, 0.2);
}

input:checked + .toggle-slider:before {
	transform: translateX(1.5rem);
}

/* File upload */
.file-upload {
	position: relative;
	display: inline-block;
	cursor: pointer;
}

.file-upload input {
	position: absolute;
	left: 0;
	top: 0;
	opacity: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

.file-upload-label {
	display: inline-flex;
	align-items: center;
	padding: 0.75rem 1.5rem;
	border: 2px dashed #e5e7eb;
	border-radius: 0.5rem;
	transition: all 0.3s ease;
}

.file-upload:hover .file-upload-label {
	border-color: #8BA888;
}

.file-upload input:focus + .file-upload-label {
	box-shadow: 0 0 0 3px rgba(139, 168, 136, 0.2);
}

.file-preview {
	display: flex;
	align-items: center;
	padding: 0.5rem;
	margin-top: 0.5rem;
	background-color: #f9fafb;
	border-radius: 0.5rem;
}

.file-preview-icon {
	margin-right: 0.5rem;
	color: #8BA888;
}

.file-preview-name {
	flex-grow: 1;
	font-size: 0.875rem;
}

.file-preview-remove {
	color: #EF4444;
	cursor: pointer;
}

/* Range slider */
.range-slider {
	-webkit-appearance: none;
	width: 100%;
	height: 0.5rem;
	border-radius: 0.25rem;
	background: #e5e7eb;
	outline: none;
}

.range-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 50%;
	background: #8BA888;
	cursor: pointer;
	transition: all 0.3s ease;
}

.range-slider::-webkit-slider-thumb:hover {
	background: #6A8367;
	transform: scale(1.1);
}

.range-slider::-moz-range-thumb {
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 50%;
	background: #8BA888;
	cursor: pointer;
	transition: all 0.3s ease;
	border: none;
}

.range-slider::-moz-range-thumb:hover {
	background: #6A8367;
	transform: scale(1.1);
}

.range-slider:focus {
	outline: none;
}

.range-slider:focus::-webkit-slider-thumb {
	box-shadow: 0 0 0 3px rgba(139, 168, 136, 0.2);
}

.range-slider:focus::-moz-range-thumb {
	box-shadow: 0 0 0 3px rgba(139, 168, 136, 0.2);
}

/* Rating */
.rating {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
}

.rating input {
	display: none;
}

.rating label {
	cursor: pointer;
	width: 1.5rem;
	font-size: 1.5rem;
	color: #e5e7eb;
	transition: all 0.3s ease;
}

.rating label:before {
	content: '★';
}

.rating input:checked ~ label {
	color: #8BA888;
}

.rating label:hover,
.rating label:hover ~ label {
	color: #6A8367;
}

/* Button styles */
.btn-primary {
	transition: all 0.3s ease;
	background-color: #8BA888;
	color: white;
	font-weight: 500;
	padding: 0.75rem 1.5rem;
	border-radius: 0.5rem;
}

.btn-primary:hover {
	background-color: #6A8367;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(106, 131, 103, 0.2);
}

.btn-secondary {
	transition: all 0.3s ease;
	background-color: transparent;
	border: 2px solid #8BA888;
	color: #8BA888;
	font-weight: 500;
	padding: 0.75rem 1.5rem;
	border-radius: 0.5rem;
}

.btn-secondary:hover {
	background-color: #8BA888;
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(106, 131, 103, 0.2);
}