.cwr-app {
	--cwr-accent: #ae0925;
	--cwr-accent-dark: #8e0820;
	--cwr-ink: #132033;
	--cwr-muted: #5d6b7c;
	--cwr-line: #d7dde4;
	--cwr-line-soft: #e5ebf1;
	--cwr-surface: #ffffff;
	--cwr-surface-soft: #f6f8fb;
	max-width: 920px;
	margin: 0 auto;
}

.cwr-app-contact {
	max-width: none;
}

.cwr-app * {
	box-sizing: border-box;
}

.cwr-notice {
	margin: 0 0 24px;
	padding: 16px 18px;
	border-radius: 10px;
	font-weight: 600;
}

.cwr-notice-success {
	background: #e7f8ee;
	color: #1e6a3e;
	border: 1px solid #b8e3c8;
}

.cwr-notice-error {
	background: #fff1f1;
	color: #8b1e1e;
	border: 1px solid #f3baba;
}

.cwr-form {
	display: grid;
	gap: 0;
	background: var(--cwr-surface);
	border: 1px solid var(--cwr-line);
	border-radius: 18px;
	padding: 22px;
	box-shadow: 0 20px 50px rgba(10, 37, 64, 0.08);
}

.cwr-form-contact {
	padding: 18px;
	border-radius: 16px;
	box-shadow: 0 16px 36px rgba(10, 37, 64, 0.08);
}

.cwr-honeypot {
	position: absolute;
	left: -9999px;
	top: -9999px;
	opacity: 0;
}

.cwr-step-panel + .cwr-step-panel {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--cwr-line-soft);
}

.cwr-contact-intro {
	margin: 0 0 10px;
}

.cwr-contact-intro p {
	margin: 0;
	color: var(--cwr-muted);
	font-size: 14px;
	line-height: 1.45;
}

.cwr-contact-fields {
	display: grid;
	grid-template-columns: 1fr;
	gap: 9px;
}

.cwr-step-panel-header {
	max-width: 46rem;
}

.cwr-step-panel-header h2 {
	margin: 0 0 6px;
	color: var(--cwr-ink);
	font-size: 23px;
	line-height: 1.12;
}

.cwr-step-panel-header p {
	margin: 0 0 10px;
	color: var(--cwr-muted);
	font-size: 14px;
	line-height: 1.4;
}

.cwr-fields-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	column-gap: 10px;
	row-gap: 8px;
}

.cwr-field {
	grid-column: span 6;
}

.cwr-field-full {
	grid-column: 1 / -1;
}

.cwr-field-half {
	grid-column: span 3;
}

.cwr-field-third {
	grid-column: span 2;
}

.cwr-label,
.cwr-checkbox {
	display: flex;
	gap: 8px;
	font-weight: 700;
	color: var(--cwr-ink);
}

.cwr-label {
	align-items: center;
}

.cwr-checkbox {
	align-items: flex-start;
	font-weight: 600;
	line-height: 1.5;
}

.cwr-required {
	color: #b42318;
}

.cwr-description {
	margin: 1px 0 4px;
	color: var(--cwr-muted);
	font-size: 12px;
	line-height: 1.3;
}

.cwr-field input,
.cwr-field select,
.cwr-field textarea {
	width: 100%;
	margin-top: 0;
	padding: 10px 12px;
	border: 1px solid #c8d2dc;
	border-radius: 10px;
	background: #ffffff;
	color: #0f172a;
	font-size: 15px;
	line-height: 1.35;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.cwr-field input,
.cwr-field select {
	min-height: 42px;
}

.cwr-field textarea {
	min-height: 110px;
	resize: vertical;
}

.cwr-form-contact textarea {
	min-height: 160px;
}

.cwr-field input:focus,
.cwr-field select:focus,
.cwr-field textarea:focus {
	outline: none;
	border-color: var(--cwr-accent);
	box-shadow: 0 0 0 3px rgba(174, 9, 37, 0.12);
}

.cwr-field-has-error input,
.cwr-field-has-error select,
.cwr-field-has-error textarea {
	border-color: #d92d20;
}

.cwr-checkbox input {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	flex: 0 0 auto;
}

.cwr-error {
	margin: 5px 0 0;
	color: #b42318;
	font-size: 13px;
	font-weight: 600;
}

.cwr-legal-copy {
	padding: 14px;
	background: var(--cwr-surface-soft);
	border: 1px solid var(--cwr-line);
	border-radius: 16px;
}

.cwr-legal-copy h3 {
	margin: 0 0 10px;
	color: var(--cwr-ink);
	font-size: 17px;
	line-height: 1.3;
}

.cwr-legal-copy p {
	margin: 0 0 8px;
	font-size: 13px;
	line-height: 1.5;
	color: #334155;
}

.cwr-legal-ack {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--cwr-line);
}

.cwr-legal-ack .cwr-field {
	margin: 0;
}

.cwr-form-actions {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
}

.cwr-form-actions-contact {
	margin-top: 12px;
}

.cwr-button {
	appearance: none;
	border: 0;
	border-radius: 10px;
	padding: 11px 16px;
	min-width: 210px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.cwr-button:hover {
	transform: translateY(-1px);
}

.cwr-button-primary {
	background: var(--cwr-accent);
	color: #ffffff;
	box-shadow: 0 12px 24px rgba(174, 9, 37, 0.18);
}

.cwr-button-primary:hover {
	background: var(--cwr-accent-dark);
}

.cwr-admin-layout {
	display: grid;
	grid-template-columns: minmax(320px, 1fr) minmax(420px, 1.2fr);
	gap: 24px;
	align-items: start;
}

@media (max-width: 900px) {
	.cwr-fields-grid,
	.cwr-admin-layout {
		grid-template-columns: 1fr;
	}

	.cwr-fields-grid {
		gap: 8px;
	}

	.cwr-form {
		padding: 18px 14px;
	}

	.cwr-field,
	.cwr-field-half,
	.cwr-field-third {
		grid-column: 1 / -1;
	}

	.cwr-form-actions,
	.cwr-button {
		width: 100%;
	}

	.cwr-step-panel-header h2 {
		font-size: 21px;
	}

	.cwr-legal-copy {
		padding: 13px 12px;
	}
}

@media (max-width: 640px) {
	.cwr-app {
		max-width: none;
	}

	.cwr-notice {
		padding: 14px 15px;
	}

	.cwr-field input,
	.cwr-field select,
	.cwr-field textarea {
		font-size: 16px;
	}
}
