/* Devi Forms: matches the Avada theme (Karla, square corners, red #c9010f accent). */

.devi-form {
	margin: 0 0 20px;
	font-family: Karla, Arial, Helvetica, sans-serif;
}

.devi-form__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px 20px;
}

.devi-form__field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.devi-form__field--wide {
	grid-column: 1 / -1;
}

.devi-form label {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.3px;
	color: #333;
}

.devi-form__required {
	color: #c9010f;
}

.devi-form input[type="text"],
.devi-form input[type="email"],
.devi-form input[type="tel"],
.devi-form textarea {
	box-sizing: border-box;
	width: 100%;
	height: 45px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid #dddcd7;
	border-radius: 0;
	background: #fff;
	color: #333;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.4;
	box-shadow: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.devi-form textarea {
	height: auto;
	min-height: 130px;
	resize: vertical;
}

.devi-form input[type="file"] {
	box-sizing: border-box;
	width: 100%;
	padding: 10px;
	border: 1px dashed #c9c8c2;
	background: #fafaf8;
	color: #555;
	font-size: 13px;
}

.devi-form input:focus,
.devi-form textarea:focus {
	outline: none;
	border-color: #c9010f;
	box-shadow: 0 0 0 3px rgba(201, 1, 15, 0.12);
}

.devi-form__field--error input,
.devi-form__field--error textarea {
	border-color: #c9010f;
}

.devi-form__error {
	margin-top: 5px;
	font-size: 12px;
	color: #c9010f;
}

.devi-form .devi-form__notice {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-left: 4px solid;
	font-size: 14px;
	line-height: 1.5;
}

.devi-form .devi-form__notice--error {
	border-color: #c9010f;
	background: #fdf1f1;
	color: #8a0009;
}

.devi-form .devi-form__notice--success {
	margin: 0;
	border-color: #2e7d32;
	background: #f1f8f1;
	color: #1b5e20;
}

.devi-form .devi-form__actions {
	margin: 20px 0 0;
}

.devi-form .devi-form__submit {
	min-width: 180px;
	height: auto;
	padding: 13px 29px; /* Same size as the old form's button. */
	font-size: 14px;
	line-height: 20px;
	cursor: pointer;
}

.devi-form .devi-form__submit[disabled] {
	opacity: 0.7;
	cursor: wait;
}

/* Honeypot: off-screen for people, still visible to naive bots. */
.devi-form__trap {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
