/* =====================================================================
   Petiție electronică — stil aliniat la restul portalului:
   navy #202B5D / albastru #1962AB / portocaliu #E2661F, Cabin (titluri),
   Nunito Sans (text) — ambele fonturi deja încărcate global de temă.
   ===================================================================== */

.cjmp-wrap {
	max-width: 760px;
	margin: 0 auto;
	font-family: 'Nunito Sans', sans-serif;
	color: #334155;
}

.cjmp-intro {
	font-size: 15px;
	color: #64748b;
	line-height: 1.55;
	margin: 0 0 26px;
}

/* --- Secțiuni (carduri) --- */
.cjmp-section {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	box-shadow: 0 2px 12px rgba(25, 98, 171, 0.07);
	padding: 24px 26px;
	margin-bottom: 22px;
}

.cjmp-section__head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 20px;
}

.cjmp-badge {
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #202B5D 0%, #1962AB 100%);
	color: #fff;
	font-family: 'Cabin', sans-serif;
	font-size: 17px;
	font-weight: 700;
}

.cjmp-section__title {
	font-family: 'Cabin', sans-serif;
	font-size: 19px;
	font-weight: 700;
	color: #202B5D;
	margin: 0 0 2px;
	line-height: 1.25;
}
.cjmp-section__desc {
	font-size: 13.5px;
	color: #94a3b8;
	margin: 0;
}

/* --- Comutator persoană fizică / juridică --- */
.cjmp-toggle {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}
.cjmp-toggle__opt {
	flex: 1 1 200px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 16px;
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	background: #f8fafc;
	color: #64748b;
	font-family: 'Cabin', sans-serif;
	font-size: 14.5px;
	font-weight: 700;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.cjmp-toggle__opt i { font-size: 15px; }
.cjmp-toggle__opt:hover { border-color: #1962AB; }
.cjmp-toggle__opt.is-active {
	border-color: #1962AB;
	background: #eff6ff;
	color: #1962AB;
}

/* --- Grid de câmpuri --- */
.cjmp-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 4px;
}
.cjmp-grid + .cjmp-grid { margin-top: 16px; }
.cjmp-field--full { grid-column: 1 / -1; }

.cjmp-field { display: flex; flex-direction: column; gap: 6px; }
.cjmp-field label {
	font-size: 13.5px;
	font-weight: 600;
	color: #475569;
}
.cjmp-req { color: #E2661F; }

.cjmp-field input[type="text"],
.cjmp-field input[type="email"],
.cjmp-field input[type="tel"],
.cjmp-field select,
.cjmp-field textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1.5px solid #e2e8f0;
	border-radius: 9px;
	font-family: 'Nunito Sans', sans-serif;
	font-size: 15px;
	color: #202B5D;
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.cjmp-field textarea { resize: vertical; min-height: 110px; }
.cjmp-field input:focus,
.cjmp-field select:focus,
.cjmp-field textarea:focus {
	outline: none;
	border-color: #1962AB;
	box-shadow: 0 0 0 3px rgba(25, 98, 171, .12);
}
.cjmp-field.has-error input,
.cjmp-field.has-error select,
.cjmp-field.has-error textarea {
	border-color: #dc2626;
}
.cjmp-field__error {
	font-size: 12.5px;
	color: #dc2626;
	min-height: 15px;
}

/* --- Zonă drag-and-drop --- */
.cjmp-dropzone {
	border: 2px dashed #cbd5e1;
	border-radius: 12px;
	padding: 32px 20px;
	text-align: center;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}
.cjmp-dropzone:hover,
.cjmp-dropzone:focus-visible {
	border-color: #1962AB;
	background: #f8fbff;
}
.cjmp-dropzone.is-dragover {
	border-color: #E2661F;
	background: #fff7f0;
}
.cjmp-dropzone__icon {
	font-size: 30px;
	color: #94a3b8;
	margin-bottom: 10px;
	display: block;
}
.cjmp-dropzone__text {
	margin: 0 0 4px;
	font-size: 15px;
	color: #475569;
}
.cjmp-dropzone__link {
	color: #1962AB;
	font-weight: 700;
	text-decoration: underline;
}
.cjmp-dropzone__hint {
	margin: 0;
	font-size: 12.5px;
	color: #94a3b8;
}

.cjmp-filelist {
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.cjmp-filelist__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	background: #f8fafc;
	border: 1px solid #eef2f7;
	border-radius: 8px;
	font-size: 13.5px;
}
.cjmp-filelist__nume {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #202B5D;
	font-weight: 600;
}
.cjmp-filelist__marime { flex: 0 0 auto; color: #94a3b8; }
.cjmp-filelist__sterge {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border: none;
	border-radius: 50%;
	background: #fee2e2;
	color: #dc2626;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
}
.cjmp-filelist__sterge:hover { background: #fecaca; }

/* --- Consimțământ --- */
.cjmp-section--consimtamant { padding: 22px 26px; }
.cjmp-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
	font-size: 13.5px;
	line-height: 1.55;
	color: #475569;
}
.cjmp-checkbox input {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	accent-color: #1962AB;
}
.cjmp-link {
	background: none;
	border: none;
	padding: 0;
	color: #1962AB;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
	font-size: inherit;
}
.cjmp-legal {
	margin-top: 14px;
	padding: 14px 16px;
	background: #f8fafc;
	border-left: 3px solid #1962AB;
	border-radius: 6px;
	font-size: 12.5px;
	color: #64748b;
	line-height: 1.6;
}

/* --- Trimitere --- */
.cjmp-actions { text-align: center; }
.cjmp-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 13px 36px;
	border: none;
	border-radius: 10px;
	background: #E2661F;
	color: #fff;
	font-family: 'Cabin', sans-serif;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: filter .15s ease, transform .15s ease;
}
.cjmp-submit:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.cjmp-submit:disabled { opacity: .65; cursor: default; }
.cjmp-error--general {
	margin: 14px 0 0;
	color: #dc2626;
	font-size: 14px;
	font-weight: 600;
}

/* --- Honeypot (invizibil pentru oameni) --- */
.cjmp-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --- Panou de succes --- */
.cjmp-success {
	text-align: center;
	background: #fff;
	border: 1px solid #dcfce7;
	border-radius: 14px;
	box-shadow: 0 2px 12px rgba(21, 128, 61, .08);
	padding: 46px 30px;
}
.cjmp-success__icon {
	width: 62px;
	height: 62px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: #dcfce7;
	color: #15803d;
	font-size: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.cjmp-success__title {
	font-family: 'Cabin', sans-serif;
	font-size: 22px;
	color: #202B5D;
	margin: 0 0 10px;
}
.cjmp-success__numar {
	font-family: 'Cabin', sans-serif;
	font-size: 20px;
	font-weight: 700;
	color: #1962AB;
	margin: 0 0 12px;
}
.cjmp-success__text {
	font-size: 15px;
	color: #64748b;
	max-width: 460px;
	margin: 0 auto;
	line-height: 1.55;
}

/* --- Responsive --- */
@media (max-width: 640px) {
	.cjmp-section { padding: 20px 18px; }
	.cjmp-grid { grid-template-columns: 1fr; }
	.cjmp-toggle__opt { flex-basis: 100%; }
	.cjmp-submit { width: 100%; }
}
