/**
 * JCM Patient e-Registration styles (scoped to .jcm-ereg-wrapper).
 */
.jcm-ereg-wrapper {
	max-width: 900px;
	margin: 0 auto;
	padding: 10px 0 40px;
}

.jcm-ereg-intro {
	background: #f4f8fb;
	border-left: 4px solid #03c4eb;
	padding: 16px 20px;
	margin-bottom: 24px;
	border-radius: 4px;
}

.jcm-ereg-intro p {
	margin: 0 0 8px;
}

.jcm-ereg-intro p:last-child {
	margin-bottom: 0;
}

.jcm-ereg-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 28px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
	margin-bottom: 28px;
}

.jcm-ereg-section-title {
	font-size: 1.15rem;
	font-weight: 600;
	margin: 24px 0 14px;
	padding-bottom: 8px;
	border-bottom: 1px solid #edf2f7;
	color: #222;
}

.jcm-ereg-section-title:first-child {
	margin-top: 0;
}

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

@media (max-width: 767px) {
	.jcm-ereg-grid {
		grid-template-columns: 1fr;
	}
	.jcm-ereg-card {
		padding: 18px;
	}
}

.jcm-ereg-field {
	display: flex;
	flex-direction: column;
	margin-bottom: 14px;
}

.jcm-ereg-field.is-full {
	grid-column: 1 / -1;
}

.jcm-ereg-field label {
	font-weight: 600;
	font-size: 0.92rem;
	margin-bottom: 6px;
	color: #333;
}

.jcm-ereg-req {
	color: #c53030;
	margin-left: 2px;
}

.jcm-ereg-field input[type="text"],
.jcm-ereg-field input[type="email"],
.jcm-ereg-field input[type="tel"],
.jcm-ereg-field input[type="date"],
.jcm-ereg-field select,
.jcm-ereg-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #cbd5e0;
	border-radius: 4px;
	font-size: 0.95rem;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.jcm-ereg-field input:focus,
.jcm-ereg-field select:focus,
.jcm-ereg-field textarea:focus {
	outline: none;
	border-color: #03c4eb;
	box-shadow: 0 0 0 3px rgba(3, 196, 235, 0.15);
}

.jcm-ereg-field.has-error input,
.jcm-ereg-field.has-error select,
.jcm-ereg-field.has-error textarea {
	border-color: #c53030;
}

.jcm-ereg-hint {
	font-size: 0.8rem;
	color: #64748b;
	margin-top: 4px;
}

.jcm-ereg-field-error {
	font-size: 0.82rem;
	color: #c53030;
	margin-top: 4px;
	font-weight: 500;
}

.jcm-ereg-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 12px;
	font-size: 0.9rem;
	line-height: 1.45;
}

.jcm-ereg-checkbox input[type="checkbox"] {
	margin-top: 3px;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
}

.jcm-ereg-captcha-box {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	padding: 14px 16px;
	margin: 16px 0;
}

.jcm-ereg-alert {
	padding: 14px 18px;
	border-radius: 4px;
	margin-bottom: 20px;
	font-size: 0.95rem;
	line-height: 1.5;
}

.jcm-ereg-alert-success {
	background: #f0fff4;
	border: 1px solid #9ae6b4;
	color: #22543d;
}

.jcm-ereg-alert-error {
	background: #fff5f5;
	border: 1px solid #feb2b2;
	color: #742a2a;
}

.jcm-ereg-submit-row {
	margin-top: 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}

.jcm-ereg-submit-btn {
	cursor: pointer;
}

.jcm-ereg-submit-btn[disabled] {
	opacity: 0.65;
	cursor: wait;
}

.jcm-ereg-security-note {
	font-size: 0.82rem;
	color: #4a5568;
}

/* Honeypot fields: hidden off-screen from human users & screen readers */
.jcm-hp-field {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* Regulamin block */
.jcm-ereg-regulamin {
	background: #fafafa;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 20px 24px;
}

.jcm-ereg-regulamin summary {
	font-weight: 600;
	font-size: 1.05rem;
	cursor: pointer;
	color: #222;
}

.jcm-ereg-regulamin-body {
	margin-top: 16px;
	font-size: 0.9rem;
	line-height: 1.6;
	color: #333;
}

.jcm-ereg-regulamin-body h4 {
	font-size: 0.98rem;
	font-weight: 700;
	margin: 16px 0 6px;
}

.jcm-ereg-regulamin-body ol {
	padding-left: 20px;
	margin: 0 0 10px;
}

