/*
 * Сторінка «Звернення громадян».
 * Основа — дизайн-система сторінки центру (tmo-cp-*), поля форми — з reviews.css
 * (tmo-review-form*), тут розкладка, картка форми, квитанція й бічна панель.
 */

.tmo-ap-hero .tmo-cp-hero__title,
.tmo-ap-hero .tmo-cp-hero__subtitle {
	max-width: 900px;
}

.tmo-ap-hero {
	padding-bottom: 56px;
}

.tmo-ap-section {
	padding-top: 56px;
}

.tmo-ap-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
	gap: 28px;
	align-items: start;
}

/* ------------------------------------------------------------- Форма */

.tmo-ap-card {
	padding: 44px 48px 48px;
	border-radius: 28px;
	background: #fff;
	box-shadow: 0 18px 44px rgba(30, 53, 86, 0.06);
	scroll-margin-top: 24px;
}

.tmo-ap-card__head {
	margin-bottom: 26px;
}

.tmo-ap-card__title {
	margin: 0;
	font-size: clamp(24px, 1.9vw, 32px);
	font-weight: 700;
	line-height: 1.2;
	color: var(--tmo-blue-dark);
}

.tmo-ap-card__intro {
	margin: 10px 0 0;
	font-size: 15.5px;
	line-height: 1.5;
	color: var(--cp-muted);
}

.tmo-ap-req,
.tmo-ap-form__req {
	color: var(--tmo-coral);
}

.tmo-ap-card .tmo-review-notice {
	margin-bottom: 22px;
}

.tmo-ap-form .tmo-review-form__field input,
.tmo-ap-form .tmo-review-form__field select,
.tmo-ap-form .tmo-review-form__field textarea {
	background: var(--tmo-page, #f8f8f8);
}

.tmo-ap-form .tmo-review-form__field input:focus,
.tmo-ap-form .tmo-review-form__field select:focus,
.tmo-ap-form .tmo-review-form__field textarea:focus {
	background: #fff;
}

.tmo-ap-form__count {
	align-self: flex-end;
}

.tmo-ap-form__count.is-low {
	color: #c9534e;
}

/* ---------------------------------------------------------- Квитанція */

.tmo-ap-receipt__icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin-bottom: 20px;
	border-radius: 50%;
	background: rgba(46, 160, 110, 0.12);
	color: #23875b;
}

.tmo-ap-receipt__icon .tmo-icon {
	width: 32px;
	height: 32px;
}

.tmo-ap-receipt__data {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 26px 0 0;
}

.tmo-ap-receipt__data > div {
	padding: 16px 18px;
	border-radius: var(--cp-radius-sm);
	background: var(--cp-tint);
}

.tmo-ap-receipt__data .tmo-ap-receipt__number {
	grid-column: 1 / -1;
	background: var(--tmo-blue-dark);
}

.tmo-ap-receipt__data dt {
	font-size: 13.5px;
	color: var(--cp-muted);
}

.tmo-ap-receipt__data dd {
	margin: 4px 0 0;
	font-size: 17px;
	font-weight: 700;
	color: var(--tmo-blue-dark);
}

.tmo-ap-receipt__number dt {
	color: rgba(255, 255, 255, 0.75);
}

.tmo-ap-receipt__number dd {
	font-size: clamp(26px, 2.2vw, 34px);
	letter-spacing: 0.02em;
	color: #fff;
}

.tmo-ap-receipt__text {
	margin: 22px 0 0;
	font-size: 16px;
	line-height: 1.6;
	color: #3b4552;
}

.tmo-ap-receipt__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

/* ------------------------------------------------------ Бічна панель */

.tmo-ap-aside {
	display: grid;
	gap: 16px;
	position: sticky;
	top: 24px;
}

.admin-bar .tmo-ap-aside {
	top: calc(24px + var(--wp-admin--admin-bar--height, 32px));
}

.tmo-ap-block {
	padding: 26px 28px;
	border-radius: var(--cp-radius);
	background: #fff;
}

.tmo-ap-block--contacts {
	background: var(--cp-tint);
}

.tmo-ap-block__title {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--tmo-blue-dark);
}

.tmo-ap-block__note {
	margin: 14px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--cp-muted);
}

.tmo-ap-block__note a {
	color: var(--tmo-blue-muted);
}

.tmo-ap-ways,
.tmo-ap-checks,
.tmo-ap-contacts {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tmo-ap-ways li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 15px;
	line-height: 1.5;
	color: #3b4552;
}

.tmo-ap-ways strong {
	display: block;
	color: var(--tmo-blue-dark);
}

.tmo-ap-ways__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: rgba(245, 122, 117, 0.12);
	color: var(--tmo-coral);
}

.tmo-ap-ways__icon .tmo-icon {
	width: 20px;
	height: 20px;
}

.tmo-ap-checks li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 15px;
	line-height: 1.45;
	color: #3b4552;
}

.tmo-ap-checks .tmo-icon {
	width: 20px;
	height: 20px;
	margin-top: 1px;
	color: var(--tmo-blue);
}

.tmo-ap-terms {
	display: grid;
	gap: 10px;
	margin: 0;
}

.tmo-ap-terms > div {
	display: flex;
	align-items: center;
	gap: 14px;
}

.tmo-ap-terms dt {
	flex: none;
	width: 52px;
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	color: var(--tmo-coral);
}

.tmo-ap-terms dd {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.4;
	color: #3b4552;
}

.tmo-ap-contacts li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 15.5px;
	line-height: 1.4;
	color: var(--tmo-blue-dark);
}

.tmo-ap-contacts .tmo-icon {
	width: 20px;
	height: 20px;
	margin-top: 2px;
	color: var(--tmo-blue);
}

.tmo-ap-contacts small {
	display: block;
	font-size: 13px;
	color: var(--cp-muted);
}

.tmo-ap-contacts a {
	font-weight: 600;
	color: var(--tmo-blue-dark);
	text-decoration: none;
}

.tmo-ap-contacts a:hover,
.tmo-ap-contacts a:focus-visible {
	color: var(--tmo-coral);
}

/* ---------------------------------------------------------- Адаптація */

@media (max-width: 1100px) {
	.tmo-ap-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.tmo-ap-aside {
		position: static;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.tmo-ap-card {
		padding: 26px 18px 28px;
		border-radius: 22px;
	}

	.tmo-ap-aside {
		grid-template-columns: minmax(0, 1fr);
	}

	.tmo-ap-block {
		padding: 22px 18px;
	}

	.tmo-ap-receipt__data {
		grid-template-columns: minmax(0, 1fr);
	}
}
