/*
 * Public counsel form (PublicCounsel:default) in the look of the public webs.
 * The first part is taken over from ficekweb www/custom/custom.css (colours,
 * header, lawyer card, footer) - keep it in sync when the web changes.
 */

header nav,
.pre-header {
	backdrop-filter: blur(5px);
	background-color: rgba(255, 255, 255, 0.92);
}

.bg-success {
	background-color: #18ae41 !important;
}

.btn-secondary {
	background-color: #18ae41;
	border-color: #18ae41;
}

.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active {
	background-color: #118132 !important;
	border-color: #118132 !important;
}

.btn-primary {
	background-color: #18448c;
	border-color: #18448c;
}

.btn-primary:hover, .btn-primary:focus {
	background-color: #112b5d;
	border-color: #112b5d;
}

.btn-outline-primary {
	border-color: #112b5d;
	color: #112b5d;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
	border-color: #112b5d;
	color: #fff;
	background-color: #112b5d;
}

.btn {
	touch-action: manipulation;
}

.color-primary {
	color: #112b5d;
}

.bg-primary {
	background-color: #18448c !important;
}

.bg-custom {
	background-image: url("img/bg.png");
}

.custom-hearder {
	padding-top: 50px;
	padding-bottom: 40px;
}

.custom-hr {
	padding: 0;
	color: #6c757d;
	margin: 0 15px;
}

.light {
	color: #6c757d;
}

.fs-7 {
	font-size: 0.90rem;
}

.text-review-color {
	color: #fdd563;
}

footer {
	background-color: #d9e9fb;
}

footer a:link, footer a:visited,
a.link:link, a.link:visited {
	color: #18448c;
}

footer a:hover, footer a:focus,
a.link:hover, a.link:focus {
	color: #112b5d;
}

/* the cards reach 75px up into the header - the header grows by the same amount
   so the cards never cover the heading (the web gets the room from a <br> under h1) */
@media only screen and (min-width: 1000px) {
	.card-info-top {
		margin-top: -75px;
	}

	.custom-hearder {
		padding-bottom: 115px;
	}
}

.lawyer-card-avatar {
	position: relative;
	display: block;
	width: 100px;
}

.lawyer-card-status {
	position: absolute;
	right: 6px;
	bottom: 6px;
	width: 20px;
	height: 20px;
}

/* ------------------------------------------------------------------------
   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 {
	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);
}

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

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

.counsel-form-lawyer {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid #edf1f6;
	line-height: 1.3;
}

.counsel-form-lawyer img {
	object-fit: cover;
}

@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,
	#searchForm .form-control {
		font-size: 16px;
	}
}

/* ------------------------------------------------------------------------
   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;
	}
}
