/* Camphill MK Contact Form. Dark text on white, designed to sit in a white Avada
   column. Fonts and colours come from Avada's Global Options CSS variables. */

.ccf {
	--ccf-accent:      var(--awb-color5, #2b2762);
	--ccf-accent-text: #ffffff;
	--ccf-eyebrow:     var(--awb-color4, #7a73c4);
	--ccf-font:        var(--body_typography-font-family, inherit);
	--ccf-head-font:   var(--h2_typography-font-family, var(--ccf-font));
	--ccf-text:        var(--body_typography-color, #2b2762);
	--ccf-muted:       rgba(43, 39, 98, 0.65);
	--ccf-line:        rgba(43, 39, 98, 0.22);
	--ccf-field-bg:    #fafafc;
	--ccf-choice-bg:   #f1f0f8;
	--ccf-error:       #b3261e;
	--ccf-radius:      12px;

	font-family: var(--ccf-font);
	color: var(--ccf-text);
	box-sizing: border-box;
	container-type: inline-size;
}
.ccf *, .ccf *::before, .ccf *::after { box-sizing: inherit; }
.ccf [hidden] { display: none !important; }

.ccf-form { margin: 0; }
.ccf .ccf-step {
	font-family: var(--ccf-head-font);
	font-size: 14px;
	line-height: 1.3;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--ccf-eyebrow);
	margin: 36px 0 18px;
	padding: 0;
}
.ccf .ccf-step:first-of-type { margin-top: 0; }

.ccf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
@container (max-width: 560px) { .ccf-grid { grid-template-columns: 1fr; } }
@supports not (container-type: inline-size) {
	@media (max-width: 900px) { .ccf-grid { grid-template-columns: 1fr; } }
}

.ccf-field { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.ccf-label {
	display: block;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 8px;
	padding: 0;
	color: var(--ccf-text);
}
.ccf-req { color: var(--ccf-eyebrow); }
.ccf-opt { font-weight: 400; color: var(--ccf-muted); font-size: 13px; }
.ccf-hint { font-size: 13px; line-height: 1.4; color: var(--ccf-muted); margin: 6px 0 0; }

.ccf .ccf-input {
	display: block;
	width: 100% !important;
	height: auto !important;
	min-height: 50px !important;
	font-family: var(--ccf-font) !important;
	font-size: 16px !important;
	line-height: 1.4 !important;
	color: var(--ccf-text) !important;
	background: var(--ccf-field-bg) !important;
	border: 1.5px solid var(--ccf-line) !important;
	border-radius: var(--ccf-radius) !important;
	padding: 12px 16px !important;
	margin: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.ccf .ccf-input:focus { border-color: var(--ccf-accent) !important; box-shadow: 0 0 0 3px rgba(43, 39, 98, 0.12) !important; background: #fff !important; }
.ccf .ccf-input::placeholder { color: var(--ccf-muted); opacity: 1; }
.ccf .ccf-textarea { resize: vertical; min-height: 120px !important; }
.ccf .ccf-field.is-invalid .ccf-input { border-color: var(--ccf-error) !important; }

/* Choice pills */
.ccf-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.ccf-choice { position: relative; cursor: pointer; margin: 0; display: inline-block; }
.ccf-choice input { position: absolute !important; opacity: 0 !important; width: 1px !important; height: 1px !important; pointer-events: none; margin: 0 !important; }
.ccf-choice span {
	display: inline-block;
	font-size: 15px;
	line-height: 1.25;
	padding: 11px 18px;
	border-radius: 999px;
	background: var(--ccf-choice-bg);
	color: var(--ccf-text);
	border: 1.5px solid transparent;
	transition: border-color .15s ease, background .15s ease, color .15s ease;
	user-select: none;
}
.ccf-choice:hover span { border-color: var(--ccf-accent); }
.ccf-choice input:focus-visible + span { outline: 2px solid var(--ccf-accent); outline-offset: 2px; }
.ccf-choice input:checked + span { background: var(--ccf-accent); border-color: var(--ccf-accent); color: var(--ccf-accent-text); }
.ccf-field.is-invalid .ccf-choice span { border-color: var(--ccf-error); }

/* Errors */
.ccf-error, .ccf-form-error { display: none; font-size: 13px; line-height: 1.4; color: var(--ccf-error); margin: 8px 0 0; }
.ccf-field.is-invalid .ccf-error, .ccf-form-error.is-visible { display: block; }
.ccf-form-error { margin-top: 16px; font-size: 15px; }

.ccf-turnstile { margin: 0 0 20px; }
.ccf-turnstile:empty { margin: 0; }

/* Button: matches the site's solid Avada buttons */
.ccf-actions { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.ccf .ccf-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--button_typography-font-family, var(--ccf-head-font)) !important;
	font-size: 16px !important;
	font-weight: 700;
	color: var(--ccf-accent-text) !important;
	background: var(--ccf-accent) !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: var(--button_border_radius_top_left, 999px) !important;
	padding: 16px 34px !important;
	line-height: 1 !important;
	cursor: pointer;
	box-shadow: none !important;
	transition: filter .15s ease, transform .12s ease;
}
.ccf .ccf-button:hover { filter: brightness(1.2); }
.ccf .ccf-button:active { transform: translateY(1px); }
.ccf .ccf-button:focus-visible { outline: 2px solid var(--ccf-accent); outline-offset: 3px; }
.ccf .ccf-button[disabled] { cursor: progress; }
.ccf-button__busy { display: none; position: absolute; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ccf-spin .7s linear infinite; }
.ccf-button.is-busy .ccf-button__label { visibility: hidden; }
.ccf-button.is-busy .ccf-button__busy { display: block; }
@keyframes ccf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.ccf-button__busy { animation: none; border-right-color: currentColor; opacity: .6; }
	.ccf .ccf-button, .ccf-choice span, .ccf .ccf-input { transition: none; }
}
.ccf .ccf-fineprint { font-size: 13px; line-height: 1.4; color: var(--ccf-muted); margin: 0 !important; flex: 1 1 220px; }

/* Success */
.ccf .ccf-success { background: var(--ccf-accent); color: var(--ccf-accent-text); border-radius: 16px; padding: 32px 36px; }
.ccf .ccf-success__title { font-family: var(--ccf-head-font); font-size: 26px; line-height: 1.15; margin: 0 0 8px; color: var(--ccf-accent-text) !important; }
.ccf .ccf-success__text { font-size: 17px; line-height: 1.5; margin: 0; color: var(--ccf-accent-text) !important; }

/* Utilities */
.ccf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Contact form extras: topic tiles, helper copy, success card ---------- */
.ccf .ccf-field--topics { margin-bottom: 26px; }
.ccf legend.ccf-step { display: block; width: 100%; }
.ccf-topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@container (max-width: 760px) { .ccf-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@supports not (container-type: inline-size) {
	@media (max-width: 900px) { .ccf-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
}
.ccf-topic { position: relative; margin: 0; cursor: pointer; display: block; }
.ccf-topic input { position: absolute !important; opacity: 0 !important; width: 1px !important; height: 1px !important; pointer-events: none; margin: 0 !important; }
.ccf-topic__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	height: 100%;
	padding: 18px 16px 16px;
	border-radius: 16px;
	background: #fff;
	border: 1.5px solid var(--ccf-line);
	color: var(--ccf-text);
	box-shadow: 0 1px 2px rgba(30, 27, 69, .04);
	transition: border-color .2s ease, box-shadow .25s ease, transform .25s cubic-bezier(.22, .8, .3, 1), background .2s ease, color .2s ease;
}
.ccf-topic__icon {
	width: 40px; height: 40px; padding: 8px;
	border-radius: 12px;
	background: var(--ccf-choice-bg);
	color: var(--ccf-accent);
	transition: background .2s ease, color .2s ease;
}
.ccf-topic__label { font-size: 15px; font-weight: 600; line-height: 1.3; }
.ccf-topic:hover .ccf-topic__card { border-color: var(--ccf-accent); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(30, 27, 69, .25); }
.ccf-topic input:focus-visible + .ccf-topic__card { outline: 2px solid var(--ccf-accent); outline-offset: 3px; }
.ccf-topic input:checked + .ccf-topic__card { background: var(--ccf-accent); border-color: var(--ccf-accent); color: var(--ccf-accent-text); box-shadow: 0 14px 28px -14px rgba(30, 27, 69, .45); }
.ccf-topic input:checked + .ccf-topic__card .ccf-topic__icon { background: rgba(255, 255, 255, .14); color: #fff; }
.ccf-field.is-invalid .ccf-topic__card { border-color: var(--ccf-error); }
.ccf .ccf-topic-help { font-size: 15px; line-height: 1.5; color: var(--ccf-text); margin: 14px 0 0; min-height: 1px; }
.ccf .ccf-topic-help:empty { display: none; }
.ccf .ccf-aside { font-size: 14px; line-height: 1.5; color: var(--ccf-muted); margin: 12px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--ccf-choice-bg); }
.ccf .ccf-aside a { color: var(--ccf-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ccf .ccf-fineprint a { color: inherit; text-decoration: underline; }
.ccf .ccf-grid .ccf-field--choice .ccf-choices { gap: 8px; }
.ccf .ccf-grid .ccf-field--choice .ccf-choice span { padding: 13px 16px; }
.ccf .ccf-success svg { display: block; margin: 0 0 14px; color: #fff; }
.ccf .ccf-success:focus { outline: none; }
@media (prefers-reduced-motion: reduce) {
	.ccf-topic__card, .ccf-topic__icon { transition: none; }
	.ccf-topic:hover .ccf-topic__card { transform: none; }
}
