.dgrc-wrap {
	max-width: 560px;
	margin: 0 auto;
	padding: 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1d2327;
}

.dgrc-header {
	text-align: center;
	margin-bottom: 20px;
}
.dgrc-header h1 {
	font-size: 22px;
	margin: 0 0 2px;
}
.dgrc-subtitle {
	color: #666;
	margin: 0;
	font-size: 14px;
}

.dgrc-alert {
	padding: 12px 14px;
	border-radius: 8px;
	margin-bottom: 16px;
	font-size: 14px;
}
.dgrc-alert-error {
	background: #fdecea;
	color: #611a15;
	border: 1px solid #f5c6cb;
}

.dgrc-section {
	border: 1px solid #e2e4e7;
	border-radius: 10px;
	padding: 14px 16px 6px;
	margin-bottom: 16px;
	background: #fff;
}
.dgrc-section legend {
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #2271b1;
	padding: 0 6px;
}

.dgrc-field {
	display: block;
	margin-bottom: 12px;
}
.dgrc-field span {
	display: block;
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 4px;
	color: #3c434a;
}
.dgrc-field input[type="text"],
.dgrc-field input[type="tel"],
.dgrc-field input[type="email"],
.dgrc-field input[type="number"],
.dgrc-field input[type="date"],
.dgrc-field input[type="datetime-local"],
.dgrc-field select,
.dgrc-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	font-size: 16px; /* prevents iOS zoom on focus */
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	background: #fff;
}
.dgrc-field textarea {
	resize: vertical;
}

.dgrc-row {
	display: flex;
	gap: 10px;
}
.dgrc-row .dgrc-field {
	flex: 1;
}
.dgrc-field-sm {
	max-width: 110px;
}

.dgrc-capture {
	margin-bottom: 16px;
}
.dgrc-capture-label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 6px;
}
.dgrc-capture-preview {
	width: 100%;
	min-height: 140px;
	border: 2px dashed #c3c4c7;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #fafafa;
	margin-bottom: 10px;
}
.dgrc-capture-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.dgrc-capture-preview-round {
	width: 140px;
	height: 140px;
	min-height: 0;
	border-radius: 50%;
	margin-left: auto;
	margin-right: auto;
}
.dgrc-capture-placeholder {
	color: #8c8f94;
	font-size: 13px;
}
.dgrc-capture-buttons {
	display: flex;
	gap: 10px;
}

.dgrc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	padding: 11px 14px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	border: 1px solid transparent;
	box-sizing: border-box;
}
.dgrc-btn-outline {
	background: #fff;
	border-color: #2271b1;
	color: #2271b1;
}
.dgrc-btn-primary {
	background: #2271b1;
	color: #fff;
	width: 100%;
	padding: 14px;
	font-size: 16px;
	margin-top: 8px;
}
.dgrc-btn-primary:disabled {
	opacity: 0.6;
}

.dgrc-declaration {
	background: #f6f7f7;
}
.dgrc-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	color: #3c434a;
	padding-bottom: 12px;
}
.dgrc-checkbox input {
	margin-top: 3px;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.dgrc-privacy-note {
	text-align: center;
	color: #8c8f94;
	font-size: 12px;
	margin-top: 12px;
}

.dgrc-success {
	text-align: center;
	padding: 40px 20px;
}
.dgrc-success-icon {
	width: 64px;
	height: 64px;
	line-height: 64px;
	border-radius: 50%;
	background: #d1e7dd;
	color: #0f5132;
	font-size: 32px;
	margin: 0 auto 16px;
}

@media (max-width: 400px) {
	.dgrc-row {
		flex-direction: column;
	}
	.dgrc-field-sm {
		max-width: none;
	}
}
