/* GACA Pledge Manager — public styles */

.gaca-pledge-counter-wrap { width: 100%; }
.gaca-pledge-counter {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--gaca-counter-color, #1a3c5e);
	font-family: var(--gaca-counter-font, inherit);
}
.gaca-pledge-counter__icon { display: inline-flex; align-items: center; font-size: var(--gaca-counter-size, 32px); line-height: 1; }
.gaca-pledge-counter__icon .dashicons { font-size: inherit; width: 1em; height: 1em; }
.gaca-icon-img { display: inline-block; vertical-align: middle; }
.gaca-pledge-counter__value { font-size: var(--gaca-counter-size, 48px); font-weight: 700; line-height: 1; }
.gaca-pledge-counter__number { font-variant-numeric: tabular-nums; }
.gaca-pledge-counter__max { font-variant-numeric: tabular-nums; opacity: 0.55; font-weight: 500; }

.gaca-pledge-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	cursor: pointer;
	border: 1px solid var(--gaca-btn-border, transparent);
	border-radius: var(--gaca-btn-radius, 6px);
	background: var(--gaca-btn-bg, #c0392b);
	color: var(--gaca-btn-color, #fff);
	font-weight: 600;
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.gaca-pledge-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.15); opacity: .95; }
.gaca-pledge-btn--small { padding: 0.4rem 0.9rem; font-size: 0.85rem; }
.gaca-pledge-btn--medium { padding: 0.65rem 1.4rem; font-size: 1rem; }
.gaca-pledge-btn--large { padding: 0.9rem 2rem; font-size: 1.15rem; }
.gaca-pledge-btn--outline { background: transparent; color: var(--gaca-btn-bg, #c0392b); border-color: var(--gaca-btn-bg, #c0392b); }
.gaca-pledge-btn--rounded { border-radius: 999px; }

.gaca-pledge-modal { position: fixed; inset: 0; z-index: 100000; }
.gaca-pledge-modal[hidden] { display: none; }
.gaca-pledge-modal__backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.55); }
.gaca-pledge-modal__panel {
	position: relative;
	max-width: 640px;
	margin: 5vh auto;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 12px;
	padding: 2rem;
	box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.gaca-pledge-modal__close { position: absolute; top: 0.75rem; right: 1rem; background: none; border: none; font-size: 1.75rem; line-height: 1; cursor: pointer; color: #555; }
body.gaca-modal-open { overflow: hidden; }

.gaca-pledge-form-wrap { font-size: var(--gaca-form-font-size, 16px); }
.gaca-pledge-form__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1em; }
@media (max-width: 640px) { .gaca-pledge-form__grid { grid-template-columns: 1fr; } }
.gaca-pledge-field label { display: block; font-weight: 600; margin-bottom: 0.3em; font-size: 0.9em; }
.gaca-pledge-field input[type="text"],
.gaca-pledge-field input[type="email"],
.gaca-pledge-field input[type="tel"],
.gaca-pledge-field select,
.gaca-pledge-field textarea {
	width: 100%;
	padding: 0.6em 0.75em;
	border: 1px solid #d0d5dd;
	border-radius: 6px;
	font-size: 1em;
	font-family: inherit;
}
.gaca-required { color: #c0392b; }
.gaca-field-error { display: block; color: #c0392b; font-size: 0.8em; margin-top: 0.25em; min-height: 1em; }
.gaca-pledge-field--checkbox { grid-column: 1 / -1; font-size: 0.9em; }
.gaca-pledge-field--checkbox label { display: flex; align-items: flex-start; gap: 0.4em; font-weight: normal; }
.gaca-pledge-field__radios { display: flex; flex-wrap: wrap; gap: 0.75em 1.25em; }
.gaca-pledge-field__radio-option { display: flex; align-items: center; gap: 0.35em; font-weight: normal; }
.gaca-pledge-field--consent { margin-top: 1em; font-size: 0.9em; }
.gaca-pledge-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.gaca-pledge-form__footer { margin-top: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
.gaca-pledge-form__spinner { width: 18px; height: 18px; border: 2px solid #ddd; border-top-color: #c0392b; border-radius: 50%; animation: gaca-spin 0.7s linear infinite; }
@keyframes gaca-spin { to { transform: rotate(360deg); } }

.gaca-pledge-form__success { text-align: center; padding: 1rem 0; animation: gaca-fade-in .3s ease; }
@keyframes gaca-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.gaca-pledge-form__success-title { font-size: 1.3rem; margin-bottom: 0.25rem; }
.gaca-pledge-form__success-ref { color: #667085; margin-bottom: 1.25rem; }
.gaca-pledge-form__share { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.gaca-statistics__table { width: 100%; border-collapse: collapse; }
.gaca-statistics__table th, .gaca-statistics__table td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid #e5e7eb; }

.gaca-share {
	font-size: 0.85rem;
	padding: 0.5rem 0.9rem;
	border-radius: 6px;
	border: 1px solid #d0d5dd;
	background: #f8f9fb;
	color: #1a3c5e;
	text-decoration: none;
	cursor: pointer;
}
