/* Shared styles for [kcs_sessions], [kcs_speakers], [kcs_event_details]. */

.kcs-zoom-empty,
.kcs-zoom-error {
	opacity: 0.8;
	font-style: italic;
}

/* --- Sessions toggle list --- */

.kcs-zoom-toggle-item {
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.kcs-zoom-toggle-heading {
	margin: 0;
}

.kcs-zoom-toggle-button {
	display: flex;
	align-items: center;
	gap: 0.75em;
	width: 100%;
	padding: 1em 0.25em;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	font: inherit;
	color: inherit;
}

.kcs-zoom-toggle-button:hover,
.kcs-zoom-toggle-button:focus-visible {
	background: rgba(0, 0, 0, 0.03);
}

.kcs-zoom-toggle-title {
	flex: 1 1 auto;
	font-weight: 600;
}

.kcs-zoom-toggle-time {
	flex: 0 0 auto;
	font-size: 0.9em;
	opacity: 0.75;
	white-space: nowrap;
}

.kcs-zoom-toggle-icon {
	flex: 0 0 auto;
	width: 0.6em;
	height: 0.6em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.15s ease;
}

.kcs-zoom-toggle-button[aria-expanded="true"] .kcs-zoom-toggle-icon {
	transform: rotate(-135deg);
}

.kcs-zoom-toggle-panel {
	padding: 0 0.25em 1.25em;
}

.kcs-zoom-description p:first-child {
	margin-top: 0;
}

/* --- Speakers grid --- */

.kcs-zoom-speakers {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.5em;
}

.kcs-zoom-speaker-card {
	display: flex;
	gap: 1em;
	align-items: flex-start;
}

.kcs-zoom-speaker-photo {
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
}

.kcs-zoom-speaker-name {
	margin: 0 0 0.15em;
	font-size: 1.05em;
}

.kcs-zoom-speaker-role {
	margin: 0 0 0.5em;
	font-size: 0.9em;
	opacity: 0.8;
}

.kcs-zoom-speaker-bio p {
	margin: 0 0 0.5em;
	font-size: 0.92em;
}

.kcs-zoom-speaker-links a {
	margin-right: 0.75em;
	font-size: 0.85em;
}

/* --- Event details --- */

.kcs-zoom-event-name {
	margin-bottom: 0.25em;
}

.kcs-zoom-event-tagline {
	opacity: 0.85;
	margin-top: 0;
}

.kcs-zoom-event-time {
	font-weight: 600;
}

.kcs-zoom-register-button {
	display: inline-block;
	padding: 0.75em 1.75em;
	border-radius: 999px;
	background: #1a56db;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
}

.kcs-zoom-register-button:hover {
	background: #1543ab;
	color: #fff;
}

.kcs-zoom-admin-note {
	margin-top: 1em;
	padding: 0.75em 1em;
	background: rgba(255, 193, 7, 0.15);
	border-left: 3px solid #ffc107;
	font-size: 0.9em;
}

/* --- Registration form --- */

.kcs-zoom-registration-form {
	max-width: 32em;
}

.kcs-zoom-field {
	margin-bottom: 1.1em;
}

.kcs-zoom-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35em;
}

.kcs-zoom-field input[type="text"],
.kcs-zoom-field input[type="email"],
.kcs-zoom-field textarea,
.kcs-zoom-field select {
	width: 100%;
	padding: 0.6em 0.75em;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 6px;
	font: inherit;
	box-sizing: border-box;
}

.kcs-zoom-field textarea {
	min-height: 5em;
}

/* Radio / checkbox question groups: no single <label for="">, so the
   group heading is a <span> tied to the options via aria-labelledby
   instead (radio) or just visually grouped (checkboxes). */
.kcs-zoom-field-group .kcs-zoom-field-legend {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35em;
}

.kcs-zoom-options {
	display: flex;
	flex-direction: column;
	gap: 0.4em;
}

.kcs-zoom-option {
	display: flex;
	align-items: center;
	gap: 0.5em;
	font-weight: 400;
	cursor: pointer;
}

.kcs-zoom-option input[type="radio"],
.kcs-zoom-option input[type="checkbox"] {
	flex: 0 0 auto;
	margin: 0;
}

.kcs-required {
	color: #c0392b;
}

.kcs-zoom-registration-form button.kcs-zoom-register-button {
	border: none;
	font: inherit;
	cursor: pointer;
}

/* Honeypot field: hidden from real visitors, present in the DOM for bots. */
.kcs-zoom-hp-wrap {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.kcs-zoom-registration-success,
.kcs-zoom-registration-error {
	padding: 1em 1.25em;
	border-radius: 6px;
	margin-bottom: 1.25em;
}

.kcs-zoom-registration-success {
	background: rgba(46, 204, 113, 0.12);
	border-left: 3px solid #2ecc71;
}

.kcs-zoom-registration-error {
	background: rgba(231, 76, 60, 0.1);
	border-left: 3px solid #e74c3c;
}
