/* Intake Form Popup Styles */

.bwds-intake-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	backdrop-filter: blur(4px);
}

.bwds-intake-popup-container {
	position: relative;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	max-width: 600px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 40px;
	animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.bwds-intake-popup-close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: none;
	border: none;
	font-size: 32px;
	cursor: pointer;
	color: #666;
	padding: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.2s ease;
}

.bwds-intake-popup-close:hover {
	background: #f0f0f0;
	color: #000;
}

/* Form Styles */
.bwds-intake-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.bwds-intake-section {
	border: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.bwds-intake-section legend {
	font-size: 18px;
	font-weight: 600;
	color: #0f1f2f;
	padding: 0;
	margin: 0 0 8px 0;
	line-height: 1.2;
}

.bwds-intake-goal-question {
	font-size: 16px;
	font-weight: 500;
	color: #0f1f2f;
	margin-bottom: 16px;
}

.bwds-intake-goal-question strong {
	color: #ff7a1a;
	font-weight: 600;
}

/* Form Groups */
.bwds-intake-form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.bwds-intake-contact-info .bwds-intake-form-group:last-child {
	margin-bottom: 8px;
}

.bwds-intake-form-group label {
	font-size: 14px;
	font-weight: 500;
	color: #0f1f2f;
}

.required {
	color: #ff7a1a;
}

.bwds-intake-form-group input[type="text"],
.bwds-intake-form-group input[type="email"],
.bwds-intake-form-group input[type="tel"],
.bwds-intake-form-group textarea {
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bwds-intake-form-group input[type="text"]:focus,
.bwds-intake-form-group input[type="email"]:focus,
.bwds-intake-form-group input[type="tel"]:focus,
.bwds-intake-form-group textarea:focus {
	outline: none;
	border-color: #ff7a1a;
	box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.1);
}

/* Radio Button Styles */
.bwds-intake-radio-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bwds-intake-goal-section,
.bwds-intake-details-section,
.bwds-intake-something-else {
	margin-top: 4px;
}

.bwds-intake-details-textarea,
.bwds-intake-agent-message,
.bwds-intake-something-else {
	margin-top: 10px;
}

.bwds-intake-details-section > p,
.bwds-intake-something-else > p {
	margin: 0;
}

.bwds-intake-radio-label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	user-select: none;
	font-size: 14px;
}

.bwds-intake-radio-label input[type="radio"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: #ff7a1a;
}

.bwds-intake-radio-label span {
	color: #0f1f2f;
}

/* Inline Messages */
.bwds-intake-confirmation {
	background: #f0fdf4;
	border-left: 4px solid #22c55e;
	padding: 12px 16px;
	border-radius: 4px;
	color: #166534;
	font-size: 14px;
	margin: 12px 0 0 0;
	animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.bwds-intake-agent-message {
	background: #fef3c7;
	border-left: 4px solid #f59e0b;
	padding: 12px 16px;
	border-radius: 4px;
	color: #92400e;
	font-size: 14px;
	animation: fadeIn 0.3s ease-out;
}

.bwds-intake-agent-message p {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.bwds-intake-submit-trigger {
	background: none;
	border: none;
	color: #f59e0b;
	text-decoration: underline;
	cursor: pointer;
	font-size: 14px;
	padding: 0;
}

.bwds-intake-submit-trigger:hover {
	color: #d97706;
}

/* Form Actions */
.bwds-intake-form-actions {
	display: flex;
	gap: 12px;
}

.bwds-intake-submit-button {
	flex: 1;
	padding: 12px 24px;
	background: #ff7a1a;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.bwds-intake-submit-button:hover {
	background: #ff9a4d;
	box-shadow: 0 10px 22px rgba(255, 122, 26, 0.28);
	transform: translateY(-1px);
}

.bwds-intake-submit-button:active {
	transform: translateY(0);
}

/* Success Message */
.bwds-intake-success-message {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	backdrop-filter: blur(4px);
}

.bwds-intake-success-content {
	background: #fff;
	border-radius: 16px;
	padding: 48px 40px;
	text-align: center;
	max-width: 500px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: slideIn 0.3s ease-out;
}

.bwds-intake-success-content h3 {
	font-size: 28px;
	font-weight: 600;
	color: #0f1f2f;
	margin: 0 0 16px 0;
}

.bwds-intake-success-content p {
	font-size: 16px;
	line-height: 1.6;
	color: #555;
	margin: 0 0 24px 0;
}

.bwds-intake-success-close {
	padding: 12px 32px;
	background: #ff7a1a;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.bwds-intake-success-close:hover {
	background: #ff9a4d;
	box-shadow: 0 10px 22px rgba(255, 122, 26, 0.28);
	transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 600px) {
	.bwds-intake-popup-container {
		width: 95%;
		padding: 24px;
	}

	.bwds-intake-popup-close {
		top: 12px;
		right: 12px;
	}

	.bwds-intake-success-content {
		padding: 32px 24px;
	}

	.bwds-intake-success-content h3 {
		font-size: 24px;
	}
}
