/* AY Donation Manager — frontend styles */

.aydm-flow {
	margin: 0;
	background: #f1f5f9;
	color: #1e293b;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.5;
}
.aydm-container {
	max-width: 620px;
	margin: 0 auto;
	padding: 32px 16px 48px;
}
.aydm-card {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
	padding: 28px 26px;
}
.aydm-card--center { text-align: center; }

/* Steps */
.aydm-steps { display: flex; gap: 8px; justify-content: center; margin-bottom: 20px; flex-wrap: wrap; }
.aydm-step { font-size: 12px; color: #94a3b8; padding: 4px 10px; border-radius: 999px; background: #f1f5f9; }
.aydm-step--active { color: #fff; background: #0f766e; }
.aydm-step--done { color: #0f766e; background: #ccfbf1; }

/* Brand */
.aydm-brand { text-align: center; margin-bottom: 16px; }
.aydm-logo { max-height: 64px; width: auto; }
.aydm-org { font-size: 20px; margin: 0; color: #0f172a; }

/* Summary */
.aydm-summary {
	display: flex; justify-content: space-between; align-items: center; gap: 12px;
	background: #f0fdfa; border: 1px solid #99f6e4; border-radius: 10px;
	padding: 14px 16px; margin-bottom: 20px;
}
.aydm-summary__label { display: block; font-size: 12px; color: #0f766e; }
.aydm-summary__value { font-weight: 600; }
.aydm-summary__amount { font-size: 22px; font-weight: 700; color: #0f766e; white-space: nowrap; }

/* Form */
.aydm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.aydm-field { display: flex; flex-direction: column; gap: 5px; }
.aydm-field--full { grid-column: 1 / -1; }
.aydm-field label { font-size: 13px; font-weight: 600; color: #334155; }
.aydm-field input, .aydm-field textarea {
	width: 100%; box-sizing: border-box;
	border: 1px solid #cbd5e1; border-radius: 8px;
	padding: 10px 12px; font-size: 15px; color: #0f172a; background: #fff;
}
.aydm-field input:focus, .aydm-field textarea:focus {
	outline: none; border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15, 118, 110, .15);
}
.aydm-req { color: #dc2626; }
.aydm-opt { color: #94a3b8; font-weight: 400; }

.aydm-checkbox { display: flex; gap: 8px; align-items: flex-start; margin: 18px 0; font-size: 14px; color: #475569; }
.aydm-checkbox a { color: #0f766e; }

/* Buttons */
.aydm-btn {
	display: inline-block; text-align: center; cursor: pointer;
	border: none; border-radius: 10px; padding: 13px 20px;
	font-size: 15px; font-weight: 600; text-decoration: none; transition: background .15s, opacity .15s;
}
.aydm-btn--block { display: block; width: 100%; box-sizing: border-box; }
.aydm-btn--primary { background: #0f766e; color: #fff; }
.aydm-btn--primary:hover { background: #0b5c55; }
.aydm-btn--ghost { background: #f1f5f9; color: #0f172a; margin-top: 10px; }
.aydm-btn--ghost:hover { background: #e2e8f0; }
.aydm-btn.is-loading { opacity: .7; cursor: default; }

/* Alerts */
.aydm-alert { border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; font-size: 14px; }
.aydm-alert--error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.aydm-alert--info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }

/* Review + receipt rows */
.aydm-review, .aydm-receipt { text-align: left; margin: 8px 0 22px; }
.aydm-review__row, .aydm-receipt__row {
	display: flex; justify-content: space-between; gap: 12px;
	padding: 10px 0; border-bottom: 1px solid #f1f5f9;
}
.aydm-review__row--total { border-bottom: none; font-size: 18px; }
.aydm-review__row--total strong, .aydm-summary__amount { color: #0f766e; }
.aydm-actions { margin-top: 8px; }

/* Result icons */
.aydm-icon {
	width: 72px; height: 72px; line-height: 72px; border-radius: 50%;
	margin: 6px auto 16px; font-size: 34px; color: #fff; font-weight: 700;
}
.aydm-icon--success { background: #16a34a; }
.aydm-icon--failed { background: #dc2626; }
.aydm-result-heading { font-size: 22px; margin: 0 0 8px; color: #16a34a; }
.aydm-result-heading--failed { color: #dc2626; }
.aydm-result-text { color: #475569; margin: 0 0 16px; }
.aydm-reason { color: #94a3b8; font-size: 14px; margin-bottom: 16px; }
.aydm-title { font-size: 20px; text-align: center; margin: 0 0 18px; }

.aydm-secure { text-align: center; color: #94a3b8; font-size: 13px; margin-top: 16px; }

@media (max-width: 520px) {
	.aydm-grid { grid-template-columns: 1fr; }
	.aydm-card { padding: 22px 18px; }
}

/* Amount picker + extra choice (donor-chosen amount) */
.aydm-section { margin: 18px 0 4px; }
.aydm-section__label { display: block; font-size: 14px; font-weight: 700; color: #334155; margin-bottom: 10px; }
.aydm-select {
	width: 100%; box-sizing: border-box;
	border: 1px solid #cbd5e1; border-radius: 8px;
	padding: 11px 12px; font-size: 15px; color: #0f172a; background: #fff;
}
.aydm-select:focus {
	outline: none; border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15, 118, 110, .15);
}

.aydm-amount-grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
	gap: 10px;
}
.aydm-amount-btn {
	appearance: none; cursor: pointer;
	border: 1.5px solid #cbd5e1; background: #fff; color: #0f172a;
	border-radius: 10px; padding: 14px 8px;
	font-size: 16px; font-weight: 700; text-align: center;
	transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
}
.aydm-amount-btn:hover { border-color: #0f766e; }
.aydm-amount-btn.is-selected {
	border-color: #0f766e; background: #0f766e; color: #fff;
	box-shadow: 0 4px 12px rgba(15, 118, 110, .25);
}
.aydm-amount-btn--other { font-size: 14px; color: #0f766e; }
.aydm-amount-btn--other.is-selected { color: #fff; }

.aydm-custom-amount { margin-top: 14px; }
.aydm-custom-amount__label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 5px; }
.aydm-custom-amount__field {
	display: flex; align-items: center;
	border: 1px solid #cbd5e1; border-radius: 8px; overflow: hidden; background: #fff;
}
.aydm-custom-amount__field:focus-within {
	border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15, 118, 110, .15);
}
.aydm-custom-amount__symbol {
	padding: 0 12px; font-size: 16px; font-weight: 700; color: #0f766e;
	background: #f0fdfa; align-self: stretch; display: flex; align-items: center;
}
.aydm-custom-amount__input {
	flex: 1; border: 0; outline: none;
	padding: 11px 12px; font-size: 16px; color: #0f172a; background: transparent;
}

.aydm-hidden { display: none; }
.aydm-btn__amount { font-weight: 800; }

@media (max-width: 480px) {
	.aydm-amount-grid { grid-template-columns: repeat(2, 1fr); }
}
