:root {
	/* Change these to re-theme the form. --nc-crm-accent is the gold you
	   asked for; the rest are tuned to sit on a dark navy site. */
	--nc-crm-accent: #D4AF37;
	--nc-crm-accent-hover: #b8952e;
	--nc-crm-bg: #101a30;
	--nc-crm-input-bg: #17233f;
	--nc-crm-text: #f3f4f6;
	--nc-crm-text-muted: #9aa5b8;
	--nc-crm-border: #2c3a5c;
}

/* The form renders as a self-contained card wherever it's placed, so it
   reads clearly on a dark background instead of relying on the page.
   Centered by default so dropping the shortcode into a page doesn't
   leave it stuck against the left edge. */
.nc-crm-signup-form {
	max-width: 480px;
	font-family: inherit;
	background: var(--nc-crm-bg);
	color: var(--nc-crm-text);
	border: 1px solid var(--nc-crm-border);
	border-radius: 8px;
	padding: 24px;
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
}

@media (min-width: 900px) {
	.nc-crm-signup-form {
		max-width: 560px;
		padding: 32px;
	}
}

.nc-crm-signup-form.nc-crm-align-left {
	margin-left: 0;
	margin-right: auto;
}

.nc-crm-signup-form.nc-crm-align-right {
	margin-left: auto;
	margin-right: 0;
}

/* Inside the modal, the modal box already provides the card background,
   so the form itself goes flush/transparent to avoid a box-in-a-box look. */
.nc-crm-modal-box .nc-crm-signup-form {
	max-width: none;
	background: transparent;
	border: none;
	padding: 0;
}

.nc-crm-signup-form .nc-crm-field {
	margin-bottom: 16px;
}

.nc-crm-signup-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
	color: var(--nc-crm-text) !important;
}

.nc-crm-signup-form input[type="text"],
.nc-crm-signup-form input[type="email"] {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--nc-crm-border);
	border-radius: 4px;
	box-sizing: border-box;
	color: var(--nc-crm-text) !important;
	background-color: var(--nc-crm-input-bg) !important;
	-webkit-text-fill-color: var(--nc-crm-text) !important;
	opacity: 1 !important;
}

.nc-crm-signup-form input[type="text"]:focus,
.nc-crm-signup-form input[type="email"]:focus {
	color: var(--nc-crm-text) !important;
	background-color: var(--nc-crm-input-bg) !important;
	-webkit-text-fill-color: var(--nc-crm-text) !important;
	outline: 2px solid var(--nc-crm-accent);
	outline-offset: 1px;
	border-color: var(--nc-crm-accent);
}

/* Chrome/Safari autofill sometimes forces its own text/background colors
   even after the rules above; this neutralizes that too. The inset
   shadow color must match --nc-crm-input-bg since browsers won't accept
   a var() reliably here in every engine. */
.nc-crm-signup-form input[type="text"]:-webkit-autofill,
.nc-crm-signup-form input[type="email"]:-webkit-autofill,
.nc-crm-signup-form input[type="text"]:-webkit-autofill:focus,
.nc-crm-signup-form input[type="email"]:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--nc-crm-text) !important;
	-webkit-box-shadow: 0 0 0px 1000px #17233f inset !important;
	box-shadow: 0 0 0px 1000px #17233f inset !important;
	caret-color: var(--nc-crm-text);
}

.nc-crm-signup-form fieldset.nc-crm-categories {
	border: 1px solid var(--nc-crm-border);
	border-radius: 6px;
	padding: 12px 14px;
}

.nc-crm-signup-form fieldset legend {
	font-weight: 600;
	padding: 0 4px;
	color: var(--nc-crm-text) !important;
}

.nc-crm-signup-form .nc-crm-checkbox {
	display: block;
	font-weight: normal;
	margin-bottom: 6px;
	color: var(--nc-crm-text) !important;
}

.nc-crm-signup-form .nc-crm-checkbox input[type="checkbox"] {
	accent-color: var(--nc-crm-accent);
}

.nc-crm-signup-form .nc-crm-required {
	color: #ff8a80 !important;
}

/* Honeypot spam trap: hidden from sighted and screen-reader users alike,
   but still present in the DOM for bots that fill in every field. */
.nc-crm-hp-field {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	height: 0 !important;
	width: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
}

.nc-crm-submit {
	background: var(--nc-crm-accent, #D4AF37);
	color: var(--nc-crm-button-text, #1a1a1a);
	border: none;
	padding: 10px 20px;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
}

.nc-crm-submit:hover {
	background: var(--nc-crm-accent-hover, #b8952e);
}

.nc-crm-message {
	padding: 10px 14px;
	border-radius: 4px;
	margin-bottom: 16px;
	border: 1px solid transparent;
}

.nc-crm-success {
	background: rgba(46, 204, 113, 0.12);
	color: #7be3a0;
	border-color: rgba(123, 227, 160, 0.4);
}

.nc-crm-error {
	background: rgba(255, 87, 87, 0.12);
	color: #ff8a80;
	border-color: rgba(255, 138, 128, 0.4);
}

/* Wraps the [nc_signup_button] trigger so it centers by default instead
   of sitting at the left edge, matching the form's default behavior. */
.nc-crm-button-wrap {
	text-align: center;
}

.nc-crm-button-wrap.nc-crm-align-left {
	text-align: left;
}

.nc-crm-button-wrap.nc-crm-align-right {
	text-align: right;
}

/* Modal / lightbox trigger button - gold reads clearly against any page
   background, dark or light, so this needs no theme-specific tweaks. */
.nc-crm-open-button {
	background: var(--nc-crm-accent, #D4AF37);
	color: var(--nc-crm-button-text, #1a1a1a);
	border: none;
	padding: 10px 20px;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
}

.nc-crm-open-button:hover {
	background: var(--nc-crm-accent-hover, #b8952e);
}

/* Modal overlay */
.nc-crm-modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.65);
	z-index: 100000;
	padding: 20px;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
}

.nc-crm-modal-overlay.nc-crm-modal-open {
	display: flex;
}

.nc-crm-modal-box {
	background: var(--nc-crm-bg);
	color: var(--nc-crm-text);
	border: 1px solid var(--nc-crm-border);
	border-radius: 8px;
	padding: 32px 28px 24px;
	max-width: 460px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	box-sizing: border-box;
}

@media (min-width: 900px) {
	.nc-crm-modal-box {
		max-width: 560px;
		padding: 36px 40px 28px;
	}
}

.nc-crm-modal-close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: var(--nc-crm-text-muted);
	padding: 4px 8px;
}

.nc-crm-modal-close:hover {
	color: var(--nc-crm-accent);
}
