/* =========================================================
   Condominio Trasparente — stile form frontend condiviso
   ========================================================= */

.ct-form {
	background: #fafbfc;
	border: 1px solid #dde3e8;
	border-radius: 8px;
	padding: 28px 32px;
	margin: 20px 0 32px;
	max-width: 900px;
}

.ct-form h3,
.ct-form h4 {
	margin-top: 0;
	margin-bottom: 20px;
	font-size: 1.25em;
}

/* Griglia: due colonne su schermi larghi, una colonna su mobile */
.ct-form-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px 24px;
}

.ct-field {
	display: flex;
	flex-direction: column;
}

.ct-field-full {
	grid-column: 1 / -1;
}

.ct-field label {
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 0.95em;
	color: #2c3e50;
}

.ct-field .ct-hint {
	font-size: 0.82em;
	color: #777;
	margin-top: 4px;
}

.ct-form input[type="text"],
.ct-form input[type="email"],
.ct-form input[type="tel"],
.ct-form input[type="number"],
.ct-form input[type="file"],
.ct-form select,
.ct-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	font-size: 1em;
	line-height: 1.4;
	border: 1px solid #c9d1d9;
	border-radius: 5px;
	background: #fff;
}

.ct-form textarea {
	min-height: 90px;
	resize: vertical;
}

.ct-form input:focus,
.ct-form select:focus,
.ct-form textarea:focus {
	outline: none;
	border-color: #2c3e50;
	box-shadow: 0 0 0 2px rgba(44,62,80,0.15);
}

.ct-form-azioni {
	grid-column: 1 / -1;
	margin-top: 8px;
	display: flex;
	gap: 10px;
}

.ct-form-azioni .button {
	padding: 10px 22px;
	height: auto;
	font-size: 1em;
	line-height: 1.3;
}

/* Sezione radio/checkbox per stato unità, ecc. */
.ct-radio-group {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	padding: 8px 0;
}

.ct-radio-group label {
	font-weight: 400;
	display: flex;
	align-items: center;
	gap: 6px;
}

.ct-sottosezione {
	grid-column: 1 / -1;
	background: #fff;
	border: 1px dashed #c9d1d9;
	border-radius: 6px;
	padding: 16px 18px;
	margin-top: 4px;
}

.ct-sottosezione-titolo {
	font-weight: 700;
	color: #2c3e50;
	margin-bottom: 12px;
	display: block;
}

/* Tabelle elenco: più leggibili, righe più alte */
.ct-tabella {
	width: 100%;
	border-collapse: collapse;
	margin: 10px 0 30px;
	background: #fff;
}

.ct-tabella th {
	text-align: left;
	background: #2c3e50;
	color: #fff;
	padding: 10px 12px;
	font-size: 0.9em;
}

.ct-tabella td {
	padding: 12px;
	border-bottom: 1px solid #eee;
	vertical-align: top;
}

.ct-tabella tr:hover td {
	background: #f7f9fa;
}

@media (max-width: 640px) {
	.ct-form-grid {
		grid-template-columns: 1fr;
	}
	.ct-form {
		padding: 20px;
	}
}
