/**
 * Kotha Lab Contact Form — form component styles.
 */

.kotha-contact-form {
	margin: 0;
}

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

.kotha-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
}

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

.kotha-field label {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--text-muted, #4B554E);
}

.kotha-req {
	color: var(--brand-red, #FE2B24);
}

.kotha-optional {
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
	color: var(--text-muted, #4B554E);
	opacity: 0.8;
}

.kotha-field input,
.kotha-field textarea {
	width: 100%;
	margin: 0;
	padding: 11px 13px;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--text-primary, #141A16);
	background-color: #FFFFFF;
	border: 1px solid var(--border-color, #D6D2C4);
	border-radius: var(--radius-sm, 4px);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.kotha-field textarea {
	min-height: 156px;
	resize: vertical;
}

.kotha-field input::placeholder,
.kotha-field textarea::placeholder {
	color: #8A928C;
	opacity: 1;
}

.kotha-field input:focus,
.kotha-field textarea:focus {
	outline: none;
	border-color: var(--brand-green, #0B8137);
	box-shadow: 0 0 0 3px rgba(11, 129, 55, 0.14);
}

.kotha-field.has-error input,
.kotha-field.has-error textarea {
	border-color: #B3261E;
}

.kotha-field.has-error input:focus,
.kotha-field.has-error textarea:focus {
	box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.14);
}

.kotha-field-error {
	font-size: 0.86rem;
	line-height: 1.45;
	color: #B3261E;
}

/* Honeypot — hidden from people, visible to naive bots. */
.kotha-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.kotha-form-actions {
	display: flex;
	align-items: center;
	gap: 8px 20px;
	flex-wrap: wrap;
	margin-top: 22px;
}

.kotha-form-note {
	flex: 1 1 240px;
	margin: 0;
	font-size: 0.86rem;
	line-height: 1.5;
	color: var(--text-muted, #4B554E);
}

.kotha-submit[disabled] {
	opacity: 0.65;
	cursor: progress;
}

.kotha-form-status {
	margin-top: 18px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: var(--radius-sm, 4px);
	font-size: 0.95rem;
	line-height: 1.55;
}

.kotha-form-status:empty {
	display: none;
}

.kotha-form-status:focus {
	outline: none;
}

.kotha-form-status.is-pending {
	padding: 12px 14px;
	background-color: var(--bg-subtle, #F5F5F5);
	border-color: var(--border-color, #D6D2C4);
	color: var(--text-muted, #4B554E);
}

.kotha-form-status.is-success {
	padding: 12px 14px;
	background-color: #F1F8F3;
	border-color: #B7DCC4;
	color: #005A32;
}

.kotha-form-status.is-error {
	padding: 12px 14px;
	background-color: #FDF3F2;
	border-color: #E9BBB7;
	color: #8C1D18;
}

@media (max-width: 640px) {
	.kotha-form-grid {
		grid-template-columns: 1fr;
	}

	.kotha-form-actions .btn {
		width: 100%;
	}
}