/* Clinic One Booking — form styles. Scoped under .ccb-form; theme-agnostic. */

.ccb-form {
	max-width: 560px;
	margin: 0 auto;
	padding: 24px;
	background: #fff;
	border: 1px solid #e3e8ee;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(16, 42, 67, 0.06);
	font-size: 15px;
	line-height: 1.5;
}

.ccb-step {
	margin-bottom: 16px;
}

.ccb-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 14px;
}

@media (max-width: 480px) {
	.ccb-grid {
		grid-template-columns: 1fr;
	}
}

.ccb-label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	color: #1d3650;
}

.ccb-form input[type="text"],
.ccb-form input[type="tel"],
.ccb-form input[type="email"],
.ccb-form input[type="date"],
.ccb-form input[type="number"],
.ccb-form select,
.ccb-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccd6e0;
	border-radius: 8px;
	background: #fbfdff;
	font-size: 15px;
	box-sizing: border-box;
}

.ccb-form input:focus,
.ccb-form select:focus,
.ccb-form textarea:focus {
	outline: none;
	border-color: #1c7ed6;
	box-shadow: 0 0 0 3px rgba(28, 126, 214, 0.15);
}

.ccb-modes {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
}

.ccb-modes label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 500;
	cursor: pointer;
}

.ccb-fee {
	margin: 8px 0 0;
	font-weight: 600;
	color: #0b7a3e;
}

.ccb-submit {
	display: block;
	width: 100%;
	padding: 13px 18px;
	border: 0;
	border-radius: 8px;
	background: #1c7ed6;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease;
}

.ccb-submit:hover {
	background: #1668b0;
}

.ccb-submit:disabled {
	background: #9db8cd;
	cursor: not-allowed;
}

.ccb-status {
	min-height: 1.4em;
	margin: 10px 0 0;
	font-weight: 600;
	color: #1d3650;
}

.ccb-status.ccb-error {
	color: #c92a2a;
}

.ccb-success {
	text-align: center;
	padding: 18px 8px;
}

.ccb-success h3 {
	margin: 0 0 8px;
	color: #0b7a3e;
}

/* Honeypot — visually gone, still in the DOM for bots. */
.ccb-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

/* Phone input with country dial-code prefix.
   The GROUP owns the border; children are borderless so theme input
   margins/heights can never misalign the two halves. */
.ccb-phone-group {
	display: flex;
	align-items: stretch;
	border: 1px solid #ccd6e0;
	border-radius: 8px;
	background: #fbfdff;
	overflow: hidden;
}

.ccb-phone-group:focus-within {
	border-color: #1c7ed6;
	box-shadow: 0 0 0 3px rgba(28, 126, 214, 0.15);
}

.ccb-dial {
	display: flex;
	align-items: center;
	padding: 0 12px;
	background: #eef3f8;
	border-right: 1px solid #ccd6e0;
	font-weight: 600;
	white-space: nowrap;
	color: #1d3650;
}

.ccb-form .ccb-phone-group input[type="tel"] {
	flex: 1;
	min-width: 0;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: transparent;
	height: auto !important;
	line-height: 1.5;
}

.ccb-form .ccb-phone-group input[type="tel"]:focus {
	outline: none;
	border: 0 !important;
	box-shadow: none !important;
}
