/* CdD Forms V011 — shortcode only, wide native layout */
.cdd-forms-wrap {
	width: 100%;
	max-width: none;
	margin: 1rem 0 1.5rem;
	padding: 0 0.15rem;
	box-sizing: border-box;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.cdd-forms-field {
	margin-bottom: 1.1rem;
	min-width: 0;
}

.cdd-forms-label {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.35rem;
	font-weight: 600;
	margin-bottom: 0.4rem;
	line-height: 1.35;
}

.cdd-forms-label-text {
	flex: 1 1 auto;
	min-width: 0;
}

.cdd-forms-field-label-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.35rem;
	margin-bottom: 0.4rem;
}

.cdd-forms-fieldset-label {
	font-weight: 600;
	line-height: 1.35;
}

.cdd-forms-req-mark {
	font-weight: 600;
	font-size: 0.8em;
	color: #6b7280;
	line-height: 1;
	flex-shrink: 0;
}

.cdd-forms-input,
.cdd-forms-textarea,
.cdd-forms-select {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	padding: 0.45rem 0.55rem;
	border: 1px solid #c3c7cb;
	border-radius: 4px;
	background: #fafafa;
	font-family: inherit;
	font-size: inherit;
	color: inherit;
}

.cdd-forms-textarea {
	min-height: 6.5rem;
	resize: vertical;
}

.cdd-forms-input:focus,
.cdd-forms-textarea:focus,
.cdd-forms-select:focus {
	outline: none;
	border-color: #9aa0a6;
	background: #fff;
}

.cdd-forms-help {
	display: block;
	margin-top: 0.3rem;
	font-size: 0.8125rem;
	line-height: 1.35;
	color: #6b7280;
}

.cdd-forms-options label {
	font-weight: 400;
	display: flex;
	align-items: flex-start;
	gap: 0.45rem;
	margin-bottom: 0.4rem;
	cursor: pointer;
}

.cdd-forms-options input {
	margin-top: 0.2rem;
	flex-shrink: 0;
}

.cdd-forms-consent .cdd-forms-label {
	cursor: pointer;
}

.cdd-forms-consent input {
	margin-top: 0.2rem;
	flex-shrink: 0;
}

.cdd-forms-field--privacy .cdd-forms-privacy-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-weight: 400;
	cursor: pointer;
	margin: 0;
}

.cdd-forms-privacy-body {
	display: block;
	flex: 1;
	min-width: 0;
	font-size: 0.8125rem;
	line-height: 1.35;
	color: #5f6368;
}

.cdd-forms-privacy-line {
	display: block;
	margin-bottom: 0.2rem;
}

.cdd-forms-privacy-link {
	display: inline-block;
	margin-top: 0.15rem;
	font-size: 0.8125rem;
	color: #6b7280;
	text-decoration: underline;
	text-underline-offset: 2px;
	word-break: break-word;
}

.cdd-forms-field--privacy .cdd-forms-privacy-consent input[type='checkbox'] {
	margin-top: 0.2rem;
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
	accent-color: #6b7280;
}

.cdd-forms-actions {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 1.25rem;
}

.cdd-forms-submit {
	display: inline-block;
	padding: 0.6rem 1.6rem;
	border: none;
	border-radius: 2px;
	background: #d7282f;
	color: #fff;
	font-family: inherit;
	font-size: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.cdd-forms-submit:hover {
	background: #b51f26;
}

.cdd-forms-submit:active {
	background: #a91c23;
}

.cdd-forms-success {
	margin: 0.75rem 0 0;
	padding: 0;
	color: #374151;
	line-height: 1.55;
}

.cdd-forms-success-msg {
	margin: 0;
}

.cdd-forms-empty {
	margin: 0.75rem 0 0;
	color: #6b7280;
	font-size: 0.95rem;
	line-height: 1.5;
}

.cdd-forms-error {
	margin: 0 0 1rem;
	color: #991b1b;
}

.cdd-forms-validation-banner {
	margin: 0 0 1rem;
	padding: 0.85rem 1rem;
	border: 2px solid #b91c1c;
	border-radius: 6px;
	background: #fef2f2;
	color: #7f1d1d;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.45;
	scroll-margin-top: 1.25rem;
	scroll-margin-bottom: 1.25rem;
}

.cdd-forms-form--validation-failed .cdd-forms-validation-banner:focus {
	outline: 2px solid #b91c1c;
	outline-offset: 2px;
}

.cdd-forms-field.is-invalid {
	scroll-margin-top: max(1.25rem, 12vh);
	scroll-margin-bottom: max(1.25rem, 12vh);
	padding: 0.35rem 0.45rem;
	margin-left: -0.45rem;
	margin-right: -0.45rem;
	border-radius: 8px;
	background: #fff5f5;
	box-shadow: 0 0 0 2px #fecaca, 0 0 0 4px rgba(185, 28, 28, 0.12);
	animation: cdd-forms-invalid-pulse 1.1s ease-out 1;
}

.cdd-forms-field--validation-focus.is-invalid {
	box-shadow: 0 0 0 2px #ef4444, 0 0 0 5px rgba(185, 28, 28, 0.22);
}

.cdd-forms-field.is-invalid .cdd-forms-input,
.cdd-forms-field.is-invalid .cdd-forms-textarea,
.cdd-forms-field.is-invalid .cdd-forms-select {
	border-color: #b91c1c;
	background: #fff;
}

.cdd-forms-field.is-invalid .cdd-forms-options {
	outline: 2px solid #fca5a5;
	outline-offset: 3px;
	border-radius: 4px;
}

.cdd-forms-field.is-invalid .cdd-forms-privacy-consent {
	outline: 2px solid #fca5a5;
	outline-offset: 4px;
	border-radius: 4px;
}

.cdd-forms-inline-error {
	display: block;
	margin: 0.35rem 0 0;
	color: #991b1b;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
}

@keyframes cdd-forms-invalid-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(185, 28, 28, 0.35);
	}
	100% {
		box-shadow: 0 0 0 2px #fecaca, 0 0 0 4px rgba(185, 28, 28, 0.12);
	}
}

.cdd-forms-wrap--progress .cdd-forms-progress {
	height: 7px;
	margin: 0 0 1rem;
	background: #e8eaed;
	border-radius: 1px;
	overflow: hidden;
}

.cdd-forms-wrap--progress .cdd-forms-progress-bar,
.cdd-forms-wrap--progress .cdd-forms-progress-fill {
	display: block;
	height: 100%;
	width: 0;
	min-width: 0;
	background: #000;
	transition: width 0.2s ease;
}

.cdd-forms-form .cdd-forms-progress {
	height: 7px;
	margin: 0 0 1rem;
	background: #e8eaed;
	border-radius: 1px;
	overflow: hidden;
}

.cdd-forms-form .cdd-forms-progress-bar,
.cdd-forms-form .cdd-forms-progress-fill {
	display: block;
	height: 100%;
	width: 0;
	min-width: 0;
	background: #000;
	transition: width 0.2s ease;
}

.cdd-forms-wrap--collapsible .cdd-forms-section,
.cdd-forms-form .cdd-forms-section {
	margin: 0 0 0.65rem;
	border: 0;
	padding: 0;
}

.cdd-forms-wrap--collapsible .cdd-forms-section-sum,
.cdd-forms-form .cdd-forms-section-sum {
	cursor: pointer;
	list-style: none;
	font-size: 0.875rem;
	font-weight: 600;
	padding: 0.25rem 0 0.35rem;
	color: #374151;
	transition: color 0.22s ease, opacity 0.22s ease, background-color 0.24s ease, box-shadow 0.24s ease;
}

.cdd-forms-section-req {
	font-weight: 600;
	font-size: 0.78em;
	color: #6b7280;
	margin-left: 0.2em;
	vertical-align: 0.08em;
}

.cdd-forms-wrap--collapsible .cdd-forms-section-sum::-webkit-details-marker,
.cdd-forms-form .cdd-forms-section-sum::-webkit-details-marker {
	display: none;
}

.cdd-forms-wrap--collapsible .cdd-forms-section-body,
.cdd-forms-form .cdd-forms-section-body {
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0.94;
	transition: grid-template-rows 0.26s ease, opacity 0.26s ease;
}

.cdd-forms-section[open] > .cdd-forms-section-body {
	grid-template-rows: 1fr;
	opacity: 1;
}

.cdd-forms-section[open].cdd-forms-section--closing > .cdd-forms-section-body {
	grid-template-rows: 0fr;
	opacity: 0.94;
}

@keyframes cdd-forms-section-incomplete-pulse {
	0%,
	100% {
		opacity: 1;
		box-shadow: inset 0 0 0 0 transparent;
		background-color: transparent;
	}
	35% {
		opacity: 0.88;
		box-shadow: inset 0 0 0 1px #9ca3af;
		background-color: #f9fafb;
	}
	70% {
		opacity: 1;
		box-shadow: inset 0 0 0 1px #d1d5db;
		background-color: #f3f4f6;
	}
}

.cdd-forms-section-incomplete > .cdd-forms-section-sum {
	animation: cdd-forms-section-incomplete-pulse 0.34s ease 2;
}

.cdd-forms-section-inner {
	min-height: 0;
	overflow: hidden;
	padding-top: 0.12rem;
}

.cdd-forms-sending {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
	color: #4b5563;
}

.cdd-forms-wrap--submitting .cdd-forms-form > :not(.cdd-forms-sending) {
	opacity: 0.28;
	transform: translateY(4px);
	transition: opacity 0.26s ease, transform 0.26s ease;
}

.cdd-forms-wrap--submitting .cdd-forms-sending[hidden] {
	display: none;
}

.cdd-forms-wrap--submitting .cdd-forms-sending {
	display: block;
}

@keyframes cdd-forms-success-in {
	from {
		opacity: 0;
		transform: translateY(5px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.cdd-forms-wrap--success-state .cdd-forms-success {
	opacity: 0;
	transform: translateY(5px);
	animation: cdd-forms-success-in 0.28s ease 0.05s forwards;
}

@media (prefers-reduced-motion: reduce) {
	.cdd-forms-wrap,
	.cdd-forms-wrap * {
		animation: none !important;
		transition: none !important;
	}

	.cdd-forms-wrap--submitting .cdd-forms-form > :not(.cdd-forms-sending) {
		opacity: 0.55;
		transform: none;
	}

	.cdd-forms-wrap--success-state .cdd-forms-success {
		opacity: 1;
		transform: none;
	}

	.cdd-forms-section-incomplete > .cdd-forms-section-sum {
		animation: none !important;
		background-color: #f3f4f6;
		box-shadow: inset 0 0 0 1px #d1d5db;
	}

	.cdd-forms-wrap--progress .cdd-forms-progress-bar,
	.cdd-forms-wrap--progress .cdd-forms-progress-fill,
	.cdd-forms-form .cdd-forms-progress-bar,
	.cdd-forms-form .cdd-forms-progress-fill {
		transition: none;
	}
}
