/* NoticePress submission form. */

.np-form {
	max-width: 720px;
	margin: 0 auto;
}

.np-form__title {
	margin: 0 0 1rem;
}

.np-fieldset {
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 1.25rem 1.25rem 0.5rem;
	margin: 0 0 1.25rem;
}

.np-fieldset legend {
	font-weight: 700;
	padding: 0 0.5rem;
}

.np-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.np-row > .np-field {
	flex: 1 1 15rem;
}

.np-field {
	margin: 0 0 1rem;
}

.np-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.np-field input[type="text"],
.np-field input[type="email"],
.np-field input[type="date"],
.np-field textarea {
	width: 100%;
	padding: 0.55rem 0.7rem;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font: inherit;
	box-sizing: border-box;
}

.np-required {
	color: #b91c1c;
}

.np-help {
	display: block;
	font-size: 0.85em;
	color: #64748b;
	margin-top: 0.25rem;
}

.np-field-error {
	display: block;
	color: #b91c1c;
	font-size: 0.85em;
	margin-top: 0.25rem;
}

.np-date-modes label {
	display: inline-block;
	font-weight: 400;
	margin-right: 1.25rem;
}

.np-addons {
	margin: 0 0 1rem;
}

.np-addons__label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.np-addon {
	display: block;
	margin-bottom: 0.35rem;
}

.np-base-price,
.np-total {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.np-total {
	border-top: 1px solid #e2e8f0;
	padding-top: 0.75rem;
	font-size: 1.1em;
}

.np-card-element {
	padding: 0.75rem;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
	margin-bottom: 0.5rem;
}

/*
 * Secondary action. A bare <button> inherits the browser's grey system chrome,
 * which reads as a disabled control sitting inside the fieldset.
 */
.np-add-date {
	font: inherit;
	font-weight: 600;
	color: #1d4ed8;
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 0.5rem 1rem;
	cursor: pointer;
}

.np-add-date:hover,
.np-add-date:focus {
	border-color: #1d4ed8;
	background: #f8faff;
}

.np-remove-date {
	font: inherit;
	font-size: 0.85em;
	color: #b91c1c;
	background: none;
	border: 0;
	padding: 0.25rem 0.5rem;
	cursor: pointer;
	text-decoration: underline;
}

.np-specific-date {
	display: flex;
	align-items: flex-end;
	gap: 0.5rem;
}

.np-specific-date > .np-specific-date__field {
	flex: 1 1 auto;
}

.np-submit {
	padding: 0.75rem 1.75rem;
	font: inherit;
	font-weight: 700;
	border: 0;
	border-radius: 6px;
	background: #1d4ed8;
	color: #fff;
	cursor: pointer;
}

.np-submit[disabled] {
	opacity: 0.6;
	cursor: progress;
}

.np-alert,
.np-form-error {
	padding: 0.75rem 1rem;
	border-radius: 6px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
	margin-bottom: 1rem;
}

.np-success {
	padding: 1.25rem;
	border-radius: 8px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
}

.np-test-badge {
	display: inline-block;
	background: #f59e0b;
	color: #fff;
	font-size: 0.8em;
	font-weight: 700;
	letter-spacing: 0.03em;
	padding: 0.25rem 0.6rem;
	border-radius: 4px;
}

/* Honeypot: off-screen rather than display:none, which some bots detect. */
.np-hp {
	position: absolute !important;
	left: -9999px !important;
	height: 1px;
	overflow: hidden;
}

.np-debug {
	margin: 0.75rem 0 0;
	padding: 0.6rem 0.75rem;
	background: #fff;
	border: 1px dashed #fca5a5;
	border-radius: 4px;
	font-size: 0.8em;
	white-space: pre-wrap;
	color: #7f1d1d;
}

/* Live measurement, shown beside the price it produces. */
.np-quote {
	margin: 0 0 0.75rem;
	padding: 0.5rem 0.75rem;
	background: #f1f6f2;
	border: 1px solid #cfe3d5;
	border-radius: 6px;
}

.np-quote__measure {
	margin: 0;
	font-size: 0.85em;
	color: #3c6b47;
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.25rem;
}
