/* Ghana Parliamentary Registration — Public Styles */

.gpr-wrap {
	max-width: 1000px;
	margin: 40px auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gpr-wrap .gpr-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.gpr-wrap .gpr-card-success {
	text-align: center;
	padding: 50px 40px;
	border-top: 5px solid #8400FF;
}

.gpr-wrap .gpr-card-header {
	background: #8400FF;
	color: #fff;
	padding: 24px 32px;
}

.gpr-wrap .gpr-card-header h2 {
	margin: 0 0 6px;
	font-size: 1.4rem;
	color: #fff;
}

.gpr-wrap .gpr-card-header p {
	margin: 0;
	opacity: 0.88;
	font-size: 0.95rem;
}

.gpr-wrap .gpr-card-body {
	padding: 28px 32px;
}

.gpr-wrap .gpr-field {
	margin-bottom: 20px;
}

.gpr-wrap .gpr-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 0.9rem;
	color: #333;
}

.gpr-wrap .gpr-field input[type="text"],
.gpr-wrap .gpr-field input[type="tel"],
.gpr-wrap .gpr-field textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid #ccc !important;
	border-radius: 8px;
	font-size: 1rem;
	transition: border-color 0.2s;
	box-sizing: border-box;
	background: #fff !important;
	box-shadow: none !important;
	color: #333 !important;
}

/* Region button grid */
.gpr-wrap .gpr-region-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

@media (max-width: 500px) {
	.gpr-wrap .gpr-region-list { grid-template-columns: 1fr; }
}

.gpr-wrap .gpr-region-btn {
	display: block;
	width: 100%;
	padding: 14px 18px;
	background: #fff;
	border: 2px solid #e0e0e0 !important;
	border-radius: 8px;
	font-size: 0.95rem;
	font-weight: 500;
	color: #333 !important;
	cursor: pointer;
	text-align: left;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
	box-shadow: none !important;
}

.gpr-wrap .gpr-region-btn:hover:not(:disabled) {
	border-color: #8400FF !important;
	color: #8400FF !important;
	background: #F3E8FF !important;
}

.gpr-wrap .gpr-region-btn.gpr-region-btn-active {
	border-color: #8400FF !important;
	background: #F3E8FF !important;
	color: #8400FF !important;
}

.gpr-wrap .gpr-region-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.gpr-wrap .gpr-field select {
	width: 100%;
	padding: 16px 18px;
	border: 2px solid #ccc !important;
	border-radius: 8px;
	font-size: 1.05rem;
	font-weight: 500;
	transition: border-color 0.2s;
	box-sizing: border-box;
	background: #fff !important;
	box-shadow: none !important;
	color: #333 !important;
	height: 58px;
	cursor: pointer;
	appearance: auto;
}

.gpr-wrap .gpr-field input:focus,
.gpr-wrap .gpr-field select:focus,
.gpr-wrap .gpr-field textarea:focus {
	outline: none !important;
	border-color: #8400FF !important;
	box-shadow: 0 0 0 3px rgba(132,0,255,0.12) !important;
}

.gpr-wrap .gpr-field textarea {
	resize: vertical;
}

.gpr-wrap .gpr-required {
	color: #c62828;
}

.gpr-wrap .gpr-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 28px;
	border: none !important;
	border-radius: 6px !important;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
	text-decoration: none !important;
	box-shadow: none !important;
	outline: none !important;
}

.gpr-wrap .gpr-btn:active { transform: scale(0.98); }

.gpr-wrap .gpr-btn-primary {
	background: #8400FF !important;
	color: #fff !important;
}

.gpr-wrap .gpr-btn-primary:hover:not(:disabled) {
	background: #6600CC !important;
	color: #fff !important;
}

.gpr-wrap .gpr-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.gpr-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255,255,255,0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: gpr-spin 0.7s linear infinite;
}

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

.gpr-wrap .gpr-alert {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 18px;
	font-size: 0.9rem;
}

.gpr-wrap .gpr-alert-error {
	background: #fce4e4;
	border: 1px solid #f44336 !important;
	color: #b71c1c;
}

.gpr-wrap .gpr-back {
	background: none !important;
	border: 1px solid rgba(255,255,255,0.5) !important;
	color: #fff !important;
	padding: 4px 12px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.82rem;
	margin-top: 10px;
	display: inline-block;
	box-shadow: none !important;
}

.gpr-wrap .gpr-back:hover { background: rgba(255,255,255,0.15) !important; }

/* Constituency Table */
.gpr-wrap .gpr-table-wrap {
	overflow-x: auto;
	margin-bottom: 20px;
}

.gpr-wrap .gpr-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.gpr-wrap .gpr-table th {
	background: #f5f5f5;
	text-align: left;
	padding: 10px 14px;
	font-weight: 600;
	border-bottom: 2px solid #e0e0e0;
	white-space: nowrap;
}

.gpr-wrap .gpr-table td {
	padding: 10px 14px;
	border-bottom: 1px solid #eee;
}

.gpr-wrap .gpr-table tr.gpr-full td { color: #aaa; }
.gpr-wrap .gpr-table tr.gpr-selected { background: #F3E8FF; }

.gpr-wrap .gpr-slots-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 0.78rem;
	font-weight: 600;
	white-space: nowrap;
}

.gpr-slots-available { background: #F3E8FF; color: #6600CC; }
.gpr-slots-limited   { background: #fff3e0; color: #e65100; }
.gpr-slots-full      { background: #ffebee; color: #c62828; }

/* Success step */
.gpr-wrap .gpr-success-icon {
	width: 64px;
	height: 64px;
	background: #8400FF;
	color: #fff;
	border-radius: 50%;
	font-size: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
}

.gpr-wrap .gpr-card-success h2 { color: #8400FF; margin-bottom: 10px; }
.gpr-wrap .gpr-success-sub { color: #666; font-size: 0.95rem; }

/* Photo upload field */
.gpr-wrap .gpr-photo-upload-wrap input[type="file"] {
	display: block;
	width: 100%;
	padding: 10px 0;
	font-size: 0.9rem;
	color: #333;
}

.gpr-wrap .gpr-photo-hint {
	margin: 6px 0 0;
	font-size: 0.78rem;
	color: #888;
}

.gpr-wrap .gpr-photo-preview {
	margin-top: 12px;
}

.gpr-wrap .gpr-photo-preview img {
	max-width: 200px;
	max-height: 240px;
	border-radius: 8px;
	border: 2px solid #e0e0e0;
	object-fit: cover;
	display: block;
}
