
* {
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}


html,
body {
	margin: 0;
	padding: 0;
	width: 100%;
	min-height: 100%;
	font-family:
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		Roboto,
		Arial,
		sans-serif;
	color: #222;
}


body {
	min-height: 100vh;
}


.page {
	width: 100%;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}


/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.header {
	background: white;
	padding: 25px 20px 20px;
	text-align: center;
}


.logo {
	max-width: 190px;
	max-height: 120px;
	width: auto;
	height: auto;
	object-fit: contain;
}


.title {
	margin-top: 12px;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
}


.subtitle {
	margin-top: 7px;
	font-size: 17px;
	color: #666;
}


/*
|--------------------------------------------------------------------------
| Main
|--------------------------------------------------------------------------
*/

.main {
	width: 100%;
	max-width: 850px;
	margin: 0 auto;
	padding: 30px 22px 50px;
	flex: 1;
}


/*
|--------------------------------------------------------------------------
| Search Box
|--------------------------------------------------------------------------
*/

.search-card {
	background: white;
	border-radius: 20px;
	padding: 25px;
	box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}


.search-heading {
	text-align: center;
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 20px;
}


/*
|--------------------------------------------------------------------------
| Search Tabs
|--------------------------------------------------------------------------
*/

.tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 22px;
}


.tab {
	flex: 1;
	min-height: 62px;
	background: #fafafa;
	border-radius: 14px;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
	transition: 0.2s;
}


.tab.active {
	background: #eee;
	border-color: #333;
}


.tab:active {
	transform: scale(0.98);
}


/*
|--------------------------------------------------------------------------
| Search Panels
|--------------------------------------------------------------------------
*/

.search-panel {
	display: none;
}


.search-panel.active {
	display: block;
}


.form-row {
	display: flex;
	gap: 15px;
}


.form-group {
	flex: 1;
	margin-bottom: 18px;
}


label {
	display: block;
	font-size: 17px;
	font-weight: 600;
	margin-bottom: 8px;
}


input {
	width: 100%;
	height: 62px;
	border: 2px solid #ccc;
	border-radius: 12px;
	padding: 0 18px;
	font-size: 21px;
	outline: none;
	background: white;
	-webkit-appearance: none;
}


input:focus {
	border-color: #333;
}


input::placeholder {
	color: #999;
}


/*
|--------------------------------------------------------------------------
| Buttons
|--------------------------------------------------------------------------
*/

.button-row {
	display: flex;
	gap: 12px;
	margin-top: 10px;
}


.search-button,
.clear-button {
	min-height: 66px;
	border-radius: 14px;
	border: none;
	font-size: 21px;
	font-weight: 700;
	cursor: pointer;
}


.search-button {
	flex: 2;
	background: #222;
	color: white;
}


.clear-button {
	flex: 1;
	background: #e8e8e8;
	color: #333;
}


.search-button:active,
.clear-button:active {
	transform: scale(0.98);
}


/*
|--------------------------------------------------------------------------
| Results
|--------------------------------------------------------------------------
*/

.results {
	margin-top: 25px;
}


.result-count {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 12px;
	color: #555;
}


.donor-card {
	background: white;
	border-radius: 18px;
	padding: 24px;
	margin-bottom: 15px;
	box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}


.donor-name {
	font-size: 26px;
	font-weight: 700;
	margin-bottom: 18px;
}


.donor-detail {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	font-size: 19px;
	margin: 12px 0;
	line-height: 1.4;
}


.detail-label {
	min-width: 85px;
	font-weight: 700;
}


.account-id {
	color: #777;
	font-size: 15px;
	margin-top: 18px;
	padding-top: 12px;
	border-top: 1px solid #eee;
}

.email-display {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.verify-email-link {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    background: #f0f4ff;
    color: #2454a6;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #cbd8f5;
}

.verify-email-link:hover {
    background: #e2eaff;
}

.verify-email-link:active {
    transform: scale(0.98);
}

/*
|--------------------------------------------------------------------------
| Messages
|--------------------------------------------------------------------------
*/

.message {
	margin-top: 25px;
	background: white;
	border-radius: 18px;
	padding: 30px 22px;
	text-align: center;
	box-shadow: 0 4px 18px rgba(0,0,0,0.07);
}


.message-icon {
	font-size: 45px;
	margin-bottom: 12px;
}


.message-title {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 8px;
}


.message-text {
	font-size: 18px;
	color: #666;
	line-height: 1.5;
}


.error {
	border-left: 6px solid #c62828;
}


.error .message-title {
	color: #c62828;
}


/*
|--------------------------------------------------------------------------
| Footer
|--------------------------------------------------------------------------
*/

.footer {
	text-align: center;
	padding: 20px;
	font-size: 14px;
	color: #888;
}


/*

|--------------------------------------------------------------------------
| Loading
|--------------------------------------------------------------------------
*/

.loading {
	display: none;
	position: fixed;
	z-index: 9999;
	inset: 0;
	background: rgba(255,255,255,0.90);
	align-items: center;
	justify-content: center;
	flex-direction: column;
}


.loading.show {
	display: flex;
}


.spinner {
	width: 55px;
	height: 55px;
	border: 6px solid #ddd;
	border-top-color: #333;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}


.loading-text {
	margin-top: 18px;
	font-size: 20px;
	font-weight: 600;
}


@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}


/*
|--------------------------------------------------------------------------
| iPad
|--------------------------------------------------------------------------
*/

@media (max-width: 700px) {

	.header {
		padding-top: 20px;
	}


	.logo {
		max-width: 160px;
	}


	.title {
		font-size: 24px;
	}


	.subtitle {
		font-size: 15px;
	}


	.main {
		padding: 20px 15px 40px;
	}


	.search-card {
		padding: 18px;
		border-radius: 16px;
	}


	.search-heading {
		font-size: 22px;
	}


	.tabs {
		gap: 7px;
	}


	.tab {
		min-height: 58px;
		font-size: 16px;
	}


	.form-row {
		flex-direction: column;
		gap: 0;
	}


	input {
		height: 64px;
		font-size: 20px;
	}


	.button-row {
		flex-direction: column;
	}


	.search-button,
	.clear-button {
		width: 100%;
		min-height: 64px;
	}


	.donor-name {
		font-size: 23px;
	}


	.donor-detail {
		font-size: 17px;
	}
}


/*
|--------------------------------------------------------------------------
| Large iPad / landscape
|--------------------------------------------------------------------------
*/

@media (min-width: 701px) and (max-width: 1200px) {

	.main {
		max-width: 900px;
	}


	input {
		height: 68px;
	}


	.search-button,
	.clear-button {
		min-height: 70px;
	}
}
