/* ============================================================================
   Lottery module
   Scope: all styles are contained inside `.lottery-page`.
   Required wrapper example:
   <div class="lottery-page">...</div>
   ============================================================================ */

.lottery-page, .lottery-events {
	--lottery-primary-color: rgb(0, 109, 176);
	--lottery-primary-hover-color: #004ca3;
	--lottery-focus-color: #005fcc;
	--lottery-text-color: #1f2933;
	--lottery-muted-text-color: #555;
	--lottery-border-color: #ccd3dc;
	--lottery-surface-color: #ffffff;
	--lottery-soft-surface-color: #f7f9fb;
}
.lottery-page {
	box-sizing: border-box;
	width: 100%;
	min-height: 100vh;
	padding: 56px 48px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	color: var(--lottery-text-color);
}

.lottery-page,
.lottery-page *,
.lottery-page *::before,
.lottery-page *::after {
	box-sizing: border-box;
}

.lottery-extra-info-text {
	margin: 12px 0 0;
	font-size: 15px;
	font-weight: 600;
}

.lottery-extra-info-text--success {
	color: #1f6b32;
}

.lottery-extra-info-text--error {
	color: #8a1f1f;
}

.lottery-extra-info-text--loading {
	color: var(--lottery-primary-color);
}
/* ============================================================================
   Shared utilities
   ============================================================================ */

.lottery-flex-center {
	display: flex;
	justify-content: center;
	align-items: center;
}

/* ============================================================================
   Form layout
   ============================================================================ */

.lottery-form-card {
	width: min(100%, 760px);
	padding: 32px;
	border-radius: 16px;
	background: var(--lottery-surface-color);
}
.lottery-hero {
	display: flex;
	width: 100%;
	align-items: center;
	margin-bottom: 32px;
	overflow: hidden;
}

.lottery-hero__image-wrap {
	width: 58%;
	flex: 0 0 58%;
	display: flex;
}

.lottery-hero__image {
	display: block;
	width: 100%;
	min-height: 420px;
	object-fit: cover;
	border-radius: 0.5rem;
}

.lottery-image-side {
	width: 44%;
	flex: 0 0 44%;
	display: flex;
	align-items: center;
	margin-left: -2%;
	position: relative;
	z-index: 2;
}

.lottery-image-side__inner {
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 100%;
	min-height: 360px;
	border-radius: 0.5rem;
	background-color: var(--lottery-primary-color);
	padding: 32px;
	color: #ffffff;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.lottery-hero__area {
	margin: 0 0 16px;
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	font-family: 'work-bold';
	letter-spacing: 0.04em;
	opacity: 0.8;
}

.lottery-hero__title {
	margin: 0 0 20px;
	font-size: 30px;
	line-height: 1.15;
	font-family: 'work-bold';
	font-weight: 700;
}

.lottery-hero__description {
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
}

/* Mobile */
@media (max-width: 700px) {
	.lottery-hero {
		flex-direction: column;
		align-items: stretch;
		margin-bottom: 24px;
	}

	.lottery-hero__image-wrap,
	.lottery-image-side {
		width: 100%;
		flex-basis: auto;
	}

	.lottery-image-side {
		margin-left: 0;
		z-index: 1;
	}

	.lottery-hero__image {
		width: 100%;
		height: auto;
		min-height: 0;
		aspect-ratio: 4 / 3;
		border-radius: 0.5rem 0.5rem 0 0;
	}

	.lottery-image-side__inner {
		min-height: 0;
		padding: 22px 18px;
		border-radius: 0 0 0.5rem 0.5rem;
		box-shadow: none;
	}

	.lottery-hero__area {
		font-size: 0.8rem;
		margin-bottom: 10px;
	}

	.lottery-hero__title {
		font-size: 22px;
		margin-bottom: 12px;
	}

	.lottery-hero__description {
		font-size: 14px;
		line-height: 1.45;
	}
}

.lottery-heading {
	margin: 0 0 8px;
	font-size: 20px;
	line-height: 1.15;
	font-weight: bold;
}

.lottery-intro {
	margin: 0 0 28px;
	color: var(--lottery-muted-text-color);
}

.lottery-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.lottery-field {
	display: flex;
	flex-direction: column;
}

.lottery-field--full {
	grid-column: 1 / -1;
}

.lottery-label {
	margin-bottom: 6px;
	font-weight: 700;
}

.lottery-input,
.lottery-select {
	width: 100%;
	padding: 13px 14px;
	border: 1px solid var(--lottery-border-color);
	border-radius: 10px;
	background: #ffffff;
	font: inherit;
	font-size: 16px;
}

.lottery-input:focus,
.lottery-select:focus {
	outline: none;
	border-color: var(--lottery-focus-color);
	box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.15);
}

.lottery-hint {
	margin-top: 5px;
	font-size: 13px;
}

/* ============================================================================
   Checkbox group
   ============================================================================ */

.lottery-checkbox-group {
	margin-top: 22px;
}

.lottery-checkbox-row {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 16px;
}

.lottery-checkbox-row .lottery-input,
.lottery-checkbox-input {
	width: auto;
	margin-top: 5px;
	flex-shrink: 0;
	cursor: pointer;
	-webkit-appearance: auto;
	appearance: auto;
}

.lottery-checkbox-row .lottery-label {
	margin-bottom: 0;
	font-weight: 400;
}

/* ============================================================================
   Legal / status boxes
   ============================================================================ */

.lottery-legal-box {
	margin-top: 22px;
	padding: 18px;
	border: 1px solid #dce3ea;
	border-radius: 12px;
	background: var(--lottery-soft-surface-color);
	color: #444444;
	font-size: 14px;
}

.lottery-legal-box strong {
	color: #000000;
	font-weight: 700;
}

.lottery-error-box,
.lottery-success-box {
	margin-bottom: 22px;
	padding: 16px 18px;
	border-radius: 12px;
}

.lottery-error-box {
	border: 1px solid #ffb8b8;
	background: #fff0f0;
	color: #8a1f1f;
}

.lottery-success-box {
	border: 1px solid #a8e0b5;
	background: #edf9f0;
	color: #1f6b32;
}

.lottery-error-box ul {
	margin: 8px 0 0 20px;
	padding: 0;
}

.lottery-extra-info {
	margin-bottom: 24px;
	padding: 14px 18px;
	border: 1px solid #c9dcff;
	border-radius: 14px;
	background: #f3f7ff;
	color: #1f3f6d;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
}

.lottery-extra-info p {
	margin: 0;
}

.lottery-extra-info--upcoming {
	border-color: #ffe2a3;
	background: #fff8e6;
	color: #6b4a00;
}

.lottery-extra-info--ended {
	border-color: #d6d6d6;
	background: #f5f5f5;
	color: #555555;
}

/* ============================================================================
   Buttons
   ============================================================================ */

.lottery-submit-button {
	width: 100%;
	margin-top: 28px;
	padding: 16px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--lottery-focus-color);
	color: #ffffff;
	font: inherit;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.1s ease;
}

.lottery-submit-button:hover {
	background: var(--lottery-primary-hover-color);
}

.lottery-submit-button:active {
	transform: scale(0.99);
}

.lottery-submit-button:disabled,
.lottery-submit-button--disabled {
	background: #b8b8b8;
	color: #ffffff;
	cursor: not-allowed;
	opacity: 0.75;
}

.lottery-submit-button:disabled:hover,
.lottery-submit-button--disabled:hover {
	background: #b8b8b8;
}

.lottery-submit-button:disabled:active,
.lottery-submit-button--disabled:active {
	transform: none;
}

/* ============================================================================
   Event listing
   ============================================================================ */

.lottery-events {
	width: min(100%, 1200px);
	margin: 0 auto;
	padding-block: clamp(24px, 4vw, 40px);
	padding-inline: clamp(16px, 5vw, 60px);
}

.lottery-events__header {
	margin-bottom: 24px;
	color: var(--lottery-primary-color);
	border-bottom: 3px solid var(--lottery-primary-color);
}

.lottery-events__heading {
	margin: 0;
	font-size: clamp(1.8rem, 2vw, 2.4rem);
	line-height: 1.1;
	letter-spacing: 0.01rem;
	font-weight: 800;
	text-transform: uppercase;
}

.lottery-events__list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

.lottery-event-card-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.lottery-event-card {
	overflow: hidden;
	border-radius: 16px;
	background: #ffffff;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lottery-event-card-link:hover .lottery-event-card,
.lottery-event-card-link:focus-visible .lottery-event-card {
	transform: translateY(-3px);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

.lottery-event-card__image {
	width: 100%;
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f2f2f2;
}

.lottery-event-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.lottery-event-card__title {
	margin: 0;
	padding: 16px;
	font-size: 1.1rem;
	line-height: 1.3;
}

.lottery-event-card__title span {
	font-family: 'work-bold';
	font-weight: 700;
	display: block;
}

.lottery-event-card__title span:first-child {
	margin-bottom: 4px;
	color: var(--lottery-primary-color);
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.lottery-event-card__title span:last-child {
	font-weight: 700;
}

.lottery-question-input{
	padding-left: 12px;
	display: flex; 
	flex-direction: column; 
	justify-content: flex-start; 
	gap: 32px;
}
.lottery-question-input input{
	width: unset;
}
/* ============================================================================
   Responsive
   ============================================================================ */

@media (min-width: 600px) {
	.lottery-events__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 768px) {
	.lottery-events__header {
		margin-bottom: 32px;
	}
}

@media (min-width: 1024px) {
	.lottery-events__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 28px;
	}

	.lottery-event-card__title {
		padding: 18px;
		font-size: 1.2rem;
	}
}

@media (max-width: 700px) {
	.lottery-page {
		padding: 32px 18px;
	}

	.lottery-form-card {
		padding: 24px 18px;
		border-radius: 12px;
	}

	.lottery-image-side {
		width: 100%;
	}

	.lottery-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.lottery-submit-button {
		font-size: 17px;
	}

	.lottery-extra-info {
		padding: 13px 15px;
		border-radius: 12px;
		font-size: 15px;
	}
}
