/* === CERCAMI CALLBACK — STILI === */

/* Frontend: bottone + form nella scheda azienda */
.ccb-frontend-wrap {
	margin: 16px 0;
}

.ccb-request-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	background: #1D3A33;
	color: #fff;
	border: none;
	border-radius: 25px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.2s, transform 0.1s;
}

.ccb-request-btn:hover {
	background: #2a5448;
	transform: translateY(-1px);
}

.ccb-request-btn:active {
	transform: translateY(0);
}

.ccb-form-container {
	margin-top: 12px;
	padding: 20px;
	background: #f9fbff;
	border: 1px solid #d0e0ff;
	border-radius: 12px;
	position: relative;
	max-width: 400px;
}

.ccb-form-close {
	position: absolute;
	top: 10px;
	right: 12px;
	background: none;
	border: none;
	font-size: 22px;
	color: #999;
	cursor: pointer;
	line-height: 1;
}

.ccb-form-close:hover {
	color: #333;
}

.ccb-form-container h4 {
	margin: 0 0 4px;
	font-size: 16px;
	color: #1D3A33;
}

.ccb-form-subtitle {
	margin: 0 0 16px;
	font-size: 13px;
	color: #666;
}

.ccb-field {
	margin-bottom: 12px;
}

.ccb-field label {
	display: block;
	margin-bottom: 4px;
	font-size: 13px;
	font-weight: 600;
	color: #333;
}

.ccb-optional {
	font-weight: 400;
	color: #999;
}

.ccb-field input,
.ccb-field textarea {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
	box-sizing: border-box;
	font-family: inherit;
}

.ccb-field input:focus,
.ccb-field textarea:focus {
	outline: none;
	border-color: #1D3A33;
}

.ccb-submit-btn {
	width: 100%;
	padding: 10px;
	background: #1D3A33;
	color: #fff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: background 0.2s;
}

.ccb-submit-btn:hover {
	background: #2a5448;
}

.ccb-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.ccb-form-message {
	margin-top: 10px;
	font-size: 13px;
	text-align: center;
}

.ccb-form-message.ccb-success {
	color: #28a745;
}

.ccb-form-message.ccb-error {
	color: #dc3545;
}

/* === PROFILO: pannello gestione === */
.ccb-profile-wrap {
	max-width: 760px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ccb-business-select {
	margin-bottom: 20px;
}

.ccb-business-select label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 14px;
}

.ccb-business-select select {
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
	width: 100%;
	max-width: 400px;
}

/* Toggle section */
.ccb-toggle-section {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 20px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.ccb-toggle-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.ccb-toggle-info h4 {
	margin: 0 0 4px;
	font-size: 16px;
	color: #333;
}

.ccb-toggle-info p {
	margin: 0;
	font-size: 13px;
	color: #777;
}

/* Switch */
.ccb-switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 28px;
	flex-shrink: 0;
}

.ccb-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.ccb-slider {
	position: absolute;
	cursor: pointer;
	top: 0; left: 0; right: 0; bottom: 0;
	background: #ccc;
	border-radius: 28px;
	transition: 0.3s;
}

.ccb-slider:before {
	content: "";
	position: absolute;
	height: 22px;
	width: 22px;
	left: 3px;
	bottom: 3px;
	background: #fff;
	border-radius: 50%;
	transition: 0.3s;
}

.ccb-switch input:checked + .ccb-slider {
	background: #1D3A33;
}

.ccb-switch input:checked + .ccb-slider:before {
	transform: translateX(22px);
}

/* Stats row */
.ccb-stats-row {
	display: flex;
	gap: 12px;
	margin-bottom: 20px;
}

.ccb-stat-box {
	flex: 1;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	padding: 16px;
	text-align: center;
	box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.ccb-stat-num {
	display: block;
	font-size: 28px;
	font-weight: 700;
	color: #333;
}

.ccb-stat-new .ccb-stat-num {
	color: #1D3A33;
}

.ccb-stat-label {
	display: block;
	font-size: 12px;
	color: #888;
	margin-top: 4px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Requests list */
.ccb-requests-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ccb-empty {
	text-align: center;
	padding: 40px 20px;
	color: #999;
}

.ccb-empty i {
	font-size: 36px;
	margin-bottom: 8px;
}

.ccb-empty p {
	margin: 8px 0 0;
	font-size: 14px;
}

.ccb-request-item {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-left: 4px solid #1D3A33;
	border-radius: 10px;
	padding: 14px 16px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.ccb-request-item.ccb-status-called {
	border-left-color: #28a745;
}

.ccb-request-item.ccb-status-archived {
	border-left-color: #aaa;
	opacity: 0.6;
}

.ccb-request-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
}

.ccb-request-name {
	font-weight: 700;
	font-size: 15px;
	color: #333;
}

.ccb-request-time {
	font-size: 12px;
	color: #999;
}

.ccb-request-phone {
	margin-bottom: 6px;
}

.ccb-request-phone a {
	color: #1D3A33;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
}

.ccb-request-phone a:hover {
	text-decoration: underline;
}

.ccb-request-message {
	font-size: 13px;
	color: #555;
	margin-bottom: 10px;
	padding: 8px 10px;
	background: #f5f5f5;
	border-radius: 6px;
}

.ccb-request-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.ccb-btn {
	padding: 6px 14px;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	font-size: 12px;
	font-weight: 600;
	color: #555;
	display: flex;
	align-items: center;
	gap: 5px;
	transition: all 0.15s;
}

.ccb-btn:hover {
	background: #f0f0f0;
}

.ccb-btn-called:hover {
	background: #d4edda;
	border-color: #28a745;
	color: #28a745;
}

.ccb-btn-archive:hover {
	background: #f0f0f0;
	border-color: #999;
	color: #777;
}

.ccb-btn-restore:hover {
	background: #d0e0ff;
	border-color: #007bff;
	color: #007bff;
}

/* Retention info */
.ccb-retention-info {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 12px 14px;
	background: #fff8e1;
	border: 1px solid #ffe082;
	border-radius: 8px;
	margin-bottom: 16px;
	font-size: 13px;
	color: #555;
}

.ccb-retention-info i {
	font-size: 18px;
	color: #f0a500;
	flex-shrink: 0;
	margin-top: 1px;
}

.ccb-retention-info p {
	margin: 0;
	line-height: 1.5;
}

/* Delete button */
.ccb-btn-delete {
	color: #888;
	border-color: #ddd;
}

.ccb-btn-delete:hover {
	background: #f8d7da;
	border-color: #dc3545;
	color: #dc3545;
}

.ccb-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Export button */
.ccb-export-wrap {
	text-align: right;
	margin-bottom: 14px;
}

.ccb-btn-export {
	background: #1D3A33;
	color: #fff;
	border-color: #1D3A33;
}

.ccb-btn-export:hover {
	background: #2a5448;
	color: #fff;
}

/* Email and alt phone */
.ccb-request-email,
.ccb-request-alt-phone {
	font-size: 13px;
	margin-bottom: 6px;
}

.ccb-request-email a,
.ccb-request-alt-phone a {
	color: #1D3A33;
	text-decoration: none;
	font-weight: 600;
}

.ccb-request-email a:hover,
.ccb-request-alt-phone a:hover {
	text-decoration: underline;
}

.ccb-request-email i {
	color: #d93025;
	margin-right: 4px;
}

.ccb-request-alt-phone i {
	color: #25D366;
	margin-right: 4px;
}

/* Responsive */
@media (max-width: 600px) {
	.ccb-toggle-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.ccb-stats-row {
		flex-direction: row;
	}

	.ccb-form-container {
		max-width: 100%;
	}
}
