/* Public form styling. Everything is scoped to .ntc-form / .ntc-form-card so
   the rest of the theme is untouched. Brand red #ed3624 (same as the header). */

.ntc-form-card {
	background: #fff;
	border: 1px solid #eceef2;
	border-radius: 18px;
	box-shadow: 0 12px 40px rgba(17, 24, 39, .07);
	padding: 40px 44px 36px;
}

.ntc-form-head {
	margin-bottom: 28px;
}
.ntc-form-head h3 {
	font-size: 26px;
	font-weight: 600;
	color: #111827;
	margin: 0 0 6px;
}
.ntc-form-head h3::after {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	border-radius: 3px;
	background: #ed3624;
	margin-top: 12px;
}
.ntc-form-head p {
	color: #6b7280;
	font-size: 15px;
	margin: 12px 0 0;
}

/* some pages place the form directly inside a flex .row */
form.ntc-form {
	width: 100%;
}

.ntc-form .ntc-section {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #ed3624;
	margin: 30px 0 18px;
}
.ntc-form .ntc-section::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #eceef2;
}
.ntc-form .ntc-section:first-child {
	margin-top: 0;
}

.ntc-form .form-group {
	margin-bottom: 20px;
}
.ntc-form .ntc-label,
.ntc-form .form-group > label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: #1f2937;
	margin: 0 0 7px;
}
.ntc-form .req {
	color: #ed3624;
	margin-left: 2px;
}

/* inputs */
.ntc-form .form-control,
.ntc-form .bootstrap-select > .dropdown-toggle {
	height: 48px;
	border: 1.5px solid #dde1e8 !important;
	border-radius: 10px !important;
	background: #f9fafb !important;
	padding: 10px 14px;
	font-size: 15px;
	color: #111827;
	box-shadow: none !important;
	transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.ntc-form textarea.form-control {
	height: auto;
	min-height: 130px;
	resize: vertical;
	line-height: 1.6;
}
.ntc-form .form-control::placeholder {
	color: #9ca3af;
}
.ntc-form .form-control:hover,
.ntc-form .bootstrap-select > .dropdown-toggle:hover {
	border-color: #c5cad3 !important;
}
.ntc-form .form-control:focus,
.ntc-form .bootstrap-select.show > .dropdown-toggle,
.ntc-form .bootstrap-select > .dropdown-toggle:focus {
	border-color: #ed3624 !important;
	background: #fff !important;
	box-shadow: 0 0 0 4px rgba(237, 54, 36, .12) !important;
	outline: 0 !important;
}
.ntc-form .form-control.is-invalid,
.ntc-form .bootstrap-select.is-invalid > .dropdown-toggle {
	border-color: #dc2626 !important;
	background: #fef6f6 !important;
}
.ntc-form .form-control.is-valid {
	border-color: #9fd8b4 !important;
}
.ntc-form .form-control:disabled,
.ntc-form .form-control[readonly] {
	background: #f3f4f6 !important;
	color: #374151;
}
.ntc-form .bootstrap-select {
	width: 100% !important;
}
.ntc-form .bootstrap-select > .dropdown-toggle {
	display: flex;
	align-items: center;
	color: #111827 !important;
}
.ntc-form .bootstrap-select .filter-option-inner-inner {
	font-size: 15px;
}

/* messages */
.ntc-form .ntc-error {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	color: #dc2626;
	font-size: 13px;
	line-height: 1.45;
	margin-top: 7px;
}
.ntc-form .ntc-error::before {
	content: "!";
	flex: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #dc2626;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
	margin-top: 1px;
}
.ntc-form .ntc-error:empty {
	display: none;
}
.ntc-form .ntc-error-center {
	justify-content: center;
}
.ntc-form .ntc-hint {
	font-size: 12.5px;
	color: #6b7280;
	margin: 7px 0 0;
}
.ntc-form .ntc-alert {
	border-radius: 12px;
	padding: 14px 18px;
	font-size: 14.5px;
	margin-bottom: 22px;
}
.ntc-form .ntc-alert-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
}
.ntc-form .ntc-alert-ok {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #15803d;
}

/* file drop zone */
.ntc-form .ntc-file {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	border: 2px dashed #d5d9e0;
	border-radius: 12px;
	background: #fafbfc;
	padding: 18px 20px;
	transition: border-color .15s, background-color .15s;
	cursor: pointer;
}
.ntc-form .ntc-file input[type="file"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}
.ntc-form .ntc-file-icon {
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: #fdecea;
	color: #ed3624;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ntc-form .ntc-file-text strong {
	display: block;
	font-size: 15px;
	font-weight: 500;
	color: #111827;
}
.ntc-form .ntc-file-text span {
	font-size: 13px;
	color: #6b7280;
}
.ntc-form .ntc-file-name {
	display: block;
	font-size: 13.5px;
	color: #15803d;
	font-weight: 500;
	margin-top: 2px;
}
.ntc-form .ntc-file:hover,
.ntc-form .ntc-file.is-drag {
	border-color: #ed3624;
	background: #fff6f5;
}
.ntc-form .ntc-file.has-file {
	border-style: solid;
	border-color: #86d6a3;
	background: #f3fbf6;
}
.ntc-form .ntc-file.is-invalid {
	border-color: #dc2626;
	background: #fef6f6;
}

/* radios (test center) */
.ntc-form input[type="radio"],
.ntc-form input[type="checkbox"] {
	accent-color: #ed3624;
	width: 17px;
	height: 17px;
	vertical-align: -3px;
	margin-right: 6px;
}

/* captcha + submit */
.ntc-form .ntc-actions {
	text-align: center;
	margin-top: 10px;
}
.ntc-form .form-recaptcha {
	display: flex;
	justify-content: center;
	margin: 6px 0 4px;
}
.ntc-form .ntc-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 220px;
	margin-top: 18px;
	padding: 14px 40px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #f04a2a, #d42b18);
	color: #fff;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: .02em;
	box-shadow: 0 10px 22px rgba(237, 54, 36, .28);
	cursor: pointer;
	transition: transform .15s, box-shadow .15s, opacity .15s;
}
.ntc-form .ntc-submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 28px rgba(237, 54, 36, .34);
	color: #fff;
}
.ntc-form .ntc-submit:focus-visible {
	outline: 3px solid rgba(237, 54, 36, .35);
	outline-offset: 3px;
}
.ntc-form .ntc-submit.is-loading {
	opacity: .75;
	cursor: wait;
	transform: none;
}
.ntc-form .ntc-submit.is-loading::after {
	content: "";
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, .5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ntc-spin .7s linear infinite;
}
.ntc-form .ntc-btn-ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 160px;
	margin: 18px 8px 0;
	padding: 13px 32px;
	border: 1.5px solid #d5d9e0;
	border-radius: 999px;
	background: #fff;
	color: #374151;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
}
.ntc-form .ntc-btn-ghost:hover {
	border-color: #9ca3af;
}
.ntc-form .ntc-privacy {
	font-size: 12.5px;
	color: #6b7280;
	margin: 16px 0 0;
}
@keyframes ntc-spin {
	to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
	.ntc-form-card {
		padding: 26px 18px 24px;
		border-radius: 14px;
	}
	.ntc-form-head h3 {
		font-size: 22px;
	}
	.ntc-form .ntc-submit,
	.ntc-form .ntc-btn-ghost {
		width: 100%;
		margin-left: 0;
		margin-right: 0;
	}
}

/* bootstrap-select copies .form-control onto its wrapper; only the inner button gets the box */
.ntc-form .bootstrap-select.form-control {
	height: auto;
	padding: 0;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

/* anchor jumps (#apply) land below the fixed site header */
.ntc-form-card,
[id="apply"] {
	scroll-margin-top: 120px;
}

/* contact page: maps follow the button */
.formcontact.ntc-form .ntc-actions {
	margin-bottom: 32px;
}

/* read-only summary (register confirm step) */
.ntc-form .ntc-summary {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 28px;
	margin: 0 0 8px;
	border: 1px solid #eceef2;
	border-radius: 12px;
	padding: 6px 22px;
	background: #fafbfc;
}
.ntc-form .ntc-summary > div {
	padding: 14px 0;
	border-bottom: 1px solid #eceef2;
}
.ntc-form .ntc-summary > div:nth-last-child(-n+1) {
	border-bottom: 0;
}
.ntc-form .ntc-summary-wide {
	grid-column: 1 / -1;
}
.ntc-form .ntc-summary dt {
	font-size: 13px;
	font-weight: 500;
	color: #6b7280;
	margin-bottom: 4px;
}
.ntc-form .ntc-summary dd {
	font-size: 16px;
	color: #111827;
	margin: 0;
	word-break: break-word;
}
@media (max-width: 767px) {
	.ntc-form .ntc-summary {
		grid-template-columns: 1fr;
	}
}
