/**
 * BJ Event Tickets - Booking Form Styles
 * Uses Open Sans to match Business Junction brand preferences.
 *
 * @package BJ_Event_Tickets
 * @since   1.0.0
 */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

/* -------------------------------------------------------------------------
   Container
   ------------------------------------------------------------------------- */

.bjet-ticket-form {
	font-family: 'Open Sans', sans-serif;
	font-size: 16px;
	color: #2c2c2c;
	max-width: 780px;
	margin: 0 auto;
}

/* -------------------------------------------------------------------------
   Step indicator
   ------------------------------------------------------------------------- */

.bjet-steps {
	display: flex;
	gap: 4px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.bjet-step {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #aaa;
	padding: 6px 10px;
	border-radius: 4px;
}

.bjet-step span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #ddd;
	color: #666;
	font-size: 12px;
	font-weight: 700;
}

.bjet-step.active {
	color: #3b1c6e;
	font-weight: 600;
}

.bjet-step.active span {
	background: #3b1c6e;
	color: #fff;
}

.bjet-step.done {
	color: #007017;
}

.bjet-step.done span {
	background: #007017;
	color: #fff;
}

/* -------------------------------------------------------------------------
   Card wrapper
   ------------------------------------------------------------------------- */

.bjet-card {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 28px 32px;
}

.bjet-card h2 {
	font-family: 'Open Sans', sans-serif;
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 16px;
	color: #3b1c6e;
}

.bjet-card h3 {
	font-family: 'Open Sans', sans-serif;
	font-size: 16px;
	font-weight: 600;
	margin: 24px 0 10px;
	color: #2c2c2c;
	border-bottom: 1px solid #eee;
	padding-bottom: 6px;
}

/* -------------------------------------------------------------------------
   Form fields
   ------------------------------------------------------------------------- */

.bjet-field {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 200px;
}

.bjet-field label {
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 5px;
	color: #444;
}

.bjet-field input,
.bjet-field select,
.bjet-field textarea {
	font-family: 'Open Sans', sans-serif;
	font-size: 15px;
	padding: 9px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	color: #2c2c2c;
	transition: border-color 0.15s;
}

.bjet-field input:focus,
.bjet-field select:focus,
.bjet-field textarea:focus {
	outline: none;
	border-color: #3b1c6e;
	box-shadow: 0 0 0 2px rgba(59,28,110,0.12);
}

.bjet-field input[readonly] {
	background: #f5f5f5;
	color: #666;
}

.bjet-row {
	display: flex;
	gap: 16px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}

.bjet-field {
	margin-bottom: 14px;
}

/* Required / optional labels */
.bjet-req  { color: #d63638; font-weight: 400; }
.bjet-opt  { color: #888;    font-weight: 400; font-size: 12px; }

/* -------------------------------------------------------------------------
   Section dividers
   ------------------------------------------------------------------------- */

.bjet-section {
	margin-top: 20px;
}

.bjet-hr {
	border: none;
	border-top: 1px solid #eee;
	margin: 24px 0;
}

/* -------------------------------------------------------------------------
   Member list (Step 2)
   ------------------------------------------------------------------------- */

.bjet-member-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-height: 320px;
	overflow-y: auto;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	padding: 8px;
	background: #fafafa;
}

.bjet-member-opt {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.1s;
	flex-wrap: wrap;
}

.bjet-member-opt:hover {
	background: #f0eaf8;
}

.bjet-member-opt input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: #3b1c6e;
}

.bjet-member-name {
	font-weight: 600;
	font-size: 15px;
	flex: 1;
}

.bjet-member-email,
.bjet-member-co {
	font-size: 13px;
	color: #666;
	flex-basis: 100%;
	padding-left: 28px;
}

/* -------------------------------------------------------------------------
   Attendee blocks (Step 3)
   ------------------------------------------------------------------------- */

.bjet-attendee {
	border: 1px solid #e5e5e5;
	border-radius: 5px;
	padding: 20px;
	margin-bottom: 16px;
	background: #fafafa;
}

.bjet-attendee h3 {
	margin-top: 0;
	border-bottom-color: #ddd;
}

.bjet-attendee-meta {
	border-top: 1px dashed #ddd;
	margin-top: 12px;
	padding-top: 12px;
}

/* -------------------------------------------------------------------------
   Price breakdown
   ------------------------------------------------------------------------- */

.bjet-price-breakdown {
	background: #f8f5ff;
	border: 1px solid #e0d8f0;
	border-radius: 5px;
	padding: 16px 20px;
	margin: 16px 0;
}

.bjet-price-breakdown div {
	display: flex;
	justify-content: space-between;
	padding: 4px 0;
	font-size: 15px;
}

.bjet-price-breakdown .bjet-total {
	border-top: 1px solid #c8b8e8;
	margin-top: 6px;
	padding-top: 8px;
	font-weight: 700;
	font-size: 16px;
}

.bjet-disc-line {
	color: #007017;
}

/* -------------------------------------------------------------------------
   Event summary (Step 1)
   ------------------------------------------------------------------------- */

.bjet-ev-summary {
	background: #f8f5ff;
	border: 1px solid #e0d8f0;
	border-radius: 5px;
	padding: 14px 18px;
	margin-top: 14px;
}

.bjet-ev-summary div {
	padding: 3px 0;
	font-size: 15px;
}

.bjet-sold-out {
	background: #fff2f2;
	border: 1px solid #f5c6c6;
	border-radius: 5px;
	padding: 14px 18px;
	color: #d63638;
	font-weight: 600;
	margin-top: 12px;
}

/* -------------------------------------------------------------------------
   Discount
   ------------------------------------------------------------------------- */

.bjet-inline-field {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.bjet-inline-field input {
	font-family: 'Open Sans', sans-serif;
	font-size: 15px;
	padding: 9px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	width: 200px;
}

.bjet-disc-ok  { color: #007017; font-size: 14px; margin: 4px 0; }
.bjet-disc-err { color: #d63638; font-size: 14px; margin: 4px 0; }

/* -------------------------------------------------------------------------
   Stripe element
   ------------------------------------------------------------------------- */

.bjet-stripe-el {
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 16px;
	margin: 16px 0;
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */

.bjet-actions {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-top: 24px;
	flex-wrap: wrap;
}

/* Colours, shape and typography come from the Divi theme's own button
   classes (et_pb_button c_btn yellow), added to each button in
   ticket-form.js. Only cursor and disabled state are handled here. */
.bjet-btn {
	cursor: pointer;
}

.bjet-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* -------------------------------------------------------------------------
   Error message
   ------------------------------------------------------------------------- */

.bjet-error {
	background: #fff2f2;
	border: 1px solid #f5c6c6;
	border-radius: 4px;
	padding: 12px 16px;
	color: #d63638;
	font-size: 14px;
	margin-bottom: 16px;
}

/* -------------------------------------------------------------------------
   Confirmation screen
   ------------------------------------------------------------------------- */

.bjet-confirm {
	text-align: center;
	padding: 48px 32px;
}

.bjet-confirm-tick {
	font-size: 56px;
	color: #007017;
	line-height: 1;
	margin-bottom: 16px;
}

.bjet-confirm h2 {
	color: #007017;
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */

@media ( max-width: 600px ) {
	.bjet-card {
		padding: 20px 16px;
	}

	.bjet-row {
		flex-direction: column;
		gap: 0;
	}

	.bjet-inline-field input {
		width: 100%;
	}

	.bjet-steps {
		gap: 2px;
	}

	.bjet-step {
		font-size: 11px;
		padding: 4px 6px;
	}
}

/* -------------------------------------------------------------------------
   Account owner badge (Step 2 member list)
   ------------------------------------------------------------------------- */

.bjet-member-owner {
	border: 1px solid #3b1c6e;
	background: #f0eaf8;
}

.bjet-owner-badge {
	display: inline-block;
	background: #3b1c6e;
	color: #f5c400;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 10px;
	margin-left: 8px;
	vertical-align: middle;
	letter-spacing: 0.3px;
}
