/* =========================================================
   Plugin Certificados — Quiz styles
   ========================================================= */

.cert-quiz-wrap {
	max-width: 680px;
	margin: 0 auto;
}

/* Notices */
.cert-notice--error,
.cert-error {
	padding: .75rem 1rem;
	border-radius: 8px;
	margin-bottom: 1.2rem;
	background: #fef2f2;
	border: 1px solid #fca5a5;
	color: #991b1b;
}

/* User fields */
.cert-field {
	margin-bottom: 1rem;
}

.cert-field label {
	display: block;
	margin-bottom: .35rem;
	font-weight: 500;
	font-size: .95rem;
}

.cert-field input[type="text"],
.cert-field input[type="email"] {
	width: 100%;
	padding: .6rem .85rem;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 1rem;
	box-sizing: border-box;
}

.cert-field input:focus {
	outline: none;
	border-color: #9ca3af;
	box-shadow: none;
}

.cert-required { color: #dc2626; }
.cert-optional { color: #9ca3af; font-size: .8em; font-weight: 400; }

/* Questions */
.cert-question {
	margin-bottom: 1.6rem;
}

.cert-question__text {
	font-weight: 600;
	margin: 0 0 .6rem;
	line-height: 1.5;
}

.cert-question__num {
	color: #6b7280;
	margin-right: .25rem;
}

.cert-question__image {
	margin: 0 0 .8rem;
}

.cert-question__img {
	max-width: 100%;
	max-height: 280px;
	border-radius: 6px;
	display: block;
}

.cert-question__note {
	font-size: .82rem;
	color: #6b7280;
	margin: -.2rem 0 .7rem;
	font-style: italic;
	line-height: 1.5;
}

.cert-options {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: .35rem;
}

.cert-option label {
	display: flex;
	align-items: center;
	gap: .6rem;
	cursor: pointer;
	padding: .5rem .7rem;
	border-radius: 6px;
	border: 1px solid #e5e7eb;
}

.cert-option label:hover {
	background: #f9fafb;
	border-color: #9ca3af;
}

.cert-option input[type="radio"] {
	flex-shrink: 0;
}

/* Submit */
.cert-submit-wrap {
	margin-top: 1.8rem;
}

/* ---- Button ---- */
.cert-btn {
	display: inline-block;
	padding: .65rem 1.6rem;
	border-radius: 6px;
	font-size: .95rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	border: none;
	transition: opacity .15s;
	line-height: 1;
}

.cert-btn:hover  { opacity: .82; }

.cert-btn--primary {
	background: #12715B;
	color: #fff;
}

.cert-btn--secondary {
	background: #F5EEE9;
	color: #374151;
	border: 1px solid #4CAF50;
}

/* Result — fail */
.cert-result {
	text-align: center;
	padding: 2.5rem 1.5rem;
	border-radius: 12px;
	background: #fef2f2;
	border: 1px solid #fca5a5;
}

.cert-result__icon {
	font-size: 3rem;
	color: #dc2626;
	line-height: 1;
	margin-bottom: .4rem;
}

.cert-result__title {
	font-size: 1.5rem;
	color: #991b1b;
	margin: 0 0 .6rem;
}

/* Neutralise any ::before/::after the theme may inject into headings */
.cert-quiz-wrap h1::before, .cert-quiz-wrap h1::after,
.cert-quiz-wrap h2::before, .cert-quiz-wrap h2::after {
	content: none !important;
	display: none !important;
}

.cert-result__score  { font-size: 1.05rem; margin-bottom: .4rem; }
.cert-result__info   { color: #6b7280; margin-bottom: 1.4rem; }

/* Divider between user section and questions */
.cert-divider {
	border: none;
	border-top: 1px solid #e5e7eb;
	margin: 1.6rem 0;
}
