/* =========================================================
   BASISWORK MODAL
   ========================================================= */

:root {
	--bw-black: #0a0a0a;
	--bw-white: #ffffff;
	--bw-gray: #f4f4f1;
	--bw-border: #deded9;
	--bw-text-muted: #777772;
	--bw-radius: 22px;
}

/* ---------------------------------------------------------
   FLOATING TRIGGER
   --------------------------------------------------------- */

.bw-help-trigger {
	position: fixed;
	right: 28px;
	bottom: 28px;
	z-index: 9998;

	display: flex;
	align-items: center;
	gap: 18px;

	border: 0;
	background: var(--bw-black);
	color: var(--bw-white);

	padding: 15px 18px 15px 21px;

	border-radius: 999px;

	font-family: inherit;
	font-size: 14px;
	font-weight: 500;

	cursor: pointer;

	box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);

	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease;
}

.bw-help-trigger:hover {
	transform: translateY(-3px);

	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.bw-arrow {
	width: 29px;
	height: 29px;

	display: flex;
	align-items: center;
	justify-content: center;

	background: white;
	color: black;

	border-radius: 50%;

	font-size: 16px;
}

/* ---------------------------------------------------------
   MODAL
   --------------------------------------------------------- */

.bw-modal {
	position: fixed;
	inset: 0;

	z-index: 9999;

	display: none;
	align-items: center;
	justify-content: center;

	padding: 20px;
}

.bw-modal.is-open {
	display: flex;
}

/* Background */

.bw-modal-overlay {
	position: absolute;
	inset: 0;

	background: rgba(0, 0, 0, 0.65);

	backdrop-filter: blur(7px);
	-webkit-backdrop-filter: blur(7px);

	opacity: 0;
	transition: opacity 0.3s ease;
}

.bw-modal.is-open .bw-modal-overlay {
	opacity: 1;
}

/* ---------------------------------------------------------
   CARD
   --------------------------------------------------------- */

.bw-modal-card {
	position: relative;

	width: 100%;
	max-width: 610px;
	max-height: 90vh;

	overflow-y: auto;

	background: var(--bw-white);

	border-radius: var(--bw-radius);

	padding: 54px;

	box-shadow: 0 30px 100px rgba(0, 0, 0, 0.3);

	transform: translateY(25px) scale(0.97);
	opacity: 0;

	transition:
		transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.25s ease;
}

.bw-modal.is-open .bw-modal-card {
	transform: translateY(0) scale(1);
	opacity: 1;
}

/* ---------------------------------------------------------
   CLOSE BUTTON
   --------------------------------------------------------- */

.bw-modal-close {
	position: absolute;

	top: 20px;
	right: 20px;

	width: 38px;
	height: 38px;

	border: 1px solid var(--bw-border);

	background: transparent;

	border-radius: 50%;

	font-size: 23px;
	font-weight: 300;

	line-height: 1;

	cursor: pointer;

	transition:
		background 0.2s ease,
		color 0.2s ease;
}

.bw-modal-close:hover {
	background: var(--bw-black);
	color: white;
}

/* ---------------------------------------------------------
   AGENT STACK (LinkedIn Style)
   --------------------------------------------------------- */

.bw-agent-stack {
	display: flex;
	align-items: center;

	margin-bottom: 25px;
}

.bw-agent-stack img {
	width: 42px;
	height: 42px;

	object-fit: cover;

	border-radius: 50%;

	border: 2px solid var(--bw-white);
	background-color: var(--bw-gray);

	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);

	margin-left: -12px; /* Overlap effect */
}

.bw-agent-stack img:first-child {
	margin-left: 0;
}

/* ---------------------------------------------------------
   CONTENT
   --------------------------------------------------------- */

.bw-modal-eyebrow {
	margin-bottom: 17px;

	font-size: 10px;
	font-weight: 700;

	letter-spacing: 0.16em;

	color: #8a8a84;
}

.bw-modal h2 {
	margin: 0;

	color: var(--bw-black);

	font-size: clamp(40px, 6vw, 58px);

	line-height: 0.95;

	letter-spacing: -0.055em;

	font-weight: 500;
}

.bw-modal-title {
	margin: 12px 0 0;

	font-size: 25px;
	line-height: 1.15;

	letter-spacing: -0.025em;

	color: var(--bw-black);
}

.bw-modal-description {
	max-width: 480px;

	margin: 22px 0 30px;

	color: var(--bw-text-muted);

	font-size: 15px;
	line-height: 1.65;
}

/* ---------------------------------------------------------
   BUTTON
   --------------------------------------------------------- */

.bw-primary-btn {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;

	gap: 35px;

	min-width: 205px;

	padding: 15px 17px 15px 21px;

	border: 0;

	border-radius: 999px;

	background: var(--bw-black);
	color: white;

	font-family: inherit;

	font-size: 14px;
	font-weight: 500;

	cursor: pointer;

	transition:
		transform 0.2s ease,
		background 0.2s ease;
}

.bw-primary-btn span {
	width: 29px;
	height: 29px;

	display: flex;
	align-items: center;
	justify-content: center;

	background: white;
	color: black;

	border-radius: 50%;
}

.bw-primary-btn:hover {
	transform: translateY(-2px);

	background: #272727;
}

.bw-small-text {
	margin: 15px 0 0;

	color: #999994;

	font-size: 11px;
}

/* ---------------------------------------------------------
   FORM
   --------------------------------------------------------- */

.bw-form-view,
.bw-success-view {
	display: none;
}

.bw-form-view.is-active,
.bw-success-view.is-active {
	display: block;
}

.bw-intro-view.is-hidden {
	display: none;
}

.bw-back-btn {
	margin-bottom: 30px;

	padding: 0;

	border: 0;

	background: none;

	color: #777;

	font-family: inherit;

	font-size: 13px;

	cursor: pointer;
}

.bw-back-btn:hover {
	color: #000;
}

/* Fields */

.bw-field-row {
	display: grid;

	grid-template-columns: 1fr 1fr;

	gap: 14px;
}

.bw-field {
	margin-bottom: 17px;
}

.bw-field label {
	display: block;

	margin-bottom: 7px;

	color: #333;

	font-size: 11px;
	font-weight: 600;
}

.bw-field input,
.bw-field select,
.bw-field textarea {
	width: 100%;

	box-sizing: border-box;

	padding: 13px 14px;

	border: 1px solid var(--bw-border);

	border-radius: 10px;

	background: #fafaf8;

	color: #111;

	font-family: inherit;

	font-size: 13px;

	outline: none;

	transition:
		border-color 0.2s ease,
		background 0.2s ease;
}

.bw-field input:focus,
.bw-field select:focus,
.bw-field textarea:focus {
	border-color: #111;

	background: white;
}

.bw-field textarea {
	resize: vertical;
	min-height: 80px;
}

.bw-field select {
	appearance: auto;
}

.bw-submit-btn {
	width: 100%;

	margin-top: 4px;

	justify-content: space-between;
}

.bw-privacy {
	margin: 13px 0 0;

	color: #999;

	font-size: 10px;
	line-height: 1.5;

	text-align: center;
}

/* ---------------------------------------------------------
   SUCCESS
   --------------------------------------------------------- */

.bw-success-view {
	text-align: center;

	padding: 35px 0 15px;
}

.bw-success-icon {
	width: 58px;
	height: 58px;

	margin: 0 auto 28px;

	display: flex;
	align-items: center;
	justify-content: center;

	border-radius: 50%;

	background: var(--bw-black);
	color: white;

	font-size: 25px;
}

.bw-success-view .bw-modal-description {
	margin-left: auto;
	margin-right: auto;
}

.bw-success-view .bw-primary-btn {
	margin-top: 5px;
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 600px) {
	.bw-help-trigger {
		right: 16px;
		bottom: 16px;

		padding: 13px 14px 13px 17px;
	}

	.bw-modal {
		padding: 12px;
	}

	.bw-modal-card {
		max-height: 92vh;

		padding: 42px 24px 28px;

		border-radius: 18px;
	}

	.bw-modal h2 {
		font-size: 43px;
	}

	.bw-modal-title {
		font-size: 22px;
	}

	.bw-field-row {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.bw-modal-close {
		top: 14px;
		right: 14px;
	}
}
/* =========================================
   PHONE NUMBER + COUNTRY CODE
   ========================================= */

.bw-phone-group {
	display: flex;
	width: 100%;
	gap: 8px;
}

.bw-phone-group select {
	width: 100px;
	flex: 0 0 100px;
	height: 48px;
	padding: 0 10px;

	border: 1px solid #d9d9d9;
	border-radius: 8px;

	background-color: #fff;
	color: #222;

	font-size: 14px;
	font-family: inherit;

	outline: none;
	cursor: pointer;
}

.bw-phone-group input {
	flex: 1;
	min-width: 0;
	height: 48px;
}

.bw-phone-group select:focus,
.bw-phone-group input:focus {
	border-color: #111;
	outline: none;
}

/* Mobile */
@media (max-width: 576px) {
	.bw-phone-group {
		gap: 6px;
	}

	.bw-phone-group select {
		width: 92px;
		flex-basis: 92px;
		padding: 0 7px;
		font-size: 13px;
	}
}
