.seb-form { max-width: 900px; margin: 1rem 0; }
.seb-form .seb-step { margin: 1.5rem 0; padding: 1rem; background: #f9f9f9; border: 1px solid #e0e0e0; border-radius: 4px; }
.seb-form p { margin: 0.75rem 0; }
.seb-form label { display: block; margin-bottom: 0.25rem; font-weight: 600; }
.seb-form input[type="text"],
.seb-form input[type="email"],
.seb-form input[type="tel"],
.seb-form input[type="date"],
.seb-form select,
.seb-form textarea { width: 100%; max-width: 100%; padding: 0.4rem 0.6rem; box-sizing: border-box; }
.seb-form .required { color: #b00; }
.seb-form .seb-errors { color: #b00; margin: 1rem 0; padding: 0.5rem; background: #fff0f0; border-left: 4px solid #b00; }
.seb-form .seb-complete-message { margin: 1rem 0; }
.seb-form .seb-benefit-message { margin: 0.75rem 0; padding: 0.6rem 0.75rem; background: #e8f4e8; border-left: 4px solid #2d8a2d; color: #1a5f1a; font-weight: 500; }

/* Participant block: 2–3 column grid */
.seb-participant-block { background: #fff; border: 1px solid #e0e0e0; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; }
.seb-participant-block-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid #e0e0e0; }
.seb-participant-block-header .seb-participant-title { color: #0d6a7b; font-size: 1.05em; }
.seb-participant-block-header .seb-remove-participant { margin: 0; }
.seb-participant-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem 1rem; }
.seb-participant-fields .seb-field { margin: 0; min-width: 0; }
.seb-participant-fields .seb-field-full { grid-column: 1 / -1; }
.seb-participant-fields .seb-field label { font-size: 0.9em; }
.seb-participant-fields .seb-field input,
.seb-participant-fields .seb-field select,
.seb-participant-fields .seb-field textarea { max-width: none; }
/* Participant email live check status */
.seb-participant-email-status { display: block; margin-top: 0.25rem; font-size: 0.9em; }
.seb-participant-email-status.seb-email-used { color: #b00; font-weight: 500; }
.seb-participant-block.seb-email-already-used [name="participant_email"] { border-color: #b00; }
.seb-participant-email-status.seb-email-checking { color: #666; }

/* Highlight key fields: Gender, Date of Birth, Email */
.seb-participant-fields .seb-field-highlight {
	background: #e7f5f8;
	border-left: 3px solid #0d6a7b;
	padding: 0.5rem 0.5rem 0.5rem 0.65rem;
	margin: 0 -0.15rem;
	border-radius: 0 4px 4px 0;
}
.seb-participant-fields .seb-field-highlight label { color: #0d6a7b; font-weight: 700 !important; }

.seb-add-participant-wrap { margin: 1rem 0; }
.seb-total-display { margin: 1rem 0; font-size: 1.1em; }
.seb-payment-links { margin: 1rem 0; }
.seb-payment-links .seb-payment-item { margin: 0.5rem 0; }
.seb-payment-links .button { margin-right: 0.5rem; }

/* Form grid layouts */
.seb-form-grid { display: grid; gap: 0.75rem 1rem; }
.seb-form-grid-2 { grid-template-columns: repeat(2, 1fr); }
.seb-form-grid .seb-field { margin: 0; min-width: 0; }

/* Main Contact section */
.seb-main-contact-section { margin: 1.5rem 0; padding: 1rem; background: #fff; border: 1px solid #e0e0e0; border-radius: 4px; }
.seb-main-contact-title { margin: 0 0 0.5rem 0; font-size: 1.1em; }
.seb-main-contact-desc { margin: 0 0 1rem 0; font-size: 0.9em; color: #666; }
.seb-main-contact-email-mismatch { color: #b00; font-size: 0.9em; margin-top: 0.5rem; }

@media (max-width: 640px) {
	.seb-form-grid-2 { grid-template-columns: 1fr; }
}

/* Draft restore banner */
.seb-draft-banner {
	margin-bottom: 1rem;
	padding: 0.75rem 1rem;
	background: #e7f3ff;
	border: 1px solid #b3d9ff;
	border-radius: 4px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
}
.seb-draft-banner-text { flex: 1 1 auto; font-weight: 500; }
.seb-draft-banner .button { margin: 0; }

/* Summary step */
.seb-summary-content { margin: 1rem 0; }
.seb-summary-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e0e0e0; }
.seb-summary-table th { background: #f5f5f5; padding: 0.75rem; text-align: left; font-weight: 600; border-bottom: 2px solid #e0e0e0; }
.seb-summary-table td { padding: 0.75rem; border-bottom: 1px solid #f0f0f0; }
.seb-summary-table tbody tr:last-child td { border-bottom: none; }
.seb-summary-table tfoot { background: #f9f9f9; border-top: 2px solid #e0e0e0; }
.seb-summary-table tfoot td { padding: 1rem 0.75rem; font-size: 1.1em; }
.seb-summary-main-contact { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #e0e0e0; }
.seb-summary-main-contact-title { margin: 0 0 0.5rem 0; font-size: 1em; }
.seb-summary-main-contact-notice { margin: 0 0 0.75rem 0; padding: 0.5rem 0.75rem; background: #e7f3ff; border-left: 4px solid #0d6a7b; color: #0d6a7b; font-size: 0.95em; font-weight: 500; }
.seb-summary-main-contact-table { max-width: 400px; }
.seb-summary-main-contact-table th { width: 30%; font-weight: 600; }

.seb-summary-rules-agree { margin: 1.25rem 0 1rem; }
.seb-rules-agree-label { display: flex; align-items: flex-start; gap: 0.5rem; cursor: pointer; font-weight: 500; }
.seb-rules-agree-label input[type="checkbox"] { margin-top: 0.2rem; flex-shrink: 0; }
.seb-rules-agree-label a { color: #0d6a7b; }
.seb-rules-agree-label a:hover { text-decoration: underline; }

@media (max-width: 640px) {
	.seb-participant-fields { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.seb-participant-fields { grid-template-columns: 1fr; }
}

/* T-Shirt size chart link and modal */
.seb-field-tshirt .seb-tshirt-size-chart-wrap { display: block; margin-top: 0.35rem; }
.seb-tshirt-size-chart-link {
	font-size: 0.9em;
	color: #0d6a7b;
	text-decoration: none;
	font-weight: 500;
}
.seb-tshirt-size-chart-link:hover {
	text-decoration: underline;
	color: #094a54;
}

.seb-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
}
.seb-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.5);
	cursor: pointer;
}
.seb-modal-dialog {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 24px rgba(0,0,0,0.2);
	max-width: 95vw;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.seb-modal-content {
	padding: 1.25rem;
	overflow: auto;
	max-height: 85vh;
}
.seb-modal-close {
	position: absolute;
	top: 0.5rem;
	right: 0.75rem;
	background: none;
	border: none;
	font-size: 1.75rem;
	line-height: 1;
	color: #50575e;
	cursor: pointer;
	padding: 0;
	width: 2rem;
	height: 2rem;
}
.seb-modal-close:hover { color: #1d2327; }
.seb-modal-title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
}
.seb-modal-body { margin-top: 0.5rem; }
.seb-shirt-size-chart-img {
	max-width: 100%;
	height: auto;
	display: block;
}
.seb-shirt-size-chart-iframe {
	width: 100%;
	min-height: 70vmin;
	max-height: 75vh;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
}
.seb-modal-pdf-link { margin-top: 0.75rem; }
.seb-modal-pdf-link a { color: #0d6a7b; }
