/* Contact Form Modal */

.bd-cf-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.bd-cf-overlay--open {
	opacity: 1;
	visibility: visible;
}

.bd-cf-modal {
	position: relative;
	width: 90%;
	max-width: 480px;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 12px;
	padding: 2rem;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	transform: translateY(20px);
	transition: transform 0.2s ease;
}

.bd-cf-overlay--open .bd-cf-modal {
	transform: translateY(0);
}

.bd-cf-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: none;
	border: none;
	font-size: 1.5rem;
	color: #666;
	cursor: pointer;
	line-height: 1;
	padding: 0.25rem;
}

.bd-cf-close:hover {
	color: #1a1a2e;
}

.bd-cf-title {
	margin: 0 0 0.25rem;
	font-size: 1.25rem;
	font-weight: 700;
	color: #1a1a2e;
}

.bd-cf-to {
	font-size: 0.95rem;
	color: #7c3aed;
	font-weight: 600;
	margin-bottom: 1.5rem;
}

/* Form fields */

.bd-cf-field {
	margin-bottom: 1rem;
}

.bd-cf-field label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #374151;
}

.bd-cf-field input,
.bd-cf-field textarea {
	width: 100%;
	padding: 0.6rem 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 0.95rem;
	font-family: inherit;
	color: #1a1a2e;
	background: #fafafa;
	transition: border-color 0.15s ease;
	box-sizing: border-box;
}

.bd-cf-field input:focus,
.bd-cf-field textarea:focus {
	outline: none;
	border-color: #7c3aed;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.bd-cf-field textarea {
	resize: vertical;
	min-height: 100px;
}

/* Honeypot — visually hidden but accessible to bots */
.bd-cf-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Error */
.bd-cf-error {
	color: #dc2626;
	font-size: 0.875rem;
	min-height: 1.25rem;
	margin-bottom: 0.5rem;
}

/* Submit button */
.bd-cf-submit {
	width: 100%;
	padding: 0.75rem 1.5rem;
	background: #7c3aed;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.bd-cf-submit:hover {
	background: #6d28d9;
}

.bd-cf-submit:disabled {
	background: #a78bfa;
	cursor: not-allowed;
}

/* Success state */
.bd-cf-success {
	text-align: center;
	padding: 2rem 0;
}

.bd-cf-success-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 1rem;
	background: #10b981;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.75rem;
	font-weight: 700;
}

.bd-cf-success-text {
	font-size: 1.1rem;
	font-weight: 600;
	color: #1a1a2e;
	margin: 0;
}
