.wgs-form {
	max-width: 520px;
	margin: 0 auto;
	color: inherit;
}

.wgs-notice {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 20px;
	font-size: 0.95em;
}
.wgs-notice--warning {
	background: rgba(240, 180, 40, 0.12);
	border: 1px solid rgba(240, 180, 40, 0.4);
}
.wgs-notice--error {
	background: rgba(220, 60, 60, 0.12);
	border: 1px solid rgba(220, 60, 60, 0.5);
}
.wgs-notice--success {
	background: rgba(60, 180, 90, 0.12);
	border: 1px solid rgba(60, 180, 90, 0.5);
}

.wgs-progress {
	display: flex;
	gap: 8px;
	margin-bottom: 28px;
}
.wgs-progress__step {
	flex: 1;
	border-top: 3px solid rgba(128,128,128,0.3);
	padding-top: 8px;
	font-size: 0.85em;
	opacity: 0.6;
}
.wgs-progress__step.is-active,
.wgs-progress__step.is-done {
	border-top-color: #2b7fff;
	opacity: 1;
}

.wgs-page { display: none; }
.wgs-page.is-active { display: block; }

.wgs-page-title { margin-bottom: 12px; }

.wgs-field-group {
	margin-bottom: 22px;
}
.wgs-field-group > label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
}
.wgs-req { color: #e0463e; }

.wgs-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.wgs-row > * { flex: 1; min-width: 120px; }

.wgs-form input[type="text"],
.wgs-form input[type="email"],
.wgs-form input[type="tel"],
.wgs-form select {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	margin-top: 8px;
	border: 1px solid rgba(128,128,128,0.4);
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font-size: 1em;
}
.wgs-form input:first-child,
.wgs-form select:first-child { margin-top: 0; }

.wgs-help { font-size: 0.9em; opacity: 0.85; margin-bottom: 10px; }

.wgs-toggle { display: flex; align-items: center; gap: 10px; }
.wgs-toggle__switch {
	width: 46px;
	height: 24px;
	border-radius: 999px;
	border: none;
	background: rgba(128,128,128,0.4);
	position: relative;
	cursor: pointer;
	padding: 0;
}
.wgs-toggle__switch::after {
	content: "";
	position: absolute;
	top: 3px; left: 3px;
	width: 18px; height: 18px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.15s ease;
}
.wgs-toggle__switch[aria-checked="true"] { background: #2b7fff; }
.wgs-toggle__switch[aria-checked="true"]::after { transform: translateX(22px); }

.wgs-dropzone {
	border: 1px dashed rgba(128,128,128,0.5);
	border-radius: 8px;
	padding: 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
}
.wgs-dropzone.is-dragover { background: rgba(43,127,255,0.08); }

.wgs-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}
.wgs-thumb { position: relative; width: 72px; height: 72px; }
.wgs-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.wgs-thumb button {
	position: absolute; top: -6px; right: -6px;
	width: 20px; height: 20px; border-radius: 50%;
	border: none; background: #e0463e; color: #fff;
	cursor: pointer; font-size: 12px; line-height: 1;
}

.wgs-callout { font-weight: 700; text-align: center; margin: 24px 0; }

.wgs-price-row {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid rgba(128,128,128,0.3);
	margin-bottom: 20px;
}

.wgs-agreement__text {
	max-height: 220px;
	overflow-y: auto;
	padding: 12px;
	border: 1px solid rgba(128,128,128,0.3);
	border-radius: 6px;
	font-size: 0.9em;
}

.wgs-signature-canvas {
	width: 100%;
	max-width: 600px;
	height: 180px;
	border: 1px solid rgba(128,128,128,0.4);
	border-radius: 6px;
	touch-action: none;
	background: rgba(128,128,128,0.05);
	display: block;
	margin-bottom: 10px;
}

.wgs-card-element {
	border: 1px solid rgba(128,128,128,0.4);
	border-radius: 6px;
	padding: 14px;
	min-height: 48px;
}

.wgs-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 24px;
}

.wgs-btn {
	padding: 12px 22px;
	border-radius: 6px;
	border: 1px solid transparent;
	font-weight: 700;
	cursor: pointer;
	font-size: 1em;
}
.wgs-btn--primary { background: #f0b428; color: #111; }
.wgs-btn--primary:disabled { opacity: 0.5; cursor: not-allowed; }
.wgs-btn--outline { background: transparent; border-color: currentColor; }
.wgs-btn--small { padding: 6px 14px; font-size: 0.85em; }

/* "Take photo" opens the camera directly — only meaningful on touch devices, so
   it's hidden on desktop (where the capture attribute is ignored anyway). */
.wgs-camera-btn { display: none; }
@media (pointer: coarse) { .wgs-camera-btn { display: inline-block; } }

.wgs-form-msg { margin-top: 16px; }
.wgs-form-msg:empty { display: none; }
