/* Netcash Debit Order Donations – frontend form styles */

.ndd-wrap {
	max-width: 760px;
	margin: 0 auto;
}

.ndd-card {
	background:
		radial-gradient(circle at top right, rgba(210, 236, 230, 0.75), transparent 32%),
		linear-gradient(180deg, #fcfffd 0%, #f5f8f3 100%);
	border: 1px solid #d8e4dc;
	border-radius: 24px;
	box-shadow: 0 22px 50px rgba(18, 55, 43, 0.12);
	overflow: hidden;
}

.ndd-header {
	padding: 32px 32px 18px;
	background: linear-gradient(135deg, rgba(25, 92, 72, 0.08), rgba(204, 177, 111, 0.12));
}

.ndd-eyebrow {
	margin: 0 0 10px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #2f6b58;
}

.ndd-title {
	margin: 0;
	font-size: clamp(1.9rem, 2.6vw, 2.6rem);
	line-height: 1.08;
	color: #173a2f;
}

.ndd-subtitle {
	max-width: 60ch;
	margin: 14px 0 0;
	font-size: 1rem;
	line-height: 1.7;
	color: #41564d;
}

.ndd-flow {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	padding: 22px 32px 10px;
}

.ndd-flow-step {
	display: flex;
	gap: 12px;
	padding: 16px;
	background: rgba(255, 255, 255, 0.76);
	border: 1px solid #d9e5de;
	border-radius: 18px;
	min-height: 124px;
}

.ndd-flow-step strong {
	display: block;
	margin-bottom: 5px;
	color: #183a2f;
}

.ndd-flow-step p {
	margin: 0;
	font-size: 0.94rem;
	line-height: 1.55;
	color: #546961;
}

.ndd-flow-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	background: #1f6c57;
	color: #fff;
	font-weight: 700;
	flex-shrink: 0;
}

.ndd-trust-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	padding: 6px 32px 28px;
}

.ndd-trust-item {
	padding: 12px 14px;
	background: rgba(31, 108, 87, 0.08);
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 600;
	text-align: center;
	color: #245a49;
}

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

.ndd-form {
	padding: 0 32px 32px;
}

.ndd-section {
	padding: 26px 0 8px;
	border-top: 1px solid #e2ebe5;
}

.ndd-section:first-of-type {
	border-top: none;
	padding-top: 0;
}

.ndd-section-heading {
	margin-bottom: 18px;
}

.ndd-section-title {
	margin: 0 0 6px;
	font-size: 1.2rem;
	line-height: 1.2;
	color: #173a2f;
}

.ndd-section-copy {
	margin: 0;
	font-size: 0.96rem;
	line-height: 1.65;
	color: #5a6d65;
}

.ndd-form .ndd-row .ndd-field {
	flex: 1;
}

.ndd-field {
	margin-bottom: 18px;
}

.ndd-company-fields.is-hidden {
	display: none;
}

.ndd-field label {
	display: block;
	font-weight: 700;
	margin-bottom: 7px;
	color: #1f352e;
}

.ndd-req {
	color: #b64538;
}

.ndd-field input[type="text"],
.ndd-field input[type="email"],
.ndd-field input[type="tel"],
.ndd-field input[type="number"],
.ndd-field input[type="date"],
.ndd-field input[type="url"],
.ndd-field select {
	width: 100%;
	padding: 13px 14px;
	border: 1px solid #c8d6ce;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.95);
	font-size: 1rem;
	box-sizing: border-box;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ndd-field input:focus,
.ndd-field select:focus {
	outline: none;
	border-color: #2c7a62;
	box-shadow: 0 0 0 4px rgba(44, 122, 98, 0.14);
	transform: translateY(-1px);
}

.ndd-help {
	margin: 8px 0 0;
	font-size: 0.88rem;
	line-height: 1.55;
	color: #60736b;
}

.ndd-field-amount {
	margin-bottom: 22px;
}

.ndd-amount-input {
	display: flex;
	align-items: center;
	padding-left: 16px;
	border: 1px solid #c8d6ce;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.ndd-amount-input:focus-within {
	border-color: #2c7a62;
	box-shadow: 0 0 0 4px rgba(44, 122, 98, 0.14);
}

.ndd-currency {
	font-size: 1.35rem;
	font-weight: 700;
	color: #1e4c3f;
	padding-right: 12px;
}

.ndd-amount-input input[type="number"] {
	border: none;
	box-shadow: none;
	background: transparent;
	padding-left: 0;
	padding-right: 16px;
	font-size: 1.35rem;
	font-weight: 700;
	color: #173a2f;
}

.ndd-amount-input input[type="number"]:focus {
	transform: none;
	box-shadow: none;
}

.ndd-mandate-notice {
	background: linear-gradient(135deg, #fff9ed 0%, #fffdf8 100%);
	border: 1px solid #ecd9b0;
	border-radius: 18px;
	padding: 18px 18px 16px;
	margin: 8px 0 0;
	font-size: 0.97rem;
}

.ndd-mandate-notice p {
	margin: 0 0 12px;
	line-height: 1.65;
	color: #5b4a28;
}

.ndd-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-weight: 500;
	line-height: 1.6;
	color: #3f3520;
}

.ndd-checkbox-label input[type="checkbox"] {
	margin-top: 4px;
	flex-shrink: 0;
}

.ndd-submit-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 22px;
}

.ndd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	background: linear-gradient(135deg, #1f6c57 0%, #2f8a70 100%);
	color: #fff;
	border: none;
	border-radius: 999px;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 14px 28px rgba(31, 108, 87, 0.24);
	transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.ndd-btn:hover,
.ndd-btn:focus {
	filter: brightness(1.03);
	transform: translateY(-1px);
	box-shadow: 0 18px 30px rgba(31, 108, 87, 0.3);
}

.ndd-submit-note {
	margin: 0;
	max-width: 30ch;
	font-size: 0.92rem;
	line-height: 1.55;
	color: #5a6d65;
}

/* Notice banners */
.ndd-notice {
	padding: 16px 18px;
	border-radius: 16px;
	margin-bottom: 20px;
}

.ndd-notice p {
	margin: 0;
	line-height: 1.65;
}

.ndd-notice p + p {
	margin-top: 10px;
}

.ndd-toast {
	position: fixed;
	top: 18px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 9999;
	width: min(92vw, 460px);
	animation: ndd-slide-in 240ms ease-out;
}

.ndd-toast .ndd-notice {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 20px 24px 18px;
	margin: 0;
	box-shadow: 0 14px 30px rgba(15, 38, 31, 0.22);
}

.ndd-toast-close {
	align-self: flex-end;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.08);
	color: inherit;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	margin-bottom: 8px;
}

.ndd-toast-close:hover,
.ndd-toast-close:focus {
	background: rgba(0, 0, 0, 0.14);
	outline: none;
}

.ndd-success {
	background: linear-gradient(135deg, #edf9f0 0%, #f7fcf6 100%);
	border: 1px solid #b9dec0;
	color: #24523b;
}

.ndd-error {
	background: linear-gradient(135deg, #fff1f0 0%, #fff8f7 100%);
	border: 1px solid #efc3be;
	color: #7e3126;
}

@keyframes ndd-slide-in {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive */
@media (max-width: 720px) {
	.ndd-header,
	.ndd-form,
	.ndd-flow,
	.ndd-trust-row {
		padding-left: 22px;
		padding-right: 22px;
	}

	.ndd-flow,
	.ndd-trust-row {
		grid-template-columns: 1fr;
	}

	.ndd-submit-row {
		flex-direction: column;
		align-items: stretch;
	}

	.ndd-submit-note {
		max-width: none;
	}

	.ndd-toast {
		top: 10px;
		left: 10px;
		right: 10px;
		transform: none;
		width: auto;
	}
}

@media (max-width: 520px) {
	.ndd-form .ndd-row {
		flex-direction: column;
		gap: 0;
	}

	.ndd-card {
		border-radius: 20px;
	}

	.ndd-header {
		padding-top: 24px;
	}

	.ndd-flow-step {
		min-height: 0;
	}

	.ndd-btn {
		width: 100%;
	}
}
