/*
 * /online-pravna-poradna (CounselPresenter) - the question form, the article under it
 * and the Zadarmo vs. Premium table. Taken over from ficek-admin
 * (www/assets/publicCounsel/web/style.css and pricingCompare.css), where the form
 * used to live; the admin keeps only the pricing table for its conversation.
 */

/* ------------------------------------------------------------------------
   Question form
   ------------------------------------------------------------------------ */

.counsel-form-card {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	box-shadow: 0 18px 40px rgba(17, 43, 93, 0.12), 0 2px 6px rgba(17, 43, 93, 0.06) !important;
}

/* brand accent along the top edge */
.counsel-form-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: linear-gradient(90deg, #112b5d 0%, #18448c 60%, #18ae41 100%);
}

.counsel-form-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
}

.counsel-form-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	color: #fff;
	font-size: 1.5rem;
	background: linear-gradient(135deg, #18448c, #112b5d);
	box-shadow: 0 6px 14px rgba(24, 68, 140, 0.3);
}

.counsel-form-title {
	display: block;
	margin: 0;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.25;
	color: #112b5d;
}

.counsel-form-subtitle {
	color: #6c757d;
	font-size: 0.95rem;
	line-height: 1.4;
}

/* progress of the whole question flow (5 steps, continues in the conversation) */
.counsel-progress {
	margin: 0 0 16px;
}

.counsel-progress-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
	font-size: 0.875rem;
	color: #6c757d;
}

.counsel-progress-step strong {
	color: #112b5d;
}

.counsel-progress-percent {
	font-weight: 700;
	color: #18448c;
	font-variant-numeric: tabular-nums;
}

.counsel-progress-track {
	height: 8px;
	border-radius: 8px;
	background: #e9eef6;
	overflow: hidden;
}

.counsel-progress-fill {
	display: block;
	width: 0;
	height: 100%;
	border-radius: 8px;
	background: linear-gradient(90deg, #18448c, #18ae41);
	transition: width .4s ease;
}

.counsel-input-wrap {
	border: 1px solid #dde4ef;
	border-radius: 14px;
	background: #f6f8fb;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.counsel-input-wrap:focus-within {
	border-color: #18448c;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(24, 68, 140, 0.12);
}

.question-input,
.question-input:focus {
	min-height: 220px;
	resize: vertical;
	line-height: 1.6;
	padding: 16px 18px 8px;
	border: 0;
	border-radius: 14px 14px 0 0;
	background: transparent;
	box-shadow: none;
}

.counsel-input-meter {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 18px 12px;
}

.counsel-input-progress {
	flex: 1 1 auto;
	height: 4px;
	border-radius: 4px;
	background: #e3e8f0;
	overflow: hidden;
}

.counsel-input-bar {
	display: block;
	width: 0;
	height: 100%;
	border-radius: 4px;
	background: #18448c;
	transition: width .2s ease, background-color .2s ease;
}

.counsel-input-count {
	flex: 0 0 auto;
	color: #8a94a6;
	font-variant-numeric: tabular-nums;
}

.counsel-input-wrap.is-long-enough .counsel-input-bar {
	background: #18ae41;
}

.counsel-input-wrap.is-long-enough .counsel-input-count {
	color: #18ae41;
}

.counsel-perks {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 16px 0 0;
}

.counsel-perks li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 0.85rem;
	color: #112b5d;
	background: #eaf1fb;
}

.counsel-perks .bi {
	color: #18ae41;
}

.counsel-form-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 24px;
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid #edf1f6;
}

.counsel-form-footer .form-check-input {
	width: 1.25em;
	height: 1.25em;
	margin-top: 0.15em;
	cursor: pointer;
}

.counsel-form-footer .form-check-input:checked {
	background-color: #18448c;
	border-color: #18448c;
}

.counsel-form-footer .btn {
	margin-left: auto;
	min-height: 52px;
	padding-left: 28px;
	padding-right: 28px;
	border-radius: 12px;
	font-weight: 600;
	box-shadow: 0 8px 18px rgba(24, 174, 65, 0.28);
}

/* waiting for the reCAPTCHA token */
.counsel-form-footer .btn.is-loading {
	opacity: .7;
	cursor: progress;
}

.counsel-form-footer .btn .bi {
	transition: transform .15s ease;
}

.counsel-form-footer .btn:hover .bi {
	transform: translateX(3px);
}

@media (max-width: 575.98px) {
	.counsel-form-footer .btn {
		width: 100%;
	}

	.counsel-form-icon {
		width: 44px;
		height: 44px;
		font-size: 1.25rem;
	}

	.counsel-form-title {
		font-size: 1.15rem;
	}
}

/* iOS zooms into inputs smaller than 16px */
@media (pointer: coarse) {
	.question-input {
		font-size: 16px;
	}
}

/* ------------------------------------------------------------------------
   Service offer (consultation / contract review) shown by the question text
   ------------------------------------------------------------------------ */

.service-suggest {
	border-radius: 14px;
	box-shadow: 0 0 0 2px #18ae41, 0 10px 24px rgba(17, 43, 93, 0.12) !important;
	animation: service-suggest-in .25s ease-out;
}

@keyframes service-suggest-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.service-suggest-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}

.service-suggest-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	font-size: 1.25rem;
	color: #fff;
	background: linear-gradient(135deg, #18448c, #112b5d);
}

.service-suggest-label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: #18ae41;
}

.service-suggest-title {
	display: block;
	color: #112b5d;
	line-height: 1.3;
}

.service-suggest-text {
	font-size: 0.95rem;
	color: #495057;
	margin-bottom: 12px;
}

.service-suggest .btn {
	min-height: 44px;
	border-radius: 10px;
	font-weight: 600;
}

/* ------------------------------------------------------------------------
   Article under the form
   ------------------------------------------------------------------------ */

.counsel-article h2,
.counsel-article h3 {
	margin-top: 1.75rem;
	margin-bottom: 0.75rem;
}

.counsel-article h2:first-child {
	margin-top: 0;
}

.counsel-article .strong {
	font-weight: 600;
}

.counsel-checklist {
	list-style: none;
	padding: 0;
	margin: 0 0 1rem;
}

.counsel-checklist li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 6px 0;
}

.counsel-checklist .bi {
	flex: 0 0 auto;
	color: #18ae41;
	font-size: 1.25rem;
	line-height: 1.2;
}

.img-review {
	border-radius: 10px;
	box-shadow: 0 4px 14px rgba(17, 43, 93, 0.12);
}

.counsel-warranty {
	position: relative;
	padding: 24px;
	border-radius: 14px;
	background-color: #d9e9fb;
}

.counsel-warranty-stamp {
	float: right;
	width: 110px;
	margin: -8px -8px 8px 16px;
}

@media (max-width: 575.98px) {
	.counsel-warranty-stamp {
		width: 80px;
	}
}

/* Invisible reCAPTCHA keeps working, only its floating badge is hidden.
   visibility (not display: none) — display: none breaks the challenge. */
.grecaptcha-badge {
	visibility: hidden;
}

/* ------------------------------------------------------------------------
   Zadarmo vs. Premium table
   ------------------------------------------------------------------------ */

.pricing-compare {
	margin: 16px 0;
	border: 1px solid #e3e8f0;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	font-size: 15px;
	line-height: 1.35;
}

.pricing-compare-table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	table-layout: fixed;
}

.pricing-compare-table th,
.pricing-compare-table td {
	padding: 10px 12px;
	border: 0;
	border-top: 1px solid #edf1f6;
	vertical-align: middle;
	text-align: center;
}

.pricing-compare-table thead th {
	border-top: 0;
	padding-top: 14px;
	padding-bottom: 12px;
	font-size: 16px;
	font-weight: 700;
}

.pricing-compare-table .pricing-compare-feature {
	width: 46%;
	text-align: left;
	font-weight: 500;
	color: #212529;
}

.pricing-compare-table thead .pricing-compare-free {
	color: #18448c;
	background: #eaf1fb;
}

.pricing-compare-table thead .pricing-compare-premium {
	color: #fff;
	background: #18ae41;
}

/* the Premium column is lightly tinted all the way down */
.pricing-compare-table tbody .pricing-compare-premium {
	background: #f1faf4;
}

.pricing-compare-badge {
	display: block;
	margin: 0 auto 3px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	opacity: .85;
}

.pricing-compare-yes,
.pricing-compare-no {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
}

.pricing-compare-yes {
	color: #fff;
	background: #18ae41;
}

.pricing-compare-no {
	color: #c0392b;
	background: #fdecea;
}

.pricing-compare-text {
	font-size: 13px;
	color: #4a5568;
}

.pricing-compare-text.is-strong {
	font-weight: 700;
	color: #112b5d;
}

.pricing-compare-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (max-width: 575px) {
	.pricing-compare {
		font-size: 14px;
	}

	.pricing-compare-table th,
	.pricing-compare-table td {
		padding: 9px 6px;
	}

	.pricing-compare-table .pricing-compare-feature {
		width: 42%;
		padding-left: 10px;
	}

	.pricing-compare-table thead th {
		font-size: 14px;
	}

	.pricing-compare-yes,
	.pricing-compare-no {
		width: 22px;
		height: 22px;
		font-size: 12px;
	}

	.pricing-compare-text {
		font-size: 12px;
	}
}
