/* ==========================================================================
   TechSol contact form (Contact Form 7, page 226). Everything is scoped to
   .tsc-form so no other form or page is affected. CF7's own stylesheet is
   disabled; its essential rules are reproduced at the bottom.
   ========================================================================== */

.tsc-form {
	--tsc-blue: #0245EC;
	--tsc-lime: #D9FF3A;
	--tsc-ink: #080D18;
	--tsc-line: rgba(8, 13, 24, .28);
	--tsc-muted: rgba(8, 13, 24, .72);
	--tsc-error: #B3122E;
	font-family: var(--ts-font-display, "Archivo"), Arial, sans-serif;
	color: var(--tsc-ink);
}
.tsc-form *, .tsc-form *::before, .tsc-form *::after { box-sizing: border-box; }
.tsc-form form { margin: 0; }

/* Layout */
.tsc-form .tsc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.tsc-form .tsc-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tsc-form .tsc-field--full { grid-column: 1 / -1; }
@media (max-width: 767px) { .tsc-form .tsc-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* Labels */
.tsc-form label { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--tsc-ink); }
.tsc-form .tsc-req { color: var(--tsc-blue); margin-left: 2px; }
.tsc-form .tsc-opt { margin-left: 6px; font-family: var(--ts-font-mono, "JetBrains Mono"), monospace; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--tsc-muted); }

/* Controls */
.tsc-form .wpcf7-form-control-wrap { display: block; position: relative; }
.tsc-form input[type="text"],
.tsc-form input[type="email"],
.tsc-form select,
.tsc-form textarea {
	display: block; width: 100%; margin: 0;
	min-height: 52px; padding: 14px 16px;
	font: inherit; font-size: 16px; line-height: 1.45; color: var(--tsc-ink);
	background: #FFFFFF; border: 0; border-radius: 6px;
	box-shadow: inset 0 0 0 1px var(--tsc-line);
	transition: box-shadow .2s;
	-webkit-appearance: none; appearance: none;
}
.tsc-form textarea { min-height: 160px; resize: vertical; }
.tsc-form select {
	padding-right: 44px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23080D18' stroke-width='2'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 16px center;
}
.tsc-form ::placeholder { color: rgba(8, 13, 24, .5); }
.tsc-form input:hover, .tsc-form select:hover, .tsc-form textarea:hover { box-shadow: inset 0 0 0 1.5px rgba(8, 13, 24, .45); }
.tsc-form input:focus, .tsc-form select:focus, .tsc-form textarea:focus {
	outline: none;
	box-shadow: inset 0 0 0 2px var(--tsc-blue), 0 0 0 4px rgba(2, 69, 236, .18);
}

/* Validation */
.tsc-form .wpcf7-not-valid { box-shadow: inset 0 0 0 2px var(--tsc-error) !important; }
.tsc-form .wpcf7-not-valid-tip { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--tsc-error); }
.tsc-form .wpcf7-not-valid-tip::before { content: "!"; display: inline-grid; place-items: center; flex: 0 0 18px; height: 18px; border-radius: 50%; background: var(--tsc-error); color: #FFFFFF; font-size: 12px; font-weight: 800; }

/* Footer: privacy note + submit */
.tsc-form .tsc-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; margin-top: 28px; padding-top: 24px; box-shadow: inset 0 1px 0 rgba(8, 13, 24, .14); flex-wrap: wrap; }
.tsc-form .tsc-privacy { flex: 1 1 260px; margin: 0; font-size: 14px; line-height: 1.55; color: var(--tsc-muted); }
.tsc-form .tsc-submit {
	-webkit-appearance: none; appearance: none; cursor: pointer;
	min-height: 56px; padding: 16px 30px; border: 0; border-radius: 999px;
	font: inherit; font-size: 16px; font-weight: 800; letter-spacing: 0;
	color: #FFFFFF; background: var(--tsc-blue);
	transition: background-color .25s;
}
.tsc-form .tsc-submit:hover { background: var(--tsc-ink); }
.tsc-form .tsc-submit:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; box-shadow: 0 0 0 6px var(--tsc-ink); }
.tsc-form form.submitting .tsc-submit,
.tsc-form .tsc-submit[aria-disabled="true"] { cursor: progress; background: rgba(2, 69, 236, .6); }
@media (max-width: 767px) { .tsc-form .tsc-foot { flex-direction: column; align-items: stretch; } .tsc-form .tsc-privacy { flex: none; } .tsc-form .tsc-submit { width: 100%; } }

/* Spinner (CF7 inserts it after the submit button) */
.tsc-form .wpcf7-spinner { display: none; }
.tsc-form form.submitting .wpcf7-spinner {
	display: inline-block; width: 22px; height: 22px; margin-left: -12px;
	border: 3px solid rgba(2, 69, 236, .25); border-top-color: var(--tsc-blue); border-radius: 50%;
	animation: tsc-spin .8s linear infinite;
}
@keyframes tsc-spin { to { transform: rotate(360deg); } }

/* Response messages */
.tsc-form .wpcf7-response-output {
	margin: 22px 0 0; padding: 14px 16px 14px 44px; border-radius: 6px; position: relative;
	font-size: 15px; font-weight: 600; line-height: 1.5;
	background: rgba(179, 18, 46, .08); color: var(--tsc-error);
}
.tsc-form .wpcf7-response-output::before { content: "!"; position: absolute; left: 14px; top: 14px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--tsc-error); color: #FFFFFF; font-size: 12px; font-weight: 800; }
.tsc-form form.sent .wpcf7-response-output { background: var(--tsc-ink); color: #FFFFFF; }
.tsc-form form.sent .wpcf7-response-output::before { content: "✓"; background: var(--tsc-lime); color: var(--tsc-ink); }

/* Honeypot: off-screen for people, still present for bots */
.tsc-form .tsc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Essential Contact Form 7 rules (its own CSS is disabled) */
.tsc-form .screen-reader-response, .tsc-form .tsc-sr { position: absolute; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; padding: 0; border: 0; word-wrap: normal !important; }
.tsc-form .hidden-fields-container { border: 0; margin: 0; padding: 0; }
.tsc-form form.init .wpcf7-response-output,
.tsc-form form.resetting .wpcf7-response-output,
.tsc-form form.submitting .wpcf7-response-output { display: none; }
.tsc-form .wpcf7-form-control-wrap .wpcf7-not-valid-tip[aria-hidden="true"] { display: flex; }

@media (prefers-reduced-motion: reduce) {
	.tsc-form * { transition: none !important; }
	.tsc-form form.submitting .wpcf7-spinner { animation-duration: 2.4s; }
}
