/* ── Seminar Prezență — Frontend Styles ── */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&display=swap');

.sp-wrap {
	--ink:     #0f0f0f;
	--paper:   #f5f0e8;
	--cream:   #ede8dc;
	--accent:  #c8391a;
	--blue:    #1a5fc8;
	--green:   #1a7a3c;
	--shadow:  3px 3px 0 #0f0f0f;

	font-family: 'DM Sans', sans-serif;
	color: var(--ink);
	width: 100%;
}

/* ── Screens ── */

.sp-screen { display: none; }
.sp-screen--active { display: block; }

/* ── Card ── */

.sp-card {
	max-width: 420px;
	margin: 32px auto;
	background: #fff;
	border: 2px solid var(--ink);
	box-shadow: var(--shadow);
	animation: sp-up .3s ease;
}

.sp-card__header {
	background: var(--ink);
	color: var(--paper);
	padding: 20px 24px;
	text-align: center;
}

.sp-card__header h2 {
	font-family: 'DM Serif Display', serif;
	font-style: italic;
	font-size: 22px;
	margin: 0 0 4px;
}

.sp-card__header p {
	font-size: 12px;
	opacity: .6;
	margin: 0;
}

.sp-date-badge {
	display: inline-block;
	background: var(--accent);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 5px 16px;
	margin-top: 10px;
	letter-spacing: .05em;
}

.sp-card__body {
	padding: 28px 24px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* ── Fields ── */

.sp-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.sp-field label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: #555;
}

.sp-field input,
.sp-field select {
	border: 2px solid var(--ink);
	padding: 12px 14px;
	font-family: 'DM Sans', sans-serif;
	font-size: 15px;
	background: var(--paper);
	color: var(--ink);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .15s, background .15s;
	border-radius: 0;
}

.sp-field input:focus,
.sp-field select:focus {
	background: #fff;
	border-color: var(--blue);
}

.sp-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230f0f0f' stroke-width='2' fill='none'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
}

.sp-field select:disabled {
	opacity: .5;
	cursor: not-allowed;
}

/* ── Error ── */

.sp-error {
	color: var(--accent);
	font-size: 13px;
	font-weight: 500;
	margin: 0;
	padding: 10px 14px;
	background: #fde8e0;
	border: 1.5px solid var(--accent);
}

/* ── Button ── */

.sp-btn--submit {
	background: var(--ink);
	color: var(--paper);
	border: 2px solid var(--ink);
	padding: 14px;
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: var(--shadow);
	transition: all .15s;
	width: 100%;
}

.sp-btn--submit:hover:not(:disabled) {
	transform: translate(-1px, -1px);
	box-shadow: 4px 4px 0 var(--ink);
}

.sp-btn--submit:active:not(:disabled) {
	transform: translate(2px, 2px);
	box-shadow: 1px 1px 0 var(--ink);
}

.sp-btn--submit:disabled {
	opacity: .4;
	cursor: not-allowed;
}

.sp-btn--back {
	background: transparent;
	border: 2px solid var(--ink);
	padding: 10px 24px;
	font-family: 'DM Sans', sans-serif;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	letter-spacing: .05em;
	transition: all .15s;
	margin-top: 28px;
}

.sp-btn--back:hover {
	background: var(--ink);
	color: var(--paper);
}

/* ── Success ── */

.sp-success {
	max-width: 360px;
	margin: 48px auto;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	animation: sp-up .4s ease;
}

.sp-success__icon {
	width: 80px;
	height: 80px;
	background: var(--green);
	border: 2px solid var(--ink);
	box-shadow: var(--shadow);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 24px;
}

.sp-success__icon svg { width: 40px; height: 40px; }

.sp-success h2 {
	font-family: 'DM Serif Display', serif;
	font-size: 28px;
	margin: 0 0 8px;
}

.sp-success p { color: #555; font-size: 14px; line-height: 1.6; margin: 0; }

.sp-success__name {
	font-weight: 600;
	font-size: 18px;
	margin: 12px 0;
	padding: 8px 20px;
	border: 2px solid var(--ink);
	background: var(--cream);
}

.sp-success__meta { font-size: 13px !important; color: #666 !important; }

/* ── Locked state ── */

.sp-locked {
	text-align: center;
	padding: 36px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.sp-locked__icon { font-size: 48px; line-height: 1; }

.sp-locked__msg {
	font-size: 16px;
	color: var(--ink);
	margin: 0;
}

.sp-locked__sub {
	font-size: 13px;
	color: #888;
	margin: 0;
}

/* ── Animation ── */

@keyframes sp-up {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ── Mobile ── */

@media (max-width: 480px) {
	.sp-card { margin: 16px auto; }
	.sp-card__body { padding: 20px 16px; }
}
