/* GGC application styles */

div.masthead {
	width: 100%;
}

a,div,span,td {
	font-family: Arial, sans-serif;
	padding: 0;
}

body, textarea {
	font: 10pt Arial, sans-serif;
}

body {
	padding: 0;
}

textarea {
	resize: none;
}

hr {
	border: 1px inset;
	color: #ccc;
}

a {
	text-decoration: none;
}

a.logout, a.logout:hover {
	font-size: 9px;
	text-decoration: none;
}

a.logout:hover {
	color: red;
}

a.help, a.help:hover {
	color: #fff;
	font-size: 10px;
}

a.help:hover {
	color: #ff0;
}

input[type=number] {
	border-bottom: 1px solid #bbb;
	border-left: 2px solid #999;
	border-right: 1px solid #bbb;
	border-top: 2px solid #999;
}

/* ---- FUNDRAISER ---- */

:root {
	--purple:       #5C2D91;
	--purple-dark:  #3D1A6E;
	--purple-mid:   #7B4DB5;
	--purple-light: #EDE7F6;
	--gold:         #C9A8E8;
	--gold-light:   #E0CCFF;
	--gold-pale:    #F5EEFF;
	--white:        #ffffff;
	--page-bg:      #F0EEF5;
	--text:         #2C2C3A;
	--text-muted:   #555;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
	font-family: Arial, sans-serif;
	background: var(--page-bg);
	color: var(--text);
	min-height: 100vh;
	padding-bottom: 96px;
}

/* ---- HEADER ---- */
header {
	background: linear-gradient(160deg, var(--purple-dark) 0%, var(--purple) 60%, var(--purple-mid) 100%);
	color: var(--white);
	text-align: center;
	padding: 36px 20px 28px;
}
header .org-label {
	font-size: 11px;
	letter-spacing: 3px;
	text-transform: uppercase;
	opacity: 0.70;
	margin-bottom: 10px;
}
header h1 {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 4px;
}
header h2 {
	font-size: 16px;
	font-weight: 400;
	opacity: 0.85;
	margin-bottom: 20px;
}
.centennial-badge {
	display: inline-block;
	background: var(--gold);
	color: var(--purple-dark);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	padding: 7px 26px;
	border-radius: 30px;
}

/* ---- INTRO ---- */
.intro {
	max-width: 740px;
	margin: 28px auto 0;
	padding: 0 16px;
}
.intro-card {
	background: var(--white);
	border-radius: 10px;
	padding: 30px 34px;
	box-shadow: 0 2px 12px rgba(93,45,145,0.10);
	border-top: 5px solid var(--gold);
}
.intro-card h3 {
	color: var(--purple);
	font-size: 19px;
	text-align: center;
	margin-bottom: 18px;
}
.intro-card p {
	font-size: 15px;
	line-height: 1.72;
	color: var(--text-muted);
	margin-bottom: 14px;
}
.intro-card p:last-child { margin-bottom: 0; }
.how-to-box {
	background: var(--gold-pale);
	border: 1px solid var(--gold);
	border-radius: 8px;
	padding: 16px 20px;
	margin-top: 20px;
}
.how-to-box p { margin-bottom: 0; font-size: 14px; }
.how-to-box strong { color: var(--purple); }

/* ---- GRID ---- */
.grid-section {
	max-width: 960px;
	margin: 26px auto 0;
	padding: 0 16px;
}
.grid-section h3 {
	text-align: center;
	color: var(--purple);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin-bottom: 14px;
}
h3.next-centennial {
	margin-top: 36px;
}
.year-grid {
	display: grid;
	grid-template-columns: repeat(10, 1fr);
	gap: 8px;
}
.year-cell {
	aspect-ratio: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: var(--white);
	border: 2px solid var(--purple);
	border-radius: 6px;
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
	transition: transform 0.10s, background 0.10s, box-shadow 0.10s;
	line-height: 1.15;
	position: relative;
}
.year-cell .num {
	font-size: 18px;
	font-weight: 700;
	color: var(--purple);
}
.year-cell .yr {
	font-size: 10px;
	color: #aaa;
}
.year-cell:hover {
	background: var(--purple-light);
	transform: scale(1.08);
	box-shadow: 0 3px 10px rgba(93,45,145,0.22);
	z-index: 1;
}
.year-cell.selected {
	background: var(--purple-mid);
	border-color: var(--purple);
	transform: scale(1.08);
	box-shadow: 0 3px 10px rgba(123,77,181,0.45);
	z-index: 1;
}
.year-cell.selected .num { color: var(--white); }
.year-cell.selected .yr  { color: rgba(255,255,255,0.78); }
.year-cell.claimed {
	background: #e8e8e8;
	border-color: #bbb;
	cursor: not-allowed;
	pointer-events: none;
}
.year-cell.claimed .num { color: #bbb; }
.year-cell.claimed .yr  { color: #ccc; }

/* ---- DONATE BAR ---- */
.donate-bar {
	position: fixed;
	bottom: 0; left: 0; right: 0;
	background: var(--purple-dark);
	color: var(--white);
	display: flex;
	align-items: center;
	padding: 12px 30px;
	gap: 22px;
	box-shadow: 0 -4px 20px rgba(0,0,0,0.38);
	z-index: 100;
}
.pledge-block {
	display: flex;
	flex-direction: column;
	min-width: 90px;
}
.pledge-label {
	font-size: 10px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	opacity: 0.60;
	margin-bottom: 2px;
}
.pledge-amount {
	font-size: 32px;
	font-weight: 700;
	color: var(--gold-light);
	line-height: 1;
}
.selected-info {
	flex: 1;
	font-size: 12px;
	opacity: 0.72;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.donate-btn {
	background: var(--purple-mid);
	color: white;
	border: none;
	border-radius: 7px;
	font-size: 17px;
	font-weight: 700;
	padding: 12px 36px;
	cursor: pointer;
	transition: background 0.12s, transform 0.12s, box-shadow 0.12s;
	white-space: nowrap;
	flex-shrink: 0;
}
.donate-btn.active {
	background: var(--gold);
	color: #000;
}
.donate-btn:hover:not(:disabled) {
	background: var(--gold-light);
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(196,154,26,0.48);
}
.donate-btn:disabled {
	opacity: 0.35;
	cursor: default;
}

/* ---- DONOR MODAL ---- */
.modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(30,10,60,0.55);
	z-index: 200;
	align-items: center;
	justify-content: center;
}
.modal-overlay.open {
	display: flex;
}
.modal {
	background: var(--white);
	border-radius: 12px;
	padding: 34px 36px 28px;
	width: 100%;
	max-width: 440px;
	box-shadow: 0 8px 40px rgba(0,0,0,0.32);
	border-top: 5px solid var(--purple);
	position: relative;
}
.modal-close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 22px;
	color: #aaa;
	cursor: pointer;
	line-height: 1;
}
.modal-close:hover { color: var(--purple); }
.modal h3 {
	color: var(--purple);
	font-size: 18px;
	margin-bottom: 6px;
}
.modal .modal-subhead {
	font-size: 13px;
	color: var(--text-muted);
	margin-bottom: 22px;
}
.modal .modal-subhead strong {
	color: var(--purple);
}
.form-row {
	display: flex;
	gap: 14px;
	margin-bottom: 16px;
}
.form-group {
	display: flex;
	flex-direction: column;
	flex: 1;
}
.form-group label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--purple);
	margin-bottom: 5px;
}
.form-group input {
	border: 1.5px solid #ccc;
	border-radius: 6px;
	padding: 9px 12px;
	font-size: 15px;
	font-family: inherit;
	color: var(--text);
	transition: border-color 0.12s;
	width: 100%;
}
.form-group input:focus {
	outline: none;
	border-color: var(--purple-mid);
}
.form-group input.invalid {
	border-color: #c0392b;
}
.zeffy-notice {
	background: var(--gold-pale);
	border: 1px solid var(--gold);
	border-radius: 7px;
	padding: 11px 14px;
	font-size: 12px;
	color: var(--text-muted);
	margin-bottom: 20px;
	line-height: 1.55;
}
.zeffy-notice strong { color: var(--purple); }
.modal-actions {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
}
.btn-cancel {
	background: none;
	border: 1.5px solid #ccc;
	border-radius: 7px;
	font-size: 15px;
	font-weight: 600;
	padding: 10px 22px;
	cursor: pointer;
	color: var(--text-muted);
	transition: border-color 0.12s;
}
.btn-cancel:hover { border-color: var(--purple-mid); color: var(--purple); }
.btn-proceed {
	background: var(--purple);
	color: white;
	border: none;
	border-radius: 7px;
	font-size: 15px;
	font-weight: 700;
	padding: 10px 28px;
	cursor: pointer;
	transition: background 0.12s;
}
.btn-proceed:hover:not(:disabled) { background: var(--purple-mid); }
.btn-proceed:disabled { opacity: 0.35; cursor: default; }

/* ---- RESPONSIVE ---- */
@media (max-width: 540px) {
	header h1 { font-size: 20px; }
	header h2 { font-size: 13px; }
	.centennial-badge { font-size: 11px; padding: 5px 14px; }
	.intro-card { padding: 20px 16px; }
	.intro-card p { font-size: 14px; }
	.year-grid { grid-template-columns: repeat(5, 1fr); gap: 5px; }
	.year-cell { border-width: 1.5px; }
	.year-cell .num { font-size: 15px; }
	.year-cell .yr  { font-size: 8px; }
	.donate-bar { padding: 10px 14px; gap: 10px; }
	.pledge-amount { font-size: 24px; }
	.donate-btn { font-size: 14px; padding: 9px 18px; }
	.selected-info { display: none; }
}
