/**
 * SureDonation Form Styles
 *
 * Frontend styles for donation forms and blocks.
 * Matches SureForms styling patterns exactly.
 *
 * @package SureDonation
 * @since 0.0.1
 */

/* ==========================================================================
   CSS Variables - Matches SureForms :root variables
   ========================================================================== */

:root {
	/* Base */
	--sd-font-size: 16px;

	/* Colors - Primary */
	--sd-color-scheme-primary: #10b981;
	--sd-color-scheme-primary-hover: #059669;

	/* Colors - Input */
	--sd-color-input-text: #1f2937;
	--sd-color-input-label: #1f2937;
	--sd-color-input-description: #6b7280;
	--sd-color-input-placeholder: #9ca3af;
	--sd-color-input-background: #ffffff;
	--sd-color-input-background-hover: #f9fafb;
	--sd-color-input-border: #d1d5db;
	--sd-color-input-border-hover: #9ca3af;
	--sd-color-input-border-focus-glow: rgba(16, 185, 129, 0.15);
	--sd-color-input-selected: rgba(16, 185, 129, 0.05);
	--sd-color-multi-choice-svg: #9ca3af;

	/* Colors - Disabled */
	--sd-disabled-color: #9ca3af;
	--sd-disabled-background-color: #f3f4f6;
	--sd-disabled-border-color: #e5e7eb;

	/* Colors - Error */
	--sd-error-color: #dc2626;
	--sd-error-color-border: rgba(220, 38, 38, 0.65);
	--sd-error-color-border-glow: rgba(220, 38, 38, 0.15);

	/* Layout - Gaps */
	--sd-column-gap-between-blocks: 16px;
	--sd-col-gap-between-fields: 16px;
	--sd-row-gap-between-blocks: 18px;

	/* Input Field */
	--sd-input-height: 44px;
	--sd-input-field-font-size: 16px;
	--sd-input-field-font-weight: 400;
	--sd-input-field-line-height: 1.5;
	--sd-input-field-padding: 10px 14px;
	--sd-input-field-border-radius: 6px;
	--sd-input-field-margin-top: 6px;
	--sd-input-field-margin-bottom: 0;
	--sd-input-label-gap: 6px;

	/* Label */
	--sd-label-font-size: 14px;
	--sd-label-font-weight: 500;
	--sd-label-line-height: 20px;

	/* Description */
	--sd-description-font-size: 13px;
	--sd-description-font-weight: 400;
	--sd-description-line-height: 18px;
	--sd-description-margin-top: 2px;

	/* Error */
	--sd-error-font-size: 12px;
	--sd-error-font-weight: 500;
	--sd-error-line-height: 16px;

	/* Checkbox */
	--sd-checkbox-size: 18px;
	--sd-checkbox-input-border-radius: 4px;
	--sd-check-svg-top: 2px;
	--sd-check-svg-left: 2px;

	/* Multi-Choice */
	--sd-gap-between-icon-text: 8px;
	--sd-multi-choice-horizontal-svg-size: 16px;
	--sd-multi-choice-outer-padding: 0;

	/* Button */
	--sd-btn-padding: 12px 24px;
	--sd-btn-font-size: 16px;
	--sd-btn-font-weight: 500;
	--sd-btn-line-height: 1.5;
	--sd-btn-border-radius: 6px;
	--sd-btn-text-color: #ffffff;
}

/* ==========================================================================
   Form Container - Matches .srfm-form-container
   ========================================================================== */

.sd-form-container {
	position: relative;
	font-family: inherit;
	font-size: var(--sd-font-size);
	line-height: 1.5;
}

.sd-form-container *,
.sd-form-container *::before,
.sd-form-container *::after {
	box-sizing: border-box;
}

.sd-form-container .sd-form {
	display: flex;
	flex-wrap: wrap;
	row-gap: var(--sd-row-gap-between-blocks);
	column-gap: var(--sd-column-gap-between-blocks);
}

/* Hidden blocks */
.sd-form-container .sd-form .sd-hidden-block {
	display: none;
}

/* ==========================================================================
   Block Base Styles - Matches .srfm-block
   ========================================================================== */

.sd-form-container .sd-form .sd-block {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.sd-form-container .sd-form .sd-block-single {
	display: flex;
	flex-direction: column;
	width: 100%;
}

/* Field width variations - Matches SureForms field widths */
.sd-form-container .sd-form .sd-block-width-100 {
	flex: 0 1 100%;
}

.sd-form-container .sd-form .sd-block-width-75 {
	flex: 0 1 calc(75% - var(--sd-col-gap-between-fields) / 4);
}

.sd-form-container .sd-form .sd-block-width-66-66 {
	flex: 0 1 calc(66.66% - 0.3333333333 * var(--sd-col-gap-between-fields));
}

.sd-form-container .sd-form .sd-block-width-50 {
	flex: 0 1 calc(50% - var(--sd-col-gap-between-fields) / 2);
}

.sd-form-container .sd-form .sd-block-width-33-33 {
	flex: 0 1 calc(33.33% - 0.6666666667 * var(--sd-col-gap-between-fields));
}

.sd-form-container .sd-form .sd-block-width-25 {
	flex: 0 1 calc(25% - 0.75 * var(--sd-col-gap-between-fields));
}

/* ==========================================================================
   Label & Description - Matches SureForms label styles
   ========================================================================== */

.sd-form-container .sd-form .sd-label {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: var(--sd-label-font-size);
	font-weight: var(--sd-label-font-weight);
	line-height: var(--sd-label-line-height);
	color: var(--sd-color-input-label);
	margin-bottom: var(--sd-input-label-gap, var(--sd-input-field-margin-top));
}

.sd-form-container .sd-form .sd-required {
	color: var(--sd-error-color);
}

.sd-form-container .sd-form .sd-help {
	font-size: var(--sd-description-font-size);
	font-weight: var(--sd-description-font-weight);
	line-height: var(--sd-description-line-height);
	color: var(--sd-color-input-description);
	margin-top: var(--sd-description-margin-top);
	margin-bottom: var(--sd-input-label-gap, var(--sd-input-field-margin-top));
}

/* ==========================================================================
   Block Wrap - Matches .srfm-block-wrap
   ========================================================================== */

.sd-form-container .sd-form .sd-block-wrap {
	position: relative;
	width: 100%;
}

/* ==========================================================================
   Input Common Styles - Matches .srfm-input-common
   ========================================================================== */

.sd-form-container .sd-form .sd-block:not(.sd-number-block) .sd-input-common {
	font-family: inherit;
	font-size: var(--sd-input-field-font-size);
	font-weight: var(--sd-input-field-font-weight);
	padding: var(--sd-input-field-padding);
	line-height: var(--sd-input-field-line-height);
	color: var(--sd-color-input-text);
	border: var(--sd-color-input-border) solid 1px;
	border-radius: var(--sd-input-field-border-radius);
	background-color: var(--sd-color-input-background);
	height: var(--sd-input-height);
	margin-top: var(--sd-input-label-gap, var(--sd-input-field-margin-top));
	margin-bottom: var(--sd-input-field-margin-bottom);
	margin-right: 0;
	margin-left: 0;
	outline: 0;
	transition: 0.2s ease-out;
	display: block;
	width: 100%;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.sd-form-container .sd-form .sd-block:not(.sd-number-block) .sd-input-common::placeholder {
	color: var(--sd-color-input-placeholder);
}

.sd-form-container .sd-form .sd-block:not(.sd-number-block) .sd-input-common:hover {
	border-color: var(--sd-color-input-border-hover);
}

.sd-form-container .sd-form .sd-block:not(.sd-number-block) .sd-input-common:focus {
	box-shadow: 0px 0px 0px 3px var(--sd-color-input-border-focus-glow);
	border-color: var(--sd-color-input-border-hover);
}

.sd-form-container .sd-form .sd-block:not(.sd-number-block) .sd-input-common:disabled {
	color: var(--sd-disabled-color);
	background-color: var(--sd-disabled-background-color);
	border-color: var(--sd-disabled-border-color);
}

/* ==========================================================================
   Error States - Matches SureForms error styles
   ========================================================================== */

.sd-form-container .sd-form .sd-block .sd-error {
	display: none;
	line-height: var(--sd-error-line-height);
	color: var(--sd-error-color);
	font-size: var(--sd-error-font-size);
	font-weight: var(--sd-error-font-weight);
	margin-top: 6px;
}

.sd-form-container .sd-form .sd-block.sd-has-error .sd-error {
	display: block;
}

.sd-form-container .sd-form .sd-block:not(.sd-number-block).sd-has-error .sd-block-wrap .sd-input-common {
	border-color: var(--sd-error-color-border);
}

.sd-form-container .sd-form .sd-block:not(.sd-number-block).sd-has-error .sd-block-wrap .sd-input-common:focus {
	box-shadow: 0px 0px 0px 3px var(--sd-error-color-border-glow);
}

/* ==========================================================================
   Number Block - Matches .srfm-number-block
   ========================================================================== */

.sd-form-container .sd-form .sd-number-block .sd-input-number::-webkit-inner-spin-button,
.sd-form-container .sd-form .sd-number-block .sd-input-number::-webkit-outer-spin-button {
	appearance: none;
}

.sd-form-container .sd-form .sd-number-block .sd-number-wrap {
	display: flex;
	width: 100%;
	align-items: center;
	font-family: inherit;
	font-size: var(--sd-input-field-font-size);
	font-weight: var(--sd-input-field-font-weight);
	line-height: var(--sd-input-field-line-height);
	color: var(--sd-color-input-text);
	border: var(--sd-color-input-border) solid 1px;
	border-radius: var(--sd-input-field-border-radius);
	background-color: var(--sd-color-input-background);
	height: var(--sd-input-height);
	outline: 0;
	margin-top: var(--sd-input-field-margin-top);
	margin-bottom: var(--sd-input-field-margin-bottom);
	margin-left: 0;
	margin-right: 0;
	transition: 0.2s ease-out;
	padding-top: 0;
	padding-bottom: 0;
	overflow: hidden;
}

.sd-form-container .sd-form .sd-number-block .sd-number-wrap.sd-input-focused {
	box-shadow: 0px 0px 0px 3px var(--sd-color-input-border-focus-glow);
	border-color: var(--sd-color-input-border-hover);
}

.sd-form-container .sd-form .sd-number-block .sd-number-wrap.sd-input-focused .sd-currency-symbol {
	border-color: var(--sd-color-input-border-hover);
}

.sd-form-container .sd-form .sd-number-block .sd-number-wrap.sd-input-hovered {
	border-color: var(--sd-color-input-border-hover);
}

.sd-form-container .sd-form .sd-number-block .sd-number-wrap.sd-input-hovered .sd-currency-symbol {
	border-color: var(--sd-color-input-border-hover);
}

.sd-form-container .sd-form .sd-number-block .sd-number-wrap .sd-input-number,
.sd-form-container .sd-form .sd-number-block .sd-number-wrap .sd-currency-symbol {
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	color: inherit;
	background-color: inherit;
}

.sd-form-container .sd-form .sd-number-block .sd-number-wrap .sd-input-number {
	border: none;
	border-radius: 0;
	padding: var(--sd-input-field-padding);
	height: 100%;
	flex: 1;
	-moz-appearance: textfield;
}

.sd-form-container .sd-form .sd-number-block .sd-number-wrap .sd-input-number::placeholder {
	color: var(--sd-color-input-placeholder);
}

.sd-form-container .sd-form .sd-number-block .sd-number-wrap .sd-input-number:focus {
	outline: none !important;
	border: none !important;
}

.sd-form-container .sd-form .sd-number-block .sd-currency-symbol {
	display: flex;
	align-items: center;
	height: 100%;
	padding: 0 12px;
	white-space: nowrap;
	max-width: 100%;
	overflow: hidden;
	border-right: var(--sd-color-input-border) solid 1px;
	color: var(--sd-color-input-description);
}

.sd-form-container .sd-form .sd-number-block.sd-has-error .sd-number-wrap {
	border-color: var(--sd-error-color-border);
}

.sd-form-container .sd-form .sd-number-block.sd-has-error .sd-number-wrap.sd-input-focused {
	box-shadow: 0px 0px 0px 3px var(--sd-error-color-border-glow);
}

.sd-form-container .sd-form .sd-number-block.sd-has-error .sd-error {
	display: block;
}

/* ==========================================================================
   Checkbox Block - Matches .srfm-checkbox-block
   ========================================================================== */

.sd-form-container .sd-form .sd-checkbox-block .sd-checkbox-wrap {
	display: flex;
	align-items: flex-start;
}

.sd-form-container .sd-form .sd-checkbox-block .sd-checkbox-label {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
}

.sd-form-container .sd-form .sd-checkbox-block .sd-input-checkbox {
	position: relative;
	flex-shrink: 0;
	width: var(--sd-checkbox-size, 18px);
	height: var(--sd-checkbox-size, 18px);
	border: 1px solid var(--sd-color-input-border);
	border-radius: var(--sd-checkbox-input-border-radius);
	background-color: var(--sd-color-input-background);
	transition: all 0.2s ease-out;
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	margin: 0;
}

.sd-form-container .sd-form .sd-checkbox-block .sd-input-checkbox:hover {
	border-color: var(--sd-color-input-border-hover);
}

.sd-form-container .sd-form .sd-checkbox-block .sd-input-checkbox:focus {
	border-color: var(--sd-color-scheme-primary);
	box-shadow: 0px 0px 0px 3px var(--sd-color-input-border-focus-glow);
	outline: none;
}

.sd-form-container .sd-form .sd-checkbox-block .sd-input-checkbox:checked {
	background-color: var(--sd-color-scheme-primary);
	border-color: var(--sd-color-scheme-primary);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
	background-size: 12px 12px;
	background-position: center;
	background-repeat: no-repeat;
}

.sd-form-container .sd-form .sd-checkbox-block .sd-checkbox-text {
	font-size: var(--sd-input-field-font-size);
	line-height: var(--sd-input-field-line-height);
	color: var(--sd-color-input-text);
}

.sd-form-container .sd-form .sd-checkbox-block .sd-checkbox-text a {
	color: var(--sd-color-scheme-primary);
	text-decoration: underline;
}

.sd-form-container .sd-form .sd-checkbox-block .sd-checkbox-text .sd-required {
	color: var(--sd-error-color);
}

/* Checkbox error state */
.sd-form-container .sd-form .sd-checkbox-block.sd-has-error .sd-input-checkbox {
	border-color: var(--sd-error-color-border);
}

.sd-form-container .sd-form .sd-checkbox-block.sd-has-error .sd-input-checkbox:focus {
	box-shadow: 0px 0px 0px 3px var(--sd-error-color-border-glow);
}

/* ==========================================================================
   Multi-Choice Block - Matches SureForms .srfm-multi-choice-block
   ========================================================================== */

.sd-form-container .sd-form .sd-multi-choice-block .sd-multi-choice-wrap {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -4px;
	padding: var(--sd-multi-choice-outer-padding, 0) 0;
}

/* Choice width variations - controls option width in horizontal layout */
@media (min-width: 481px) {
	.sd-form-container .sd-form .sd-multi-choice-block .sd-multi-choice-wrap.sd-choice-width-100 .sd-multi-choice-single {
		width: 100%;
	}

	.sd-form-container .sd-form .sd-multi-choice-block .sd-multi-choice-wrap.sd-choice-width-75 .sd-multi-choice-single {
		width: 75%;
	}

	.sd-form-container .sd-form .sd-multi-choice-block .sd-multi-choice-wrap.sd-choice-width-66-66 .sd-multi-choice-single {
		width: 66.66%;
	}

	.sd-form-container .sd-form .sd-multi-choice-block .sd-multi-choice-wrap.sd-choice-width-50 .sd-multi-choice-single {
		width: 50%;
	}

	.sd-form-container .sd-form .sd-multi-choice-block .sd-multi-choice-wrap.sd-choice-width-33-33 .sd-multi-choice-single {
		width: 33.33%;
	}

	.sd-form-container .sd-form .sd-multi-choice-block .sd-multi-choice-wrap.sd-choice-width-25 .sd-multi-choice-single {
		width: 25%;
	}
}

/* Layout variations - class on wrap div (matching SureForms pattern) */
.sd-form-container .sd-form .sd-multi-choice-block .sd-multi-choice-wrap.sd-vertical-layout {
	flex-direction: column;
}

/* Single choice item - matches SureForms srfm-multi-choice-single */
.sd-form-container .sd-form .sd-multi-choice-block .sd-multi-choice-single {
	padding: 4px;
	cursor: pointer;
	margin: 0;
	transition: 0.2s ease-out;
}

.sd-form-container .sd-form .sd-multi-choice-block .sd-multi-choice-single label {
	cursor: pointer;
	font-size: inherit;
	line-height: inherit;
	font-weight: inherit;
	color: inherit;
}

/* Hidden input for accessibility */
.sd-form-container .sd-form .sd-multi-choice-block .sd-multi-choice-single input {
	position: absolute;
	opacity: 0;
}

/* Block content wrap - matches SureForms srfm-block-content-wrap */
.sd-form-container .sd-form .sd-multi-choice-block .sd-block-content-wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--sd-multi-choice-internal-option-gap, 10px);
	padding: var(--sd-input-field-padding, 10px 14px);
	font-size: var(--sd-input-field-font-size);
	font-weight: var(--sd-input-field-font-weight);
	line-height: var(--sd-input-field-line-height);
	color: var(--sd-color-input-text);
	border: var(--sd-color-input-border) solid 1px;
	border-radius: var(--sd-input-field-border-radius);
	background-color: var(--sd-color-input-background);
	min-height: var(--sd-input-height);
	height: auto;
	margin: 0;
	transition: 0.2s ease-out;
}

.sd-form-container .sd-form .sd-multi-choice-block .sd-block-content-wrap:hover {
	border-color: var(--sd-color-input-border-hover);
	background-color: var(--sd-color-input-background-hover);
}

/* Focus state */
.sd-form-container .sd-form .sd-multi-choice-block .sd-multi-choice-single input:focus + .sd-block-content-wrap {
	box-shadow: 0px 0px 0px 3px var(--sd-color-input-border-focus-glow);
	border-color: var(--sd-color-input-border-hover);
}

/* Checked state */
.sd-form-container .sd-form .sd-multi-choice-block .sd-multi-choice-single input:checked + .sd-block-content-wrap {
	box-shadow: none;
	border-color: var(--sd-color-input-border-hover);
	background-color: var(--sd-color-input-selected);
}

/* Option container */
.sd-form-container .sd-form .sd-multi-choice-block .sd-option-container {
	display: flex;
	flex: 1;
	gap: var(--sd-multi-choice-internal-option-gap, 10px);
	align-items: center;
}

.sd-form-container .sd-form .sd-multi-choice-block .sd-option-container label {
	font-size: 1em;
	line-height: var(--sd-input-field-line-height);
	margin: 0;
	word-break: break-word;
	flex: 1;
	cursor: pointer;
}

/* Icon container */
.sd-form-container .sd-form .sd-multi-choice-block .sd-icon-container {
	display: flex;
	align-items: center;
}

.sd-form-container .sd-form .sd-multi-choice-block .sd-multi-choice-icon,
.sd-form-container .sd-form .sd-multi-choice-block .sd-multi-choice-icon-unchecked {
	display: flex;
	align-items: center;
	transition: opacity 0.2s ease-out;
}

.sd-form-container .sd-form .sd-multi-choice-block .sd-multi-choice-icon svg,
.sd-form-container .sd-form .sd-multi-choice-block .sd-multi-choice-icon-unchecked svg {
	width: 20px;
	height: 20px;
	color: var(--sd-color-input-border);
}

/* Unchecked state - show unchecked icon, hide checked icon */
.sd-form-container .sd-form .sd-multi-choice-block .sd-multi-choice-icon {
	opacity: 0;
	width: 0;
	overflow: hidden;
}

.sd-form-container .sd-form .sd-multi-choice-block .sd-multi-choice-icon-unchecked {
	opacity: 1;
}

/* Checked state - show checked icon, hide unchecked icon */
.sd-form-container .sd-form .sd-multi-choice-block .sd-multi-choice-single input:checked + .sd-block-content-wrap .sd-multi-choice-icon {
	opacity: 1;
	width: auto;
}

.sd-form-container .sd-form .sd-multi-choice-block .sd-multi-choice-single input:checked + .sd-block-content-wrap .sd-multi-choice-icon svg {
	color: var(--sd-color-scheme-primary);
}

.sd-form-container .sd-form .sd-multi-choice-block .sd-multi-choice-single input:checked + .sd-block-content-wrap .sd-multi-choice-icon-unchecked {
	opacity: 0;
	width: 0;
	overflow: hidden;
}

/* Vertical layout specific styles - class on wrap div */
.sd-form-container .sd-form .sd-multi-choice-block .sd-multi-choice-wrap.sd-vertical-layout .sd-block-content-wrap {
	position: relative;
	padding: var(--sd-multi-choice-vertical-padding, 16px);
	height: 100%;
}

.sd-form-container .sd-form .sd-multi-choice-block .sd-multi-choice-wrap.sd-vertical-layout .sd-option-container {
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
}

.sd-form-container .sd-form .sd-multi-choice-block .sd-multi-choice-wrap.sd-vertical-layout .sd-option-container label {
	text-align: center;
}

.sd-form-container .sd-form .sd-multi-choice-block .sd-multi-choice-wrap.sd-vertical-layout .sd-icon-container {
	position: absolute;
	top: 4px;
	right: 4px;
}

/* Mobile responsive */
@media (max-width: 480px) {
	.sd-form-container .sd-form .sd-multi-choice-block .sd-multi-choice-wrap:not(.sd-vertical-layout) {
		flex-direction: column;
	}

	.sd-form-container .sd-form .sd-multi-choice-block .sd-multi-choice-single {
		width: 100%;
	}
}

/* Multi-choice error state */
.sd-form-container .sd-form .sd-multi-choice-block.sd-has-error .sd-block-content-wrap {
	border-color: var(--sd-error-color-border);
}

/* Legend styling */
.sd-form-container .sd-form .sd-multi-choice-block fieldset {
	border: none;
	margin: 0;
	padding: 0;
}

.sd-form-container .sd-form .sd-multi-choice-block .sd-block-legend {
	padding: 0;
	margin-bottom: var(--sd-input-label-gap, 6px);
}

/* ==========================================================================
   Payment Block - Matches .srfm-payment-block
   ========================================================================== */

.sd-form-container .sd-form .sd-payment-block {
	width: 100%;
}

.sd-form-container .sd-form .sd-payment-block .sd-payment-wrap {
	margin-bottom: 16px;
}

.sd-form-container .sd-form .sd-payment-block .sd-payment-element {
	padding: 12px;
	border: 1px solid var(--sd-color-input-border);
	border-radius: var(--sd-input-field-border-radius);
	background-color: var(--sd-color-input-background);
	min-height: 48px;
}

.sd-form-container .sd-form .sd-payment-block .sd-payment-error {
	color: var(--sd-error-color);
	font-size: var(--sd-error-font-size);
	margin-top: 8px;
	padding: 8px 12px;
	background-color: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: var(--sd-input-field-border-radius);
}

.sd-form-container .sd-form .sd-payment-block .sd-payment-not-configured {
	padding: 16px;
	background-color: #fffbeb;
	border: 1px solid #fbbf24;
	border-radius: var(--sd-input-field-border-radius);
	color: #92400e;
	font-size: var(--sd-description-font-size, 13px);
}

/* ==========================================================================
   Submit Button - Matches SureForms submit button
   ========================================================================== */

.sd-form-container .sd-form .sd-submit-container {
	width: 100%;
}

.sd-form-container .sd-form .sd-submit-container.hide {
	display: none;
}

.sd-form-container .sd-form .sd-submit-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: var(--sd-btn-padding, 12px 24px);
	font-family: inherit;
	font-size: var(--sd-btn-font-size, var(--sd-font-size));
	font-weight: var(--sd-btn-font-weight);
	line-height: var(--sd-btn-line-height, 1.5);
	color: var(--sd-btn-text-color, #ffffff);
	background-color: var(--sd-color-scheme-primary, #10b981);
	border: none;
	border-radius: var(--sd-btn-border-radius);
	cursor: pointer;
	transition: background-color 0.2s ease-out, transform 0.1s ease-out;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.sd-form-container .sd-form .sd-submit-button:hover {
	background-color: var(--sd-color-scheme-primary-hover, #059669);
}

.sd-form-container .sd-form .sd-submit-button:active {
	transform: scale(0.98);
}

.sd-form-container .sd-form .sd-submit-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.sd-form-container .sd-form .sd-submit-button:focus {
	outline: none;
	box-shadow: 0px 0px 0px 3px var(--sd-color-input-border-focus-glow);
}

/* Button spinner */
.sd-form-container .sd-form .sd-button-spinner {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.sd-form-container .sd-form .sd-spinner {
	width: 18px;
	height: 18px;
	animation: sd-spin 1s linear infinite;
}

.sd-form-container .sd-form .sd-spinner-track {
	opacity: 0.25;
}

.sd-form-container .sd-form .sd-spinner-head {
	opacity: 1;
}

@keyframes sd-spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

/* ==========================================================================
   Form Messages
   ========================================================================== */

.sd-form-container .sd-form-messages {
	width: 100%;
	margin-top: var(--sd-row-gap-between-blocks);
}

.sd-form-container .sd-form-success {
	padding: 16px;
	background-color: #ecfdf5;
	border: 1px solid #a7f3d0;
	border-radius: var(--sd-input-field-border-radius);
	color: #065f46;
	font-size: var(--sd-font-size);
}

.sd-form-container .sd-form-error {
	padding: 16px;
	background-color: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: var(--sd-input-field-border-radius);
	color: #991b1b;
	font-size: var(--sd-font-size);
}

/* ==========================================================================
   Loading State
   ========================================================================== */

.sd-form-container.sd-form-loading {
	position: relative;
	pointer-events: none;
}

.sd-form-container.sd-form-loading::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(255, 255, 255, 0.7);
	z-index: 10;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media screen and (max-width: 768px) {
	.sd-form-container .sd-form .sd-block-width-75,
	.sd-form-container .sd-form .sd-block-width-66-66,
	.sd-form-container .sd-form .sd-block-width-50,
	.sd-form-container .sd-form .sd-block-width-33-33,
	.sd-form-container .sd-form .sd-block-width-25 {
		flex: 0 1 100%;
	}
}

/* ==========================================================================
   Notice Styles
   ========================================================================== */

.suredonation-notice {
	padding: 16px;
	background-color: #fffbeb;
	border: 1px solid #fbbf24;
	border-radius: var(--sd-input-field-border-radius);
	color: #92400e;
	font-size: var(--sd-font-size);
	text-align: center;
}

/* ==========================================================================
   Success Box - Shown after successful donation
   ========================================================================== */

.sd-form-container .sd-success-box {
	padding: 40px 24px;
	text-align: center;
	background-color: var(--sd-color-input-background);
	border-radius: var(--sd-input-field-border-radius);
}

.sd-form-container .sd-success-box .sd-success-icon {
	display: flex;
	justify-content: center;
	margin-bottom: 16px;
}

.sd-form-container .sd-success-box .sd-success-icon svg {
	color: var(--sd-color-scheme-primary);
}

.sd-form-container .sd-success-box .sd-success-title {
	font-size: 24px;
	font-weight: 600;
	color: var(--sd-color-input-label);
	margin: 0 0 12px 0;
}

.sd-form-container .sd-success-box .sd-success-text {
	font-size: var(--sd-font-size);
	color: var(--sd-color-input-description);
	margin: 0;
	line-height: 1.6;
}
