/* ============================================
   Fundrizer Donations – Premium Styles
   ============================================ */

:root {
	--fr-primary: #0f766e;
	--fr-primary-hover: #0d9488;
	--fr-primary-light: #ccfbf1;
	--fr-text: #134e4a;
	--fr-text-muted: #5eead4;
	--fr-bg: #f0fdfa;
	--fr-card: #ffffff;
	--fr-border: #99f6e4;
	--fr-radius: 16px;
	--fr-radius-sm: 10px;
	--fr-shadow: 0 10px 40px -10px rgba(15, 118, 110, 0.15);
	--fr-shadow-lg: 0 25px 50px -12px rgba(15, 118, 110, 0.2);
	--fr-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Wrapper */
.fundrizer-form-wrapper {
	max-width: 480px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--fr-text);
	line-height: 1.5;
}

/* ===== Elegant Style (default) ===== */
.fundrizer-style-elegant {
	background: var(--fr-card);
	border-radius: var(--fr-radius);
	box-shadow: var(--fr-shadow-lg);
	padding: 2rem;
	border: 1px solid var(--fr-border);
}

/* ===== Card Style ===== */
.fundrizer-style-card {
	background: linear-gradient(145deg, #ffffff 0%, #f0fdfa 100%);
	border-radius: 20px;
	box-shadow: var(--fr-shadow-lg);
	padding: 2.25rem;
	border: none;
}

/* ===== Glass Style ===== */
.fundrizer-style-glass {
	background: rgba(255, 255, 255, 0.75);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	box-shadow: 0 8px 32px rgba(15, 118, 110, 0.12);
	padding: 2.25rem;
}

/* Progress Section */
.fundrizer-progress-section {
	margin-bottom: 1.75rem;
}

.fundrizer-progress-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 0.75rem;
}

.fundrizer-raised .fundrizer-amount {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--fr-primary);
	letter-spacing: -0.02em;
}

.fundrizer-raised .fundrizer-label {
	font-size: 0.875rem;
	color: #64748b;
	margin-left: 0.35rem;
}

.fundrizer-goal-text {
	font-size: 0.875rem;
	color: #64748b;
}

.fundrizer-progress-bar {
	height: 12px;
	background: #e2e8f0;
	border-radius: 999px;
	overflow: hidden;
	position: relative;
}

.fundrizer-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #0f766e, #14b8a6);
	border-radius: 999px;
	transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	min-width: 2rem;
}

.fundrizer-progress-percent {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 0.7rem;
	font-weight: 600;
	color: white;
}

.fundrizer-social-proof {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 0.75rem;
	font-size: 0.8125rem;
	color: #64748b;
}

.fundrizer-social-proof svg {
	color: var(--fr-primary);
}

/* Section Label */
.fundrizer-section-label {
	display: block;
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748b;
	margin-bottom: 0.75rem;
}

/* Amount Grid */
.fundrizer-amount-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

.fundrizer-amount-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.15rem;
	padding: 0.9rem 1rem;
	background: #f8fafc;
	border: 2px solid #e2e8f0;
	border-radius: var(--fr-radius-sm);
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--fr-text);
	cursor: pointer;
	transition: var(--fr-transition);
	font-family: inherit;
}

.fundrizer-amount-btn:hover {
	border-color: var(--fr-primary);
	background: var(--fr-primary-light);
	transform: translateY(-1px);
}

.fundrizer-amount-btn.is-selected {
	background: var(--fr-primary);
	border-color: var(--fr-primary);
	color: white;
	box-shadow: 0 4px 14px rgba(15, 118, 110, 0.35);
}

.fundrizer-amount-btn .currency {
	font-size: 0.9em;
	opacity: 0.85;
}

/* Custom Amount */
.fundrizer-custom-amount {
	margin-bottom: 1.5rem;
}

.fundrizer-custom-amount label {
	display: block;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #64748b;
	margin-bottom: 0.4rem;
}

.fundrizer-input-group {
	display: flex;
	align-items: center;
	background: #f8fafc;
	border: 2px solid #e2e8f0;
	border-radius: var(--fr-radius-sm);
	overflow: hidden;
	transition: var(--fr-transition);
}

.fundrizer-input-group:focus-within {
	border-color: var(--fr-primary);
	box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.fundrizer-currency-prefix {
	padding: 0 0.75rem;
	font-weight: 600;
	color: #64748b;
	background: #f1f5f9;
	height: 100%;
	display: flex;
	align-items: center;
}

.fundrizer-input-group input {
	flex: 1;
	border: none;
	background: transparent;
	padding: 0.85rem 1rem;
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--fr-text);
	outline: none;
	font-family: inherit;
}

/* Donor Fields */
.fundrizer-donor-fields {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.fundrizer-field label {
	display: block;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #475569;
	margin-bottom: 0.35rem;
}

.fundrizer-field label .required {
	color: #ef4444;
}

.fundrizer-field input,
.fundrizer-field textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 2px solid #e2e8f0;
	border-radius: var(--fr-radius-sm);
	font-size: 0.9375rem;
	color: var(--fr-text);
	background: #f8fafc;
	transition: var(--fr-transition);
	font-family: inherit;
	box-sizing: border-box;
}

.fundrizer-field input:focus,
.fundrizer-field textarea:focus {
	outline: none;
	border-color: var(--fr-primary);
	background: white;
	box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.fundrizer-field textarea {
	resize: vertical;
	min-height: 70px;
}

/* Options */
.fundrizer-options {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	margin-bottom: 1.5rem;
}

.fundrizer-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	cursor: pointer;
	font-size: 0.875rem;
	color: #475569;
	line-height: 1.4;
}

.fundrizer-checkbox input[type="checkbox"] {
	margin-top: 0.15rem;
	width: 16px;
	height: 16px;
	accent-color: var(--fr-primary);
	cursor: pointer;
}

/* Submit */
.fundrizer-submit-section {
	text-align: center;
}

.fundrizer-submit-btn {
	width: 100%;
	padding: 1rem 1.5rem;
	background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
	color: white;
	border: none;
	border-radius: 12px;
	font-size: 1.0625rem;
	font-weight: 600;
	cursor: pointer;
	transition: var(--fr-transition);
	font-family: inherit;
	box-shadow: 0 4px 14px rgba(15, 118, 110, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.fundrizer-submit-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(15, 118, 110, 0.45);
}

.fundrizer-submit-btn:active {
	transform: translateY(0);
}

.fundrizer-submit-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.fundrizer-spinner {
	width: 20px;
	height: 20px;
	animation: fundrizer-spin 0.8s linear infinite;
}

@keyframes fundrizer-spin {
	to { transform: rotate(360deg); }
}

.fundrizer-secure-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	margin-top: 0.85rem;
	font-size: 0.75rem;
	color: #94a3b8;
}

.fundrizer-secure-note svg {
	opacity: 0.7;
}

/* Messages */
.fundrizer-messages {
	margin-top: 1rem;
	padding: 0.85rem 1rem;
	border-radius: var(--fr-radius-sm);
	font-size: 0.875rem;
	text-align: center;
}

.fundrizer-messages.error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.fundrizer-messages.success {
	background: #f0fdf4;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

/* Thank You */
.fundrizer-thank-you {
	text-align: center;
	padding: 3rem 1.5rem;
	max-width: 480px;
	margin: 0 auto;
}

.fundrizer-thank-you-icon {
	color: #10b981;
	margin-bottom: 1.25rem;
}

.fundrizer-thank-you h2 {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--fr-text);
	margin: 0 0 0.75rem;
}

.fundrizer-thank-you p {
	font-size: 1.0625rem;
	color: #64748b;
	line-height: 1.6;
}

/* Responsive */
@media (max-width: 520px) {
	.fundrizer-style-elegant,
	.fundrizer-style-card,
	.fundrizer-style-glass {
		padding: 1.5rem;
		border-radius: 14px;
	}

	.fundrizer-amount-grid {
		grid-template-columns: 1fr 1fr;
	}

	.fundrizer-raised .fundrizer-amount {
		font-size: 1.5rem;
	}
}
