/**
 * Shared contact form styles — all pages.
 *
 * @package Skavend
 */

.cp-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

.cp-field input,
.cp-field textarea,
.cp-select select {
	border-radius: 12px !important;
	border: 1px solid rgba(181, 138, 85, 0.28) !important;
	background: #faf6f0;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.cp-field input:hover,
.cp-field textarea:hover,
.cp-select select:hover {
	border-color: rgba(181, 138, 85, 0.45) !important;
}

.cp-field input:focus,
.cp-field textarea:focus,
.cp-select select:focus {
	outline: none;
	border-color: #c19a6b !important;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(193, 154, 107, 0.15);
}

.cp-form.is-submitting {
	opacity: 0.92;
	pointer-events: none;
}

.cp-form.is-submitting .cp-form__submit {
	position: relative;
}

.cp-form__submit-loading {
	font-size: 14px;
}

.cp-form__success {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 18px 20px;
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(10, 61, 45, 0.08), rgba(193, 154, 107, 0.12));
	border: 1px solid rgba(10, 61, 45, 0.14);
	animation: skavendFormSuccessIn 0.45s ease;
}

.cp-form__success[hidden] {
	display: none !important;
}

.cp-form__success-icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: #0a3d2d;
	color: #e2bd80;
	font-size: 18px;
	font-weight: 700;
	animation: skavendFormPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cp-form__success-text {
	margin: 0;
	padding-top: 6px;
	font-size: 14px;
	line-height: 1.55;
	color: #0a3d2d;
	font-weight: 600;
}

.cp-form__status.is-success {
	background: rgba(10, 61, 45, 0.08);
	color: #0a3d2d;
	border: 1px solid rgba(10, 61, 45, 0.12);
}

.cp-form.is-success .cp-form__row,
.cp-form.is-success .cp-field,
.cp-form.is-success .cp-checkbox,
.cp-form.is-success .cp-form__submit {
	animation: skavendFormFadeOut 0.35s ease forwards;
}

@keyframes skavendFormSuccessIn {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

@keyframes skavendFormPop {
	0% { transform: scale(0.4); opacity: 0; }
	100% { transform: scale(1); opacity: 1; }
}

@keyframes skavendFormFadeOut {
	to { opacity: 0.35; transform: translateY(4px); }
}
