/* RECENTRE Initial Needs Assessment Form */

.rcna-wrap {
	max-width: 760px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: #1a1a2e;
}

.rcna-header {
	border-bottom: 3px solid #2d6a4f;
	padding-bottom: 16px;
	margin-bottom: 28px;
}

.rcna-header h2 {
	font-size: 1.6rem;
	font-weight: 700;
	color: #1b4332;
	margin: 0 0 4px;
}

.rcna-subtitle {
	font-size: 0.875rem;
	color: #6b7280;
	margin: 0;
}

/* ── Participant ID field ─────────────────────────── */

.rcna-field {
	margin-bottom: 24px;
}

.rcna-field label {
	display: block;
	font-weight: 600;
	font-size: 0.925rem;
	margin-bottom: 6px;
	color: #111827;
}

.rcna-required {
	color: #dc2626;
	margin-left: 2px;
}

.rcna-field input[type="text"] {
	width: 100%;
	max-width: 320px;
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 0.95rem;
	color: #111827;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.15s;
}

.rcna-field input[type="text"]:focus {
	outline: none;
	border-color: #2d6a4f;
	box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}

.rcna-field-hint {
	font-size: 0.8rem;
	color: #6b7280;
	margin: 5px 0 0;
}

/* ── Domain rows ──────────────────────────────────── */

.rcna-domain {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	margin-bottom: 16px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.rcna-domain__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	background: #f9fafb;
	border-bottom: 1px solid #e5e7eb;
	gap: 16px;
}

.rcna-domain__title {
	font-weight: 600;
	font-size: 0.95rem;
	color: #111827;
	flex: 1;
}

/* ── Yes / No toggle ─────────────────────────────── */

.rcna-yesno {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.rcna-yesno__option {
	cursor: pointer;
}

.rcna-yesno__option input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.rcna-yesno__option span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 60px;
	padding: 7px 16px;
	border: 2px solid #d1d5db;
	border-radius: 6px;
	font-size: 0.875rem;
	font-weight: 600;
	color: #6b7280;
	background: #fff;
	transition: all 0.15s;
	user-select: none;
}

.rcna-yesno__option input[type="radio"]:checked + span {
	border-color: #2d6a4f;
	background: #2d6a4f;
	color: #fff;
}

.rcna-yesno__option:hover span {
	border-color: #2d6a4f;
	color: #2d6a4f;
}

.rcna-yesno__option input[type="radio"]:focus-visible + span {
	outline: 3px solid #2d6a4f;
	outline-offset: 2px;
}

/* ── Notes textarea ──────────────────────────────── */

.rcna-domain__notes {
	padding: 14px 20px;
}

.rcna-domain__notes textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 0.875rem;
	color: #374151;
	background: #fff;
	resize: vertical;
	box-sizing: border-box;
	font-family: inherit;
	transition: border-color 0.15s;
}

.rcna-domain__notes textarea:focus {
	outline: none;
	border-color: #2d6a4f;
	box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}

.rcna-domain__notes textarea::placeholder {
	color: #9ca3af;
}

/* ── Status field ─────────────────────────────────── */

.rcna-field--status {
	margin-top: 24px;
}

.rcna-field--status select {
	padding: 9px 14px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 0.925rem;
	background: #fff;
	color: #111827;
	min-width: 180px;
}

/* ── Actions ──────────────────────────────────────── */

.rcna-actions {
	margin-top: 28px;
}

.rcna-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 28px;
	border: none;
	border-radius: 8px;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, transform 0.1s;
}

.rcna-btn--primary {
	background: #2d6a4f;
	color: #fff;
}

.rcna-btn--primary:hover {
	background: #1b4332;
}

.rcna-btn--primary:active {
	transform: scale(0.98);
}

.rcna-btn--primary:disabled {
	background: #6b7280;
	cursor: not-allowed;
}

/* ── Spinner ──────────────────────────────────────── */

.rcna-btn__spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: rcna-spin 0.7s linear infinite;
}

.rcna-btn--loading .rcna-btn__spinner {
	display: inline-block;
}

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

/* ── Notice ───────────────────────────────────────── */

.rcna-notice {
	margin-top: 16px;
	padding: 14px 18px;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 500;
}

.rcna-notice--success {
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #6ee7b7;
}

.rcna-notice--error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fca5a5;
}

/* ── Accessibility ────────────────────────────────── */

.rcna-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ── Responsive ───────────────────────────────────── */

@media (max-width: 540px) {
	.rcna-domain__header {
		flex-direction: column;
		align-items: flex-start;
	}
}
