/* Craft fair application. Uses the theme's Quicksand + #45bdef / #2A6FA2 palette. */

.cf-wrap {
	max-width: 820px;
}

.cf-h2 {
	font-size: 1.5rem;
	color: #2A6FA2;
	margin: 0 0 1rem;
	padding-bottom: .5rem;
	border-bottom: 2px solid #45bdef;
	float: none;
	width: 100%;
}

.cf-intro {
	margin-bottom: 2rem;
}

/* Event facts */
.cf-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1px;
	background: #e4e9ee;
	border: 1px solid #e4e9ee;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 1.75rem;
}

.cf-fact {
	background: #fff;
	padding: 1.1rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: .2rem;
}

.cf-fact-label {
	font-size: .72rem;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: #7c8894;
}

.cf-fact strong {
	color: #1B1B1B;
	font-size: 1.02rem;
}

.cf-fact span:last-child {
	color: #5c6772;
	font-size: .92rem;
}

.cf-note {
	border-left: 4px solid #FF8A00;
	background: #fff8ef;
	padding: 1rem 1.25rem;
	border-radius: 0 6px 6px 0;
	margin-bottom: 2.5rem;
	font-size: .95rem;
}

/* Rates */
.cf-rates {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: .75rem;
}

.cf-rates th,
.cf-rates td {
	padding: .7rem .9rem;
	border-bottom: 1px solid #e4e9ee;
	font-weight: 400;
}

.cf-rates thead th {
	font-size: .74rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #7c8894;
	border-bottom-width: 2px;
}

.cf-rates tbody td {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.cf-fineprint {
	font-size: .88rem;
	color: #5c6772;
}

/* Form */
.cf-form {
	margin-top: 2.5rem;
}

.cf-form fieldset {
	border: 0;
	padding: 0;
	margin: 0 0 2.5rem;
}

.cf-form legend {
	float: none;
	width: 100%;
}

.cf-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 1.25rem;
}

.cf-row-3 {
	grid-template-columns: 2fr 1fr 1fr;
}

@media (max-width: 640px) {
	.cf-row,
	.cf-row-3 {
		grid-template-columns: 1fr;
	}
}

.cf-field {
	margin-bottom: 1.25rem;
}

.cf-field label {
	display: block;
	font-weight: 700;
	font-size: .92rem;
	margin-bottom: .35rem;
	color: #1B1B1B;
}

.cf-field label span {
	color: #c0392b;
}

.cf-field input,
.cf-field select,
.cf-field textarea {
	width: 100%;
	padding: .65rem .8rem;
	border: 1px solid #c3ccd5;
	border-radius: 4px;
	font-family: inherit;
	font-size: 1rem;
	background: #fff;
	color: #1B1B1B;
}

.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus,
.cf-submit:focus {
	outline: 3px solid rgba(69, 189, 239, .45);
	outline-offset: 1px;
	border-color: #45bdef;
}

.cf-field small {
	display: block;
	margin-top: .3rem;
	font-size: .82rem;
	color: #5c6772;
}

.cf-field-narrow {
	max-width: 190px;
	margin-bottom: 0;
}

.cf-field.has-error input,
.cf-field.has-error textarea,
.cf-area.has-error {
	border-color: #c0392b;
}

.cf-field-error {
	color: #c0392b !important;
	font-weight: 700;
}

/* Space pickers */
.cf-area {
	border: 1px solid #dde3e9;
	border-radius: 6px;
	padding: 1.25rem;
	margin-bottom: 1.25rem;
	background: #fbfcfd;
}

.cf-area-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}

.cf-area-head h3 {
	font-size: 1.15rem;
	margin: 0;
	color: #2A6FA2;
}

.cf-price {
	font-size: .9rem;
	color: #5c6772;
	font-variant-numeric: tabular-nums;
}

.cf-area-body {
	display: flex;
	align-items: flex-end;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.cf-check,
.cf-radio {
	display: flex;
	align-items: flex-start;
	gap: .6rem;
	cursor: pointer;
	font-weight: 400;
	margin: 0 0 .35rem;
}

.cf-check input,
.cf-radio input {
	margin-top: .3rem;
	flex: 0 0 auto;
	width: 1.05rem;
	height: 1.05rem;
}

.cf-check input:disabled + span {
	opacity: .45;
	cursor: not-allowed;
}

.cf-check em {
	font-style: normal;
	color: #5c6772;
}

.cf-area-total {
	margin: 1rem 0 0;
	text-align: right;
	font-size: 1.05rem;
	font-weight: 700;
	color: #2A6FA2;
	font-variant-numeric: tabular-nums;
}

.cf-area-total.is-zero {
	color: #9aa5b0;
	font-weight: 400;
}

.cf-radio {
	border: 1px solid #dde3e9;
	border-radius: 6px;
	padding: 1rem 1.15rem;
	margin-bottom: .75rem;
	background: #fff;
}

.cf-radio span {
	display: flex;
	flex-direction: column;
	gap: .2rem;
}

.cf-radio em {
	font-style: normal;
	font-size: .88rem;
	color: #5c6772;
}

/* Total + submit */
.cf-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	background: #2A6FA2;
	color: #fff;
	padding: 1.1rem 1.5rem;
	border-radius: 6px;
	margin-bottom: 1.5rem;
	font-size: 1.1rem;
}

.cf-total strong {
	font-size: 1.9rem;
	font-variant-numeric: tabular-nums;
}

.cf-submit {
	display: block;
	width: 100%;
	background: #45bdef;
	border: 2px solid #45bdef;
	color: #fff;
	font-family: inherit;
	font-size: 1.1rem;
	font-weight: 700;
	padding: .9rem 1.5rem;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}

.cf-submit:hover:not(:disabled) {
	background: #2A6FA2;
	border-color: #2A6FA2;
}

.cf-submit:disabled {
	opacity: .6;
	cursor: progress;
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.cf-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Messages */
.cf-error,
.cf-alert {
	border-radius: 6px;
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
}

.cf-error {
	background: #fdeceb;
	border-left: 4px solid #c0392b;
	color: #8c231a;
	font-weight: 700;
}

.cf-alert-success {
	background: #eefaf3;
	border-left: 4px solid #2e9e63;
}

.cf-alert-warning {
	background: #fff8ef;
	border-left: 4px solid #FF8A00;
}

.cf-alert h2 {
	font-size: 1.3rem;
	margin: 0 0 .5rem;
	color: #1B1B1B;
}

.cf-alert p:last-child {
	margin-bottom: 0;
}

.cf-done {
	border: 1px solid #dde3e9;
	border-left: 4px solid #2e9e63;
	border-radius: 6px;
	padding: 1.5rem;
	background: #fbfcfd;
}

.cf-done h2 {
	color: #2A6FA2;
	font-size: 1.4rem;
	margin-top: 0;
}

.cf-done-total strong {
	font-size: 1.3rem;
	color: #2A6FA2;
	font-variant-numeric: tabular-nums;
}
