/* ==========================================================
   Contact Form Widget
   ========================================================== */

.cf-wrap {
	font-family: inherit;
	color: #333;
	width: 100%;
	max-width: 100%;
}

/* Two-column container */
.cf-container {
	display: flex;
	flex-wrap: wrap;
	gap: 60px;
	align-items: flex-start;
	width: 100%;
}

.cf-col {
	min-width: 0;
	flex: 1 1 100%;
}

/* When info panel is shown — split columns */
.cf-container.cf-has-info .cf-col-form {
	flex: 1 1 calc(50% - 30px);
	max-width: calc(50% - 30px);
}

.cf-container.cf-has-info .cf-col-info {
	flex: 1 1 calc(50% - 30px);
	max-width: calc(50% - 30px);
}

/* Ratios */
.cf-container.cf-ratio-2-1 .cf-col-form { flex-basis: calc(66.6666% - 20px); max-width: calc(66.6666% - 20px); }
.cf-container.cf-ratio-2-1 .cf-col-info { flex-basis: calc(33.3333% - 40px); max-width: calc(33.3333% - 40px); }

.cf-container.cf-ratio-3-2 .cf-col-form { flex-basis: calc(60% - 24px); max-width: calc(60% - 24px); }
.cf-container.cf-ratio-3-2 .cf-col-info { flex-basis: calc(40% - 36px); max-width: calc(40% - 36px); }

.cf-container.cf-ratio-1-2 .cf-col-form { flex-basis: calc(33.3333% - 40px); max-width: calc(33.3333% - 40px); }
.cf-container.cf-ratio-1-2 .cf-col-info { flex-basis: calc(66.6666% - 20px); max-width: calc(66.6666% - 20px); }

/* Info on left — reverse visual order */
.cf-container.cf-info-left .cf-col-form { order: 2; }
.cf-container.cf-info-left .cf-col-info { order: 1; }

.cf-title {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 30px;
	color: #1a1a1a;
}

.cf-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
}

.cf-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}

.cf-label {
	font-size: 14px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.4;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.cf-required {
	color: #e60012;
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
}

.cf-input,
.cf-textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	font-size: 14px;
	font-family: inherit;
	line-height: 1.5;
	color: #333;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 0;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	outline: none;
	margin: 0;
	appearance: none;
	-webkit-appearance: none;
}

.cf-input:focus,
.cf-textarea:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.cf-textarea {
	min-height: 140px;
	resize: vertical;
	font-family: inherit;
}

.cf-input::placeholder,
.cf-textarea::placeholder {
	color: #999;
	opacity: 1;
}

/* Honeypot — hidden from humans */
.cf-hp {
	position: absolute !important;
	left: -10000px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.cf-actions {
	display: flex;
	justify-content: flex-start;
	margin-top: 4px;
}

.cf-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 22px;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	color: #ffffff;
	background-color: #2271b1;
	border: none;
	border-radius: 2px;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
	line-height: 1.4;
	letter-spacing: 0.2px;
	min-width: 100px;
}

.cf-submit:hover,
.cf-submit:focus {
	background-color: #135e96;
	color: #ffffff;
	outline: none;
}

.cf-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* Messages */
.cf-form-message {
	padding: 12px 16px;
	font-size: 14px;
	line-height: 1.5;
	border-radius: 4px;
	margin-top: 6px;
}

.cf-form-message.cf-success {
	background: #e7f5ec;
	color: #1d6f42;
	border: 1px solid #bfe3cc;
}

.cf-form-message.cf-error {
	background: #fdecea;
	color: #b3261e;
	border: 1px solid #f5c2bc;
}

/* Invalid field feedback */
.cf-input.cf-invalid,
.cf-textarea.cf-invalid {
	border-color: #e60012;
	box-shadow: 0 0 0 1px #e60012;
}

.cf-field-error {
	font-size: 12px;
	color: #e60012;
	margin-top: 2px;
	line-height: 1.3;
	display: none;
}

.cf-field.cf-has-error .cf-field-error {
	display: block;
}

/* ==========================================================
   Info Panel (right side)
   ========================================================== */

.cf-info {
	width: 100%;
}

.cf-info-title {
	font-size: 22px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 24px;
	line-height: 1.2;
}

.cf-info-body {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.cf-info-block {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.cf-info-label {
	font-size: 16px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.3;
}

.cf-info-text {
	font-size: 14px;
	line-height: 1.6;
	color: #7a7a7a;
	margin: 0;
}

.cf-info-link {
	font-size: 14px;
	line-height: 1.6;
	color: #7a7a7a;
	text-decoration: none;
	transition: color 0.2s ease;
	word-break: break-word;
}

.cf-info-link:hover,
.cf-info-link:focus {
	color: #2271b1;
	text-decoration: none;
}

/* Social list */
.cf-social-list {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 4px;
}

.cf-social-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #7a7a7a;
	text-decoration: none;
	transition: color 0.2s ease, transform 0.2s ease;
	line-height: 1;
}

.cf-social-item:hover,
.cf-social-item:focus {
	color: #2271b1;
	transform: translateY(-2px);
	outline: none;
}

.cf-social-item i,
.cf-social-item svg {
	font-size: 18px;
	width: 18px;
	height: 18px;
	line-height: 1;
	display: block;
	fill: currentColor;
}

/* ==========================================================
   Responsive
   ========================================================== */

/* Stack columns on tablet and below */
@media (max-width: 1024px) {
	.cf-container {
		gap: 40px;
	}
	.cf-container.cf-has-info .cf-col-form,
	.cf-container.cf-has-info .cf-col-info,
	.cf-container.cf-ratio-2-1 .cf-col-form,
	.cf-container.cf-ratio-2-1 .cf-col-info,
	.cf-container.cf-ratio-3-2 .cf-col-form,
	.cf-container.cf-ratio-3-2 .cf-col-info,
	.cf-container.cf-ratio-1-2 .cf-col-form,
	.cf-container.cf-ratio-1-2 .cf-col-info {
		flex: 1 1 100%;
		max-width: 100%;
	}
	/* Keep natural order on stack, info on left still moves to bottom */
	.cf-container.cf-info-left .cf-col-form,
	.cf-container.cf-info-left .cf-col-info {
		order: initial;
	}
}

@media (max-width: 600px) {
	.cf-title {
		font-size: 24px;
		margin-bottom: 24px;
	}
	.cf-info-title {
		font-size: 20px;
		margin-bottom: 20px;
	}
	.cf-form {
		gap: 16px;
	}
	.cf-container {
		gap: 32px;
	}
	.cf-info-body {
		gap: 20px;
	}
}
