/* NSDF Registration Frontend – based on original design */
:root {
	--nsdf-bg: #ffffff;
	--nsdf-side: #0B1C2F;
	--nsdf-text: #1a2a3a;
	--nsdf-medium: #3a4a5a;
	--nsdf-light: #6a7a8a;
	--nsdf-gold: #174361;
	--nsdf-gold-dark: #0f2f47;
	--nsdf-border: #c8c0b4;
	--nsdf-radius: 12px;
}

.nsdf-wrap {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 0.7fr 1.3fr;
	background: var(--nsdf-bg);
	border-radius: var(--nsdf-radius);
	overflow: hidden;
	box-shadow: 0 20px 40px rgba(0,0,0,0.12);
	border: 1px solid rgba(0,0,0,0.04);
	font-family: 'Inter', system-ui, sans-serif;
	color: var(--nsdf-text);
}

.nsdf-side {
	background: var(--nsdf-side);
	padding: 44px 32px 36px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	color: #fff;
}

.nsdf-eyebrow {
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin: 0 0 12px;
	font-weight: 600;
	opacity: 0.9;
}

.nsdf-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 700;
	font-size: 28px;
	line-height: 1.15;
	margin: 0 0 10px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.nsdf-subhead {
	font-size: 14px;
	line-height: 1.6;
	color: rgba(255,255,255,0.7);
	max-width: 30ch;
}

.nsdf-meta { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.nsdf-meta-row {
	display: flex;
	align-items: baseline;
	gap: 10px;
	border-top: 1px solid rgba(255,255,255,0.08);
	padding-top: 12px;
	font-size: 14px;
	color: rgba(255,255,255,0.7);
}
.nsdf-meta-row b {
	font-family: 'Playfair Display', Georgia, serif;
	color: #fff;
	min-width: 72px;
	font-size: 15px;
}

.nsdf-quote {
	margin-top: 28px;
	padding: 14px 18px;
	background: rgba(23,67,97,0.15);
	border-left: 3px solid var(--nsdf-gold);
	font-size: 13px;
	line-height: 1.6;
	color: rgba(255,255,255,0.75);
}
.nsdf-quote b { color: #fff; }

.nsdf-form-side {
	padding: 40px 36px;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
}

.nsdf-form-side h2 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 4px;
	text-transform: uppercase;
}

.nsdf-sub { font-size: 13.5px; color: var(--nsdf-light); margin: 0 0 24px; }

.nsdf-form { display: flex; flex-direction: column; gap: 18px; }

.nsdf-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.nsdf-form label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--nsdf-medium);
	display: block;
	margin-bottom: 5px;
}
.nsdf-form label.required::after { content: " *"; color: var(--nsdf-gold); }

.nsdf-form input[type="text"],
.nsdf-form input[type="email"],
.nsdf-form input[type="tel"],
.nsdf-form select,
.nsdf-form textarea {
	width: 100%;
	background: #fff;
	border: 1.5px solid var(--nsdf-border);
	border-radius: 8px;
	padding: 11px 14px;
	font-size: 14.5px;
	color: var(--nsdf-text);
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}
.nsdf-form input:focus,
.nsdf-form select:focus,
.nsdf-form textarea:focus {
	border-color: var(--nsdf-gold);
	box-shadow: 0 0 0 3px rgba(23,67,97,0.15);
}

.nsdf-form fieldset {
	border: 1.5px solid var(--nsdf-border);
	border-radius: 8px;
	padding: 14px 16px;
	margin: 0;
}
.nsdf-form legend {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--nsdf-gold);
	padding: 0 6px;
}

.nsdf-radio-group,
.nsdf-checkbox-group {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 24px;
	margin-top: 4px;
}
.nsdf-radio-group label,
.nsdf-checkbox-group label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 400;
	text-transform: none;
	color: var(--nsdf-text);
	margin: 0;
	cursor: pointer;
}

.nsdf-events-section,
.nsdf-box-section {
	border: 1.5px solid var(--nsdf-border);
	border-radius: var(--nsdf-radius);
	padding: 18px;
	background: rgba(0,0,0,0.02);
}
.nsdf-legend-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 2px;
	text-transform: uppercase;
}
.nsdf-legend-sub { font-size: 12.5px; color: var(--nsdf-light); margin: 0 0 14px; }

.nsdf-events-grid { display: grid; gap: 14px; }
.nsdf-event-block label {
	font-size: 11.5px;
	text-transform: uppercase;
	color: var(--nsdf-gold);
	margin-bottom: 4px;
}
.nsdf-event-block select[multiple] {
	height: 130px;
	padding: 6px;
}
.nsdf-selected-count {
	font-size: 11.5px;
	color: var(--nsdf-gold);
	margin-top: 4px;
	min-height: 16px;
	font-weight: 600;
}

.nsdf-file-drop {
	position: relative;
	border: 1.5px dashed var(--nsdf-border);
	border-radius: 8px;
	background: rgba(0,0,0,0.02);
	padding: 14px 16px;
	display: flex;
	align-items: center;
	gap: 14px;
	transition: border-color 0.2s, background 0.2s;
}
.nsdf-file-drop.has-file {
	border-color: var(--nsdf-gold);
	background: rgba(23,67,97,0.06);
}
.nsdf-file-drop input[type="file"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}
.nsdf-file-drop-icon {
	width: 40px;
	height: 40px;
	flex: none;
	border-radius: 8px;
	background: var(--nsdf-gold);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
}
.nsdf-file-drop-text { font-size: 13.5px; color: var(--nsdf-medium); }
.nsdf-file-drop-text b { color: var(--nsdf-text); }
.nsdf-file-drop-hint { font-size: 11.5px; color: var(--nsdf-light); margin-top: 2px; }
.nsdf-file-name { font-size: 12.5px; font-weight: 600; color: var(--nsdf-gold); margin-top: 6px; display: none; }

.nsdf-qr-row {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
	margin-bottom: 12px;
}
.nsdf-qr-box {
	text-align: center;
}
.nsdf-qr-box img {
	width: 130px;
	height: 130px;
	object-fit: contain;
	border: 1.5px solid var(--nsdf-border);
	border-radius: 8px;
	padding: 6px;
	background: #fff;
}
.nsdf-qr-label { font-size: 13px; font-weight: 600; margin-top: 6px; }
.nsdf-qr-sub { font-size: 11px; color: var(--nsdf-light); }

.nsdf-consent-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: rgba(0,0,0,0.02);
	border: 1.5px solid var(--nsdf-border);
	border-radius: 8px;
	padding: 14px 16px;
}
.nsdf-consent-row input { margin-top: 2px; flex: none; }
.nsdf-consent-row label {
	font-size: 13px;
	font-weight: 400;
	text-transform: none;
	margin: 0;
	line-height: 1.5;
}
.nsdf-consent-row a { color: var(--nsdf-gold); font-weight: 600; }

.nsdf-btn-group { margin-top: 8px; }
.nsdf-btn-group button {
	background: var(--nsdf-gold);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 14px 28px;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background 0.2s;
}
.nsdf-btn-group button:hover { background: var(--nsdf-gold-dark); }
.nsdf-btn-group button:disabled { opacity: 0.6; cursor: not-allowed; }

.nsdf-status {
	font-size: 13.5px;
	margin-top: 8px;
	padding: 12px 16px;
	border-radius: 8px;
	display: none;
}
.nsdf-status.err {
	display: block;
	background: rgba(255,80,80,0.08);
	color: #c0392b;
	border: 1px solid #c0392b;
}
.nsdf-status.ok {
	display: block;
	background: rgba(45,122,90,0.1);
	color: #2d7a5a;
	border: 1px solid #2d7a5a;
}

/* Success modal */
.nsdf-success-overlay {
	position: fixed;
	inset: 0;
	background: rgba(11,28,47,0.75);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 20px;
}
.nsdf-success-modal {
	background: #fff;
	border-radius: 16px;
	padding: 40px 36px 32px;
	max-width: 480px;
	width: 100%;
	text-align: center;
	box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.nsdf-success-icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: var(--nsdf-gold);
	color: #fff;
	font-size: 40px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}
.nsdf-success-modal h2 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 22px;
	margin: 0 0 8px;
}
.nsdf-success-modal p { font-size: 15px; color: var(--nsdf-medium); margin: 0 0 8px; }
.nsdf-success-btn {
	display: inline-block;
	background: var(--nsdf-gold);
	color: #fff !important;
	padding: 12px 28px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
	text-decoration: none;
	margin-top: 16px;
}

@media (max-width: 900px) {
	.nsdf-wrap { grid-template-columns: 1fr; }
	.nsdf-side { border-bottom: 1px solid rgba(255,255,255,0.06); }
	.nsdf-form-side { max-height: none; padding: 28px 20px; }
	.nsdf-row2 { grid-template-columns: 1fr; }
}

/* --- Регистрация на конкретное событие календаря --- */
.nsdf-linked-event {
	margin: 0 0 22px;
	padding: 16px 18px;
	border-radius: 10px;
	background: #eef3ff;
	border: 1px solid rgba(46, 79, 232, 0.22);
}

.nsdf-linked-event__eyebrow {
	margin: 0 0 6px;
	font-size: 11.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 700;
	color: #2e4fe8;
}

.nsdf-linked-event__title {
	margin: 0 0 4px;
	font-size: 16.5px;
	font-weight: 700;
	line-height: 1.35;
	color: #1f2430;
}

.nsdf-linked-event__meta {
	margin: 0 0 8px;
	font-size: 13px;
	color: #4b5563;
}

.nsdf-linked-event__hint {
	margin: 0;
	font-size: 12.5px;
	color: #6b7280;
}
