/* PVCF Contact Form – front end. Colours follow the PVCF site; change the variables to restyle. */
.pvcf-cf {
	--pvcf-accent: #ff00ff;
	--pvcf-accent-soft: rgba(255, 0, 255, .22);
	--pvcf-btn-bg: #00ffff;
	--pvcf-btn-text: #000;
	--pvcf-btn-hover-bg: #b000b0;
	--pvcf-btn-hover-text: #fff;
	--pvcf-border: #c4c4cc;
	--pvcf-error: #b31e00;
	--pvcf-text: #1a1a1a;
	--pvcf-muted: #555;
	--pvcf-done-bg: #04ffa0;
	--pvcf-body-font: "Open Sans", Arial, Helvetica, sans-serif;
	--pvcf-label-font: proximanova-bold, "Open Sans", Arial, sans-serif;
	--pvcf-button-font: proximanova-semibold, "Open Sans", Arial, sans-serif;

	max-width: 640px;
	margin: 0 auto 2.5em;
	text-align: left;
	color: var(--pvcf-text);
	font-family: var(--pvcf-body-font);
	font-size: 16px;
	line-height: 1.5;
}
.pvcf-cf *, .pvcf-cf *::before, .pvcf-cf *::after { box-sizing: border-box; }
.pvcf-cf [hidden] { display: none !important; }
.pvcf-cf p { margin: 0; padding: 0; }

.pvcf-cf__form { margin: 0; padding: 0; width: auto; }
.pvcf-cf__required-note { font-size: 14px; color: var(--pvcf-muted); margin: 0 0 16px !important; }
.pvcf-cf__req, .pvcf-cf__required-note span { color: var(--pvcf-error); }
.pvcf-cf__optional { font-family: var(--pvcf-body-font); color: var(--pvcf-muted); font-size: 14px; }

.pvcf-cf__field { margin: 0 0 20px; }
.pvcf-cf label,
.pvcf-cf .pvcf-cf__label {
	display: block;
	margin: 0 0 6px;
	font-family: var(--pvcf-label-font);
	font-weight: 400;
	font-size: 15px;
	line-height: 1.3;
	letter-spacing: .01em;
	text-transform: none;
	color: var(--pvcf-text);
}

.pvcf-cf input[type="text"],
.pvcf-cf input[type="email"],
.pvcf-cf select,
.pvcf-cf textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 2px solid var(--pvcf-border);
	border-radius: 0;
	background-color: #fff;
	color: var(--pvcf-text);
	font-family: var(--pvcf-body-font);
	font-size: 16px; /* 16px stops phones zooming in. */
	font-weight: 400;
	line-height: 1.4;
	box-shadow: none;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .15s, box-shadow .15s;
}
.pvcf-cf textarea { height: auto; min-height: 170px; padding: 12px 14px; resize: vertical; }
.pvcf-cf select {
	padding-right: 42px;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 1l7 7 7-7' fill='none' stroke='%231a1a1a' stroke-width='2.2'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 14px 9px;
}
.pvcf-cf input[type="text"]:focus,
.pvcf-cf input[type="email"]:focus,
.pvcf-cf select:focus,
.pvcf-cf textarea:focus {
	border-color: var(--pvcf-accent);
	box-shadow: 0 0 0 3px var(--pvcf-accent-soft);
}
.pvcf-cf [aria-invalid="true"] { border-color: var(--pvcf-error) !important; }

.pvcf-cf__hint { margin: 6px 0 0 !important; font-size: 14px; line-height: 1.45; color: var(--pvcf-muted); }
.pvcf-cf__error { margin: 6px 0 0 !important; font-size: 14px; font-weight: 600; color: var(--pvcf-error); }
.pvcf-cf__count { margin: 4px 0 0 !important; font-size: 13px; color: var(--pvcf-muted); text-align: right; }
.pvcf-cf__count:empty { display: none; }

/* Per-reason instructions (above the message) */
.pvcf-cf__instructions {
	margin: 0 0 16px;
	padding: 12px 14px;
	background: #ecfeff;
	border-left: 4px solid #00b8c4;
	font-size: 15px;
	line-height: 1.5;
}
.pvcf-cf__instructions p { margin: 0 0 8px !important; }
.pvcf-cf__instructions p:last-child { margin-bottom: 0 !important; }
.pvcf-cf__instructions a { color: #8a008a; text-decoration: underline; }
.pvcf-cf__instructions a:hover, .pvcf-cf__instructions a:focus { color: #000; }

/* Anonymous option */
.pvcf-cf__anon {
	margin: 0 0 20px;
	padding: 12px 14px;
	background: #fdf0fd;
	border-left: 4px solid var(--pvcf-accent);
}
.pvcf-cf .pvcf-cf__check {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	cursor: pointer;
	font-family: var(--pvcf-button-font);
}
.pvcf-cf__check input {
	width: 20px;
	height: 20px;
	margin: 0;
	flex: none;
	accent-color: #b000b0;
	cursor: pointer;
}

/* Images */
.pvcf-cf .pvcf-cf__file-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 10px 18px;
	border: 2px dashed var(--pvcf-border);
	background: #fafafa;
	cursor: pointer;
	font-family: var(--pvcf-button-font);
	font-size: 15px;
	transition: border-color .15s, background-color .15s;
}
.pvcf-cf .pvcf-cf__file-btn::before { content: "+"; font-size: 20px; line-height: 1; }
.pvcf-cf .pvcf-cf__file-btn:hover { border-color: var(--pvcf-accent); background: #fff; }
.pvcf-cf .pvcf-cf__file-btn:focus-within { border-color: var(--pvcf-accent); box-shadow: 0 0 0 3px var(--pvcf-accent-soft); }
.pvcf-cf__file {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0;
	overflow: hidden;
}
.pvcf-cf__file-list { list-style: none !important; margin: 10px 0 0 !important; padding: 0 !important; }
.pvcf-cf__file-list:empty { display: none; }
.pvcf-cf__file-item {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 8px !important;
	padding: 8px !important;
	border: 1px solid #e2e2e8;
	background: #fff;
	list-style: none !important;
}
.pvcf-cf__file-item::before { content: none !important; display: none !important; }
.pvcf-cf__file-item img { width: 48px; height: 48px; object-fit: cover; flex: none; margin: 0; border: 0; }
.pvcf-cf__file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.pvcf-cf__file-size { flex: none; font-size: 13px; color: var(--pvcf-muted); }
.pvcf-cf .pvcf-cf__file-remove {
	flex: none;
	width: auto;
	height: auto;
	margin: 0;
	padding: 6px 8px;
	border: 0;
	background: none;
	color: var(--pvcf-error);
	font: 600 14px/1.2 var(--pvcf-body-font);
	text-decoration: underline;
	cursor: pointer;
}

/* Bot trap: hidden from people and screen readers. */
.pvcf-cf__hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.pvcf-cf__turnstile { margin: 0 0 18px; }

/* Buttons */
.pvcf-cf .pvcf-cf__submit,
.pvcf-cf .pvcf-cf__again {
	display: inline-block;
	width: auto;
	min-width: 220px;
	height: 50px;
	margin: 4px 0 0;
	padding: 0 32px;
	border: 0;
	border-radius: 0;
	background: var(--pvcf-btn-bg);
	color: var(--pvcf-btn-text);
	font-family: var(--pvcf-button-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 50px;
	text-transform: none;
	letter-spacing: .02em;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .15s, color .15s;
}
.pvcf-cf .pvcf-cf__submit:hover,
.pvcf-cf .pvcf-cf__again:hover { background: var(--pvcf-btn-hover-bg); color: var(--pvcf-btn-hover-text); }
.pvcf-cf .pvcf-cf__submit:focus-visible,
.pvcf-cf .pvcf-cf__again:focus-visible,
.pvcf-cf .pvcf-cf__file-remove:focus-visible { outline: 3px solid #000; outline-offset: 2px; }
.pvcf-cf .pvcf-cf__submit[disabled] { opacity: .65; cursor: progress; background: var(--pvcf-btn-bg); color: var(--pvcf-btn-text); }

.pvcf-cf__status { margin: 14px 0 0 !important; font-size: 15px; }
.pvcf-cf__status:empty { display: none; }
.pvcf-cf__status.is-error { color: var(--pvcf-error); font-weight: 600; }

/* Sent */
.pvcf-cf__done {
	padding: 26px 24px;
	background: var(--pvcf-done-bg);
	color: #000;
	outline: none;
}
.pvcf-cf__done:focus-visible { outline: 3px solid #000; outline-offset: 2px; }
.pvcf-cf__done-title { font-family: var(--pvcf-label-font); font-size: 22px; line-height: 1.2; margin: 0 0 8px !important; }
.pvcf-cf__done-text { margin: 0 0 16px !important; }
.pvcf-cf .pvcf-cf__again { background: #fff; color: #000; min-width: 0; }

.pvcf-cf__notice--error { color: var(--pvcf-error); font-weight: 600; }
.pvcf-cf-admin-note { padding: 12px 14px; background: #fff8e5; border-left: 4px solid #dba617; }

@media (max-width: 480px) {
	.pvcf-cf .pvcf-cf__submit { width: 100%; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.pvcf-cf * { transition: none !important; }
}
