/* ============================================================
   弹窗表单按钮 (popup-form-button)
   ============================================================ */

/* ---- 触发按钮 ---- */
.pfb-btn-wrap {
	display: block;
}

.pfb-btn {
	display: inline-block;
	padding: 14px 32px;
	background: #C8102E;
	color: #fff;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease;
	user-select: none;
	text-align: center;
	box-sizing: border-box;
}

.pfb-btn:hover {
	background: #A00D24;
}

.pfb-btn-full {
	display: block;
	width: 100%;
}

/* ---- 弹窗遮罩 ---- */
.pfb-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pfb-modal-overlay.pfb-active {
	opacity: 1;
	visibility: visible;
}

/* ---- 弹窗内容 ---- */
.pfb-modal-content {
	position: relative;
	width: 600px;
	max-width: 95vw;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 8px;
	padding: 40px 50px;
	box-sizing: border-box;
	transform: translateY(20px);
	transition: transform 0.3s ease;
}

.pfb-modal-overlay.pfb-active .pfb-modal-content {
	transform: translateY(0);
}

.pfb-modal-content *,
.pfb-modal-content *::before,
.pfb-modal-content *::after {
	box-sizing: border-box;
}

/* ---- 关闭按钮 ---- */
.pfb-modal-close {
	position: absolute;
	top: 16px;
	right: 20px;
	font-size: 24px;
	line-height: 1;
	color: #333;
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
	transition: color 0.2s;
}

.pfb-modal-close:hover {
	color: #C8102E;
}

/* ---- 表单标题 ---- */
.pfb-form-title {
	margin: 0 0 30px;
	color: #222;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
}

/* ---- 字段 ---- */
.pfb-field {
	margin-bottom: 20px;
}

.pfb-label {
	display: block;
	margin-bottom: 8px;
	color: #C8102E;
	font-weight: 700;
	font-size: 15px;
}

.pfb-form .pfb-input {
	display: block;
	width: 100%;
	padding: 14px 16px;
	background: #F5F5F7;
	border: 0;
	box-shadow: none;
	border-radius: 4px;
	color: #333;
	font-size: 15px;
	font-family: inherit;
	line-height: 1.4;
	transition: box-shadow 0.2s, background 0.2s;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.pfb-form .pfb-input::placeholder {
	color: #999;
}

.pfb-form .pfb-input:focus {
	box-shadow: 0 0 0 1px #C8102E inset;
	background: #fff;
}

.pfb-textarea {
	resize: vertical;
	min-height: 120px;
}

/* ---- 文件上传 ---- */
.pfb-file-field {
	position: relative;
}

.pfb-file-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px 16px;
	background: #F5F5F7;
	color: #C8102E;
	border: 1px solid transparent;
	border-radius: 4px;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	transition: background 0.2s;
}

.pfb-file-btn:hover {
	background: #EDEDF0;
}

.pfb-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.pfb-file-list {
	margin-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.pfb-file-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	background: #fff;
	border: 1px solid #E5E5E8;
	border-radius: 4px;
	font-size: 14px;
	color: #555;
}

.pfb-file-item-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	flex: 1;
	margin-right: 10px;
}

.pfb-file-item-remove {
	background: none;
	border: 0;
	color: #C8102E;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	padding: 0 4px;
}

/* ---- 提交按钮 (span) ---- */
.pfb-submit {
	display: block;
	width: 100%;
	margin-top: 20px;
	padding: 16px 24px;
	background: #1A1F5C;
	color: #fff;
	border: 0;
	border-radius: 4px;
	font-size: 17px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s, opacity 0.2s;
	font-family: inherit;
	text-align: center;
	user-select: none;
}

.pfb-submit:hover {
	background: #2A316F;
}

.pfb-submit.pfb-disabled {
	opacity: 0.6;
	cursor: not-allowed;
	pointer-events: none;
}

/* ---- 提示消息 ---- */
.pfb-messages {
	margin-top: 16px;
}

.pfb-msg {
	padding: 12px 16px;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.5;
}

.pfb-msg-success {
	background: #E7F5EC;
	color: #1C7A3F;
	border: 1px solid #B7E0C3;
}

.pfb-msg-error {
	background: #FDECEE;
	color: #C8102E;
	border: 1px solid #F5C2C7;
}

/* ---- Honeypot ---- */
.pfb-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
}

/* ---- 响应式 ---- */
@media (max-width: 600px) {
	.pfb-modal-content {
		padding: 24px 20px;
	}

	.pfb-form-title {
		font-size: 24px;
	}
}
