/* ============================================================
   Entre Parejas – Cuestionario DRI v1.2 | Frontend Styles
   ============================================================ */

.eft-quiz-wrapper {
	max-width: 740px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	color: #2c2c2c;
}

/* ── Steps ── */
.eft-step { display: none; }
.eft-step--active {
	display: block;
	animation: eft-fadein 0.35s ease both;
}
@keyframes eft-fadein {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ── Banner flujo pareja ── */
.eft-partner-banner {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	background: #e8f4fd;
	border: 1.5px solid #90caf9;
	border-radius: 10px;
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	font-size: 0.95rem;
	color: #1565c0;
	line-height: 1.55;
}
.eft-partner-banner-icon { font-size: 1.3rem; flex-shrink: 0; }

/* ── Header ── */
.eft-quiz-header {
	text-align: center;
	margin-bottom: 2rem;
}
.eft-quiz-title {
	font-size: 1.75rem;
	font-weight: 800;
	color: #1a1a1a;
	margin: 0 0 0.5rem;
	line-height: 1.2;
}
.eft-dri-badge {
	display: inline-block;
	background: #c0622a;
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
	padding: 0.15rem 0.55rem;
	border-radius: 5px;
	letter-spacing: 0.06em;
	vertical-align: middle;
	margin-left: 4px;
}
.eft-quiz-subtitle {
	color: #666;
	font-size: 1rem;
	max-width: 580px;
	margin: 0 auto;
}

/* ── Fields ── */
.eft-field {
	margin-bottom: 1.25rem;
}
.eft-field > label,
.eft-field-label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.45rem;
	color: #333;
}
.eft-field--half {
	max-width: 200px;
}

/* Text / email inputs */
.eft-field input[type="email"],
.eft-field input[type="number"],
.eft-field select {
	width: 100%;
	padding: 0.75rem 1rem;
	font-size: 1rem;
	border: 2px solid #d8d0c8;
	border-radius: 8px;
	box-sizing: border-box;
	background: #fff;
	transition: border-color 0.2s;
	appearance: none;
	-webkit-appearance: none;
}
.eft-field input[type="number"] {
	max-width: 120px;
}
.eft-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	padding-right: 2.5rem;
}
.eft-field input:focus,
.eft-field select:focus {
	border-color: #c0622a;
	outline: none;
	box-shadow: 0 0 0 3px rgba(192, 98, 42, 0.15);
}

/* ── Choice group (género) ── */
.eft-choice-group {
	display: flex;
	gap: 0.6rem;
	flex-wrap: wrap;
}
.eft-choice-label {
	cursor: pointer;
}
.eft-choice-label input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}
.eft-choice-btn {
	display: inline-flex;
	align-items: center;
	padding: 0.55rem 1.1rem;
	border: 2px solid #d8d0c8;
	border-radius: 50px;
	font-size: 0.92rem;
	font-weight: 600;
	color: #666;
	transition: all 0.15s;
	user-select: none;
}
.eft-choice-label:hover .eft-choice-btn {
	border-color: #c0622a;
	color: #c0622a;
}
.eft-choice-label input:checked + .eft-choice-btn {
	background: #c0622a;
	border-color: #c0622a;
	color: #fff;
}
.eft-choice-label input:focus-visible + .eft-choice-btn {
	outline: 3px solid #c0622a;
	outline-offset: 2px;
}

/* ── Consent ── */
.eft-consent-field {
	background: #fdf5ee;
	border: 1px solid #e8d5c0;
	border-radius: 10px;
	padding: 1rem 1.25rem;
}
.eft-consent-label {
	display: flex !important;
	align-items: flex-start;
	gap: 0.65rem;
	font-weight: normal !important;
	cursor: pointer;
	color: #444;
}
.eft-consent-label input[type="checkbox"] {
	margin-top: 0.18rem;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: #c0622a;
}
.eft-consent-label a { color: #c0622a; text-decoration: underline; }
.eft-consent-label a:hover { color: #8b3e16; }

/* ── Errors ── */
.eft-error {
	display: block;
	color: #b91c1c;
	font-size: 0.85rem;
	margin-top: 0.35rem;
	min-height: 1.2em;
}

/* ── Notice (ya emparejado) ── */
.eft-notice {
	background: #fff8e1;
	border: 1px solid #ffe082;
	border-radius: 8px;
	padding: 0.75rem 1rem;
	font-size: 0.88rem;
	color: #5f4200;
	margin-bottom: 1.25rem;
}

/* ── Buttons ── */
.eft-btn {
	display: inline-block;
	padding: 0.85rem 2rem;
	font-size: 1rem;
	font-weight: 700;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	transition: filter 0.2s, transform 0.1s;
	line-height: 1.3;
}
.eft-btn:hover { filter: brightness(0.9); transform: translateY(-2px); }
.eft-btn:active { transform: translateY(0); }
.eft-btn--primary {
	background: #c0622a;
	color: #fff;
	width: 100%;
	margin-top: 0.5rem;
}
.eft-btn--primary:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
	filter: none;
}
.eft-btn--cta { display: block; background: #9b1c1c; color: #fff; margin-top: 0.75rem; }
.eft-btn--instagram {
	display: inline-block;
	background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
	color: #fff;
	margin-top: 0.5rem;
}
.eft-link-btn {
	display: block;
	width: 100%;
	margin-top: 0.75rem;
	background: none;
	border: none;
	color: #999;
	font-size: 0.88rem;
	cursor: pointer;
	text-align: center;
	padding: 0.25rem;
	text-decoration: underline;
}
.eft-link-btn:hover { color: #555; }

/* ── Scale legend (preguntas) ── */
.eft-scale-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.25rem;
	justify-content: center;
	font-size: 0.88rem;
	color: #555;
	background: #fdf5ee;
	border: 1px solid #e8d5c0;
	padding: 0.7rem 1rem;
	border-radius: 8px;
	margin-bottom: 0.75rem;
}
.eft-quiz-instructions {
	font-size: 0.93rem;
	color: #666;
	margin: 0.25rem 0 0;
}

/* ── Subscales ── */
.eft-subscale { border: none; padding: 0; margin: 2rem 0; }
.eft-subscale-legend {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	width: 100%;
	padding-bottom: 0.75rem;
	border-bottom: 3px solid #e8d5c0;
	margin-bottom: 1rem;
}
.eft-subscale-key { font-size: 1.05rem; font-weight: 800; color: #c0622a; }
.eft-subscale-desc { font-size: 0.88rem; color: #999; font-style: italic; }

/* ── Questions ── */
.eft-question {
	background: #fff;
	border: 2px solid #eae4dc;
	border-radius: 12px;
	padding: 1rem 1.25rem;
	margin-bottom: 0.65rem;
	transition: border-color 0.18s, background 0.18s;
}
.eft-question--answered { border-color: #c0622a; background: #fdf5ee; }
.eft-question-text { margin: 0 0 0.75rem; font-size: 0.95rem; line-height: 1.55; color: #333; }
.eft-q-num { font-weight: 800; color: #c0622a; margin-right: 0.3rem; }

/* ── Radio buttons (cuestionario) ── */
.eft-radio-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.eft-radio-label { cursor: pointer; }
.eft-radio-label input[type="radio"] {
	position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.eft-radio-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 2px solid #d8d0c8;
	border-radius: 50%;
	font-weight: 700;
	font-size: 1rem;
	color: #999;
	transition: all 0.15s;
	user-select: none;
}
.eft-radio-label:hover .eft-radio-btn { border-color: #c0622a; color: #c0622a; }
.eft-radio-label input:checked + .eft-radio-btn { background: #c0622a; border-color: #c0622a; color: #fff; }
.eft-radio-label input:focus-visible + .eft-radio-btn { outline: 3px solid #c0622a; outline-offset: 2px; }

/* ── Progress ── */
.eft-progress-wrap { margin: 2rem 0 0.5rem; }
.eft-progress-bar-track {
	background: #e8e0d8;
	border-radius: 50px;
	height: 8px;
	overflow: hidden;
}
.eft-progress-bar {
	background: linear-gradient(90deg, #c0622a, #e07a3a);
	height: 100%;
	border-radius: 50px;
	transition: width 0.3s ease;
}
.eft-progress-label {
	display: block;
	text-align: center;
	font-size: 0.83rem;
	color: #999;
	margin: 0.5rem 0 1.5rem;
}

/* ============================================================
   Results
   ============================================================ */
.eft-results {
	background: var(--eft-bg, #fdf5ee);
	color: var(--eft-color, #5a2a0a);
	border-radius: 18px;
	padding: 2.25rem;
	border: 2px solid var(--eft-color, #c0622a);
}
.eft-results-header { text-align: center; margin-bottom: 2rem; }
.eft-results-eyebrow {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	opacity: 0.65;
	margin-bottom: 0.25rem;
}
.eft-results-disclaimer { font-size: 0.88rem; font-style: italic; opacity: 0.7; margin-bottom: 1.5rem; }
.eft-score-badge { display: inline-flex; align-items: baseline; gap: 0.2rem; margin-bottom: 0.4rem; }
.eft-score-number { font-size: 5rem; font-weight: 900; line-height: 1; }
.eft-score-max { font-size: 1.6rem; opacity: 0.5; }
.eft-score-label { font-size: 1.15rem; font-weight: 800; margin: 0; }

.eft-subscales {
	background: rgba(255,255,255,0.45);
	border-radius: 12px;
	padding: 1.25rem 1.5rem;
	margin-bottom: 2rem;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}
.eft-subscale-result { display: flex; align-items: center; gap: 0.75rem; font-size: 0.93rem; }
.eft-subscale-result-key { flex: 1; font-weight: 600; }
.eft-subscale-result-score { font-weight: 800; min-width: 45px; text-align: right; }
.eft-subscale-result-level {
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.2rem 0.75rem;
	border-radius: 50px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	min-width: 60px;
	text-align: center;
}
.eft-level--high { background: #bbf7d0; color: #14532d; }
.eft-level--mid  { background: #fef3c7; color: #92400e; }
.eft-level--low  { background: #fecaca; color: #7f1d1d; }

.eft-feedback {
	background: rgba(255,255,255,0.6);
	border-radius: 12px;
	padding: 1.5rem 1.75rem;
	margin-bottom: 1.75rem;
	font-size: 1rem;
	line-height: 1.8;
}
.eft-feedback p { margin: 0; }

.eft-recommendation {
	background: rgba(255,255,255,0.5);
	border-left: 5px solid var(--eft-color, #9b1c1c);
	padding: 1.25rem 1.5rem;
	border-radius: 0 12px 12px 0;
	margin-bottom: 1.75rem;
}
.eft-recommendation p { margin-bottom: 0.5rem; font-style: italic; font-size: 0.97rem; }

.eft-reflection { margin-bottom: 1.75rem; }
.eft-reflection h3 {
	font-size: 0.8rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.65;
	margin: 0 0 0.75rem;
}
.eft-reflection ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.eft-reflection li { padding-left: 1.4rem; position: relative; font-size: 0.94rem; line-height: 1.55; }
.eft-reflection li::before { content: '›'; position: absolute; left: 0; font-weight: 700; opacity: 0.55; }

/* Leyenda suave de compartir */
.eft-share-legend {
	background: rgba(255,255,255,0.5);
	border: 1px dashed rgba(0,0,0,0.15);
	border-radius: 10px;
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	font-size: 0.92rem;
	font-style: italic;
	opacity: 0.8;
}
.eft-share-legend p { margin: 0; }

.eft-closing {
	font-size: 0.88rem;
	font-style: italic;
	opacity: 0.65;
	border-top: 1px solid rgba(0,0,0,0.1);
	padding-top: 1.25rem;
	margin-bottom: 1.75rem;
}
.eft-social { text-align: center; }
.eft-social p { font-size: 0.93rem; margin-bottom: 0.5rem; }

/* ── Paso 4: Tarjeta de invitación ── */
.eft-invite-card {
	background: #fdf5ee;
	border: 2px solid #e8d5c0;
	border-radius: 18px;
	padding: 2rem;
	text-align: center;
	margin-top: 1.5rem;
}
.eft-invite-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.eft-invite-title {
	font-size: 1.25rem;
	font-weight: 800;
	color: #1a1a1a;
	margin: 0 0 0.5rem;
}
.eft-invite-desc {
	font-size: 0.95rem;
	color: #666;
	line-height: 1.6;
	max-width: 480px;
	margin: 0 auto 1.5rem;
}
.eft-invite-card .eft-field {
	text-align: left;
	max-width: 400px;
	margin: 0 auto 0.5rem;
}
.eft-invite-card .eft-btn--primary {
	max-width: 400px;
	margin: 0.5rem auto 0;
}
.eft-invite-success {
	padding: 1rem;
	background: #e8f5e9;
	border-radius: 10px;
	color: #1b5e20;
	margin-top: 1rem;
}
.eft-invite-success-icon { font-size: 1.5rem; display: block; margin-bottom: 0.25rem; }
.eft-invite-success p { margin: 0; font-weight: 600; }

/* ── Responsive ── */
@media (max-width: 580px) {
	.eft-quiz-title   { font-size: 1.35rem; }
	.eft-radio-btn    { width: 38px; height: 38px; font-size: 0.9rem; }
	.eft-score-number { font-size: 3.5rem; }
	.eft-results      { padding: 1.25rem; }
	.eft-subscale-result { flex-wrap: wrap; }
	.eft-subscale-result-key { width: 100%; }
	.eft-choice-group { gap: 0.4rem; }
	.eft-invite-card  { padding: 1.25rem; }
	.eft-btn--instagram { display: block; }
}
