/* Clinic Contact Form: fields and buttons only. No background is applied to the form,
   so it inherits whatever section it is placed in. Override the variables below to restyle. */

.ccf-form {
	--ccf-field-bg: #ffffff;
	--ccf-field-text: #1f2d3d;
	--ccf-field-border: #ffffff;
	--ccf-field-height: 40px;
	--ccf-gap: 12px;
	--ccf-radius: 0;
	--ccf-btn-bg: #fbcf6e;
	--ccf-btn-bg-hover: #f5be45;
	--ccf-btn-text: #0b3b60;
	--ccf-link: #1aa6b7;
	--ccf-error: #ffb4b4;

	/* Text next to checkboxes, the required note and the reCAPTCHA notice */
	--ccf-text: #ffffff;
	--ccf-label-size: 15px;
	--ccf-label-weight: 700;
	--ccf-note-size: 11px;

	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	color: var(--ccf-text);
	font: inherit;
}

.ccf-form *,
.ccf-form *::before,
.ccf-form *::after {
	box-sizing: border-box;
}

.ccf-form .ccf-required-note {
	margin: 0 0 16px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--ccf-text);
}

.ccf-field {
	margin: 0 0 var(--ccf-gap);
	position: relative;
}

.ccf-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ccf-form input[type="text"],
.ccf-form input[type="email"],
.ccf-form input[type="tel"],
.ccf-form select,
.ccf-form textarea {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0 12px;
	height: var(--ccf-field-height);
	background: var(--ccf-field-bg);
	color: var(--ccf-field-text);
	border: 1px solid var(--ccf-field-border);
	border-radius: var(--ccf-radius);
	font: inherit;
	font-size: 15px;
	line-height: 1.3;
	box-shadow: none;
	outline: none;
	transition: box-shadow .15s ease, border-color .15s ease;
}

.ccf-form textarea {
	height: auto;
	min-height: 130px;
	padding: 10px 12px;
	resize: vertical;
}

.ccf-form input::placeholder,
.ccf-form textarea::placeholder {
	color: #555f6b;
	opacity: 1;
}

.ccf-form input:focus,
.ccf-form select:focus,
.ccf-form textarea:focus {
	border-color: var(--ccf-btn-bg);
	box-shadow: 0 0 0 3px rgba(251, 207, 110, .55);
}

/* Select with custom chevron */
.ccf-select select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-right: 38px;
	cursor: pointer;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1.5l6 6 6-6' fill='none' stroke='%23467a8c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
	background-repeat: no-repeat;
	background-position: right 14px center;
}

.ccf-select select:invalid,
.ccf-select select option[value=""] {
	color: #555f6b;
}

.ccf-select select option {
	color: var(--ccf-field-text);
}

/* Invalid state after a failed submit */
.ccf-field.ccf-invalid input,
.ccf-field.ccf-invalid select,
.ccf-field.ccf-invalid textarea {
	border-color: #d63638;
	box-shadow: 0 0 0 2px rgba(214, 54, 56, .35);
}

.ccf-field-error {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: var(--ccf-error);
}

/* Honeypot: off-screen, not display:none (some bots skip hidden fields) */
.ccf-hp {
	position: absolute !important;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Bottom row: checkboxes left, button right */
.ccf-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 16px 24px;
	margin-top: 16px;
}

.ccf-checks {
	flex: 1 1 240px;
	min-width: 0;
}

.ccf-submit {
	flex: 1 1 240px;
	min-width: 0;
}

.ccf-form .ccf-check {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 8px;
	padding: 0;
	cursor: pointer;
	font-family: inherit;
	font-size: var(--ccf-label-size);
	font-weight: var(--ccf-label-weight);
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	color: var(--ccf-text);
}

.ccf-form .ccf-check span {
	font-family: inherit;
	font-size: var(--ccf-label-size);
	font-weight: var(--ccf-label-weight);
	line-height: 1.3;
	color: var(--ccf-text);
}

.ccf-form .ccf-check .ccf-star {
	color: var(--ccf-link);
}

.ccf-check input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	margin: 0;
	background: var(--ccf-field-bg);
	border: 1px solid var(--ccf-field-border);
	border-radius: 3px;
	cursor: pointer;
	position: relative;
}

.ccf-check input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 7px;
	top: 3px;
	width: 5px;
	height: 11px;
	border: solid var(--ccf-btn-text);
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg);
}

.ccf-check input[type="checkbox"]:focus-visible {
	box-shadow: 0 0 0 3px rgba(251, 207, 110, .65);
}

.ccf-form .ccf-check.ccf-invalid span {
	color: var(--ccf-error);
}

.ccf-form .ccf-check a,
.ccf-form .ccf-recaptcha-note a {
	color: var(--ccf-link);
	font-weight: inherit;
	text-decoration: none;
}

.ccf-form .ccf-check a:hover,
.ccf-form .ccf-recaptcha-note a:hover {
	text-decoration: underline;
}

.ccf-button {
	display: block;
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 0 20px;
	background: var(--ccf-btn-bg);
	color: var(--ccf-btn-text);
	border: 0;
	border-radius: var(--ccf-radius);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .15s ease, opacity .15s ease;
}

.ccf-button:hover,
.ccf-button:focus-visible {
	background: var(--ccf-btn-bg-hover);
}

.ccf-button:disabled {
	opacity: .65;
	cursor: wait;
}

.ccf-form .ccf-recaptcha-note {
	margin: 10px 0 0;
	font-size: var(--ccf-note-size);
	font-weight: 700;
	line-height: 1.8;
	color: var(--ccf-text);
}

/* Status message */
.ccf-messages {
	margin: 0 0 14px;
	padding: 10px 14px;
	font-size: 15px;
	line-height: 1.4;
	border-left: 4px solid transparent;
	background: rgba(255, 255, 255, .92);
	color: #1f2d3d;
}

.ccf-messages[hidden] {
	display: none;
}

.ccf-messages.ccf-ok {
	border-left-color: #1e8e3e;
}

.ccf-messages.ccf-err {
	border-left-color: #d63638;
}

@media (max-width: 480px) {
	.ccf-bottom {
		flex-direction: column;
	}
	.ccf-checks,
	.ccf-submit {
		flex: 1 1 auto;
		width: 100%;
	}
}

/* reCAPTCHA v3 badge is replaced by the text notice in the form */
.grecaptcha-badge {
	visibility: hidden;
}
