/**
 * BBP Contact Form widget styles.
 *
 * Two equal panels (left: info + photo, right: form) measured off the
 * Figma reference — near-identical panel widths, ~26px gap.
 *
 * Deliberately has NO hardcoded outer padding of its own: Elementor's
 * native Advanced > Padding control (which targets
 * .elementor-widget-container) is the only source of outer spacing.
 */

.elementor-widget-bbp-contact-form {
	width: 100%;
}

.bbp-contact-form-section {
	width: 100%;
	max-width: var(--bbp-content-width);
	margin: 0 auto;
}

.bbp-contact-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	align-items: stretch;
}

.bbp-contact-form-panel {
	position: relative;
	background: var(--bbp-bg-card);
	border-radius: 20px;
	overflow: hidden;
	padding: 24px;
}

.bbp-contact-form-panel--info {
	background:
		radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 55%),
		var(--bbp-bg-card);
}

.bbp-contact-form-info-inner {
	position: relative;
	z-index: 1;
}

.bbp-contact-form-heading {
	font-family: var(--bbp-heading-font);
	font-weight: 400;
	font-size: 34px;
	line-height: 1.2;
	color: var(--bbp-text-white);
	text-transform: uppercase;
	margin: 0 0 20px;
	max-width: 50%;
}

.bbp-contact-form-heading .bbp-text-gold {
	color: var(--bbp-gold);
}

.bbp-contact-form-description {
	font-family: var(--bbp-font-family);
	font-size: 16px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.75);
	margin: 0;
	max-width: 420px;
}

.bbp-contact-form-divider {
	height: 1px;
	background: rgba(255, 255, 255, 0.15);
	margin: 36px 0;
}

.bbp-contact-form-info-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.bbp-contact-form-info-grid--full {
	grid-template-columns: 1fr;
	margin-top: 30px;
}

.bbp-contact-form-info-item {
	display: flex;
	align-items: center;
	gap: 14px;
}

.bbp-contact-form-badge {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: var(--bbp-gold);
	display: flex;
	align-items: center;
	justify-content: center;
}

.bbp-contact-form-badge svg,
.bbp-contact-form-badge i {
	width: 45%;
	height: 45%;
	font-size: 45%;
	color: #17140b;
	fill: #17140b;
}

.bbp-contact-form-info-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.bbp-contact-form-info-label {
	font-family: var(--bbp-font-family);
	font-size: 13px;
	color: var(--bbp-text-muted);
}

.bbp-contact-form-info-value {
	font-family: var(--bbp-font-family);
	font-weight: 700;
	font-size: 15px;
	color: var(--bbp-text-white);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* The address row always gets its own full-width grid row (see the
   widget's render()), unlike the paired phone/email values above it —
   it has room to wrap, so it shouldn't inherit their single-line
   truncation. */
.bbp-contact-form-info-grid--full .bbp-contact-form-info-value {
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
}

.bbp-contact-form-brush {
	position: absolute;
	right: -10px;
	bottom: -90px;
	width: 180px;
	height: auto;
	z-index: 0;
	pointer-events: none;
}

/* --- form panel --- */

.bbp-contact-form-form-heading {
	font-family: var(--bbp-font-family);
	font-weight: 600;
	font-size: 20px;
	color: var(--bbp-text-white);
	margin: 0 0 16px;
}

.bbp-contact-form-field {
	margin-bottom: 20px;
}

.bbp-contact-form-field label {
	display: block;
	font-family: var(--bbp-font-family);
	font-weight: 600;
	font-size: 14px;
	color: var(--bbp-text-white);
	margin-bottom: 8px;
}

.bbp-contact-form-field input,
.bbp-contact-form-field textarea {
	width: 100%;
	background-color: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	padding: 10px 12px;
	font-family: var(--bbp-font-family);
	font-size: 15px;
	color: var(--bbp-text-white);
	resize: vertical;
}

.bbp-contact-form-field input::placeholder,
.bbp-contact-form-field textarea::placeholder {
	color: var(--bbp-text-muted);
}

.bbp-contact-form-field input:focus,
.bbp-contact-form-field textarea:focus,
.bbp-contact-form-field textarea:focus-visible{
	outline: none;
	border-color: var(--bbp-gold);
	box-shadow: none;
}

.bbp-contact-form-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.bbp-contact-form-error {
	color: #ff8080;
	font-family: var(--bbp-font-family);
	font-size: 14px;
	margin: 0 0 16px;
}

.bbp-contact-form-submit {
	display: block;
	width: 100%;
	background-color: var(--bbp-gold);
	color: #1a1400;
	font-family: var(--bbp-font-family);
	font-weight: 700;
	font-size: 16px;
	text-align: center;
	border: 0;
	border-radius: 10px;
	padding: 12px;
	cursor: pointer;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.bbp-contact-form-submit:hover {
	background-color: var(--bbp-gold-light);
}

.bbp-contact-form-submit.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.bbp-contact-form-success {
	font-family: var(--bbp-font-family);
	font-size: 17px;
	line-height: 1.6;
	color: var(--bbp-text-white);
	background: rgba(201, 162, 39, 0.1);
	border: 1px solid rgba(201, 162, 39, 0.3);
	border-radius: 12px;
	padding: 28px;
}

@media (max-width: 900px) {
	.bbp-contact-form-grid {
		grid-template-columns: 1fr;
	}

	.bbp-contact-form-heading {
		font-size: 28px;
		max-width: 100%;
	}

	.bbp-contact-form-info-grid {
		grid-template-columns: 1fr;
	}

	.bbp-contact-form-brush {
		display: none;
	}
}

@media (max-width: 480px) {
	.bbp-contact-form-info-grid--full {
		margin-top: 15px;
	}
}
