/* Phản hồi gửi form CF7 — xem form-ux.js. */

.wpcf7-form { position: relative; }

.wpcf7-form.psfi-busy [type="submit"],
.wpcf7-form.psfi-busy .wpcf7-submit { cursor: wait; opacity: .75; }

/* Khung "Đã gửi" phủ lên chính form khách đang nhìn. */
.psfi-success {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(255, 255, 255, .96);
	border-radius: inherit;
	text-align: center;
	animation: psfi-fade .25s ease-out;
	outline: none;
}
.psfi-success[hidden] { display: none !important; }

.psfi-success__inner { max-width: 420px; }

.psfi-success__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: #16a34a;
	color: #fff;
	font-size: 30px;
	line-height: 1;
	box-shadow: 0 0 0 8px rgba(22, 163, 74, .15);
}

.psfi-success__title { display: block; margin-bottom: 6px; font-size: 20px; color: #14532d; }
.psfi-success__msg { margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: #334155; }

.psfi-success__again {
	padding: 8px 18px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
	color: #0f172a;
	font-size: 14px;
	cursor: pointer;
	text-transform: none;
	letter-spacing: 0;
	min-height: 0;
	line-height: 1.4;
	margin: 0;
}
.psfi-success__again:disabled { opacity: .55; cursor: default; }

/* Form rất thấp (ô email ở chân trang, sidebar): khung gọn một hàng. */
.psfi-success--compact { padding: 6px 10px; justify-content: flex-start; text-align: left; }
.psfi-success--compact .psfi-success__inner { display: flex; align-items: center; gap: 10px; max-width: none; }
.psfi-success--compact .psfi-success__icon { width: 28px; height: 28px; margin: 0; font-size: 16px; flex: none; box-shadow: none; }
.psfi-success--compact .psfi-success__title { margin: 0; font-size: 15px; }
.psfi-success--compact .psfi-success__msg,
.psfi-success--compact .psfi-success__again { display: none; }
@media (max-width: 480px) {
	.psfi-success__title { font-size: 18px; }
	.psfi-success__icon { width: 46px; height: 46px; font-size: 24px; }
}

/* Dòng thông báo mặc định của CF7 đã có khung trên thay — ẩn khi thành công. */
.wpcf7-form.psfi-done .wpcf7-response-output { visibility: hidden; }

@keyframes psfi-fade { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .psfi-success { animation: none; } }
