/* Nairo Forms — front end styles.
 * Reskin per brand by overriding the variables below in your theme CSS.
 * e.g. .nf-card { --nf-primary: #16245A; --nf-primary-hover: #0F1A45; }
 */

.nf-card {
	--nf-primary: #2147e8;
	--nf-primary-hover: #1736bf;
	--nf-ink: #0b1633;
	--nf-muted: #5a6584;
	--nf-border: #dce3f5;
	--nf-bg: #ffffff;
	--nf-field-bg: #f7f9fe;
	--nf-success: #0e9f6e;
	--nf-error: #d23f3f;
	--nf-radius: 14px;

	box-sizing: border-box;
	max-width: 560px;
	margin: 0 auto;
	padding: 36px 32px;
	background: var(--nf-bg);
	border: 1px solid var(--nf-border);
	border-radius: var(--nf-radius);
	box-shadow: 0 18px 40px -24px rgba(11, 22, 51, 0.25);
	font-family: var(--nf-font-body, inherit);
	color: var(--nf-ink);
}

.nf-card *,
.nf-card *::before,
.nf-card *::after {
	box-sizing: border-box;
}

/* Header */

.nf-eyebrow {
	display: inline-block;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: var(--nf-primary);
	margin-bottom: 10px;
}

.nf-title {
	margin: 0 0 6px;
	font-size: 24px;
	line-height: 1.25;
	font-weight: 700;
	font-family: var(--nf-font-heading, inherit);
	color: var(--nf-ink);
}

.nf-subtitle {
	margin: 0 0 26px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--nf-muted);
}

/* Field grid */

.nf-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 16px;
}

.nf-col-full {
	grid-column: 1 / -1;
}

.nf-col-half {
	grid-column: span 1;
}

.nf-field {
	margin-bottom: 18px;
	min-width: 0;
}

.nf-label {
	display: block;
	margin-bottom: 6px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--nf-ink);
}

.nf-req {
	color: var(--nf-error);
	margin-left: 3px;
}

.nf-input {
	display: block;
	width: 100%;
	padding: 12px 14px;
	font-size: 15px;
	font-family: inherit;
	color: var(--nf-ink);
	background: var(--nf-field-bg);
	border: 1.5px solid var(--nf-border);
	border-radius: 10px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	appearance: none;
}

.nf-input::placeholder {
	color: #9aa4c0;
}

.nf-input:focus {
	outline: none;
	background: #ffffff;
	border-color: var(--nf-primary);
	box-shadow: 0 0 0 3px rgba(33, 71, 232, 0.14);
}

.nf-textarea {
	resize: vertical;
	min-height: 110px;
}

.nf-select {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6584' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 38px;
	cursor: pointer;
}

/* Radio and checkbox groups */

.nf-choices {
	display: flex;
	flex-direction: column;
	gap: 9px;
	padding-top: 2px;
}

.nf-choice {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-size: 14.5px;
	color: var(--nf-ink);
	cursor: pointer;
	line-height: 1.45;
}

.nf-choice input {
	margin: 3px 0 0;
	accent-color: var(--nf-primary);
	flex-shrink: 0;
	width: 16px;
	height: 16px;
}

/* Honeypot: visually removed, still in the DOM for bots */

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

/* Turnstile */

.nf-turnstile {
	margin: 4px 0 14px;
}

/* Consent line: small copy pinned above the button */

.nf-consent {
	margin: 2px 0 12px;
}

.nf-consent-line {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--nf-muted);
	cursor: pointer;
}

.nf-consent-line input {
	margin: 2px 0 0;
	accent-color: var(--nf-primary);
	flex-shrink: 0;
	width: 15px;
	height: 15px;
}

.nf-consent-line a {
	color: var(--nf-primary);
	text-decoration: underline;
}

/* Button */

.nf-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 14px 22px;
	margin-top: 4px;
	font-size: 15.5px;
	font-weight: 600;
	font-family: inherit;
	color: #ffffff;
	background: var(--nf-button, var(--nf-primary));
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
}

.nf-button:hover {
	background: var(--nf-button-hover, var(--nf-primary-hover));
}

.nf-button:active {
	transform: translateY(1px);
}

.nf-button:focus-visible {
	outline: 3px solid rgba(33, 71, 232, 0.35);
	outline-offset: 2px;
}

.nf-button[disabled] {
	opacity: 0.65;
	cursor: wait;
}

/* Status */

.nf-status {
	margin: 14px 0 0;
	font-size: 14.5px;
	line-height: 1.5;
	min-height: 1em;
}

.nf-status.is-success {
	color: var(--nf-success);
	font-weight: 600;
}

.nf-status.is-error {
	color: var(--nf-error);
	font-weight: 600;
}

/* Sent state */

.nf-card.is-sent .nf-form > :not(.nf-status) {
	display: none;
}

/* Mobile */

@media (max-width: 520px) {
	.nf-card {
		padding: 26px 20px;
	}

	.nf-grid {
		grid-template-columns: 1fr;
	}

	.nf-col-half {
		grid-column: 1 / -1;
	}

	.nf-title {
		font-size: 21px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nf-input,
	.nf-button {
		transition: none;
	}
}

/* Submit button loading spinner */

.nf-button.is-loading {
	opacity: 0.85;
	pointer-events: none;
}

.nf-button.is-loading::after {
	content: '';
	display: inline-block;
	width: 13px;
	height: 13px;
	margin-left: 8px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #ffffff;
	border-radius: 50%;
	vertical-align: middle;
	animation: nf-spin 0.7s linear infinite;
}

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


/* =========================================================================
 * Autograph Travels skin (custom build). Overrides the neutral defaults
 * above so every form matches autograph.africa out of the box.
 * ====================================================================== */

.nf-card {
	--nf-primary: #C0912F;
	--nf-primary-hover: #a67b26;
	--nf-ink: #33565F;
	--nf-muted: #77837F;
	--nf-border: #E2DAC9;
	--nf-bg: #ffffff;
	--nf-field-bg: #ffffff;
	--nf-success: #33565F;
	--nf-radius: 3px;
	max-width: 760px;
	box-shadow: none;
	font-size: 17px;
}

.nf-title {
	font-weight: 400;
	font-size: 28px;
	letter-spacing: -0.012em;
	line-height: 1.12;
}

.nf-eyebrow {
	font-size: 12px;
	letter-spacing: 0.02em;
}

.nf-label {
	font-weight: 600;
	color: #33565F;
}

.nf-input {
	border-radius: 3px;
	color: #3A4A4E;
}

.nf-input:focus {
	box-shadow: 0 0 0 3px rgba(192, 145, 47, 0.16);
}

.nf-button {
	color: #16262B;
	font-weight: 700;
	border-radius: 2px;
	transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.16s ease;
}

.nf-button:hover {
	box-shadow: 0 8px 20px rgba(192, 145, 47, 0.32);
}

.nf-button:focus-visible {
	outline: 3px solid rgba(192, 145, 47, 0.4);
}

.nf-button.is-loading::after {
	border-color: rgba(22, 38, 43, 0.3);
	border-top-color: #16262B;
}

/* Numeric rating groups (the feedback scales) render as brass pills. */

.nf-choices--scale {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 6px;
}

.nf-choices--scale .nf-choice {
	position: relative;
	gap: 0;
}

.nf-choices--scale .nf-choice input {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
}

.nf-choices--scale .nf-choice span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	border: 1.5px solid var(--nf-border);
	border-radius: 2px;
	font-size: 14px;
	font-weight: 600;
	color: #3A4A4E;
	transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.nf-choices--scale .nf-choice:hover span {
	border-color: var(--nf-primary);
}

.nf-choices--scale .nf-choice input:checked + span {
	background: var(--nf-primary);
	border-color: var(--nf-primary);
	color: #16262B;
}

.nf-choices--scale .nf-choice input:focus-visible + span {
	outline: 3px solid rgba(192, 145, 47, 0.4);
	outline-offset: 1px;
}

/* Conditional fields (the ATL behaviour layer). */

.nf-field.nf-cond-hidden {
	display: none;
}
