/* Event Ticket & RSVP — scoped styles.
   Everything is namespaced under .iwt-rsvp / .iwt-event-list so nothing
   bleeds into (or is broken by) Elementor or theme styles. */

.iwt-rsvp {
	--iwt-navy: #1F2A44;
	--iwt-orange: #E87A2E;
	--iwt-cream: #F6F1E7;
	background: var(--iwt-cream);
	border: 1px solid #e5dccb;
	border-radius: 10px;
	padding: 32px;
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	margin: 32px auto;
	font-size: 16px;
	line-height: 1.5;
}

/* Keep the input fields a comfortable reading width, centered in the box. */
.iwt-rsvp__form,
.iwt-rsvp__success {
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}

.iwt-rsvp__title {
	max-width: 640px;
	margin: 0 auto 6px;
	color: var(--iwt-navy);
	font-size: 1.35em;
}

.iwt-rsvp__seats {
	max-width: 640px;
	margin: 0 auto 14px;
	font-weight: 600;
	color: var(--iwt-orange);
}
.iwt-rsvp__seats--full { color: #b32d2e; }

.iwt-rsvp__field { margin: 0 0 14px; }
.iwt-rsvp__field label {
	display: block;
	font-weight: 600;
	color: var(--iwt-navy);
}
.iwt-rsvp__field input[type="text"],
.iwt-rsvp__field input[type="email"],
.iwt-rsvp__field input[type="tel"] {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin-top: 4px;
	padding: 10px 12px;
	border: 1px solid #cfc6b3;
	border-radius: 6px;
	background: #fff;
	font-size: 1em;
}
.iwt-rsvp__field input:focus {
	outline: 2px solid var(--iwt-orange);
	outline-offset: 1px;
	border-color: var(--iwt-orange);
}

.iwt-req { color: var(--iwt-orange); }

/* Honeypot: visually removed but present for bots. */
.iwt-rsvp__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px; height: 1px;
	overflow: hidden;
}

.iwt-rsvp__consent label {
	font-weight: 400;
	font-size: 0.9em;
	color: #444;
}
.iwt-rsvp__consent input { margin-right: 6px; }
.iwt-rsvp__consent a { color: var(--iwt-navy); text-decoration: underline; }

.iwt-rsvp__submit {
	background: var(--iwt-orange);
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: 12px 26px;
	font-size: 1em;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease;
}
.iwt-rsvp__submit:hover:not(:disabled) { background: #cf6a24; }
.iwt-rsvp__submit:disabled { opacity: 0.55; cursor: not-allowed; }

.iwt-rsvp__message {
	margin: 12px 0 0;
	padding: 10px 12px;
	border-radius: 6px;
	font-weight: 600;
}
.iwt-rsvp__message--error { background: #fdecea; color: #b32d2e; }
.iwt-rsvp__message--ok { background: #e7f6ec; color: #1a7f37; }

.iwt-rsvp__success-text {
	font-weight: 700;
	color: #1a7f37;
	margin: 0 0 12px;
}

.iwt-btn {
	display: inline-block;
	padding: 10px 16px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	margin: 0 8px 8px 0;
	color: #fff !important;
}
.iwt-btn--navy { background: var(--iwt-navy); }
.iwt-btn--orange { background: var(--iwt-orange); }
.iwt-btn:hover { opacity: 0.9; }

.iwt-rsvp--closed {
	color: #666;
	font-style: italic;
}

/* ---------- Upcoming events list ---------- */

.iwt-event-list {
	list-style: none;
	margin: 20px 0;
	padding: 0;
}
.iwt-event-list__item {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 14px;
	padding: 14px 4px;
	border-bottom: 1px solid #e8e2d5;
}
.iwt-event-list__date {
	font-weight: 700;
	color: #E87A2E;
	min-width: 170px;
}
.iwt-event-list__link {
	font-weight: 700;
	color: #1F2A44;
	text-decoration: none;
	font-size: 1.05em;
}
.iwt-event-list__link:hover { text-decoration: underline; }
.iwt-event-list__venue { color: #666; font-size: 0.92em; }
.iwt-event-list__rsvp {
	margin-left: auto;
	color: #E87A2E;
	font-weight: 700;
	text-decoration: none;
}
.iwt-event-list__rsvp:hover { text-decoration: underline; }

@media (max-width: 520px) {
	.iwt-event-list__rsvp { margin-left: 0; }
}

/* ---------- Event cards ([iwt_event_list], default style) ---------- */

.iwt-cards {
	display: grid;
	gap: 24px;
	margin: 24px 0;
}
.iwt-cards--cols-1 { grid-template-columns: 1fr; }
.iwt-cards--cols-2 { grid-template-columns: repeat(2, 1fr); }
.iwt-cards--cols-3 { grid-template-columns: repeat(3, 1fr); }
.iwt-cards--cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
	.iwt-cards--cols-3, .iwt-cards--cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.iwt-cards--cols-2, .iwt-cards--cols-3, .iwt-cards--cols-4 { grid-template-columns: 1fr; }
}

.iwt-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e8e2d5;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(31, 42, 68, 0.08);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.iwt-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 22px rgba(31, 42, 68, 0.14);
}

.iwt-card__media {
	position: relative;
	display: block;
	line-height: 0;
}
.iwt-card__img {
	width: 100%;
	height: 190px;
	object-fit: cover;
	display: block;
}
.iwt-card__img--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 190px;
	background: linear-gradient(135deg, #1F2A44 0%, #33456e 100%);
	color: #E87A2E;
}
.iwt-card__img--placeholder .iwt-icon { width: 44px; height: 44px; }

.iwt-card__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	display: flex;
	flex-direction: column;
	align-items: center;
	background: #1F2A44;
	color: #fff;
	border: 2px solid #E87A2E;
	border-radius: 8px;
	padding: 6px 12px;
	line-height: 1.15;
	text-align: center;
}
.iwt-card__badge-m { font-size: 12px; font-weight: 700; color: #E87A2E; text-transform: uppercase; letter-spacing: 1px; }
.iwt-card__badge-d { font-size: 22px; font-weight: 800; }
.iwt-card__badge-y { font-size: 11px; opacity: 0.85; }

.iwt-card__body {
	flex: 1;
	padding: 18px 18px 6px;
}
.iwt-card__title {
	margin: 0 0 12px;
	font-size: 1.1em;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}
.iwt-card__title a {
	color: #1F2A44;
	text-decoration: none;
}
.iwt-card__title a:hover { color: #E87A2E; }

.iwt-card__row {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin: 0 0 10px;
	font-size: 0.92em;
	color: #444;
	line-height: 1.45;
}
.iwt-card__row .iwt-icon {
	flex: 0 0 auto;
	margin-top: 2px;
	color: #E87A2E;
}

.iwt-card__seats {
	margin: 0 0 10px;
	font-size: 0.85em;
	font-weight: 700;
	color: #E87A2E;
}

.iwt-card__footer { padding: 0 18px 18px; }
.iwt-card__cta {
	display: block;
	text-align: center;
	background: #E87A2E;
	color: #fff !important;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 0.9em;
	padding: 12px 16px;
	border-radius: 6px;
	text-decoration: none;
	transition: background 0.15s ease;
}
.iwt-card__cta:hover { background: #cf6a24; }
.iwt-card__cta--waitlist { background: #1F2A44; }
.iwt-card__cta--waitlist:hover { background: #33456e; }
.iwt-card__cta--full {
	background: #b8b2a4;
	cursor: default;
	pointer-events: none;
}
