/* The click captcha of the forms («من ربات نیستم», core/theme/captcha.php and assets/js/captcha.js):
 the comment form of the blog posts, the question form of the FAQ and the contact form. One box as
 tall as the fields beside it: the tick, the words, the mark of HiData. The tick is a ring; while
 the browser works an arc turns on it; then a green disc with a check comes up. Transform and
 opacity only; under reduced motion the arc stands still. */
.hd-cap {
	position: relative;
	min-width: 0;
}

/* A cell of a form's grid that sets the box level with the field beside it (the FAQ's select). */
.hd-cap-end {
	align-self: end;
}

.hd-cap-box {
	display: flex;
	align-items: center;
	gap: .8571rem;
	box-sizing: border-box;
	width: 100%;
	min-height: max(3.8571rem,48px);
	margin: 0;
	padding: 0 1.0714rem;
	border: 0;
	border-radius: 1.1429rem;
	background: #FFFFFF;
	box-shadow: inset 0 0 0 1px #D3E2F1;
	color: #103F63;
	font: inherit;
	font-size: 1.0357rem;
	font-weight: 700;
	line-height: 1.5;
	text-align: start;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: box-shadow .25s,background-color .25s;
}

/* Dressed as the fields of its form: pale (the comments of the blog), round and raised (the contact
 form, translucent and outlined below 992 as its fields are), or as the boxes of the FAQ's form. */
.hd-cap.is-soft .hd-cap-box {
	background: #F6FAFE;
}

.hd-cap.is-raised .hd-cap-box {
	min-height: max(4rem,48px);
	padding-inline: 1.4286rem;
	border-radius: 2rem;
	box-shadow: 0 .2857rem .4286rem rgba(0,0,0,.02),0 .1429rem .2857rem rgba(0,0,0,.02);
}

.hd-cap.is-plain .hd-cap-box {
	min-height: max(4.5rem,48px);
	border-radius: 1rem;
	background: rgba(255,255,255,.9);
	box-shadow: 0 .5rem .5rem rgba(128,128,128,.05);
}

@media (max-width: 991.98px) {
	.hd-cap.is-raised .hd-cap-box {
		background: rgba(255,255,255,.5);
		box-shadow: inset 0 0 0 1px #E1E8EF,0 .2857rem .4286rem rgba(0,0,0,.02);
	}
}

.hd-cap .hd-cap-box:hover {
	box-shadow: inset 0 0 0 1px #8EB3D8;
}

.hd-cap .hd-cap-box:focus-visible {
	outline: 0;
	box-shadow: inset 0 0 0 2px #0247AE;
}

.hd-cap.is-checking .hd-cap-box {
	cursor: progress;
}

.hd-cap.is-done .hd-cap-box {
	background: #F1FAF4;
	box-shadow: inset 0 0 0 1px #A7DDBA;
	cursor: default;
}

.hd-cap.is-done .hd-cap-box:focus-visible {
	box-shadow: inset 0 0 0 2px #15803D;
}

.hd-cap.is-failed .hd-cap-box,
.hd-cap.is-asked .hd-cap-box {
	box-shadow: inset 0 0 0 2px #B42318;
}

.hd-cap-tick {
	position: relative;
	flex: none;
	width: 1.9286rem;
	height: 1.9286rem;
}

.hd-cap-tick svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

/* 3.3:1 on white: the edge of a control. */
.hd-cap-ring {
	color: #6B8FB5;
	transition: color .25s,opacity .2s;
}

.hd-cap-box:hover .hd-cap-ring {
	color: #0247AE;
}

.hd-cap.is-checking .hd-cap-ring {
	color: #DCE8F4;
}

.hd-cap-arc {
	color: #0247AE;
	opacity: 0;
	transform-box: fill-box;
	transform-origin: center;
	transition: opacity .2s;
}

.hd-cap.is-checking .hd-cap-arc {
	opacity: 1;
	animation: hd-cap-turn .8s linear infinite;
}

.hd-cap-ok {
	opacity: 0;
	transform: scale(.35);
	transform-box: fill-box;
	transform-origin: center;
	transition: opacity .2s,transform .5s cubic-bezier(.34,1.56,.64,1);
}

.hd-cap.is-done .hd-cap-ok {
	opacity: 1;
	transform: none;
}

.hd-cap.is-done .hd-cap-ring {
	opacity: 0;
}

.hd-cap.is-failed .hd-cap-ring {
	color: #B42318;
}

.hd-cap-text {
	flex: 1;
	min-width: 0;
}

.hd-cap.is-done .hd-cap-text {
	color: #12723A;
}

.hd-cap.is-failed .hd-cap-text {
	color: #B42318;
	font-size: .9286rem;
}

.hd-cap-mark {
	display: grid;
	place-items: center;
	flex: none;
	color: #0247AE;
	opacity: .85;
}

.hd-cap-mark svg {
	width: 1.2857rem;
	height: 1.4286rem;
}

/* Sent without it: a short shake, and the line under it. */
.hd-cap.is-asked .hd-cap-box {
	animation: hd-cap-shake .42s cubic-bezier(.36,.07,.19,.97);
}

.hd-cap-say {
	margin: 0;
	color: #B42318;
	font-size: .9286rem;
	font-weight: 700;
	line-height: 1.6;
}

.hd-cap-say:not(:empty) {
	margin-top: .4286rem;
}

@keyframes hd-cap-turn {
	to {
		transform: rotate(1turn);
	}
}

@keyframes hd-cap-shake {
	20%,
	60% {
		transform: translateX(-.2857rem);
	}

	40%,
	80% {
		transform: translateX(.2857rem);
	}
}

@media (max-width: 575.98px) {
	.hd-cap-box {
		gap: .8333rem;
		min-height: max(4.25rem,48px);
		padding: 0 1.1667rem;
		border-radius: 1.25rem;
		font-size: 1.1667rem;
	}

	.hd-cap-tick {
		width: 2.1667rem;
		height: 2.1667rem;
	}

	.hd-cap-mark svg {
		width: 1.5rem;
		height: 1.6667rem;
	}

	.hd-cap-say {
		font-size: 1.0833rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hd-cap.is-checking .hd-cap-arc,
	.hd-cap.is-asked .hd-cap-box {
		animation: none;
	}

	.hd-cap-ok {
		transition: opacity .2s;
	}
}
