/*
 * Confirme Mais: formulario das perguntas aos convidados (assets/js/confirmemais/guest_questions_form.js). Usado na tela de agradecimento do RSVP
 * (tema da pagina do convidado: --primary-color), na pagina do link pessoal (variaveis proprias em answer.css) e no app (modo organizador:
 * --bs-primary). So cores herdadas: o destaque vem de --gq-accent e o resto de currentColor, entao funciona em todo tema claro ou escuro.
 */
.gq {
	--gq-accent: var(--primary-color, var(--bs-primary, #3341b0));
	--gq-line: color-mix(in srgb, currentColor 18%, transparent);
	--gq-soft: color-mix(in srgb, currentColor 5%, transparent);
	--gq-muted: color-mix(in srgb, currentColor 68%, transparent);
	display: grid;
	gap: 14px;
	text-align: left;
}

.gq-title {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.25;
}

.gq-intro,
.gq-note {
	margin: -6px 0 0;
	color: var(--gq-muted);
	font-size: .95rem;
}

.gq-card {
	display: grid;
	gap: 16px;
	padding: 16px;
	border: 1px solid var(--gq-line);
	border-radius: 12px;
	background: var(--gq-soft);
}

.gq-card__title {
	font-weight: 700;
	font-size: 1rem;
}

.gq-q {
	display: grid;
	gap: 8px;
}

.gq-q__label {
	font-weight: 600;
	line-height: 1.35;
}

.gq-q__help {
	margin-top: -4px;
	color: var(--gq-muted);
	font-size: .875rem;
}

.gq-req {
	color: var(--gq-accent);
}

.gq-tag {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	margin-left: 8px;
	padding: 1px 8px;
	border: 1px solid var(--gq-line);
	border-radius: 999px;
	color: var(--gq-muted);
	font-size: .75rem;
	font-weight: 600;
	vertical-align: middle;
	white-space: nowrap;
}

.gq-lock {
	width: 12px;
	height: 12px;
	fill: currentColor;
	vertical-align: -1px;
	flex: none;
}

.gq-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.gq-pill {
	min-height: 40px;
	padding: 8px 14px;
	border: 1px solid var(--gq-line);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: .95rem;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}

.gq-pill:hover {
	border-color: var(--gq-accent);
}

.gq-pill:focus-visible,
.gq-input:focus-visible,
.gq-link:focus-visible,
.gq-consent input:focus-visible {
	outline: 2px solid var(--gq-accent);
	outline-offset: 2px;
}

/* escolhido: fundo suave + borda e marca de selecao na cor de destaque (legivel em tema claro e escuro) */
.gq-pill.is-on {
	border-color: var(--gq-accent);
	background: color-mix(in srgb, var(--gq-accent) 16%, transparent);
	font-weight: 600;
}

.gq-pill.is-on::before {
	content: "\2713\00a0";
	color: var(--gq-accent);
}

.gq-input {
	width: 100%;
	min-height: 42px;
	padding: 9px 12px;
	border: 1px solid var(--gq-line);
	border-radius: 10px;
	background: transparent;
	color: inherit;
	font: inherit;
}

.gq-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--gq-muted);
	font-size: .9rem;
	line-height: 1.4;
	cursor: pointer;
}

.gq-consent input {
	width: 18px;
	height: 18px;
	margin-top: 1px;
	flex: none;
	accent-color: var(--gq-accent);
}

.gq-error {
	margin: 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: color-mix(in srgb, #d93a3a 12%, transparent);
	color: inherit;
	font-size: .9rem;
}

.gq-error[hidden] {
	display: none;
}

.gq-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.gq-saved {
	color: var(--gq-muted);
	font-size: .9rem;
}

.gq-done {
	display: grid;
	gap: 4px;
	padding: 14px 16px;
	border: 1px solid var(--gq-line);
	border-left: 4px solid var(--gq-accent);
	border-radius: 12px;
}

.gq-done span {
	color: var(--gq-muted);
	font-size: .9rem;
}

.gq-link {
	justify-self: start;
	margin-top: 4px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--gq-accent);
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.gq-closed {
	margin: 0;
	color: var(--gq-muted);
}

/* app (modo organizador): segue o tema do app */
.gq--organizer {
	--gq-accent: var(--bs-primary);
}
