/* ========================================
   فرم تماس با ما — مینیمال و لوکس
   خطوط نازک به‌جای باکس‌های پرشده، رنگ برنزی کم‌رنگ به‌عنوان تنها لهجه
   ======================================== */

.am-cf {
	--am-cf-ink: #1a1815;
	--am-cf-body: #4a453d;
	--am-cf-muted: #948c7e;
	--am-cf-accent: #a37f45;
	--am-cf-line: rgba(26, 24, 21, 0.14);
	--am-cf-line-soft: rgba(26, 24, 21, 0.09);
	max-width: 100%;
	margin: 0 auto;
	font-family: inherit;
}

.am-cf__form {
	background: #fff;
	border-radius: 4px;
	box-shadow: none;
	border: 1px solid var(--am-cf-line-soft);
	padding: 40px 44px;
	position: relative;
	overflow: hidden;
}

.am-cf__form::before {
	content: '';
	position: absolute;
	inset: 0 0 auto 0;
	height: 1px;
	background: var(--am-cf-accent);
	opacity: .5;
}

@media (max-width: 640px) {
	.am-cf__form { padding: 28px 22px; }
}

/* تله ربات */
.am-cf__hp {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.am-cf__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
	margin-bottom: 22px;
}

@media (max-width: 640px) {
	.am-cf__row { grid-template-columns: 1fr; gap: 18px; }
}

.am-cf__field { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.am-cf__row .am-cf__field { margin-bottom: 0; }
.am-cf__field--full { grid-column: 1 / -1; }

.am-cf__label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--am-cf-muted);
}
.am-cf__label svg { color: var(--am-cf-accent); flex-shrink: 0; width: 14px; height: 14px; }
.am-cf__optional { font-weight: 400; color: var(--am-cf-muted); font-size: 11px; text-transform: none; }

.am-cf__input {
	width: 100%;
	padding: 10px 2px 12px;
	border: none;
	border-bottom: 1px solid var(--am-cf-line);
	border-radius: 0;
	font-size: 15px;
	font-family: inherit;
	background: transparent;
	color: var(--am-cf-ink);
	transition: border-color .2s ease;
}
.am-cf__input::placeholder { color: #b8b1a3; }
.am-cf__input:focus {
	outline: none;
	border-color: var(--am-cf-accent);
	background: transparent;
	box-shadow: none;
}

.am-cf__select { cursor: pointer; }
.am-cf__textarea { resize: vertical; min-height: 110px; line-height: 1.8; padding-top: 10px; }

.am-cf__foot {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 10px;
}

.am-cf__submit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 34px;
	border: 1px solid var(--am-cf-ink);
	border-radius: 2px;
	background: var(--am-cf-ink);
	color: #fff;
	font-size: 14.5px;
	font-weight: 500;
	letter-spacing: .01em;
	cursor: pointer;
	transition: background .25s ease, color .25s ease;
	box-shadow: none;
}
.am-cf__submit:hover { transform: none; box-shadow: none; background: var(--am-cf-accent); border-color: var(--am-cf-accent); }
.am-cf__submit:active { transform: none; }
.am-cf__submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.am-cf__submit-icon { transform: scaleX(-1); }

.am-cf__spinner {
	display: none;
	width: 16px; height: 16px;
	border: 2px solid rgba(255,255,255,.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: am-cf-spin .7s linear infinite;
}
.am-cf__submit.is-loading .am-cf__spinner { display: inline-block; }
.am-cf__submit.is-loading .am-cf__submit-icon { display: none; }

@keyframes am-cf-spin { to { transform: rotate(360deg); } }

.am-cf__result {
	font-size: 13.5px;
	font-weight: 500;
	padding: 12px 16px;
	border-radius: 2px;
	display: none;
}
.am-cf__result.is-visible { display: block; }
.am-cf__result.is-success { background: #f7faf6; color: #3d6b46; border: 1px solid #d8e5d5; }
.am-cf__result.is-error   { background: #fbf6f5; color: #94443a; border: 1px solid #eaccc6; }

.am-cf__input.am-cf--invalid { border-color: #b3564a !important; }
