/* ============================================================
   JM Currículos Pro — Campos e Inputs do Wizard
   ============================================================ */

/* Campos de entrada básicos */
.jmcv-field {
	margin-bottom: 18px;
}
.jmcv-field label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--ink);
}
.jmcv-field label small {
	font-weight: 400;
	color: var(--ink-soft);
}
.jmcv-field input,
.jmcv-field select,
.jmcv-field textarea {
	width: 100%;
	min-height: var(--field-h);
	padding: 0 18px;
	font: inherit;
	font-size: 16px;
	color: var(--ink);
	background: var(--card);
	border: 1.5px solid var(--line);
	border-radius: var(--radius);
	outline: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.jmcv-field textarea {
	min-height: 120px;
	padding: 14px 18px;
	resize: vertical;
	line-height: 1.6;
}
.jmcv-field select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2310212E' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 18px center;
	padding-right: 46px;
}
.jmcv-field input:focus,
.jmcv-field select:focus,
.jmcv-field textarea:focus {
	border-color: var(--ink);
	box-shadow: 0 0 0 4px rgba(16,33,46,.08);
}
.jmcv-grid2 {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
}
@media (min-width: 560px) {
	.jmcv-grid2 {
		grid-template-columns: 1fr 1fr;
		gap: 18px;
	}
}

/* Choice cards (Etapa 1 e templates) */
.jmcv-choice {
	display: grid;
	gap: 14px;
}
.jmcv-card {
	position: relative;
	cursor: pointer;
	display: block;
}
.jmcv-card input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.jmcv-card__face {
	display: block;
	padding: 22px 22px 22px 60px;
	background: var(--card);
	border: 1.5px solid var(--line);
	border-radius: var(--radius);
	transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.jmcv-card__face::before {
	content: "";
	position: absolute;
	left: 22px;
	top: 26px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid var(--line);
	background: #fff;
	transition: all .2s ease;
}
.jmcv-card__face b {
	display: block;
	font-family: "Space Grotesk", sans-serif;
	font-size: 18px;
	font-weight: 600;
}
.jmcv-card__face small {
	display: block;
	color: var(--ink-soft);
	margin-top: 4px;
	font-size: 14px;
}
.jmcv-card input:checked + .jmcv-card__face {
	border-color: var(--ink);
	box-shadow: 0 0 0 4px rgba(16,33,46,.07);
}
.jmcv-card input:checked + .jmcv-card__face::before {
	border-color: var(--accent);
	background: var(--accent);
	box-shadow: inset 0 0 0 4px #fff;
}
.jmcv-card input:focus-visible + .jmcv-card__face {
	box-shadow: 0 0 0 4px rgba(242,84,45,.25);
}

/* Período dividido da formação */
.jmcv-period-grid {
	display: flex;
	align-items: center;
	gap: 12px;
}
.jmcv-period-grid input {
	flex: 1;
	text-align: center;
}
.jmcv-period-grid span {
	color: var(--ink-soft);
	font-weight: 600;
	flex: 0 0 auto;
}

/* Blocos repetíveis */
.jmcv-rep__row {
	position: relative;
	padding: 22px;
	margin-bottom: 16px;
	background: var(--card);
	border: 1.5px solid var(--line);
	border-radius: var(--radius);
}
.jmcv-rep__del {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	border: none;
	border-radius: 50%;
	background: var(--paper);
	color: var(--ink-soft);
	font-size: 22px;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	padding: 0;
	margin: 0;
}
.jmcv-rep__del:hover {
	background: var(--accent);
	color: #fff;
}
.jmcv-add {
	width: 100%;
	min-height: 54px;
	border: 1.5px dashed var(--line);
	background: transparent;
	border-radius: var(--radius);
	font: inherit;
	font-weight: 600;
	color: var(--ink);
	cursor: pointer;
	transition: border-color .2s ease, color .2s ease;
}
.jmcv-add:hover {
	border-color: var(--accent);
	color: var(--accent);
}

/* Autocomplete list */
.jmcv-ac {
	position: relative;
}
.jmcv-ac__list {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% - 8px);
	z-index: 50;
	background: var(--card);
	border: 1.5px solid var(--ink);
	border-radius: var(--radius);
	box-shadow: 0 18px 40px rgba(16,33,46,.16);
	overflow: hidden;
	max-height: 280px;
	overflow-y: auto;
	display: flex !important;
	flex-direction: column !important;
}
.jmcv-ac__opt {
	display: block !important;
	width: 100% !important;
	text-align: left !important;
	border: none !important;
	background: none !important;
	padding: 14px 18px !important;
	font: inherit !important;
	font-size: 15px !important;
	color: var(--ink) !important;
	cursor: pointer !important;
	border-bottom: 1px solid var(--line) !important;
	border-radius: 0 !important;
	margin: 0 !important;
	float: none !important;
}
.jmcv-ac__opt:last-child {
	border-bottom: none !important;
}
.jmcv-ac__opt:hover {
	background: var(--paper) !important;
	color: var(--accent) !important;
}

/* Chips / Tags de Habilidades */
.jmcv-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 24px;
}
.jmcv-tag {
	padding: 12px 18px;
	border-radius: 99px;
	border: 1.5px solid var(--line);
	background: var(--card);
	font: inherit;
	font-size: 15px;
	color: var(--ink);
	cursor: pointer;
	transition: all .15s ease;
}
.jmcv-tag:hover {
	border-color: var(--ink);
}
.jmcv-tag.is-on {
	background: var(--ink);
	color: #fff;
	border-color: var(--ink);
}

/* Checkbox WhatsApp */
.jmcv-check {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
	cursor: pointer;
}
.jmcv-check input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
.jmcv-check__box {
	width: 24px;
	height: 24px;
	flex: 0 0 auto;
	background: #fff;
	border: 1.5px solid var(--line);
	border-radius: 7px;
	display: grid;
	place-items: center;
	transition: background .15s ease, border-color .15s ease;
}
.jmcv-check input:checked + .jmcv-check__box {
	background: var(--wpp);
	border-color: var(--wpp);
}
.jmcv-check input:checked + .jmcv-check__box::after {
	content: "";
	width: 6px;
	height: 11px;
	border: solid #fff;
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg);
	margin-top: -2px;
}
.jmcv-check input:focus-visible + .jmcv-check__box {
	box-shadow: 0 0 0 4px rgba(37,211,102,.3);
}
.jmcv-check__label {
	font-size: 14px;
	color: var(--ink-soft);
}

/* Campos exclusivos do Banco de Talentos */
.jmcv-field input[type="file"] { padding: 14px 18px; line-height: 1.4; }
.jmcv-filehint { display: block; color: var(--ink-soft); font-size: 13px; margin-top: 6px; }
.jmcv-radio { display: flex; flex-direction: column; gap: 10px; }
.jmcv-radio label {
	display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 16px;
	padding: 14px 18px; border: 1.5px solid var(--line); border-radius: var(--radius);
	background: var(--card); transition: border-color .15s ease;
}
.jmcv-radio label:hover { border-color: var(--ink); }
.jmcv-radio input { width: 20px; height: 20px; accent-color: var(--accent); flex: 0 0 auto; }
