/* =========================================================================
   Razorpay Donations + Wall of Gratitude
   Tier colours are the only "brand" surface — edit the .rdw-t-* blocks freely.
   ========================================================================= */

.rdw-wall,
.rdw-form {
	--rdw-radius: 18px;
	--rdw-ink: #241640;
	--rdw-accent: #c9780e;
	--rdw-accent-deep: #2f0c53;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}
.rdw-wall *,
.rdw-form * { box-sizing: border-box; }

/* ------------------------------------------------------------------ Wall */

.rdw-wall {
	--rdw-cols: 5;
	display: grid;
	grid-template-columns: repeat(var(--rdw-cols), minmax(0, 1fr));
	gap: 18px;
	width: 100%;
}

.rdw-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 150px;
	padding: 22px 22px 26px;
	border-radius: var(--rdw-radius);
	box-shadow: 0 14px 34px -20px rgba(40, 10, 70, 0.55);
	overflow: hidden;
	isolation: isolate;
}

.rdw-card__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.rdw-card__country {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
}

.rdw-card__tier {
	max-width: 62%;
	text-align: right;
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.13em;
	line-height: 1.35;
}

.rdw-card__name {
	margin-top: 34px;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.28;
	letter-spacing: -0.01em;
	word-break: break-word;
}

/* Repeating colour pattern by position: orange → blue → grey → repeat.
   Edit these three blocks to taste.                                    */

/* Orange */
.rdw-c-orange {
	background: linear-gradient(152deg, #f0a81e 0%, #c7780c 100%);
	color: #3a2200;
}
.rdw-c-orange .rdw-card__tier { color: #5c3700; }

/* Blue */
.rdw-c-blue {
	background: linear-gradient(152deg, #3a76ff 0%, #123fbe 100%);
	color: #eef3ff;
}
.rdw-c-blue .rdw-card__tier { color: #bcd0ff; }

/* Light grey */
.rdw-c-grey {
	background: linear-gradient(155deg, #eceef2 0%, #f7f8fb 100%);
	color: #2b3140;
	border: 1px solid #e3e6ec;
	box-shadow: 0 10px 26px -20px rgba(20, 24, 40, 0.35);
}
.rdw-c-grey .rdw-card__country { color: #363c4a; }
.rdw-c-grey .rdw-card__tier { color: #7a8190; }

.rdw-wall--empty {
	display: block;
	padding: 40px 20px;
	text-align: center;
	color: #8a839c;
	font-size: 15px;
}

@media (max-width: 1120px) { .rdw-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .rdw-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px)  { .rdw-wall { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ Form */

.rdw-form {
	max-width: 460px;
	margin: 0 auto;
	padding: 30px 28px 32px;
	background: #fffdf9;
	border: 1px solid #efe9f2;
	border-radius: 22px;
	box-shadow: 0 30px 60px -40px rgba(40, 10, 70, 0.45);
	color: var(--rdw-ink);
}

.rdw-form__title {
	margin: 0 0 20px;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.rdw-toggle {
	display: flex;
	gap: 4px;
	padding: 4px;
	margin-bottom: 20px;
	background: #f2edf6;
	border-radius: 999px;
}
.rdw-toggle__btn {
	flex: 1;
	padding: 10px 12px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #6b6486;
	font: inherit;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease;
}
.rdw-toggle__btn.is-active {
	background: #fff;
	color: var(--rdw-accent-deep);
	box-shadow: 0 4px 12px -6px rgba(40, 10, 70, 0.35);
}

.rdw-amounts {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin-bottom: 18px;
}
.rdw-amount {
	padding: 12px 6px;
	border: 1.5px solid #e6dff0;
	border-radius: 12px;
	background: #fff;
	color: var(--rdw-ink);
	font: inherit;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, transform 0.05s ease;
}
.rdw-amount__sym { margin-right: 1px; opacity: 0.8; }
.rdw-amount:hover { border-color: #d8b061; }
.rdw-amount:active { transform: translateY(1px); }
.rdw-amount.is-active {
	border-color: var(--rdw-accent);
	background: #fdf4e6;
	color: #7a4a00;
}

.rdw-field { display: block; margin-bottom: 14px; }
.rdw-field__label {
	display: block;
	margin-bottom: 6px;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #6b6486;
}

.rdw-input {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid #e6dff0;
	border-radius: 12px;
	background: #fff;
	color: var(--rdw-ink);
	font: inherit;
	font-size: 15px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.rdw-input:focus {
	outline: none;
	border-color: var(--rdw-accent);
	box-shadow: 0 0 0 3px rgba(201, 120, 14, 0.15);
}
.rdw-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9b93b4 50%), linear-gradient(135deg, #9b93b4 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 38px; }

.rdw-amount-input { position: relative; display: block; }
.rdw-amount-input__sym {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #9b93b4;
	font-weight: 600;
	pointer-events: none;
}
.rdw-amount-input .rdw-input { padding-left: 32px; }

.rdw-check {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 4px 0 22px;
	font-size: 13.5px;
	color: #6b6486;
	cursor: pointer;
}
.rdw-check input { margin-top: 2px; accent-color: var(--rdw-accent); }

.rdw-submit {
	width: 100%;
	padding: 15px;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(135deg, #e79a1f, #c7780c);
	color: #fff;
	font: inherit;
	font-weight: 700;
	font-size: 16px;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: filter 0.15s ease, transform 0.05s ease;
}
.rdw-submit:hover { filter: brightness(1.04); }
.rdw-submit:active { transform: translateY(1px); }
.rdw-submit:disabled { opacity: 0.65; cursor: default; }

.rdw-form__msg { margin: 12px 0 0; font-size: 13.5px; min-height: 18px; }
.rdw-form__msg.is-error { color: #b3261e; }
.rdw-form__msg.is-ok { color: #1b7a44; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
	.rdw-toggle__btn, .rdw-amount, .rdw-input, .rdw-submit { transition: none; }
}
