/* BlueWave Form Switcher — scoped under .bw-form-switcher
   Visual sibling of the Hero Switcher (.bw-switcher), but built as a light,
   utilitarian card that holds two swappable form shortcodes rather than
   marketing copy. Defaults: white background, --e-global-color-text (#1C2534). */

.bw-form-switcher {
	--bw-navy-900:  #023c5a;
	--bw-text:      #1c2534;

	position: relative;
	border-radius: 24px;
	background: #ffffff;
	color: var(--bw-text);
	box-shadow: 0 20px 50px rgba(2, 60, 90, 0.08);
	padding: 28px;
	max-width: 640px;
	margin: 0 auto;
	box-sizing: border-box;
}
.bw-form-switcher *,
.bw-form-switcher *::before,
.bw-form-switcher *::after {
	box-sizing: border-box;
}

/* ---------------------------------------------------------------------
 * Tabs — default look matches the BlueWave Hero Switcher (.bw-switcher__tabs)
 * exactly: translucent dark-navy track/pill, off-white inactive label, and a
 * solid white active pill with navy text. Colors below are all driven by the
 * Style tab's Tabs controls (Track background / Inactive tab text color /
 * Active tab background / Active tab text color) — none are !important, so
 * every one of those controls can freely override these defaults.
 * ------------------------------------------------------------------ */
.bw-form-switcher__tabs {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: rgba(2, 30, 45, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	padding: 6px;
	margin-bottom: 30px;
}

.bw-form-switcher__tab {
	-webkit-appearance: none;
	appearance: none;
	border: 0;
	background: rgba(2, 30, 45, 0.5);
	color: rgba(255, 255, 255, 0.85);
	padding: 14px 20px;
	border-radius: 999px;
	font: 600 18px "Helvetica Neue", Arial, sans-serif;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-shadow: none;
	outline: none;
}
.bw-form-switcher__tab:hover,
.bw-form-switcher__tab:focus {
	color: #ffffff;
	background: rgba(2, 30, 45, 0.5);
}
.bw-form-switcher__tab:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.6);
	outline-offset: 2px;
}

/* Active state — match BOTH the class and the aria attribute so theme
   button resets, hover, and focus rules can't override it. Deliberately NOT
   !important: the Elementor Style controls target this same selector with a
   more specific {{WRAPPER}} prefix, so they win over these defaults exactly
   as intended, instead of being silently blocked. */
.bw-form-switcher__tab.is-active,
.bw-form-switcher__tab[aria-selected="true"],
.bw-form-switcher__tab.is-active:hover,
.bw-form-switcher__tab[aria-selected="true"]:hover,
.bw-form-switcher__tab.is-active:focus,
.bw-form-switcher__tab[aria-selected="true"]:focus {
	background: #ffffff;
	color: var(--bw-navy-900);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.bw-form-switcher__dot {
	width: 9px;
	height: 9px;
	border-radius: 999px;
	background: currentColor;
	display: inline-block;
}

/* ---------------------------------------------------------------------
 * Panels
 * ------------------------------------------------------------------ */
.bw-form-switcher__panel {
	position: relative;
	z-index: 2;
}
.bw-form-switcher__panel[hidden] {
	display: none;
}

.bw-form-switcher__empty {
	border: 1px dashed rgba(28, 37, 52, 0.25);
	border-radius: 14px;
	padding: 32px 20px;
	text-align: center;
	color: rgba(28, 37, 52, 0.55);
	font-size: 14px;
}

/* Let embedded Elementor Forms take their own theme typography/spacing —
   we intentionally do not force font-family/colors onto form fields here. */
.bw-form-switcher__panel .elementor-widget-form {
	margin: 0;
}

@media (max-width: 540px) {
	.bw-form-switcher {
		padding: 20px;
	}
	.bw-form-switcher__tab {
		font-size: 14px;
		/* !important scoped to this one class, mobile breakpoint only —
		   needed to beat Elementor/theme default button padding, which
		   otherwise wins here since this is a plain <button>, not an
		   .elementor-button. Does not affect any other buttons. */
		padding: 16px 20px 16px 20px !important;
	}
	.bw-form-switcher__dot {
		display: none;
	}
}
