/**
 * SOS Cocu Contact public styles.
 *
 * The selectors are deliberately prefixed to avoid collisions with Twenty
 * Twenty-Five, block styles and the existing SOS Cocu CSS.
 */

.soscocu-contact {
	box-sizing: border-box;
	max-width: 800px;
	margin: 0 auto;
	padding: 24px;
	background: #fff;
	border: 1px solid #e8e2d8;
	border-radius: 8px;
	box-shadow: 0 12px 28px rgba(20, 20, 20, 0.08);
	color: #242424;
}

.soscocu-contact *,
.soscocu-contact *::before,
.soscocu-contact *::after {
	box-sizing: inherit;
}

.soscocu-contact__form {
	display: grid;
	gap: 18px;
	margin: 0;
}

.soscocu-contact__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.soscocu-contact__field label,
.soscocu-contact__check label {
	display: block;
	margin: 0 0 7px;
	font-weight: 600;
	line-height: 1.35;
}

.soscocu-contact__field input,
.soscocu-contact__field select,
.soscocu-contact__field textarea {
	display: block;
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid #cfc7bd;
	border-radius: 6px;
	background: #fff;
	color: #242424;
	font: inherit;
	line-height: 1.4;
}

.soscocu-contact__field textarea {
	min-height: 150px;
	resize: vertical;
}

.soscocu-contact__field input:focus,
.soscocu-contact__field select:focus,
.soscocu-contact__field textarea:focus,
.soscocu-contact__check input:focus {
	outline: 3px solid rgba(255, 204, 0, 0.38);
	outline-offset: 2px;
	border-color: #b99700;
}

.soscocu-contact__help {
	margin: 7px 0 0;
	color: #666;
	font-size: 0.92em;
}

.soscocu-contact__check {
	display: grid;
	grid-template-columns: 20px 1fr;
	gap: 10px;
	align-items: start;
}

.soscocu-contact__check input {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
}

.soscocu-contact__actions {
	margin-top: 4px;
}

.soscocu-contact__actions button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 11px 20px;
	border: 1px solid #e1b506;
	border-radius: 6px;
	background: #ffcc00;
	color: #202020;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.soscocu-contact__actions button:hover {
	background: #e9ba00;
	border-color: #caa100;
	transform: translateY(-1px);
}

.soscocu-contact__actions button:focus {
	outline: 3px solid rgba(255, 204, 0, 0.42);
	outline-offset: 3px;
}

.soscocu-contact__notice {
	margin: 0 0 18px;
	padding: 14px 16px;
	border-radius: 8px;
	line-height: 1.5;
}

.soscocu-contact__notice p {
	margin: 0 0 6px;
}

.soscocu-contact__notice p:last-child,
.soscocu-contact__notice ul {
	margin-bottom: 0;
}

.soscocu-contact__notice--success {
	border: 1px solid #b7ddc2;
	background: #f1fbf4;
	color: #164b27;
}

.soscocu-contact__notice--error {
	border: 1px solid #ecc0bd;
	background: #fff4f3;
	color: #7f1d1d;
}

.soscocu-contact__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

@media (max-width: 640px) {
	.soscocu-contact {
		padding: 18px;
	}

	.soscocu-contact__grid {
		grid-template-columns: 1fr;
	}

	.soscocu-contact__actions button {
		width: 100%;
	}
}
