/* Medtop Recepta Search – namespace .mtrs */
.mtrs {
	--mtrs-navy: #0e2a4a;
	--mtrs-ink: #122965;
	--mtrs-blue: #0e6fa3;
	--mtrs-accent: #00bceb;
	--mtrs-muted: #6b7280;
	--mtrs-soft: #eef4fb;
	--mtrs-border: rgba(210, 225, 245, .75);
	position: relative;
	box-sizing: border-box;
	width: 100%;
	padding: 28px 28px 24px;
	background: #fff;
	border: 1px solid var(--mtrs-border);
	border-radius: 18px;
	box-shadow: 0 14px 34px rgba(15, 30, 60, .12);
	color: var(--mtrs-navy);
	font-family: inherit;
	text-align: left;
}
.mtrs *, .mtrs *::before, .mtrs *::after { box-sizing: border-box; }
.mtrs p { margin: 0; }

/* Nagłówek */
.mtrs__head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding-bottom: 18px;
	margin-bottom: 20px;
	border-bottom: 1px solid #e6e9ef;
}
.mtrs__step {
	flex-shrink: 0;
	width: 32px; height: 32px;
	margin-top: 8px;
	border-radius: 50%;
	background: var(--mtrs-blue);
	color: #fff;
	font-weight: 800; font-size: 14px; line-height: 32px;
	text-align: center;
}
.mtrs__icon {
	flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	width: 48px; height: 48px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--mtrs-border);
	box-shadow: 0 6px 16px rgba(15, 30, 60, .1);
	color: var(--mtrs-blue);
}
.mtrs__icon svg { width: 24px; height: 24px; }
.mtrs__title {
	font-size: clamp(20px, 2.6vw, 28px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.01em;
	color: var(--mtrs-navy);
	margin: 0 0 4px !important;
}
.mtrs__accent { color: var(--mtrs-accent); }
.mtrs__sub { font-size: 16px; line-height: 1.45; color: var(--mtrs-muted); }

/* Pole */
.mtrs__form { margin: 0; }
.mtrs__field {
	position: relative;
	display: flex;
	align-items: stretch;
	border: 1px solid var(--mtrs-ink);
	border-radius: 10px;
	background: #fff;
	animation: mtrsRipple 1.75s cubic-bezier(.66, 0, 0, 1) infinite;
	transition: box-shadow .15s;
}
.mtrs__field:focus-within,
.mtrs.is-dirty .mtrs__field { animation: none; box-shadow: 0 0 0 3px rgba(18, 41, 101, .2); }
@keyframes mtrsRipple {
	0%   { box-shadow: 0 0 0 0 rgba(18, 41, 101, .55); }
	100% { box-shadow: 0 0 0 14px rgba(18, 41, 101, 0); }
}
@media (prefers-reduced-motion: reduce) { .mtrs__field { animation: none; } }

.mtrs__search-ico {
	position: absolute; left: 16px; top: 50%;
	width: 20px; height: 20px;
	transform: translateY(-50%);
	color: #94a3b8;
	pointer-events: none;
}
.mtrs .mtrs__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 56px;
	margin: 0;
	padding: 0 14px 0 46px;
	border: 0 !important;
	border-radius: 10px 0 0 10px;
	background: transparent !important;
	box-shadow: none !important;
	outline: none;
	font: inherit;
	font-size: 17px;
	color: var(--mtrs-navy);
}
.mtrs .mtrs__input::placeholder { color: #64748b; opacity: 1; }
.mtrs .mtrs__btn {
	flex-shrink: 0;
	display: inline-flex; align-items: center; gap: 8px;
	margin: 5px;
	padding: 0 22px;
	border: 0;
	border-radius: 8px;
	background: var(--mtrs-blue);
	color: #fff;
	font: inherit; font-size: 16px; font-weight: 700;
	cursor: pointer;
	transition: background .15s, transform .15s;
}
.mtrs .mtrs__btn:hover { background: var(--mtrs-navy); transform: translateY(-1px); }
.mtrs .mtrs__btn:focus-visible { outline: 3px solid var(--mtrs-accent); outline-offset: 2px; }
.mtrs__btn svg { width: 18px; height: 18px; }
.mtrs__hint { margin-top: 8px !important; padding-left: 2px; font-size: 13px; color: #94a3b8; }

/* Lista podpowiedzi */
.mtrs__list {
	position: absolute; left: -1px; right: -1px; top: calc(100% + 6px);
	z-index: 50;
	max-height: 320px; overflow-y: auto;
	margin: 0; padding: 6px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--mtrs-border);
	border-radius: 12px;
	box-shadow: 0 14px 34px rgba(15, 30, 60, .16);
}
.mtrs__list[hidden] { display: none; }
.mtrs .mtrs__list, .mtrs .mtrs__opt { list-style: none !important; }
.mtrs .mtrs__list { margin: 0 !important; padding: 6px !important; }
.mtrs .mtrs__opt::marker { content: none; }
.mtrs .mtrs__opt::before { content: none !important; display: none !important; }
.mtrs__opt {
	margin: 0 !important;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 15px; line-height: 1.3;
	color: var(--mtrs-navy);
	cursor: pointer;
}
.mtrs__opt small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--mtrs-muted); }
.mtrs__opt mark { background: none; color: var(--mtrs-blue); font-weight: 700; }
.mtrs__opt.is-active, .mtrs__opt:hover { background: var(--mtrs-soft); }
.mtrs__opt--info { color: var(--mtrs-muted); cursor: default; }
.mtrs__opt--info:hover { background: none; }

/* Korzyści */
.mtrs__benefits {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-top: 22px;
}
.mtrs__benefit { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mtrs__bico {
	flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	width: 42px; height: 42px;
	border-radius: 50%;
	background: var(--mtrs-soft);
	color: var(--mtrs-blue);
}
.mtrs__bico svg { width: 22px; height: 22px; }
.mtrs__benefit strong { display: block; font-size: 14px; font-weight: 800; line-height: 1.25; color: var(--mtrs-navy); }
.mtrs__benefit small { display: block; font-size: 13px; line-height: 1.3; color: #48627c; }

.mtrs__sr {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (max-width: 768px) {
	.mtrs { padding: 20px 16px 18px; border-radius: 14px; }
	.mtrs__step { display: none; }
	.mtrs__icon { width: 42px; height: 42px; }
	.mtrs__sub { font-size: 14.5px; }
	.mtrs__benefits { grid-template-columns: 1fr; gap: 10px; margin-top: 18px; }
}
@media (max-width: 520px) {
	.mtrs__field { flex-direction: column; }
	.mtrs__search-ico { top: 26px; }
	.mtrs .mtrs__input { height: 52px; border-radius: 10px 10px 0 0; }
	.mtrs .mtrs__btn { justify-content: center; height: 46px; margin: 0 5px 5px; }
	.mtrs__list { top: 58px; }
}
