.vhc-contract-block,
.vhc-standalone {
	--vhc-green: #17643f;
	--vhc-dark: #163d2a;
	--vhc-soft: #eef5f1;
	--vhc-border: #cfd9d3;
	color: #24342b;
}

.vhc-contract-block {
	clear: both;
	margin-top: 32px;
	padding-top: 10px;
	border-top: 2px solid var(--vhc-green);
}

.vhc-contract-block h2,
.vhc-standalone h1,
.vhc-section h3 {
	color: var(--vhc-dark);
}

.vhc-section {
	margin: 24px 0;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--vhc-border);
	border-radius: 6px;
}

.vhc-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 20px;
}

.vhc-field {
	display: block;
	margin: 12px 0;
}

.vhc-field > label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.vhc-inline-error,
#vhc-registration-status:not([hidden]) {
	color: #9b2020;
	font-weight: 600;
	margin-top: 8px;
}

#vhc-registration-status:not([hidden]) {
	clear: both;
	margin: 18px 0;
}

.vhc-field input,
.vhc-field select {
	box-sizing: border-box;
	width: 100%;
	min-height: 42px;
	padding: 7px 10px;
	border: 1px solid #bcc9c1;
	border-radius: 4px;
	background: #fff;
}

.vhc-file-field input {
	padding: 8px;
}

.vhc-radio,
.vhc-declaration {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 11px 0;
}

.vhc-radio input,
.vhc-declaration input {
	margin-top: 4px;
	flex: 0 0 auto;
}

#wcfm-main-contentainer .vhc-declaration {
	position: relative;
	cursor: pointer;
}

#wcfm-main-contentainer .vhc-declaration input.vhc-checkbox[type="checkbox"] {
	position: absolute !important;
	left: 0 !important;
	top: 3px !important;
	display: block !important;
	width: 1px !important;
	min-width: 1px !important;
	height: 1px !important;
	margin: 0 !important;
	padding: 0 !important;
	opacity: 0 !important;
	box-shadow: none !important;
}

#wcfm-main-contentainer .vhc-declaration input.vhc-checkbox[type="checkbox"] + label {
	position: relative;
	display: block;
	min-height: 22px;
	padding-left: 30px;
	cursor: pointer;
}

#wcfm-main-contentainer .vhc-declaration input.vhc-checkbox[type="checkbox"] + label::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1px;
	box-sizing: border-box;
	width: 20px;
	height: 20px;
	border: 2px solid #7b8c82;
	border-radius: 4px;
	background: #fff;
	color: #fff;
	font: 700 15px/16px Arial, sans-serif;
	text-align: center;
}

#wcfm-main-contentainer .vhc-declaration input.vhc-checkbox[type="checkbox"]:checked + label::before {
	content: "✓";
	border-color: var(--vhc-green);
	background: var(--vhc-green);
}

#wcfm-main-contentainer .vhc-declaration input.vhc-checkbox[type="checkbox"]:focus-visible + label::before {
	outline: 3px solid rgba(23, 100, 63, .25);
	outline-offset: 2px;
}

.vhc-radio small {
	display: block;
	font-weight: 400;
	color: #58675f;
}

.vhc-document-list {
	margin: 10px 0 8px 20px;
}

.vhc-document-list li {
	margin: 7px 0;
}

.vhc-document-list a,
.vhc-dashboard-notice a {
	color: var(--vhc-green);
	font-weight: 600;
}

.vhc-document-list span,
.vhc-help {
	color: #64736b;
	font-size: .92em;
}

.vhc-webshop-only,
.vhc-link-only,
.vhc-power-of-attorney {
	display: none;
}

.vhc-message,
.vhc-contract-error,
.vhc-dashboard-notice {
	padding: 13px 16px;
	margin: 14px 0;
	border-left: 4px solid var(--vhc-green, #17643f);
	background: #eef5f1;
}

.vhc-error {
	border-left-color: #b32d2e;
	background: #fcf0f1;
}

.vhc-warning {
	border-left-color: #dba617;
	background: #fff8e5;
}

.vhc-standalone {
	max-width: 900px;
	margin: 30px auto;
	padding: 28px;
	background: #f7f9f8;
	border: 1px solid var(--vhc-border);
	border-radius: 8px;
}

.vhc-brand {
	color: var(--vhc-green);
	font-weight: 800;
	letter-spacing: 2px;
}

.vhc-primary,
.vhc-secondary {
	display: inline-block;
	padding: 11px 18px;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 700;
}

.vhc-primary {
	background: var(--vhc-green);
	color: #fff;
}

.vhc-secondary {
	background: #dfeae4;
	color: var(--vhc-dark);
}

.vhc-otp .vhc-field {
	max-width: 260px;
}

.required {
	color: #b32d2e;
}

/* A WCFM regisztrációs CSS-e minden mezőt 60%-osra állít. A szerződéses
 * blokk saját kéthasábos rácsában a címke és a mező egy egység marad. */
#wcfm_membership_container .vhc-grid .vhc-field {
	display: flex !important;
	flex-direction: column;
	float: none !important;
	clear: none !important;
	width: auto !important;
	min-width: 0;
	margin: 12px 0;
}

#wcfm_membership_container .vhc-grid .vhc-field > label {
	display: block !important;
	float: none !important;
	width: auto !important;
	margin: 0 0 6px !important;
}

#wcfm_membership_container .vhc-grid .vhc-field input[type="text"],
#wcfm_membership_container .vhc-grid .vhc-field input[type="email"],
#wcfm_membership_container .vhc-grid .vhc-field input[type="url"],
#wcfm_membership_container .vhc-grid .vhc-field input[type="file"],
#wcfm_membership_container .vhc-grid .vhc-field select {
	display: block !important;
	float: none !important;
	clear: none !important;
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}

@media (max-width: 720px) {
	.vhc-grid {
		grid-template-columns: 1fr;
	}
	.vhc-standalone,
	.vhc-section {
		padding: 16px;
	}
}
