/*
 * Uses azgaraj.am's own theme CSS variables (--c-blue, --ff-arm, etc.) with
 * fallbacks. On the real site these are already defined globally, so this
 * form inherits the exact brand font/colors automatically; the fallback
 * values below only apply on environments where the theme isn't present
 * (e.g. this local dev install).
 */
.aad-donate-wrap {
	--aad-primary: var(--c-blue, #1a4ed6);
	--aad-primary-dark: var(--c-blue-dark, #123aa3);
	--aad-text: var(--c-dark-2, #252525);
	--aad-text-muted: rgba(37, 37, 37, 0.6);
	--aad-field-bg: #f2f2f2;
	--aad-field-border: #e2e4ea;
	--aad-radius-btn: 40px;
	--aad-radius-card: 24px;
	--aad-radius-field: 24px;
	--aad-font: var(--ff-arm, 'Montserrat', Arial, sans-serif);
	--aad-fw: var(--fw-400, 400);

	max-width: 560px;
	margin: 0 auto;
	background: var(--c-white, #ffffff);
	border: 1px solid var(--aad-field-border);
	border-radius: var(--aad-radius-card);
	padding: 40px;
	font-family: var(--aad-font);
	font-weight: var(--aad-fw);
	color: var(--aad-text);
}

.aad-title {
	font-family: var(--aad-font);
	font-weight: var(--aad-fw);
	font-size: 32px;
	line-height: 40px;
	letter-spacing: 0.64px;
	color: var(--aad-text);
	margin: 0 0 28px;
}

.aad-subtitle {
	font-family: var(--aad-font);
	font-weight: var(--aad-fw);
	font-size: 20px;
	line-height: 26px;
	margin-top: 8px;
	margin-bottom: 8px;
	color: var(--aad-text);
}

.aad-field {
	margin-bottom: 22px;
}

.aad-label {
	display: block;
	font-family: var(--aad-font);
	font-weight: var(--aad-fw);
	font-size: 14px;
	letter-spacing: 0.28px;
	color: var(--aad-text-muted);
	margin-bottom: 10px;
}

.aad-req {
	color: var(--aad-primary);
}

.aad-amount-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 12px;
}

.aad-toggle-btn {
	font-family: var(--aad-font);
	font-weight: var(--aad-fw);
	background: transparent;
	border: 1px solid var(--aad-primary);
	border-radius: var(--aad-radius-btn);
	padding: 11px 12px;
	cursor: pointer;
	font-size: 15px;
	letter-spacing: 0.3px;
	color: var(--aad-text);
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.aad-toggle-btn.is-active {
	background: var(--aad-primary);
	border-color: var(--aad-primary);
	color: #ffffff;
}

.aad-amount-other {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.aad-currency-select {
	flex-shrink: 0;
	background: var(--aad-field-bg);
	border: 1px solid var(--aad-field-border);
	border-radius: var(--aad-radius-btn);
	padding: 10px 14px;
	font-family: var(--aad-font);
	font-weight: var(--aad-fw);
	font-size: 14px;
	color: var(--aad-text);
	cursor: pointer;
}

.aad-currency-select:focus {
	outline: none;
	border-color: var(--aad-primary);
}

.aad-input {
	width: 100%;
	box-sizing: border-box;
	background: var(--aad-field-bg);
	border: 1px solid var(--aad-field-border);
	border-radius: var(--aad-radius-field);
	padding: 13px 16px;
	font-family: var(--aad-font);
	font-weight: var(--aad-fw);
	font-size: 15px;
	color: var(--aad-text);
}

.aad-input::placeholder {
	color: rgba(37, 37, 37, 0.4);
}

.aad-input:focus {
	outline: none;
	border-color: var(--aad-primary);
	background: #ffffff;
}

/* Matches the pill shape of the fixed-amount buttons (.aad-toggle-btn)
 * instead of the field-radius other inputs use, per design request. */
.aad-other-amount-input {
	border-radius: var(--aad-radius-btn);
	flex: 1;
	min-width: 0;
}

/* ===== Frequency switch — moved inline with "Other amount"; a two-segment
 * pill toggle (both "One-Time"/"Monthly" always visible as segments, the
 * active one filled solid) rather than a checkbox-style sliding switch. ===== */

.aad-frequency-switch-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	background: var(--aad-field-bg);
	border-radius: var(--aad-radius-btn);
	padding: 3px;
	gap: 2px;
}

/* Sliding pill behind the segments — animates its left/width to match
 * whichever segment is active, instead of just snapping colors. */
.aad-frequency-switch-thumb {
	position: absolute;
	top: 3px;
	bottom: 3px;
	left: 3px;
	width: 0;
	background: var(--aad-primary);
	border-radius: var(--aad-radius-btn);
	transition: left 0.25s ease, width 0.25s ease;
	z-index: 0;
}

.aad-frequency-switch-seg {
	position: relative;
	z-index: 1;
	font-family: var(--aad-font);
	font-weight: var(--aad-fw);
	font-size: 13px;
	letter-spacing: 0.2px;
	white-space: nowrap;
	background: transparent;
	border: none;
	border-radius: var(--aad-radius-btn);
	padding: 8px 14px;
	color: var(--aad-text-muted);
	cursor: pointer;
	transition: color 0.2s ease;
}

.aad-frequency-switch-seg.is-active {
	color: #ffffff;
}

.aad-disclaimer {
	font-family: var(--aad-font);
	font-size: 13px;
	line-height: 18px;
	color: var(--aad-text-muted);
}

.aad-error {
	color: #c0392b;
	font-family: var(--aad-font);
	font-size: 14px;
}

.aad-submit-btn {
	display: block;
	width: auto;
	margin: 0 auto;
	padding: 11px 32px;
	border: 1px solid var(--aad-primary);
	border-radius: var(--aad-radius-btn);
	background: var(--aad-primary);
	color: #ffffff;
	font-family: var(--aad-font);
	font-weight: var(--aad-fw);
	letter-spacing: 0.32px;
	font-size: 15px;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.aad-submit-btn:hover:not([disabled]) {
	background: transparent;
	color: var(--aad-primary);
}

.aad-submit-btn[disabled] {
	opacity: 0.6;
	cursor: default;
}

/*
 * Result/pending hero — matches the full-bleed blue hero pattern from
 * azgaraj.am/.../ազգ-առաջ-դպրոց/ (big white headline on brand blue).
 */
.aad-hero {
	--aad-primary: var(--c-blue, #1a4ed6);
	--aad-font: var(--ff-arm, 'Montserrat', Arial, sans-serif);
	--aad-fw: var(--fw-400, 400);

	background: var(--aad-primary);
	padding: 96px 24px;
	text-align: center;
}

.aad-hero-title {
	font-family: var(--aad-font);
	font-weight: var(--aad-fw);
	font-size: clamp(36px, 6vw, 72px);
	line-height: 1.1;
	letter-spacing: 0.4px;
	color: #ffffff;
	margin: 0 0 20px;
}

.aad-hero-text {
	font-family: var(--aad-font);
	font-weight: var(--aad-fw);
	font-size: clamp(18px, 2.2vw, 26px);
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.7);
	max-width: 640px;
	margin: 0 auto 32px;
}

.aad-hero-btn {
	display: inline-block;
	font-family: var(--aad-font);
	font-weight: var(--aad-fw);
	font-size: 16px;
	letter-spacing: 0.32px;
	color: #ffffff;
	background: transparent;
	border: 1px solid #ffffff;
	border-radius: var(--aad-radius-btn, 40px);
	padding: 13px 32px;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.aad-hero-btn:hover {
	background: #ffffff;
	color: var(--aad-primary);
}
