/* ==========================================================================
   Canal de Denúncias — estilo do formulário
   As cores principais estão em variáveis: troque --cd-teal para mudar o tema.
   ========================================================================== */
.cd-wrap {
	--cd-teal: #000000;          /* cor principal (botões, aviso, enviar) */
	--cd-teal-dark: #B3974E;     /* hover */
	--cd-slate: #33475b;         /* títulos escuros */
	--cd-label: #55606b;         /* rótulos */
	--cd-help: #7b8794;          /* textos auxiliares */
	--cd-border: #d4d9dd;        /* bordas de inputs */
	--cd-card-border: #e6e8ea;

	max-width: 820px;
	margin: 0 auto;
	font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--cd-label);
	line-height: 1.5;
	box-sizing: border-box;
}
.cd-wrap *, .cd-wrap *::before, .cd-wrap *::after { box-sizing: border-box; }

/* ---- Abas ---- */
.cd-tabs {
	display: flex;
	gap: 18px;
	margin-bottom: 26px;
}
.cd-tab {
	flex: 1;
	padding: 14px 10px;
	border: none;
	border-radius: 4px;
	background: var(--cd-teal);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .5px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .15s, opacity .15s;
}
.cd-tab:hover { background: var(--cd-teal-dark); }
.cd-tab:not(.is-active) { opacity: .78; }

/* ---- Card ---- */
.cd-card {
	background: #fff;
	border: 1px solid var(--cd-card-border);
	border-radius: 6px;
	padding: 34px 40px 40px;
	box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

/* ---- Títulos ---- */
.cd-h2 {
	font-size: 22px;
	font-weight: 400;
	color: var(--cd-label);
	margin: 0 0 16px;
}
.cd-h3 {
	font-size: 17px;
	font-weight: 700;
	color: var(--cd-slate);
	margin: 26px 0 4px;
}
.cd-help {
	font-size: 13px;
	color: var(--cd-help);
	margin: 4px 0 14px;
}

/* ---- Aviso (caixa teal) ---- */
.cd-aviso {
	background: var(--cd-teal);
	color: #fff;
	font-size: 13px;
	line-height: 1.55;
	text-align: justify;
	padding: 16px 18px;
	border-radius: 4px;
	margin: 8px 0 26px;
}

/* ---- Campos ---- */
.cd-field { margin-bottom: 20px; position: relative; }
.cd-field > label {
	display: block;
	font-size: 14px;
	color: var(--cd-label);
	margin-bottom: 7px;
}
.cd-field label em { font-style: normal; color: var(--cd-help); }

.cd-field input[type=text],
.cd-field input[type=email],
.cd-field input[type=password],
.cd-field select,
.cd-field textarea {
	width: 100%;
	font-size: 14px;
	color: #3a3a3a;
	background: #fff;
	border: 1px solid var(--cd-border);
	border-radius: 4px;
	padding: 11px 12px;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
	font-family: inherit;
}
.cd-field textarea { resize: vertical; min-height: 120px; }
.cd-field input:focus,
.cd-field select:focus,
.cd-field textarea:focus {
	border-color: var(--cd-teal);
	box-shadow: 0 0 0 2px rgba(43,160,180,.15);
}
.cd-field input::placeholder,
.cd-field textarea::placeholder { color: #9aa4ad; }

/* seta do select */
.cd-field select {
	appearance: none;
	-webkit-appearance: none;
	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='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 34px;
}

/* contador 0/255 */
.cd-count {
	position: absolute;
	right: 2px;
	bottom: -18px;
	font-size: 12px;
	color: var(--cd-help);
}

/* ---- Radios ---- */
.cd-radio-inline { display: flex; gap: 26px; margin-bottom: 22px; }
.cd-radio-stack { display: flex; flex-direction: column; gap: 10px; }
.cd-radio {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--cd-label);
	cursor: pointer;
}
.cd-radio input { accent-color: var(--cd-teal); width: 17px; height: 17px; cursor: pointer; }

/* ---- Anexos ---- */
.cd-anexos .cd-total { font-size: 13px; color: var(--cd-teal); margin: 4px 0 12px; font-weight: 600; }
.cd-file-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cd-file-label {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--cd-border);
	border-radius: 4px;
	padding: 9px 12px;
	font-size: 13px;
	color: #9aa4ad;
	cursor: pointer;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.cd-file-label.has-file { color: #3a3a3a; }
.cd-file-label .clip { color: #6b7580; font-size: 15px; }
.cd-file-row input[type=file] { display: none; }
.cd-file-del {
	background: #6c757d;
	border: none;
	color: #fff;
	width: 42px;
	height: 38px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 15px;
}
.cd-file-del:hover { background: #5a6268; }
.cd-btn-add {
	display: block;
	margin: 14px auto 0;
	background: #6c757d;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 10px 18px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .5px;
	text-transform: uppercase;
	cursor: pointer;
}
.cd-btn-add:hover { background: #5a6268; }

/* ---- Enviar ---- */
.cd-submit {
	display: block;
	width: 100%;
	margin-top: 30px;
	background: var(--cd-teal);
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 15px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .5px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .15s;
}
.cd-submit:hover { background: var(--cd-teal-dark); }
.cd-submit:disabled { opacity: .6; cursor: default; }

/* ---- Mensagens ---- */
.cd-msg {
	margin-top: 18px;
	padding: 14px 16px;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.5;
}
.cd-msg.is-error { background: #fdecea; color: #b3261e; border: 1px solid #f5c2be; }
.cd-msg.is-ok { background: #e7f6ef; color: #1e7a4d; border: 1px solid #b6e3ca; }
.cd-msg code { background: rgba(0,0,0,.06); padding: 2px 6px; border-radius: 3px; font-size: 14px; }

/* ---- Responsivo ---- */
@media (max-width: 640px) {
	.cd-card { padding: 24px 18px 30px; }
	.cd-tabs { flex-direction: column; }
	.cd-radio-inline { gap: 20px; }
}
