/* --- Księga kondolencyjna (Condolences/views/2.0/index.php) --- */
/* Layout podstrony owija treść w .container (Bootstrap, 1320 px); artykuły używają szerszego
   .container-gd - ta sama szerokość i wyrównanie okruszków co w artykułach. */
.single-subpage > .container:has(.gd-condolences),
.single-subpage > .container.container-gd {
	max-width: 1550px;
}

.gd-condolences {
	margin: 30px 0 70px;
	color: #202c4f;
}

.gd-condolences-hero {
	text-align: center;
	max-width: 760px;
	margin: 0 auto 40px;
}

.gd-condolences-candle {
	display: inline-block;
	margin-bottom: 14px;
}

.gd-condolences-candle .flame { fill: #f2b53a; }
.gd-condolences-candle .wick { fill: #202c4f; }
.gd-condolences-candle .wax { fill: #e9edf2; stroke: #c4ccd6; stroke-width: 1.5; }

@media (prefers-reduced-motion: no-preference) {
	.gd-condolences-candle .flame {
		transform-origin: 24px 30px;
		animation: gd-condolences-flicker 3.2s ease-in-out infinite;
	}
}

@keyframes gd-condolences-flicker {
	0%, 100% { transform: scale(1, 1) rotate(0deg); }
	30% { transform: scale(.96, 1.04) rotate(-1.5deg); }
	60% { transform: scale(1.03, .97) rotate(1deg); }
}

.gd-condolences-eyebrow {
	text-transform: uppercase;
	letter-spacing: .18em;
	font-size: 13px;
	font-weight: 700;
	color: #686d87;
	margin: 0 0 10px;
}

.gd-condolences-hero h1 {
	font-size: 38px;
	line-height: 1.2;
	font-weight: 700;
	color: #202c4f;
	margin: 0 0 14px;
	overflow-wrap: anywhere;
}

.gd-condolences-lead {
	color: #686d87;
	font-size: 17px;
	line-height: 27px;
	margin: 0;
}

.gd-condolences-empty {
	max-width: 640px;
	margin: 0 auto;
	text-align: center;
	background: #fff;
	border: 1px solid #e6eef5;
	border-radius: 16px;
	padding: 40px 24px;
	color: #686d87;
	font-size: 17px;
}

.gd-condolences-empty p { margin: 0; }

/* Telefon: formularz nad wpisami - przy setkach wpisów na dole byłby nieosiągalny. */
.gd-condolences-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
}

@media (min-width: 992px) {
	.gd-condolences-layout {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
		gap: 40px;
		align-items: start;
	}

	.gd-condolences-aside {
		grid-column: 2;
		grid-row: 1;
		position: sticky;
		top: 24px;
	}

	.gd-condolences-entries {
		grid-column: 1;
		grid-row: 1;
	}
}

.gd-condolences-form {
	background: #fff;
	border: 1px solid #e6eef5;
	border-radius: 16px;
	box-shadow: 0 6px 24px rgba(32, 44, 79, .08);
	padding: 26px;
}

.gd-condolences-form h2,
.gd-condolences-entries h2 {
	font-size: 22px;
	font-weight: 700;
	color: #202c4f;
	margin: 0 0 18px;
}

.gd-condolences-total {
	color: #686d87;
	font-weight: 400;
}

.gd-condolences-form .gd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.gd-condolences-field {
	display: flex;
	flex-direction: column;
	margin-bottom: 16px;
}

.gd-condolences-field label {
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 6px;
	color: #202c4f;
}

.gd-condolences-field .req { color: #d6336c; }

.gd-condolences-field input,
.gd-condolences-field textarea {
	width: 100%;
	border: 1px solid #cdd9e3;
	border-radius: 8px;
	padding: 11px 13px;
	font-size: 15px;
	line-height: 1.5;
	color: #202c4f;
	background: #fff;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.gd-condolences-field textarea {
	resize: vertical;
	min-height: 150px;
}

.gd-condolences-field input:focus,
.gd-condolences-field textarea:focus {
	outline: none;
	border-color: #01a1c1;
	box-shadow: 0 0 0 3px rgba(1, 161, 193, .2);
}

.gd-condolences-count {
	align-self: flex-end;
	font-size: 12px;
	color: #686d87;
	margin-top: 4px;
}

.gd-condolences-info {
	font-size: 13px;
	line-height: 1.5;
	color: #686d87;
	margin: 0 0 16px;
}

.gd-condolences-info a {
	color: #202c4f;
	text-decoration: underline;
}

.gd-condolences-info a:hover,
.gd-condolences-info a:focus-visible { color: #01a1c1; }

.gd-condolences-captcha {
	margin-bottom: 16px;
	overflow: hidden;
}

.gd-condolences-btn {
	display: block;
	width: 100%;
	background: #202c4f;
	color: #fff;
	border: 0;
	border-radius: 8px;
	font-weight: 700;
	font-size: 16px;
	padding: 14px 20px;
	cursor: pointer;
	transition: background .2s ease;
}

.gd-condolences-btn:hover { background: #01a1c1; }

.gd-condolences-btn:focus-visible {
	outline: 3px solid #01a1c1;
	outline-offset: 3px;
}

.gd-condolences-notice {
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 18px;
	font-size: 15px;
	line-height: 1.5;
}

.gd-condolences-notice ul { margin: 0; padding-left: 18px; }

.gd-condolences-notice-success {
	background: #eef8f1;
	border: 1px solid #c3e6cb;
	color: #1e6b34;
}

.gd-condolences-notice-error {
	background: #fff0f3;
	border: 1px solid #f3c0cd;
	color: #a61e4d;
}

.gd-condolences-none {
	color: #686d87;
	font-style: italic;
}

.gd-condolence {
	background: #fff;
	border: 1px solid #e6eef5;
	border-left: 4px solid #202c4f;
	border-radius: 12px;
	padding: 20px 24px;
	margin-bottom: 16px;
}

.gd-condolence-message {
	font-size: 16px;
	line-height: 1.7;
	color: #343a52;
	margin: 0 0 14px;
	overflow-wrap: anywhere;
}

.gd-condolence-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 6px 16px;
	border-top: 1px solid #eef4f8;
	padding-top: 10px;
}

.gd-condolence-name {
	font-weight: 700;
	color: #202c4f;
	overflow-wrap: anywhere;
}

.gd-condolence-meta time {
	font-size: 13px;
	color: #686d87;
}

.gd-condolences-pager {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin-top: 28px;
}

.gd-condolences-pager a,
.gd-condolences-pager .is-current {
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	border: 1px solid #cdd9e3;
	color: #202c4f;
	text-decoration: none;
	font-weight: 600;
	background: #fff;
}

.gd-condolences-pager a:hover,
.gd-condolences-pager a:focus-visible {
	border-color: #01a1c1;
	color: #01a1c1;
}

.gd-condolences-pager .is-current {
	background: #202c4f;
	border-color: #202c4f;
	color: #fff;
}

.gd-condolences-pager-gap { color: #686d87; padding: 0 4px; }

@media (max-width: 575px) {
	.gd-condolences { margin-top: 20px; }
	.gd-condolences-hero h1 { font-size: 28px; }
	.gd-condolences-lead { font-size: 16px; line-height: 25px; }
	.gd-condolences-form { padding: 20px; }
	.gd-condolence { padding: 16px 18px; }
}
