.cfm-form-wrapper {
	--cfm-color: #2563eb;
	max-width: 560px;
	margin: 24px 0;
	padding: 24px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #ffffff;
	font-family: inherit;
	direction: rtl;
	text-align: right;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.cfm-form-wrapper.cfm-login-required {
	text-align: center;
}

.cfm-field {
	margin-bottom: 16px;
}

.cfm-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	color: #111827;
}

.cfm-field input[type="text"],
.cfm-field input[type="tel"],
.cfm-field input[type="date"],
.cfm-field input[type="time"],
.cfm-field select,
.cfm-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 14px;
	box-sizing: border-box;
	font-family: inherit;
	transition: border-color .15s;
}

.cfm-field input:focus,
.cfm-field select:focus,
.cfm-field textarea:focus {
	outline: none;
	border-color: var(--cfm-color);
}

.cfm-locked-field {
	background: #f3f4f6;
	color: #6b7280;
	cursor: not-allowed;
}

.cfm-hint {
	margin: 6px 0 0;
	font-size: 12px;
	color: #6b7280;
}

.cfm-btn {
	display: inline-block;
	background: var(--cfm-color);
	color: #fff !important;
	border: none;
	border-radius: 8px;
	padding: 11px 22px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: opacity .15s;
}

.cfm-btn:hover {
	opacity: 0.9;
}

.cfm-btn-outline {
	background: transparent;
	color: var(--cfm-color) !important;
	border: 1.5px solid var(--cfm-color);
}

.cfm-location-status {
	display: inline-block;
	margin-right: 8px;
	font-size: 13px;
	color: #16a34a;
}

.cfm-notice {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 18px;
	font-size: 14px;
}

.cfm-notice-success {
	background: #ecfdf5;
	color: #047857;
	border: 1px solid #a7f3d0;
}

.cfm-notice-error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

/* نقشه انتخاب موقعیت مکانی */
.cfm-map {
	width: 100%;
	height: 280px;
	border-radius: 8px;
	border: 1px solid #d1d5db;
	margin-bottom: 10px;
	z-index: 1;
}

.cfm-map-field .cfm-locate-btn {
	margin-top: 4px;
	font-size: 13px;
	padding: 8px 14px;
}

/* تقویم شمسی */
.cfm-jalali-field {
	position: relative;
}

.cfm-jalali-display {
	cursor: pointer;
	background: #fff;
}

.cfm-jalali-calendar {
	display: none;
}

.cfm-jalali-calendar.cfm-jalali-open {
	display: block;
}

.cfm-jalali-popup {
	position: absolute;
	z-index: 20;
	margin-top: 6px;
	width: 260px;
	max-width: 90vw;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
	padding: 12px;
}

.cfm-jalali-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.cfm-jalali-title {
	font-weight: 700;
	font-size: 14px;
	color: #111827;
}

.cfm-jalali-nav {
	background: #f3f4f6;
	border: none;
	border-radius: 6px;
	width: 28px;
	height: 28px;
	font-size: 16px;
	cursor: pointer;
	color: #374151;
}

.cfm-jalali-nav:hover {
	background: var(--cfm-color);
	color: #fff;
}

.cfm-jalali-week {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	margin-bottom: 4px;
}

.cfm-jalali-week span {
	text-align: center;
	font-size: 11px;
	color: #9ca3af;
	font-weight: 600;
}

.cfm-jalali-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}

.cfm-jalali-day {
	border: none;
	background: transparent;
	padding: 7px 0;
	font-size: 13px;
	border-radius: 6px;
	cursor: pointer;
	color: #111827;
}

.cfm-jalali-day:hover {
	background: var(--cfm-color);
	color: #fff;
}

.cfm-jalali-day-empty {
	cursor: default;
	pointer-events: none;
}

.cfm-jalali-today {
	font-weight: 700;
	text-decoration: underline;
}
