/**
 * Photo picker on the quote form.
 *
 * Uses the brand tokens from nulook-brand so this looks like part of the form
 * rather than a bolted-on widget. Green stays on the CTA only (SC-006): the
 * "Add photos" button is a secondary outline, not a second green button
 * competing with "Send my quote request" directly below it.
 */

.nl-qp {
	margin: 0 0 22px;
}

.nl-qp-label {
	display: block;
	font-family: var(--nl-font-body, system-ui, sans-serif);
	font-weight: 600;
	font-size: 15px;
	color: var(--nl-ink, #16233a);
	margin-bottom: 4px;
}

.nl-qp-hint {
	margin: 0 0 10px;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--nl-soft, #647087);
}

/* The real input is driven by the button, but it stays focusable and reachable
   by keyboard and by assistive tech rather than being display:none. */
.nl-qp-file {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.nl-qp-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 20px;
	font-family: var(--nl-font-body, system-ui, sans-serif);
	font-weight: 600;
	font-size: 15px;
	color: var(--nl-teal, #2d5ca0);
	background: var(--nl-white, #fff);
	border: 1.5px solid var(--nl-teal, #2d5ca0);
	border-radius: var(--nl-radius-sm, 10px);
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.nl-qp-btn::before {
	content: "＋";
	font-size: 17px;
	line-height: 1;
}

.nl-qp-btn:hover,
.nl-qp-file:focus-visible + .nl-qp-btn {
	background: var(--nl-teal-soft, #e7eff8);
}

.nl-qp-btn:focus-visible {
	outline: 3px solid var(--nl-teal-l, #4a7fc0);
	outline-offset: 2px;
}

.nl-qp-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 12px;
}

.nl-qp-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	background: var(--nl-paper, #f4f7fb);
	border: 1px solid var(--nl-line, #dde5ef);
	border-radius: var(--nl-radius-sm, 10px);
}

.nl-qp-thumb {
	width: 46px;
	height: 46px;
	object-fit: cover;
	border-radius: 7px;
	flex: 0 0 auto;
	background: var(--nl-line, #dde5ef);
}

.nl-qp-name {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 14px;
	color: var(--nl-ink2, #37475f);
}

.nl-qp-item.is-uploading {
	opacity: .7;
}

.nl-qp-item.is-failed {
	border-color: #d9534f;
	background: #fdf1f1;
}

.nl-qp-spin {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
	border: 2px solid var(--nl-line, #dde5ef);
	border-top-color: var(--nl-teal, #2d5ca0);
	border-radius: 50%;
	animation: nl-qp-spin .7s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
	.nl-qp-spin { animation-duration: 2.4s; }
}

.nl-qp-remove {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	font-size: 19px;
	line-height: 1;
	color: var(--nl-soft, #647087);
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.nl-qp-remove:hover {
	background: var(--nl-line, #dde5ef);
	color: var(--nl-ink, #16233a);
}

.nl-qp-status {
	margin: 8px 0 0;
	font-size: 13.5px;
	min-height: 1.2em;
	color: var(--nl-soft, #647087);
}

.nl-qp-status.is-error {
	color: #b02a26;
}
