/* AAIM Annual Meetings — frontend styles */

.aaim-meetings {
	display: block;
	margin: 0 0 1rem;
}

.aaim-meeting {
	padding: 10px 0 20px;
}

.aaim-meeting + .aaim-meeting {
	border-top: 0;
}

.aaim-meeting__header {
	margin: 0 0 12px;
}

.aaim-meeting__title {
	margin: 0 0 5px;
	font-size: 1.75rem;
	line-height: 1.2;
	font-weight: 700;
}

.aaim-meeting__sep {
	border: 0;
	border-top: 1px solid var(--awb-custom_color_2, #d6d7d9);
	margin: 8px 0 12px;
}

.aaim-meeting__body {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: flex-start;
}

.aaim-meeting__info {
	flex: 1 1 280px;
	min-width: 240px;
}

.aaim-meeting__meta {
	list-style: none;
	padding: 0;
	margin: 0 0 10px;
}

.aaim-meeting__meta li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 3px 0;
	font-size: 1rem;
	line-height: 1.4;
}

.aaim-meeting__icon {
	display: inline-flex;
	color: var(--awb-custom_color_2, #0a5b8c);
	width: 18px;
	height: 18px;
}

.aaim-meeting__form {
	flex: 2 1 360px;
	min-width: 280px;
}

.aaim-meeting__label {
	font-size: 1.1rem;
	font-weight: 600;
	margin: 0 0 8px;
}

.aaim-form__row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
}

.aaim-form__row input[type="email"],
.aaim-form__row input[type="password"] {
	flex: 1 1 160px;
	min-width: 120px;
	padding: 8px 10px;
	border: 1px solid #c7c9cc;
	border-radius: 4px;
	font-size: 1rem;
	background: #fff;
}

.aaim-form__row input:focus {
	outline: none;
	border-color: var(--awb-custom_color_2, #0a5b8c);
	box-shadow: 0 0 0 2px rgba(10, 91, 140, 0.2);
}

.aaim-btn {
	display: inline-block;
	padding: 9px 18px;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.aaim-btn--primary {
	background: var(--awb-color5, #0a5b8c);
	color: #fff;
}

.aaim-btn--primary:hover,
.aaim-btn--primary:focus {
	background: var(--awb-color6, #084a71);
	color: #fff;
}

.aaim-btn--outline {
	background: transparent;
	border-color: var(--awb-custom_color_2, #0a5b8c);
	color: var(--awb-custom_color_2, #0a5b8c);
}

.aaim-btn--outline:hover,
.aaim-btn--outline:focus {
	background: var(--awb-custom_color_2, #0a5b8c);
	color: #fff;
}

.aaim-msg {
	margin-top: 8px;
	font-size: 0.95rem;
	min-height: 1.2em;
}

.aaim-msg.is-error {
	color: #b32d2e;
}

.aaim-msg.is-success {
	color: #1e7a1e;
}

.aaim-empty {
	color: #50575e;
	font-style: italic;
}

/* Modal */
.aaim-modal[hidden] {
	display: none !important;
}

.aaim-modal {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	inset: 0;
	z-index: 2147483000; /* above Avada sticky header/footer */
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 40px 16px;
	overflow-y: auto;
	isolation: isolate;
}

.aaim-modal__backdrop {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	cursor: pointer;
	z-index: 0;
}

.aaim-modal__panel {
	position: relative;
	background: #fff;
	border-radius: 6px;
	max-width: 1000px;
	width: 100%;
	padding: 30px 32px 40px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	z-index: 1;
	margin: 0 auto;
}

.aaim-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	background: transparent;
	border: 0;
	font-size: 28px;
	line-height: 1;
	color: #50575e;
	cursor: pointer;
	border-radius: 50%;
}

.aaim-modal__close:hover,
.aaim-modal__close:focus {
	background: #f0f0f1;
	color: #111;
	outline: none;
}

.aaim-modal__title {
	margin: 0 40px 16px 0;
	font-size: 1.6rem;
	line-height: 1.25;
}

.aaim-modal__body {
	font-size: 1rem;
	line-height: 1.5;
}

.aaim-modal__body .fusion-tabs {
	margin-top: 10px;
}

/* Ensure Bootstrap-style tab/accordion visibility works inside the modal
   even if Avada's original show/hide rules were not scoped here. */
.aaim-modal__body .tab-content > .tab-pane { display: none; }
.aaim-modal__body .tab-content > .tab-pane.active,
.aaim-modal__body .tab-content > .tab-pane.in { display: block; }

.aaim-modal__body .fusion-accordian .panel-collapse { display: none; }
.aaim-modal__body .fusion-accordian .panel-collapse.in { display: block; }

body.aaim-modal-open {
	overflow: hidden;
}

@media (max-width: 640px) {
	.aaim-meeting__title {
		font-size: 1.4rem;
	}
	.aaim-modal__panel {
		padding: 28px 18px 30px;
	}
	.aaim-modal__title {
		font-size: 1.3rem;
	}
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
