:root {
	--mp-red: #db1e2c;
	--mp-red-dark: #b81825;
}

/* ---------- Hero shell ---------- */
.malerpay-calculator.malerpay-hero {
	position: relative;
	box-sizing: border-box;
	max-width: none;
	margin: 0;
	padding: 72px 24px 150px;
	background: var(--mp-red);
	color: #fff;
	border: 0;
	border-radius: 0;
	overflow: hidden;
	font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.malerpay-hero * {
	box-sizing: border-box;
}

.malerpay-hero__inner {
	position: relative;
	z-index: 2;
	max-width: 1180px;
	margin: 0 auto;
	min-height: 540px;
}

.malerpay-hero__content {
	position: relative;
	max-width: 520px;
	min-width: 0;
}

/* ---------- Hand artwork (bleeds in from the top, aligned to container) ---------- */
.malerpay-hero__art {
	position: absolute;
	top: -100px;
	left: 56%;
	width: 34%;
	min-width: 260px;
	max-width: 450px;
	height: auto;
	z-index: 1;
	pointer-events: none;
	user-select: none;
}

/* ---------- Bottom grunge edge ---------- */
.malerpay-grunge {
	position: absolute;
	left: 50%;
	bottom: -1px;
	width: 65%;
	max-width: 920px;
	height: auto;
	transform: translateX(-50%);
	z-index: 1;
	pointer-events: none;
	user-select: none;
}

/* ---------- Typography ---------- */
.malerpay-title {
	margin: 0 0 18px;
	font-weight: 700;
	font-size: clamp(2.1rem, 4.2vw, 3.25rem);
	line-height: 1.02;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: #fff;
}

.malerpay-intro {
	margin: 0 0 16px;
	max-width: 30ch;
}

.malerpay-intro p {
	margin: 0 0 8px;
	font-size: 1.06rem;
	font-weight: 400;
	line-height: 1.32;
	color: #fff;
}

.malerpay-readmore {
	margin: 0 0 30px;
	font-size: 1.02rem;
	font-weight: 600;
}

.malerpay-readmore a {
	color: #fff;
	text-decoration: none;
}

.malerpay-readmore a span {
	text-decoration: underline;
}

.malerpay-readmore a:hover span {
	text-decoration: none;
}

/* ---------- Form ---------- */
.malerpay-form {
	max-width: 380px;
}

.malerpay-row {
	display: flex;
	gap: 16px;
}

.malerpay-row .malerpay-field {
	flex: 1 1 0;
	min-width: 0;
}

.malerpay-field {
	display: flex;
	flex-direction: column;
	margin-bottom: 18px;
}

.malerpay-field label {
	margin-bottom: 6px;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #fff;
}

.malerpay-field input,
.malerpay-field select {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 1rem;
	color: #1a1a1a;
	background: #fff;
	border: 0;
	border-radius: 2px;
	appearance: none;
	-webkit-appearance: none;
}

.malerpay-field select {
	background-color: #e9e9ed;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231a1a1a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
	cursor: pointer;
}

.malerpay-field input:focus,
.malerpay-field select:focus {
	outline: 3px solid rgba(255, 255, 255, 0.85);
	outline-offset: 2px;
}

.malerpay-actions {
	margin-top: 6px;
}

.malerpay-submit {
	display: block;
	width: 100%;
	padding: 14px 24px;
	font-family: inherit;
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
	background: var(--mp-red);
	border: 2px solid #fff;
	border-radius: 2px;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.malerpay-submit:hover:not(:disabled) {
	background: #fff;
	color: var(--mp-red);
}

.malerpay-submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

/* ---------- Messages ---------- */
.malerpay-notice {
	max-width: 460px;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.55);
	color: #fff;
	padding: 12px 14px;
	border-radius: 4px;
}

.malerpay-notice em {
	font-style: normal;
	font-weight: 700;
}

.malerpay-error {
	margin: 16px 0 0;
	max-width: 460px;
	background: #fff;
	border-left: 4px solid #7a0f15;
	color: #7a0f15;
	padding: 12px 14px;
	border-radius: 4px;
	font-weight: 600;
}

/* ---------- Result ---------- */
.malerpay-result {
	margin-top: 28px;
	max-width: 820px;
	min-width: 0;
}

.malerpay-result:empty {
	margin-top: 0;
}

.malerpay-result-title {
	margin: 0 0 4px;
	font-size: 1.4rem;
	font-weight: 700;
	text-transform: uppercase;
	color: #fff;
}

.malerpay-result-meta {
	margin: 0 0 12px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.98rem;
}

.malerpay-table-scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.malerpay-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	color: #1a1a1a;
	border-radius: 4px;
	overflow: hidden;
}

.malerpay-table th,
.malerpay-table td {
	padding: 9px 12px;
	border-bottom: 1px solid #ececec;
	text-align: left;
	font-size: 0.95rem;
}

.malerpay-table th.num,
.malerpay-table td.num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.malerpay-table thead th {
	background: #2a2a2a;
	color: #fff;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-size: 0.82rem;
}

.malerpay-table tfoot th {
	background: #f3f3f3;
	font-weight: 700;
	border-top: 2px solid #cfcfcf;
}

.malerpay-summary {
	margin-top: 16px;
}

.malerpay-summary td,
.malerpay-summary th {
	text-align: left;
}

.malerpay-summary td.num,
.malerpay-summary th.num {
	text-align: right;
}

.malerpay-summary tfoot th {
	font-size: 1.05rem;
}

.malerpay-disclaimer {
	margin-top: 12px;
	max-width: 60ch;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.85);
	font-style: italic;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.malerpay-hero__art {
		display: none;
	}
	.malerpay-hero__content {
		max-width: 100%;
	}
}

@media (max-width: 540px) {
	.malerpay-calculator.malerpay-hero {
		padding: 48px 18px 120px;
	}
	.malerpay-title {
		font-size: 1.85rem;
		line-height: 1.05;
		overflow-wrap: anywhere;
	}
	.malerpay-row {
		flex-direction: column;
		gap: 0;
	}
	.malerpay-form,
	.malerpay-result {
		max-width: 100%;
	}
	.malerpay-table th,
	.malerpay-table td {
		padding: 7px 8px;
		font-size: 0.85rem;
	}
	/* Keep columns readable; the wrapper scrolls horizontally instead of squashing. */
	.malerpay-table-scroll .malerpay-table {
		min-width: 560px;
	}
}
