/* =============================================================================
   Forever Memories — Create Memorial Form
   ============================================================================= */

/* ── Wrap ── */
.fm-create-form-wrap {
	max-width: 680px;
	margin: 0 auto;
	padding: 2rem 1.5rem;
	font-family: inherit;
}

/* ── Slot Info Bar ── */
.fm-create-slot-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f0f4ff;
	border: 1px solid #c5d3f5;
	border-radius: 8px;
	padding: 0.75rem 1.25rem;
	margin-bottom: 1.5rem;
}

.fm-create-slot-bar__count {
	font-size: 0.85rem;
	color: #6c757d;
	font-weight: 500;
}

/* ── Tier Badge ── */
.fm-tier-badge {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 0.3rem 0.75rem;
	border-radius: 20px;
	border: 2px solid currentColor;
}

.fm-tier-badge--basic {
	color: #6c757d;
	background: #f8f9fa;
}

.fm-tier-badge--standard {
	color: #0b3e66;
	background: #e8f0f8;
}

.fm-tier-badge--premium {
	color: #92650a;
	background: #fdf3dc;
}

/* ── Errors ── */
.fm-create-errors {
	margin-bottom: 1.5rem;
}

.fm-create-error {
	background: #fff5f5;
	border: 1px solid #ffc9c9;
	border-radius: 6px;
	padding: 0.75rem 1rem;
	color: #c92a2a;
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
}

.fm-create-error:last-child {
	margin-bottom: 0;
}

/* ── Feature Summary ── */
.fm-create-features {
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	padding: 1.25rem 1.5rem;
	margin-bottom: 2rem;
}

.fm-create-features h4 {
	margin: 0 0 0.75rem;
	font-size: 0.9rem;
	font-weight: 700;
	color: #0b3e66;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.fm-create-features__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.4rem 1rem;
}

.fm-create-features__list li {
	font-size: 0.875rem;
	color: #495057;
}

.fm-feature--locked {
	color: #adb5bd !important;
}

/* ── Form Fields ── */
.fm-create-form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.fm-create-field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.fm-create-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.fm-create-field--half {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.fm-create-field label,
.fm-create-field--half label {
	font-size: 0.875rem;
	font-weight: 600;
	color: #343a40;
}

.fm-required {
	color: #c92a2a;
	margin-left: 2px;
}

.fm-optional {
	color: #adb5bd;
	font-weight: 400;
	font-size: 0.8rem;
}

/* ── Inputs ── */
.fm-create-input {
	width: 100%;
	padding: 0.6rem 0.875rem;
	font-size: 0.9rem;
	font-family: inherit;
	color: #212529;
	background: #fff;
	border: 1.5px solid #ced4da;
	border-radius: 6px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
}

.fm-create-input:focus {
	outline: none;
	border-color: #0b3e66;
	box-shadow: 0 0 0 3px rgba(11, 62, 102, 0.12);
}

.fm-create-input:disabled {
	background: #f8f9fa;
	color: #adb5bd;
	cursor: not-allowed;
}

.fm-create-textarea {
	resize: vertical;
	min-height: 140px;
	line-height: 1.6;
}

select.fm-create-input {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236c757d' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.875rem center;
	padding-right: 2.5rem;
	cursor: pointer;
}

/* ── Help Text ── */
.fm-create-help {
	font-size: 0.8rem;
	color: #adb5bd;
	margin: 0.25rem 0 0;
	line-height: 1.4;
}

/* ── Photo Upload ── */
.fm-create-photo-upload {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.fm-create-photo-preview {
	min-height: 0;
	transition: min-height 0.2s ease;
}

.fm-create-photo-preview img {
	display: block;
	max-width: 200px;
	max-height: 200px;
	border-radius: 8px;
	object-fit: cover;
	border: 2px solid #dee2e6;
}

.fm-create-photo-preview:not(:empty) {
	min-height: 60px;
}

/* ── Buttons ── */
.fm-create-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	font-size: 0.9rem;
	font-weight: 600;
	font-family: inherit;
	padding: 0.6rem 1.25rem;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	transition: background 0.15s ease, opacity 0.15s ease, transform 0.1s ease;
	text-decoration: none;
	line-height: 1;
}

.fm-create-btn:active {
	transform: scale(0.98);
}

.fm-create-btn--primary {
	background: #0b3e66;
	color: #fff;
	padding: 0.75rem 2rem;
	font-size: 1rem;
	width: 100%;
}

.fm-create-btn--primary:hover {
	background: #0d4d80;
}

.fm-create-btn--primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.fm-create-btn--secondary {
	background: #f0f4ff;
	color: #0b3e66;
	border: 1.5px solid #c5d3f5;
}

.fm-create-btn--secondary:hover {
	background: #e0e9ff;
}

.fm-create-btn--text {
	background: transparent;
	color: #c92a2a;
	padding: 0.4rem 0.5rem;
	font-size: 0.8rem;
	font-weight: 500;
}

.fm-create-btn--text:hover {
	text-decoration: underline;
}

/* ── Actions ── */
.fm-create-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	padding-top: 0.5rem;
}

.fm-create-actions .fm-create-help {
	text-align: center;
}

/* ── Notice Box ── */
.fm-create-notice {
	max-width: 680px;
	margin: 2rem auto;
}

/* ── Responsive ── */
@media ( max-width: 600px ) {
	.fm-create-form-wrap {
		padding: 1.25rem 1rem;
	}

	.fm-create-field-row {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.fm-create-features__list {
		grid-template-columns: 1fr;
	}

	.fm-create-slot-bar {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}

	.fm-create-btn--primary {
		font-size: 0.95rem;
		padding: 0.7rem 1.5rem;
	}
}
