#bfc-toggle-form {
    padding: 12px 30px;
    background: #b54332;
    color: #fff;
    border: none;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 auto 20px;
    display: block;
    text-transform: uppercase;
    transition: background 0.3s ease;
}
#bfc-toggle-form:hover {
    background: #99352a;
}

/* ---------- Shared Spinner ---------- */
.bfc-spinner {
	width: 32px;
	height: 32px;
	border: 4px solid #ccc;
	border-top-color: #b54332;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 10px auto;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* ---------- Stripe BFC Form Wrapper ---------- */
#BFC-stripe-form,
.stripe-bfc-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 600px;
	margin: 0 auto;
}

/* ---------- Input Fields ---------- */
#BFC-stripe-form input::placeholder {
	font-size: 16px;
}
#BFC-stripe-form input[type="text"],
#BFC-stripe-form input[type="email"],
#BFC-stripe-form input[type="tel"],
#BFC-stripe-form input[type="number"],
#BFC-stripe-form input[type="url"],
#BFC-stripe-form input[type="date"],
#BFC-stripe-form textarea,
.stripe-bfc-form input[type="email"],
.stripe-bfc-form input[type="text"],
.stripe-bfc-form textarea {
	width: 100%;
	padding: 18px;
	border: none;
	background: #EDEDED;
	color: #333;
	font-size: 16px;
	border-radius: 4px;
	box-sizing: border-box;
	margin: 7px 0;
}

/* ---------- Select Fields ---------- */
#BFC-stripe-form select,
.stripe-bfc-form select {
	width: 100%;
	padding: 18px;
	border: none;
	background: #EDEDED;
	color: #333;
	font-size: 16px;
	border-radius: 4px;
	box-sizing: border-box;
	margin: 7px 0;
	appearance: none;
	background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
	background-repeat: no-repeat;
	background-position: right 18px center;
	background-size: 16px 16px;
	padding-right: 40px;
}

/* ---------- Privacy Policy Consent ---------- */
.bfc-privacy-policy-consent, .bfc-terms-and-conditions-consent{
    display: flex; /* Use flexbox for alignment of checkbox and label */
    align-items: center; /* Vertically center the items */
    gap: 8px; /* Space between checkbox and text */
    margin: 7px 0; /* Match vertical margin of other fields */
    font-size: 14px; /* Slightly smaller font size for consent text */
    color: #555;
}

.bfc-privacy-policy-consent input[type="checkbox"], .bfc-terms-and-conditions-consent input[type="checkbox"]{
    /* Basic styling for the checkbox itself */
    width: 18px;
    height: 18px;
    min-width: 18px; /* Ensure it doesn't shrink */
    min-height: 18px; /* Ensure it doesn't shrink */
    margin: 0; /* Remove default margin */
    cursor: pointer;
    vertical-align: middle; /* Align with text */
    border: 1px solid #ccc;
    border-radius: 3px;
    appearance: none; /* Hide default checkbox */
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    position: relative;
    background-color: #EDEDED;
}

.bfc-privacy-policy-consent input[type="checkbox"]:checked, .bfc-terms-and-conditions-consent input[type="checkbox"]:checked {
    background-color: #b54332; /* Match button color when checked */
    border-color: #b54332;
}

/* Custom checkmark for checked state */
.bfc-privacy-policy-consent input[type="checkbox"]:checked::after, .bfc-terms-and-conditions-consent input[type="checkbox"]:checked::after {
    content: '\2713'; /* Unicode checkmark character */
    font-size: 14px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1; /* Adjust line height for perfect centering */
}


.bfc-privacy-policy-consent label,
.bfc-terms-and-conditions-consent label {
    cursor: pointer;
    line-height: 1.5; /* Improve readability */
}

.bfc-privacy-policy-consent label a, 
.bfc-terms-and-conditions-consent label a {
    color: #b54332; /* Match brand color for the link */
    text-decoration: none;
    font-weight: bold;
}

.bfc-privacy-policy-consent label a:hover, 
.bfc-terms-and-conditions-consent label a:hover {
    text-decoration: underline;
}

/* ---------- Stripe Card Element ---------- */
#card-element {
	padding: 18px;
	background: #EDEDED;
	border-radius: 4px;
	margin: 7px 0;
}

/* ---------- Buttons ---------- */
#BFC-stripe-form button,
#BFC-stripe-form button[type="submit"],
.stripe-bfc-form button[type="submit"] {
	padding: 15px 40px;
	color: #fff;
	background: #b54332;
	font-size: 16px;
	border: none;
	text-transform: uppercase;
	cursor: pointer;
	border-radius: 4px;
	margin: 7px 0;
	transition: background 0.3s ease;
}

#BFC-stripe-form button,
#BFC-stripe-form button[type="submit"]:hover,
.stripe-bfc-form button[type="submit"]:hover {
	background: #99352a;
}

/* ---------- Error / Success Messages ---------- */
#bfc-error-message,
.stripe-bfc-error {
	color: #c00;
	font-weight: bold;
	margin-top: 10px;
}

.stripe-bfc-success {
	color: #007e33;
	font-weight: bold;
	margin-top: 10px;
}
/* ---------- BFC Message ---------- */
#bfc-message {
	display: flex;
	align-items: center;
	gap: 12px;
	border-radius: 6px;
	padding: 16px;
	font-size: 16px;
	margin-top: 14px;
}
#bfc-message span {
	padding-left: 1em;
}

.bfc-message-icon {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
}
