/* ==========================================================================
   JTC Forms — front-end
   Theme: Poppins body, red #e42c2c, blue #1787e0 for focus/interaction
   ========================================================================== */

.jtcf-wrap {
	--jtcf-red: #e42c2c;
	--jtcf-red-dark: #c81f1f;
	--jtcf-blue: #1787e0;
	--jtcf-border: #1f2a37;
	--jtcf-text: #111827;
	--jtcf-muted: #6b7280;
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	color: var(--jtcf-text);
	max-width: 100%;
}

.jtcf-wrap *,
.jtcf-wrap *::before,
.jtcf-wrap *::after {
	box-sizing: border-box;
}

.jtcf-form-title {
	font-family: 'Varela Round', 'Poppins', sans-serif;
	font-size: 28px;
	line-height: 1.25;
	font-weight: 700;
	margin: 0 0 22px;
	color: var(--jtcf-text);
}

/* Layout ------------------------------------------------------------------ */

.jtcf-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}

.jtcf-field {
	flex: 0 0 100%;
	max-width: 100%;
	min-width: 0;
}

.jtcf-w-half {
	flex: 0 0 calc(50% - 9px);
	max-width: calc(50% - 9px);
}

@media (max-width: 640px) {
	.jtcf-w-half {
		flex: 0 0 100%;
		max-width: 100%;
	}
}

.jtcf-heading {
	flex: 0 0 100%;
	font-family: 'Varela Round', 'Poppins', sans-serif;
	font-size: 20px;
	font-weight: 700;
	margin: 14px 0 -2px;
	padding-bottom: 12px;
	border-bottom: 2px solid #e5e7eb;
	position: relative;
}

.jtcf-heading::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 48px;
	height: 2px;
	background: var(--jtcf-red);
}

.jtcf-fields > .jtcf-heading:first-child {
	margin-top: 0;
}

/* Labels & inputs --------------------------------------------------------- */

.jtcf-label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 7px;
	line-height: 1.5;
	color: #1f2937;
}

.jtcf-req {
	color: var(--jtcf-red);
}

.jtcf-input {
	display: block;
	width: 100%;
	padding: 13px 16px;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	color: var(--jtcf-text);
	background: #fff;
	border: 1px solid var(--jtcf-border);
	border-radius: 4px;
	transition: border-color .18s ease, box-shadow .18s ease;
	-webkit-appearance: none;
	appearance: none;
}

.jtcf-input::placeholder {
	color: #6b7280;
	opacity: 1;
}

.jtcf-input:focus {
	outline: none;
	border-color: var(--jtcf-blue);
	box-shadow: 0 0 0 3px rgba(23, 135, 224, .15);
}

.jtcf-textarea {
	min-height: 130px;
	resize: vertical;
}

.jtcf-select {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 18px;
	padding-right: 42px;
}

/* Radios ------------------------------------------------------------------ */

.jtcf-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	padding-top: 2px;
}

.jtcf-radio {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	cursor: pointer;
}

.jtcf-radio input {
	width: 17px;
	height: 17px;
	accent-color: var(--jtcf-red);
	margin: 0;
	cursor: pointer;
}

/* Acceptance -------------------------------------------------------------- */

.jtcf-acceptance {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	line-height: 1.6;
	cursor: pointer;
	color: #374151;
}

.jtcf-acceptance input {
	width: 17px;
	height: 17px;
	margin: 3px 0 0;
	accent-color: var(--jtcf-red);
	flex-shrink: 0;
	cursor: pointer;
}

.jtcf-acceptance a {
	color: var(--jtcf-red);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.jtcf-acceptance a:hover {
	color: var(--jtcf-blue);
}

/* File upload ------------------------------------------------------------- */

.jtcf-file-wrap {
	position: relative;
}

.jtcf-file {
	position: absolute;
	width: .1px;
	height: .1px;
	opacity: 0;
	overflow: hidden;
	z-index: -1;
}

.jtcf-file-label {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 30px 20px;
	text-align: center;
	border: 2px dashed #cbd5e1;
	border-radius: 8px;
	background: #f9fafb;
	cursor: pointer;
	transition: border-color .18s ease, background .18s ease;
}

.jtcf-file-label:hover,
.jtcf-file-wrap.is-dragover .jtcf-file-label {
	border-color: var(--jtcf-red);
	background: #fef4f4;
}

.jtcf-file-btn {
	display: inline-block;
	background: var(--jtcf-red);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	padding: 10px 22px;
	border-radius: 999px;
}

.jtcf-file-text {
	font-size: 13px;
	color: var(--jtcf-muted);
}

.jtcf-file-list {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
}

.jtcf-file-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
	padding: 9px 12px;
	background: #f3f4f6;
	border-radius: 5px;
	margin-bottom: 6px;
}

.jtcf-file-list li span {
	color: var(--jtcf-muted);
	flex-shrink: 0;
}

/* Errors ------------------------------------------------------------------ */

.jtcf-error {
	display: none;
	font-size: 13px;
	color: var(--jtcf-red);
	margin-top: 6px;
}

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

.jtcf-field.has-error .jtcf-input,
.jtcf-field.has-error .jtcf-file-label {
	border-color: var(--jtcf-red);
}

/* Submit ------------------------------------------------------------------ */

.jtcf-actions {
	margin-top: 24px;
}

.jtcf-submit {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--jtcf-red);
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	padding: 15px 32px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background .18s ease, opacity .18s ease;
}

.jtcf-submit:hover {
	background: var(--jtcf-red-dark);
}

.jtcf-submit:focus-visible {
	outline: 3px solid rgba(23, 135, 224, .4);
	outline-offset: 2px;
}

.jtcf-submit[disabled] {
	opacity: .65;
	cursor: not-allowed;
}

.jtcf-spinner {
	display: none;
	width: 15px;
	height: 15px;
	border: 2px solid rgba(255, 255, 255, .4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: jtcf-spin .7s linear infinite;
}

.jtcf-form.is-sending .jtcf-spinner {
	display: inline-block;
}

@keyframes jtcf-spin {
	to { transform: rotate(360deg); }
}

/* Response ---------------------------------------------------------------- */

.jtcf-response {
	display: none;
	margin-top: 20px;
	padding: 16px 18px;
	border-radius: 6px;
	font-size: 15px;
	line-height: 1.6;
	border-left: 4px solid;
}

.jtcf-response.is-visible {
	display: block;
}

.jtcf-response.is-success {
	background: #f0fdf4;
	border-color: #16a34a;
	color: #14532d;
}

.jtcf-response.is-error {
	background: #fef2f2;
	border-color: var(--jtcf-red);
	color: #7f1d1d;
}

/* Honeypot ---------------------------------------------------------------- */

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

/* Screen-reader-only labels ------------------------------------------------ */

.jtcf-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   Subscribe form — teal gradient card with an orange button
   Rendered by [jtc_form id="subscribe"]
   ========================================================================== */

.jtcf-wrap--subscribe {
	--jtcf-sub-orange: #f2650a;
	--jtcf-sub-orange-dark: #d95604;
	max-width: 380px;
	padding: 30px 28px 32px;
	border-radius: 10px;
	background: linear-gradient(180deg, #4ed4e3 0%, #7fdcd6 45%, #bfe3cb 100%);
	box-shadow: 0 14px 34px -18px rgba(17, 24, 39, .45);
	text-align: center;
}

.jtcf-wrap--subscribe .jtcf-form-title {
	font-size: 26px;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 14px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}

.jtcf-wrap--subscribe .jtcf-intro p {
	margin: 0 0 14px;
	font-size: 13px;
	line-height: 1.6;
	color: #ffffff;
}

.jtcf-wrap--subscribe .jtcf-intro p:last-child {
	margin-bottom: 22px;
}

.jtcf-wrap--subscribe .jtcf-fields {
	gap: 14px;
}

.jtcf-wrap--subscribe .jtcf-input {
	border: none;
	border-radius: 5px;
	padding: 15px 18px;
	font-size: 16px;
	color: #1f2937;
	background: #ffffff;
	box-shadow: 0 1px 2px rgba(17, 24, 39, .08);
}

.jtcf-wrap--subscribe .jtcf-input::placeholder {
	color: #6b7c8d;
}

.jtcf-wrap--subscribe .jtcf-input:focus {
	box-shadow: 0 0 0 3px rgba(255, 255, 255, .65);
}

.jtcf-wrap--subscribe .jtcf-actions {
	margin-top: 16px;
}

.jtcf-wrap--subscribe .jtcf-submit {
	width: 100%;
	justify-content: center;
	background: var(--jtcf-sub-orange);
	border-radius: 5px;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	padding: 15px 24px;
}

.jtcf-wrap--subscribe .jtcf-submit:hover {
	background: var(--jtcf-sub-orange-dark);
}

.jtcf-wrap--subscribe .jtcf-error {
	color: #7f1d1d;
	font-weight: 500;
}

.jtcf-wrap--subscribe .jtcf-field.has-error .jtcf-input {
	box-shadow: 0 0 0 2px #b91c1c;
}

.jtcf-wrap--subscribe .jtcf-response {
	margin-top: 16px;
	font-size: 14px;
	text-align: left;
}

/* ==========================================================================
   Inquiry form — matches the old site's layout
   Rendered by [jtc_form id="inquiry"]
   ========================================================================== */

.jtcf-wrap--inquiry .jtcf-input {
	border-color: #9ca3af;
	border-radius: 3px;
}

.jtcf-wrap--inquiry .jtcf-submit {
	border-radius: 3px;
	padding: 16px 34px;
}
