/* =========================================================================
   ETP Agency Booking Manager — front-end form
   Premium black / white multi-step aesthetic (matches design reference).
   Scoped under .etp-bm to avoid theme collisions.
   ====================================================================== */

.etp-bm {
	--etp-bg: #0a0a0a;
	--etp-panel: #0a0a0a;
	--etp-fg: #ffffff;
	--etp-muted: #8a8a8a;
	--etp-line: #2a2a2a;
	--etp-line-strong: #ffffff;
	--etp-accent: #ffffff;
	--etp-error: #ff5a5a;
	--etp-radius: 0px;
	--etp-gap: 28px;
	--etp-font: "Helvetica Neue", Arial, "Inter", system-ui, sans-serif;

	background: var(--etp-bg);
	color: var(--etp-fg);
	font-family: var(--etp-font);
	padding: clamp(24px, 5vw, 64px);
	max-width: 1200px;
	margin: 0 auto;
	line-height: 1.5;
	box-sizing: border-box;
}

.etp-bm *,
.etp-bm *::before,
.etp-bm *::after { box-sizing: border-box; }

/* ---- Progress nav -------------------------------------------------- */
.etp-bm-progress { margin-bottom: clamp(32px, 5vw, 56px); }

.etp-bm-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}

.etp-bm-step-btn {
	background: none;
	border: 0;
	padding: 0;
	text-align: left;
	cursor: pointer;
	color: var(--etp-muted);
	width: 100%;
	font-family: inherit;
	transition: color .25s ease;
}

.etp-bm-step.is-active .etp-bm-step-btn,
.etp-bm-step.is-complete .etp-bm-step-btn { color: var(--etp-fg); }

.etp-bm-step-num {
	display: block;
	font-size: clamp(20px, 2.4vw, 30px);
	font-weight: 700;
	letter-spacing: .5px;
	line-height: 1;
	margin-bottom: 10px;
}

.etp-bm-step-label {
	display: block;
	font-size: 11px;
	letter-spacing: 2.5px;
	text-transform: uppercase;
}

.etp-bm-progress-bar {
	position: relative;
	height: 2px;
	background: var(--etp-line);
	margin-top: 18px;
}

.etp-bm-progress-fill {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	background: var(--etp-fg);
	width: 0;
	transition: width .4s cubic-bezier(.4, 0, .2, 1);
}

/* dots over the bar */
.etp-bm-progress-bar::after {
	content: "";
	position: absolute;
	inset: -3px 0;
	background-image: radial-gradient(circle, var(--etp-line) 3px, transparent 3px);
	background-size: calc(100% / 7) 100%;
	background-position: center;
	pointer-events: none;
}

/* ---- Panels -------------------------------------------------------- */
.etp-bm-panel { animation: etp-fade .4s ease; }
.etp-bm-panel[hidden] { display: none; }

@keyframes etp-fade {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.etp-bm-panel-head { margin-bottom: clamp(24px, 4vw, 40px); }

.etp-bm-panel-title {
	font-size: clamp(28px, 4vw, 46px);
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin: 0 0 12px;
	line-height: 1.05;
}

.etp-bm-panel-sub {
	color: var(--etp-muted);
	font-size: 15px;
	max-width: 46ch;
	margin: 0;
}

/* ---- Grid ---------------------------------------------------------- */
.etp-bm-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--etp-gap) clamp(28px, 5vw, 80px);
}

.etp-bm-col-full { grid-column: 1 / -1; }
.etp-bm-field { min-width: 0; }

/* ---- Labels & inputs ---------------------------------------------- */
.etp-bm-label {
	display: block;
	font-size: 12px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--etp-fg);
	margin-bottom: 12px;
	font-weight: 600;
}

.etp-bm-req { color: var(--etp-fg); }

.etp-bm-input {
	width: 100%;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--etp-line);
	color: var(--etp-fg);
	font-size: 16px;
	font-family: inherit;
	padding: 10px 0;
	transition: border-color .25s ease;
	border-radius: 0;
	appearance: none;
}

.etp-bm-input::placeholder { color: #5e5e5e; }

.etp-bm-input:focus {
	outline: none;
	border-bottom-color: var(--etp-line-strong);
}

.etp-bm-textarea { resize: vertical; min-height: 56px; line-height: 1.6; }

/* number / icon inputs */
.etp-bm-input-icon { position: relative; }
.etp-bm-input-icon .etp-bm-input { padding-right: 28px; }
.etp-bm-input-icon::after {
	position: absolute;
	right: 2px;
	top: 10px;
	color: var(--etp-muted);
	font-size: 15px;
	pointer-events: none;
}
.etp-bm-icon-currency::before {
	content: "$";
	position: absolute;
	left: 0;
	top: 10px;
	color: var(--etp-muted);
}
.etp-bm-icon-currency .etp-bm-input { padding-left: 16px; }
.etp-bm-icon-percent::after { content: "%"; }
.etp-bm-icon-people::after { content: "\1F465"; }
.etp-bm-icon-date::after { content: "\1F4C5"; }

/* hide native number spinners */
.etp-bm-input[type="number"]::-webkit-outer-spin-button,
.etp-bm-input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.etp-bm-input[type="number"] { -moz-appearance: textfield; }

/* date/time pickers */
.etp-bm-input[type="date"]::-webkit-calendar-picker-indicator,
.etp-bm-input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .55; cursor: pointer; }

/* ---- Select -------------------------------------------------------- */
.etp-bm-select-wrap { position: relative; }
.etp-bm-select-wrap::after {
	content: "\25BE";
	position: absolute;
	right: 2px;
	top: 12px;
	color: var(--etp-muted);
	pointer-events: none;
	font-size: 12px;
}
.etp-bm-select { padding-right: 24px; cursor: pointer; }
.etp-bm-select option { background: #111; color: #fff; }

/* ---- Counter / help / errors -------------------------------------- */
.etp-bm-counter { text-align: right; font-size: 11px; color: var(--etp-muted); margin-top: 6px; }
.etp-bm-help { font-size: 12px; color: var(--etp-muted); margin: 8px 0 0; }

.etp-bm-error {
	display: block;
	color: var(--etp-error);
	font-size: 12px;
	min-height: 0;
	margin-top: 6px;
	opacity: 0;
	transition: opacity .2s ease;
}
.etp-bm-field.has-error .etp-bm-error { opacity: 1; }
.etp-bm-field.has-error .etp-bm-input,
.etp-bm-field.has-error .etp-bm-artist-toggle,
.etp-bm-field.has-error .etp-bm-radio-group { border-bottom-color: var(--etp-error); }

/* ---- Subheadings (Contact step) ----------------------------------- */
.etp-bm-subhead {
	font-size: 13px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--etp-fg);
	margin: 20px 0 0;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--etp-line);
	font-weight: 700;
}

/* ---- Radio --------------------------------------------------------- */
.etp-bm-radio-group { display: flex; gap: 28px; padding: 6px 0; }
.etp-bm-radio { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; }
.etp-bm-radio input {
	appearance: none;
	width: 18px;
	height: 18px;
	border: 1px solid var(--etp-muted);
	border-radius: 50%;
	display: grid;
	place-content: center;
	margin: 0;
	cursor: pointer;
}
.etp-bm-radio input::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--etp-fg);
	transform: scale(0);
	transition: transform .15s ease;
}
.etp-bm-radio input:checked { border-color: var(--etp-fg); }
.etp-bm-radio input:checked::before { transform: scale(1); }

/* ---- Checkbox ------------------------------------------------------ */
.etp-bm-checkbox { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 14px; }
.etp-bm-checkbox input { position: absolute; opacity: 0; }
.etp-bm-checkmark {
	width: 18px; height: 18px;
	border: 1px solid var(--etp-muted);
	flex: 0 0 auto;
	display: grid; place-content: center;
	margin-top: 1px;
	transition: background .15s ease, border-color .15s ease;
}
.etp-bm-checkmark::after { content: "\2713"; color: #000; font-size: 12px; transform: scale(0); transition: transform .15s ease; }
.etp-bm-checkbox input:checked + .etp-bm-checkmark { background: var(--etp-fg); border-color: var(--etp-fg); }
.etp-bm-checkbox input:checked + .etp-bm-checkmark::after { transform: scale(1); }
.etp-bm-checkbox-label { color: var(--etp-muted); line-height: 1.5; }

/* ---- Toggle -------------------------------------------------------- */
.etp-bm-toggle { display: inline-flex; align-items: center; gap: 14px; cursor: pointer; }
.etp-bm-toggle input { position: absolute; opacity: 0; }
.etp-bm-toggle-track {
	width: 46px; height: 24px;
	border: 1px solid var(--etp-line);
	border-radius: 24px;
	position: relative;
	background: #161616;
	transition: background .25s ease, border-color .25s ease;
	flex: 0 0 auto;
}
.etp-bm-toggle-track::after {
	content: "";
	position: absolute;
	top: 3px; left: 3px;
	width: 16px; height: 16px;
	border-radius: 50%;
	background: var(--etp-muted);
	transition: transform .25s ease, background .25s ease;
}
.etp-bm-toggle input:checked + .etp-bm-toggle-track { background: var(--etp-fg); border-color: var(--etp-fg); }
.etp-bm-toggle input:checked + .etp-bm-toggle-track::after { transform: translateX(22px); background: #000; }
.etp-bm-toggle-label { font-size: 14px; letter-spacing: .5px; }

/* ---- Tags ---------------------------------------------------------- */
.etp-bm-tags { border-bottom: 1px solid var(--etp-line); padding: 6px 0; }
.etp-bm-tags-list { display: flex; flex-wrap: wrap; gap: 8px; }
.etp-bm-tag {
	display: inline-flex; align-items: center; gap: 8px;
	border: 1px solid var(--etp-line);
	padding: 5px 10px;
	font-size: 13px;
}
.etp-bm-tag button { background: none; border: 0; color: var(--etp-muted); cursor: pointer; font-size: 14px; line-height: 1; padding: 0; }
.etp-bm-tag button:hover { color: var(--etp-fg); }
.etp-bm-tags-input { background: none; border: 0; color: var(--etp-fg); font-size: 15px; padding: 8px 0; outline: none; flex: 1; min-width: 160px; font-family: inherit; }
.etp-bm-tags-input::placeholder { color: #5e5e5e; }

/* ---- Artist selector ---------------------------------------------- */
.etp-bm-artist { position: relative; }
.etp-bm-artist-toggle {
	position: relative;
	overflow: hidden;
	width: 100%;
	background: #111;
	border: 1px solid var(--etp-line);
	color: var(--etp-fg);
	padding: 22px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	font-size: 18px;
	letter-spacing: 1px;
	text-transform: uppercase;
	font-family: inherit;
	min-height: 96px;
	background-size: cover;
	background-position: center;
	transition: border-color .2s ease;
}
.etp-bm-artist-toggle:hover { border-color: #444; }
.etp-bm-artist-toggle.has-image { text-shadow: 0 2px 12px rgba(0,0,0,.9); }
.etp-bm-artist-toggle.has-image::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(0,0,0,.75), rgba(0,0,0,.35));
	pointer-events: none;
}
.etp-bm-artist-selected { position: relative; z-index: 1; font-weight: 600; }
.etp-bm-caret { position: relative; z-index: 1; }

.etp-bm-artist-panel {
	position: absolute;
	top: calc(100% + 6px);
	left: 0; right: 0;
	background: #111;
	border: 1px solid var(--etp-line);
	z-index: 30;
	max-height: 320px;
	overflow: auto;
	box-shadow: 0 20px 50px rgba(0,0,0,.6);
}
.etp-bm-artist-search {
	width: 100%;
	background: #161616;
	border: 0;
	border-bottom: 1px solid var(--etp-line);
	color: var(--etp-fg);
	padding: 14px 18px;
	font-size: 14px;
	font-family: inherit;
	position: sticky;
	top: 0;
}
.etp-bm-artist-search:focus { outline: none; }
.etp-bm-artist-options { list-style: none; margin: 0; padding: 0; }
.etp-bm-artist-option {
	display: flex; align-items: center; gap: 14px;
	padding: 12px 18px;
	cursor: pointer;
	transition: background .15s ease;
}
.etp-bm-artist-option:hover, .etp-bm-artist-option.is-active { background: #1d1d1d; }
.etp-bm-artist-thumb {
	width: 40px; height: 40px;
	background: #2a2a2a center / cover no-repeat;
	border-radius: 50%;
	flex: 0 0 auto;
}
.etp-bm-artist-name { font-size: 15px; letter-spacing: .5px; }
.etp-bm-artist-empty { padding: 16px 18px; color: var(--etp-muted); }

/* ---- File upload --------------------------------------------------- */
.etp-bm-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.etp-bm-file-drop {
	display: flex; align-items: center; gap: 14px;
	border: 1px dashed var(--etp-line);
	padding: 24px;
	cursor: pointer;
	color: var(--etp-muted);
	transition: border-color .2s ease, color .2s ease;
}
.etp-bm-file-drop:hover, .etp-bm-file.is-drag .etp-bm-file-drop { border-color: var(--etp-fg); color: var(--etp-fg); }
.etp-bm-file-icon { font-size: 22px; }
.etp-bm-file-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.etp-bm-file-item {
	display: flex; align-items: center; justify-content: space-between;
	border: 1px solid var(--etp-line);
	padding: 10px 14px;
	font-size: 13px;
}
.etp-bm-file-item button { background: none; border: 0; color: var(--etp-muted); cursor: pointer; font-size: 16px; }
.etp-bm-file-item.is-uploading { opacity: .6; }

/* ---- Review -------------------------------------------------------- */
.etp-bm-review { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.etp-bm-review-section {
	border: 1px solid var(--etp-line);
	padding: 24px;
}
.etp-bm-review-section h3 {
	font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
	margin: 0 0 16px; display: flex; justify-content: space-between; align-items: center;
}
.etp-bm-review-edit {
	background: none; border: 1px solid var(--etp-line); color: var(--etp-fg);
	font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
	padding: 5px 12px; cursor: pointer; transition: background .2s ease, color .2s ease;
}
.etp-bm-review-edit:hover { background: var(--etp-fg); color: #000; }
.etp-bm-review-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid #181818; font-size: 13px; }
.etp-bm-review-row:last-child { border-bottom: 0; }
.etp-bm-review-key { color: var(--etp-muted); flex: 0 0 45%; }
.etp-bm-review-val { text-align: right; word-break: break-word; }

/* ---- Footer / buttons --------------------------------------------- */
.etp-bm-footer {
	display: flex; align-items: center; justify-content: space-between;
	gap: 24px; flex-wrap: wrap;
	margin-top: clamp(32px, 5vw, 56px);
	padding-top: 28px;
	border-top: 1px solid var(--etp-line);
}
.etp-bm-footer-right { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-left: auto; }

.etp-bm-btn {
	background: none;
	border: 1px solid var(--etp-fg);
	color: var(--etp-fg);
	padding: 18px 32px;
	font-size: 13px;
	letter-spacing: 2px;
	text-transform: uppercase;
	cursor: pointer;
	font-family: inherit;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 14px;
	transition: background .25s ease, color .25s ease, opacity .25s ease;
}
.etp-bm-btn:hover { background: var(--etp-fg); color: #000; }
.etp-bm-prev { border-color: var(--etp-line); color: var(--etp-muted); }
.etp-bm-prev:hover { background: transparent; color: var(--etp-fg); border-color: var(--etp-fg); }
.etp-bm-submit { background: var(--etp-fg); color: #000; }
.etp-bm-btn[hidden] { display: none; }
.etp-bm-btn.is-loading { pointer-events: none; opacity: .6; }
.etp-bm-btn.is-loading .etp-bm-arrow { animation: etp-spin .8s linear infinite; display: inline-block; }
@keyframes etp-spin { to { transform: rotate(360deg); } }

.etp-bm-secure { display: inline-flex; align-items: center; gap: 8px; color: var(--etp-muted); font-size: 12px; max-width: 320px; }
.etp-bm-lock { font-size: 13px; }

.etp-bm-status { margin-top: 18px; font-size: 13px; min-height: 18px; }
.etp-bm-status.is-error { color: var(--etp-error); }

/* ---- Success ------------------------------------------------------- */
.etp-bm-success { text-align: center; padding: clamp(40px, 8vw, 90px) 20px; animation: etp-fade .5s ease; }
.etp-bm-success[hidden] { display: none; }
.etp-bm-check {
	width: 72px; height: 72px; margin: 0 auto 28px;
	border: 2px solid var(--etp-fg);
	border-radius: 50%;
	display: grid; place-content: center;
	font-size: 32px;
}
.etp-bm-success-title { font-size: clamp(24px, 4vw, 38px); letter-spacing: 1px; text-transform: uppercase; margin: 0 0 16px; }
.etp-bm-success-msg { color: var(--etp-muted); max-width: 48ch; margin: 0 auto 18px; font-size: 16px; }
.etp-bm-success-id { font-size: 14px; letter-spacing: 2px; color: var(--etp-fg); }

/* ---- Conditional --------------------------------------------------- */
.etp-bm-conditional[hidden] { display: none; }

/* =========================================================================
   Responsive
   ====================================================================== */
@media (max-width: 1024px) {
	.etp-bm-step-label { font-size: 10px; letter-spacing: 1.5px; }
}

@media (max-width: 782px) {
	.etp-bm { padding: 20px 18px 96px; }

	.etp-bm-grid { grid-template-columns: 1fr; gap: 22px; }
	.etp-bm-review { grid-template-columns: 1fr; }

	/* sticky progress */
	.etp-bm-progress {
		position: sticky; top: 0; z-index: 40;
		background: var(--etp-bg);
		margin: -20px -18px 24px;
		padding: 16px 18px 12px;
		border-bottom: 1px solid var(--etp-line);
	}
	.etp-bm-steps { display: flex; overflow-x: auto; gap: 18px; scrollbar-width: none; }
	.etp-bm-steps::-webkit-scrollbar { display: none; }
	.etp-bm-step { flex: 0 0 auto; }
	.etp-bm-step:not(.is-active) .etp-bm-step-label { display: none; }
	.etp-bm-step-num { font-size: 18px; margin-bottom: 4px; }
	.etp-bm-progress-bar::after { display: none; }

	/* sticky footer nav */
	.etp-bm-footer {
		position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
		background: var(--etp-bg);
		margin: 0; padding: 14px 18px;
		border-top: 1px solid var(--etp-line);
		gap: 12px;
	}
	.etp-bm-secure { display: none; }
	.etp-bm-footer-right { gap: 12px; }
	.etp-bm-btn { flex: 1; justify-content: center; padding: 16px 18px; }
	.etp-bm-radio-group { gap: 20px; }
}

@media (max-width: 480px) {
	.etp-bm-panel-title { font-size: 26px; }
}

/* =========================================================================
   Theme / Elementor override hardening
   Many themes (Jupiter X, Astra, etc.) style every <button>, link and form
   :focus with an accent colour (often blue). These rules force the form back
   to a strict black & white palette regardless of theme specificity.
   ====================================================================== */

/* Buttons — kill theme background/accent, keep outline style */
.etp-bm .etp-bm-btn,
.etp-bm button.etp-bm-btn,
.etp-bm .etp-bm-footer button {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border: 1px solid var(--etp-fg) !important;
	color: var(--etp-fg) !important;
	box-shadow: none !important;
	text-shadow: none !important;
	border-radius: 0 !important;
	text-decoration: none !important;
}
.etp-bm .etp-bm-btn:hover,
.etp-bm .etp-bm-btn:focus {
	background: var(--etp-fg) !important;
	background-color: var(--etp-fg) !important;
	color: #000 !important;
	box-shadow: none !important;
}

/* Primary submit stays inverted (solid white) */
.etp-bm .etp-bm-submit,
.etp-bm button.etp-bm-submit {
	background: var(--etp-fg) !important;
	background-color: var(--etp-fg) !important;
	color: #000 !important;
	border-color: var(--etp-fg) !important;
}
.etp-bm .etp-bm-submit:hover { background: #d6d6d6 !important; background-color: #d6d6d6 !important; }

/* Back button is muted/ghost */
.etp-bm .etp-bm-prev,
.etp-bm button.etp-bm-prev {
	background: transparent !important;
	background-color: transparent !important;
	border-color: var(--etp-line) !important;
	color: var(--etp-muted) !important;
}
.etp-bm .etp-bm-prev:hover {
	background: transparent !important;
	background-color: transparent !important;
	color: var(--etp-fg) !important;
	border-color: var(--etp-fg) !important;
}

/* Artist selector — keep dark, not the theme accent */
.etp-bm .etp-bm-artist-toggle,
.etp-bm button.etp-bm-artist-toggle {
	background-color: #111 !important;
	background-image: none;
	color: var(--etp-fg) !important;
	border: 1px solid var(--etp-line) !important;
	box-shadow: none !important;
	text-shadow: none !important;
}
.etp-bm .etp-bm-artist-toggle.has-image { background-image: inherit; }
.etp-bm .etp-bm-artist-toggle:hover { border-color: #444 !important; }

/* Step buttons in the progress nav */
.etp-bm .etp-bm-step-btn {
	background: transparent !important;
	background-color: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

/* Inputs / selects / textareas — neutralise theme focus accent (blue glow) */
.etp-bm .etp-bm-input,
.etp-bm .etp-bm-select,
.etp-bm .etp-bm-textarea {
	background: transparent !important;
	background-color: transparent !important;
	color: var(--etp-fg) !important;
	box-shadow: none !important;
	border-radius: 0 !important;
}
.etp-bm .etp-bm-input:focus,
.etp-bm .etp-bm-select:focus,
.etp-bm .etp-bm-textarea:focus {
	outline: none !important;
	box-shadow: none !important;
	border-color: var(--etp-line-strong) !important;
}

/* Radio / checkbox / toggle accent colour -> white */
.etp-bm input[type="radio"],
.etp-bm input[type="checkbox"] { accent-color: #ffffff; }

/* Links inside the form */
.etp-bm a { color: var(--etp-fg); }

/* Remove any theme text-selection / caret tint */
.etp-bm { caret-color: #ffffff; }
.etp-bm ::selection { background: #ffffff; color: #000000; }
