/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/*
 * The Concept Trader: Bricks renderer corrections.
 *
 * Keep these selectors limited to internal Bricks states/wrappers that are not
 * exposed through typed element controls.
 */

#faq .accordion-title-wrapper > .brxe-text-basic:last-child {
	display: grid;
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	place-items: center;
	line-height: 1;
	transform: rotate(0);
	transform-origin: center;
	transition: transform var(--duration-fast) ease;
}

#faq .accordion-title-wrapper {
	flex-wrap: nowrap;
	gap: 16px;
}

#faq .accordion-title-wrapper > .brxe-heading {
	flex: 1 1 auto;
	min-width: 0;
}

#faq .brx-open > .accordion-title-wrapper > .brxe-text-basic:last-child {
	transform: rotate(45deg);
}

#final-cta > #brxe-1j6gej.container {
	background-image: linear-gradient(135deg, #4a4f5a 0%, #1b1f30 100%);
	justify-content: flex-start;
	gap: 0;
}

#brxe-1j6gej > #brxe-3ntc25 {
	margin-bottom: 12px;
}

#brxe-1j6gej > #brxe-x5e36h {
	margin-bottom: 28px;
}

#brxe-1j6gej > #brxe-gox197 {
	gap: 14px;
}

#brxe-gox197 > .bricks-button {
	min-height: 50.4px;
}

#contact #brxe-bl9ht5 {
	box-sizing: border-box;
	padding: 28px;
	gap: 16px;
	align-content: flex-start;
	background: rgba(255, 254, 254, 0.03);
	border: 1px solid rgba(233, 233, 233, 0.08);
	border-radius: 12px;
}

#contact #brxe-shicys {
	color: var(--gold-bright);
}

#contact #brxe-y82ts5 {
	flex: 0 0 auto;
	min-height: 488px;
	height: auto;
	gap: 16px;
	flex-wrap: nowrap;
}

#contact #brxe-y82ts5 .form-group {
	flex-shrink: 0;
	padding-bottom: 0;
	gap: 6px;
}

#contact #brxe-y82ts5 label {
	margin-bottom: 0;
	font-size: 12px;
	line-height: 19.2px;
	color: var(--paper);
}

#contact #brxe-y82ts5 textarea {
	flex: 0 0 123.6px;
	min-height: 123.6px;
	height: 123.6px !important;
	flex-shrink: 0;
}

#contact #brxe-y82ts5 .form-group:nth-child(4) {
	flex: 0 1 148.8px;
	min-height: 148.8px;
	height: auto;
}

#contact #brxe-y82ts5 .submit-button-wrapper {
	width: 160.6px;
	margin-top: 0;
}

/* Field validation errors: dark-surface alert matching the input system. */
#contact #brxe-y82ts5 .form-group-error-message {
	padding: 10px 14px;
	background: rgba(255, 107, 100, 0.07);
	border: 1px solid rgba(255, 107, 100, 0.3);
	border-radius: var(--radius-input, 8px);
	color: #ff9d97;
	font-family: "Sora", sans-serif;
	font-size: 12.5px;
	font-weight: 400;
	line-height: 19.5px;
}

/* Form-level notices follow the same dark-surface language. */
#contact #brxe-y82ts5 .message {
	background: rgba(205, 186, 143, 0.08);
	border: 1px solid rgba(205, 186, 143, 0.25);
	border-radius: var(--radius-input, 8px);
	color: var(--mist);
	font-family: "Sora", sans-serif;
	font-size: 13px;
	line-height: 20.8px;
}

#contact #brxe-y82ts5 .message.error {
	background: rgba(255, 107, 100, 0.07);
	border-color: rgba(255, 107, 100, 0.3);
	color: #ff9d97;
}

#contact #brxe-y82ts5 .message.success {
	background: rgba(108, 190, 130, 0.08);
	border-color: rgba(108, 190, 130, 0.28);
	color: #9ed8b0;
}

#contact #brxe-y82ts5 button[type='submit'] {
	min-width: 160.6px;
	background: linear-gradient(135deg, var(--gold-bright), var(--gold));
	box-shadow: var(--glow-gold);
	white-space: nowrap;
}

body #brxe-w58hro {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	align-items: start;
	align-content: start;
	box-sizing: border-box;
	padding: 13.4px 6.8px 0 46.8px;
}

body #brxe-w58hro::before {
	content: '';
	position: absolute;
	z-index: 0;
	top: 33.5px;
	right: 0;
	left: 0;
	height: 58.6px;
	background: var(--ink);
	border: 1px solid rgba(205, 186, 143, 0.34);
	border-radius: 12px;
	box-shadow: 0 12px 30px rgba(205, 186, 143, 0.08);
	pointer-events: none;
}

body #brxe-w58hro::after {
	content: '';
	position: absolute;
	z-index: 1;
	top: 53.6px;
	left: 17.8px;
	width: 20px;
	height: 20px;
	background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23cdba8f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
	pointer-events: none;
}

#brxe-w58hro > * {
	position: relative;
	z-index: 2;
}

#brxe-w58hro .form-group:not(.submit-button-wrapper) {
	min-width: 0;
	padding-bottom: 0;
}

#brxe-w58hro .form-group:not(.submit-button-wrapper) label {
	position: absolute;
	top: -13.4px;
	left: -46.8px;
	width: calc(100% + 53.6px);
	text-align: left;
	text-transform: none;
}

#brxe-w58hro .form-group input {
	height: 50px;
	margin-top: 24.2px;
	background: transparent;
	border: 0;
}

/* The newsletter uses one shared control surface; the inner native input is borderless. */
body #brxe-w58hro .form-group input {
	background-color: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	line-height: 24px; /* 50px input - 13px top/bottom padding: keeps placeholder text vertically centered */
}

body #brxe-w58hro .form-group input:focus {
	outline: 0;
	box-shadow: none;
}

body #brxe-w58hro:focus-within::before {
	border-color: var(--gold-bright);
	box-shadow: 0 0 0 3px rgba(205, 186, 143, 0.18), 0 12px 30px rgba(205, 186, 143, 0.08);
}

/* Match the reference platform-card animated gold border without changing card content. */
#platforms .card {
	position: relative;
	isolation: isolate;
}

#platforms .card::before {
	content: '';
	position: absolute;
	z-index: 1;
	inset: -1px;
	padding: 1px;
	border-radius: inherit;
	background: conic-gradient(from var(--concept-platform-angle, 0deg), transparent 0deg, transparent 68%, var(--gold-bright) 82%, var(--gold) 90%, transparent 100%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0;
	pointer-events: none;
}

#platforms .card > * {
	position: relative;
	z-index: 2;
}

#platforms .card:hover {
	transform: none;
}

#platforms .card:hover::before {
	opacity: 1;
	animation: concept-platform-border 2.4s linear infinite;
}

@property --concept-platform-angle {
	syntax: '<angle>';
	inherits: false;
	initial-value: 0deg;
}

@keyframes concept-platform-border {
	to { --concept-platform-angle: 1turn; }
}

/* The horizon silhouette is decorative and must share the hero's visual centre. */
#home-hero #brxe-rxjyu3 {
	left: 50%;
	transform: translateX(-50%);
	width: 110%;
}

/* Anchor targets: keep section headings clear of the fixed header on hash navigation. */
section[id] {
	scroll-margin-top: calc(var(--nav-height, 64px) + 12px);
}

#brxe-w58hro .submit-button-wrapper {
	margin-top: 26.2px;
	width: auto;
}

/* Kingdom Bank callout: balance the two-line wrap without breaking the brand name. */
#brokerage-onboarding #brxe-0amh7m {
	text-wrap: balance;
}

#brokerage-onboarding #brxe-0amh7m strong {
	white-space: nowrap;
}

#brxe-w58hro button[type='submit'].bricks-button {
	width: 169.4875px;
	min-width: 169.4875px;
	height: 46px;
	padding: 12px 20px;
	border-radius: var(--radius-pill);
	background: linear-gradient(135deg, var(--gold-bright), var(--gold));
	font-family: Arial, sans-serif;
	gap: 8px;
	white-space: nowrap;
}

#brxe-w58hro button[type='submit'].bricks-button::after {
	content: '\2192';
	font-size: 18px;
	line-height: 1;
}

/* Form submit buttons share the gold CTA hover language (lift + shine sweep). */
#contact #brxe-y82ts5 button[type='submit'],
#brxe-w58hro button[type='submit'].bricks-button {
	position: relative;
	overflow: hidden;
	transition: transform var(--duration-fast) ease, box-shadow var(--duration-fast) ease, background-color var(--duration-fast) ease;
}

#contact #brxe-y82ts5 button[type='submit']:hover,
#brxe-w58hro button[type='submit'].bricks-button:hover {
	transform: translateY(-2px);
}

#contact #brxe-y82ts5 button[type='submit']:active,
#brxe-w58hro button[type='submit'].bricks-button:active {
	transform: translateY(0);
}

#contact #brxe-y82ts5 button[type='submit']::before,
#brxe-w58hro button[type='submit'].bricks-button::before {
	content: '';
	position: absolute;
	inset: 0 auto auto 0;
	width: 50%;
	height: 100%;
	background: linear-gradient(105deg, transparent, rgba(255, 254, 254, 0.55), transparent);
	transform: translateX(-160%) skewX(-20deg);
	transition: transform 0.5s ease;
	pointer-events: none;
}

#contact #brxe-y82ts5 button[type='submit']:hover::before,
#brxe-w58hro button[type='submit'].bricks-button:hover::before {
	transform: translateX(260%) skewX(-20deg);
}

#contact #brxe-y82ts5 button[type='submit']:focus-visible,
#brxe-w58hro button[type='submit'].bricks-button:focus-visible {
	outline: 2px solid var(--accent-bright);
	outline-offset: 3px;
}

@media (max-width: 478px) {
	body #brxe-w58hro {
		grid-template-columns: 1fr;
		padding: 14.4px 0 0;
	}

	body #brxe-w58hro::before {
		height: 122.6px;
	}

	#brxe-w58hro .form-group:not(.submit-button-wrapper) {
		margin-right: 7.8px;
		margin-left: 47.8px;
		width: auto;
	}

	#brxe-w58hro .form-group:not(.submit-button-wrapper) label {
		position: absolute;
		top: -14.4px;
		left: -47.8px;
		width: calc(100% + 55.6px);
		text-align: left;
		text-transform: none;
	}

	#brxe-w58hro .submit-button-wrapper {
		margin-top: 1px;
		margin-right: 7.8px;
		margin-left: 7.8px;
		width: auto;
	}

	#brxe-w58hro button[type='submit'].bricks-button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	#faq .accordion-title-wrapper > .brxe-text-basic:last-child {
		transition: none;
	}

	#contact #brxe-y82ts5 button[type='submit'],
	#brxe-w58hro button[type='submit'].bricks-button {
		transition: none;
	}

	#contact #brxe-y82ts5 button[type='submit']::before,
	#brxe-w58hro button[type='submit'].bricks-button::before {
		transition: none;
		transform: none;
	}
}
