.event-rsvp-modal[hidden] {
	display: none;
}

.event-rsvp-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.event-rsvp-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgb(15 23 42 / 0.56);
}

.event-rsvp-modal__panel {
	position: relative;
	width: min(520px, 100%);
	max-height: calc(100vh - 48px);
	overflow: auto;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 24px 64px rgb(15 23 42 / 0.26);
	padding: 24px;
}

.event-rsvp-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	border: 0;
	background: transparent;
	color: #111827;
	cursor: pointer;
	font-size: 24px;
	line-height: 1;
	padding: 4px 8px;
}

.event-rsvp-modal__title {
	margin: 0 32px 16px 0;
	font-size: 1.5rem;
	line-height: 1.2;
}

.event-rsvp-form {
	display: grid;
	gap: 14px;
}

.event-rsvp-form__row {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-rsvp-form label {
	display: grid;
	gap: 6px;
	color: #374151;
	font-weight: 600;
}

.event-rsvp-form input {
	width: 100%;
	min-height: 44px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	padding: 8px 10px;
	font: inherit;
}

.event-rsvp-form__submit,
.event-rsvp-modal__signin {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border: 0;
	border-radius: 6px;
	background: #111827;
	color: #fff;
	cursor: pointer;
	font-weight: 700;
	text-decoration: none;
	padding: 0.75rem 1.25rem;
}

.event-rsvp-modal__notice {
	margin: 0 0 16px;
	padding: 10px 12px;
	border-radius: 6px;
	background: #ecfdf5;
	color: #065f46;
}

.event-rsvp-modal-open {
	overflow: hidden;
}

@media (max-width: 560px) {
	.event-rsvp-form__row {
		grid-template-columns: 1fr;
	}
}
